18 #include "KVIDINDRACsI.h"
20 #include "KVIdentificationResult.h"
23 #include <KVINDRADetector.h>
24 #include <KVReconstructedNucleus.h>
140 if (!IDR->
IDOK)
return;
149 if (fThresMin[IDR->
Z - 1][IDR->
A - 1] > 0) {
151 fThresMax[IDR->
Z - 1][IDR->
A - 1],
GetDetector(1)->GetEnergy());
163 float KVIDINDRACsI::clamp(
float x,
float lowerlimit,
float upperlimit)
177 float KVIDINDRACsI::smootherstep(
float edge0,
float edge1,
float x)
180 x = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
182 return x *
x *
x * (
x * (
x * 6 - 15) + 10);
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
Bool_t Identify(KVIdentificationResult *, Double_t x=-1., Double_t y=-1.) override
void SetIdentificationStatus(KVIdentificationResult *IDR, const KVNucleus *) override
virtual Bool_t Identify(KVIdentificationResult *, Double_t x=-1., Double_t y=-1.)
KVDetector * GetDetector(UInt_t n) const
virtual UShort_t GetIDCode()
virtual void SetIdentificationStatus(KVIdentificationResult *IDR, const KVNucleus *)
Full result of one attempted particle identification.
Bool_t IDOK
general quality of identification, =kTRUE if acceptable identification made
void SetComment(const Char_t *c)
TString Rejecting_Cut
name of cut in grid which rejected particle for identification
Bool_t Aident
= kTRUE if A of particle established
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
Bool_t Zident
=kTRUE if Z of particle established
Description of properties and kinematics of atomic nuclei.
virtual Double_t Uniform(Double_t x1, Double_t x2)
const char * Data() const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const