er  dev
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
ERBeamDetPID Class Reference

Class for particle identification. More...

#include <ERBeamDetPID.h>

Inheritance diagram for ERBeamDetPID:
Inheritance graph
[legend]
Collaboration diagram for ERBeamDetPID:
Collaboration graph
[legend]

Public Member Functions

 ERBeamDetPID ()
 Default constructor.
 
 ERBeamDetPID (Int_t verbose)
 Constructor. More...
 
 ~ERBeamDetPID ()=default
 Destructor.
 
virtual InitStatus Init ()
 Defines all input and output object colletions participate in particle identification.
 
virtual void Exec (Option_t *opt)
 Defines selection and calculetion of parameters for each event: Four-vector \((p_x, p_y, p_z, E)\) is determined by equations: \(E = \gamma*M\), \(M\) - ion mass [MeV]. \(p = \gamma*\beta*M\)
Gamma factor \(\gamma = \frac{1}{\sqrt{1-\beta^2}}\)
Beta \(\beta = \frac{L}{\Delta/C}\), \(L\) - distance betweet plastics in ToF, \(\Delta T\) - time of flight between ToF plastics, \(C\) - light speed.
 
virtual void Reset ()
 Resets all output data.
 
void SetPID (Int_t pdg)
 Sets ion PDG. More...
 
void SetBoxPID (Double_t tof1, Double_t tof2, Double_t dE1, Double_t dE2)
 Sets selection box area on the ToF/dE scatter plot. More...
 
void SetOffsetToF (Double_t offsetToF)
 Sets calibration parameter for ToF selection. More...
 
void SetIonMass (Double_t mass)
 Sets ion mass. More...
 
void SetProbabilityThreshold (Double_t probabilityThreshold)
 Sets probability threshold. More...
 
void SetIonMassNumber (Int_t a)
 Sets ion mass number. More...
 
void SetIonMass (Float_t mass)
 Sets ion mass. More...
 
- Public Member Functions inherited from ERTask
 ERTask (TString name)
 
 ERTask (TString name, Int_t verbose)
 Constructor. More...
 
 ~ERTask ()
 
virtual void Finish ()
 

Protected Member Functions

std::pair< float, float > CalcEkinAndTimeOnTarget (ERBeamDetTrack &track, int pid, float mom, float mass, float time_on_tof5)
 
- Protected Member Functions inherited from ERTask
InitStatus CheckRunManager ()
 Check is instance of run manager availible for this task.
 
virtual void SetParContainers ()
 Initializes runtime database for getting parameters from .par file.
 

Protected Attributes

ERBeamDetSetupfBeamDetSetup = nullptr
 access to ERBeamDetSetup class instance
 
TClonesArray * fBeamDetToFDigi1 = nullptr
 input collection of ToF first plastic points
 
TClonesArray * fBeamDetToFDigi2 = nullptr
 input collection of ToF second plastic points
 
TClonesArray * fBeamDetTrack = nullptr
 input collection of tracks
 
Int_t fPID = -1
 ion PDG
 
Double_t fToF1 = 0.
 
Double_t fToF2 = 0.
 ToF selection boundaries.
 
Double_t fdE1 = 0.
 
Double_t fdE2 = 0.
 ToF summary energy deposit boundaries.
 
Double_t fOffsetToF = 0.
 ToF calibration parameter.
 
Double_t fIonMass = 0.
 ion mass
 
Double_t fProbabilityThreshold = 0.
 probability threshold
 
TParticlePDG * fIon = nullptr
 
TClonesArray * fProjectile = nullptr
 output projectile collection
 
- Protected Attributes inherited from ERTask
FairRun * fRun
 Pointer to run manager object.
 
std::vector< TString > fAvailibleRunManagers
 Run managers that are availible for this task.
 

Private Member Functions

ERBeamDetParticleAddParticle (Int_t pid, TLorentzVector tofState, TLorentzVector targetState, float time_on_target, float probability)
 Adds a ERBeamDetParticle to the output Collection.
 

Detailed Description

Class for particle identification.

Author
M.Kozlov kozlo.nosp@m.v.m..nosp@m.your@.nosp@m.yand.nosp@m.ex.ru
Version
1.0

The ERBeamDetPID identifies particle via selection ions from the limited area assigned by the time of flight between ToF plastics \(\Delta T\) and summary energy deposit in ToF \(\Delta E\). Then it calculates the Four-vector \((p_x, p_y, p_z, E)\) and initilise the projectile object determined by class ERBeamDetParticle.
In the first version of ERBeamDetPID class user should set mass of ion [MeV] for identification.

Definition at line 33 of file ERBeamDetPID.h.

Constructor & Destructor Documentation

ERBeamDetPID::ERBeamDetPID ( Int_t  verbose)

Constructor.

Parameters
verbositylevel

Definition at line 30 of file ERBeamDetPID.cxx.

Member Function Documentation

void ERBeamDetPID::SetBoxPID ( Double_t  tof1,
Double_t  tof2,
Double_t  dE1,
Double_t  dE2 
)

Sets selection box area on the ToF/dE scatter plot.

Parameters
tof1time value low boundary [ns]
tof2time value high boundary [ns] .
dE1summary energy deposit low boundary [MeV]
dE2summary energy deposit high boundary [MeV]

Definition at line 36 of file ERBeamDetPID.cxx.

void ERBeamDetPID::SetIonMass ( Double_t  mass)
inline

Sets ion mass.

Parameters
massion mass [MeV].

Definition at line 70 of file ERBeamDetPID.h.

void ERBeamDetPID::SetIonMass ( Float_t  mass)
inline

Sets ion mass.

Parameters
mass- ion mass.

Definition at line 81 of file ERBeamDetPID.h.

void ERBeamDetPID::SetIonMassNumber ( Int_t  a)

Sets ion mass number.

Parameters
a- nucleon number.

Definition at line 254 of file ERBeamDetPID.cxx.

void ERBeamDetPID::SetOffsetToF ( Double_t  offsetToF)
inline

Sets calibration parameter for ToF selection.

Parameters
offsetToFcalibration parameter [ns].

Definition at line 67 of file ERBeamDetPID.h.

void ERBeamDetPID::SetPID ( Int_t  pdg)
inline

Sets ion PDG.

Modifiers

Parameters
pdgion pdg.

Definition at line 58 of file ERBeamDetPID.h.

void ERBeamDetPID::SetProbabilityThreshold ( Double_t  probabilityThreshold)
inline

Sets probability threshold.

Parameters
probabilityThresholdprobability threshold.

Definition at line 73 of file ERBeamDetPID.h.


The documentation for this class was generated from the following files: