10 #define ERBeamDetPID_H 12 #include "TClonesArray.h" 13 #include "TParticlePDG.h" 18 #include "ERBeamDetTrack.h" 19 #include "ERBeamDetParticle.h" 20 #include "ERBeamDetSetup.h" 44 virtual InitStatus
Init();
52 virtual void Exec(Option_t* opt);
64 void SetBoxPID(Double_t tof1, Double_t tof2, Double_t dE1, Double_t dE2);
83 std::pair<float, float> CalcEkinAndTimeOnTarget(
ERBeamDetTrack& track,
int pid,
float mom,
84 float mass,
float time_on_tof5);
92 Double_t fToF1 = 0.,
fToF2 = 0.;
93 Double_t fdE1 = 0.,
fdE2 = 0.;
97 TParticlePDG* fIon =
nullptr;
103 TLorentzVector targetState,
float time_on_target,
virtual void Reset()
Resets all output data.
Double_t fdE2
ToF summary energy deposit boundaries.
ERBeamDetParticle * AddParticle(Int_t pid, TLorentzVector tofState, TLorentzVector targetState, float time_on_target, float probability)
Adds a ERBeamDetParticle to the output Collection.
void SetIonMass(Double_t mass)
Sets ion mass.
TClonesArray * fBeamDetTrack
input collection of tracks
ERBeamDetSetup * fBeamDetSetup
access to ERBeamDetSetup class instance
Double_t fIonMass
ion mass
TClonesArray * fBeamDetToFDigi1
input collection of ToF first plastic points
Double_t fProbabilityThreshold
probability threshold
void SetIonMassNumber(Int_t a)
Sets ion mass number.
~ERBeamDetPID()=default
Destructor.
TClonesArray * fProjectile
output projectile collection
virtual InitStatus Init()
Defines all input and output object colletions participate in particle identification.
void SetProbabilityThreshold(Double_t probabilityThreshold)
Sets probability threshold.
Class for particle identification.
void SetPID(Int_t pdg)
Sets ion PDG.
Double_t fOffsetToF
ToF calibration parameter.
Base abstract class for all tasks in er.
Double_t fToF2
ToF selection boundaries.
ERBeamDetPID()
Default constructor.
TClonesArray * fBeamDetToFDigi2
input collection of ToF second plastic points
void SetIonMass(Float_t mass)
Sets ion mass.
void SetOffsetToF(Double_t offsetToF)
Sets calibration parameter for ToF selection.
void SetBoxPID(Double_t tof1, Double_t tof2, Double_t dE1, Double_t dE2)
Sets selection box area on the ToF/dE scatter plot.
virtual void Exec(Option_t *opt)
Defines selection and calculetion of parameters for each event: Four-vector is determined by equati...