er  dev
ERBeamDetParticle.h
1 // -------------------------------------------------------------------------
2 // ----- ERBeamDetParticle header file -----
3 // ----- Created by -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef ERBeamDetParticle_H
7 #define ERBeamDetParticle_H
8 
9 #include "TString.h"
10 #include "TNamed.h"
11 #include "TVector3.h"
12 #include "TLorentzVector.h"
13 
14 class ERBeamDetParticle : public TNamed{
15 private:
16  TLorentzVector fTofState;
17  TLorentzVector fTargetState;
18  Int_t fPID = 0;
19  float fTimeOnTarget = -1.;
20  float fProbability = -1.;
21 public:
22  ERBeamDetParticle() = default;
23  ERBeamDetParticle(Int_t pid, TLorentzVector tofState, TLorentzVector targetState,
24  float time_on_target, float probability);
25  void AddParameters(Int_t pid, TLorentzVector tofState, TLorentzVector targetState, float probability);
26  TLorentzVector GetLVTarget() const {return fTargetState;}
27  TLorentzVector lv_between_tofs() const {return fTofState;}
28  float time_on_target() const {return fTimeOnTarget;}
29  ClassDef(ERBeamDetParticle, 1)
30 };
31 
32 #endif