18#include "KVIDINDRACsI.h"
20#include "KVIdentificationResult.h"
22#include <KVINDRADetector.h>
23#include <KVReconstructedNucleus.h>
160 double e =
n->GetE();
173 double e =
n->GetE();
204 x =
clamp((
x - edge0) / (edge1 - edge0), 0.0, 1.0);
206 return x *
x *
x * (
x * (
x * 6 - 15) + 10);
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
virtual const Char_t * GetType() const
virtual void Identify(Double_t, Double_t, KVIdentificationResult *) const =0
virtual Bool_t IsIdentifiable(Double_t, Double_t, TString *rejected_by=nullptr) const
const Char_t * GetName() const
float clamp(float x, float lowerlimit, float upperlimit)
Int_t fThresMin[2][4]
min ID thresholds (smooth step)
virtual Bool_t Identify(KVIdentificationResult *, Double_t x=-1., Double_t y=-1.)
Int_t fThresMax[2][4]
max ID thresholds (smooth step)
void SetIdentificationStatus(KVReconstructedNucleus *n)
Bool_t fRapideLente
set to true when using rapide-lente grid i.e. KVIDGCsI
KVIDGraph * CsIGrid
telescope's grid
float smootherstep(float edge0, float edge1, float x)
Scale, and clamp x to 0..1 range.
KVDetector * GetDetector(UInt_t n) const
virtual UShort_t GetIDCode()
void GetIDGridCoords(Double_t &X, Double_t &Y, KVIDGraph *grid, Double_t x=-1, Double_t y=-1)
Full result of one attempted particle identification.
Bool_t IDattempted
=kTRUE if identification was attempted
Bool_t IDOK
general quality of identification, =kTRUE if acceptable identification made
void SetGridName(const Char_t *n)
void SetComment(const Char_t *c)
void Clear(Option_t *opt="")
Reset to initial values.
TString Rejecting_Cut
name of cut in grid which rejected particle for identification
Int_t A
A of particle found (if Aident==kTRUE)
Int_t Z
Z of particle found (if Zident==kTRUE)
Int_t IDquality
specific quality code returned by identification procedure
Int_t IDcode
a general identification code for this type of identification
void SetIDType(const Char_t *t)
Nuclei reconstructed from data measured by a detector array .
virtual Double_t Uniform(Double_t x1, Double_t x2)
const char * Data() const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const