er  dev
ERDecayMCEventHeader.h
1 // -------------------------------------------------------------------------
2 // ----- ERDecayMCEventHeader header file -----
3 // ----- Created 03/16 by V. Schetinin -----
4 // -------------------------------------------------------------------------
5 
12 #ifndef ERDecayMCEventHeader_H_
13 #define ERDecayMCEventHeader_H_
14 
15 #include "TLorentzVector.h"
16 #include "TArrayI.h"
17 
18 #include "FairMCEventHeader.h"
19 
20 class ERDecayMCEventHeader : public FairMCEventHeader {
21 private:
22  TVector3 fDecayPos;
23  Int_t fInputTrackID;
24  TArrayI fOutputTrackID;
25  Int_t fOutputsTracksNb = 0;
26  Int_t fTrigger;
27  Int_t fTriggerPriority;
28 public:
30 
31  void SetDecayPos(TVector3 pos){fDecayPos = pos;}
32  void SetInputIon(Int_t iID){fInputTrackID = iID;}
33  void SetTrigger(Int_t trigger){fTrigger = trigger;}
34  void SetTriggerPriority(Int_t priority){fTriggerPriority = priority;}
35  void AddOutputParticle(Int_t oID){fOutputsTracksNb++;
36  fOutputTrackID.Set(fOutputsTracksNb);
37  fOutputTrackID[fOutputsTracksNb-1]=oID;}
38 
39  Int_t GetTrigger() const {return fTrigger;}
40  Int_t GetTriggerPriority() const {return fTriggerPriority;}
41 
42  void Clear();
43 
44  ClassDef(ERDecayMCEventHeader,1)
45 };
46 
47 #endif