er  dev
ERTextDecay.h
1 
2 #ifndef ERTextDecay_H
3 #define ERTextDecay_H
4 
5 #include <vector>
6 
7 #include "TRandom3.h"
8 #include "TGenPhaseSpace.h"
9 #include "TLorentzVector.h"
10 #include "TString.h"
11 
12 #include "FairIon.h"
13 
14 #include "ERDecay.h"
15 
16 class ERTextDecay : public ERDecay{
17 private:
18  std::vector<FairIon*> fOutputIons;
19  TLorentzVector fInputIonV;
20  TString fOutputIonName;
21 
22  TString fFileName;
23 
24  Bool_t ReadFile();
25  void SaveToEventHeader();
26 
27  std::vector<std::vector<TLorentzVector> > fDecays;
28  Int_t fNOutputs;
29 
30  //TParticlePDG* fOutputIonPDG;
31  std::vector<TParticlePDG*> fOutputParticlesPDG;
32  std::vector<TNamed*> fOutputs;
33 public:
34  ERTextDecay(TString name);
35  ~ERTextDecay();
36 
37  Bool_t Stepping();
38  Bool_t Init();
39 
40  void AddOutputIon(Int_t A, Int_t Z, Int_t Q);
41  void AddOutputParticle(Int_t pdg);
42  void SetFileName(TString name){fFileName = name;}
43 
44  ClassDef(ERTextDecay,1)
45 };
46 
47 #endif