CbmRoot
CbmFastDecayer.h
Go to the documentation of this file.
1 #ifndef CBMFASTDECAYER_H
2 #define CBMFASTDECAYER_H
3 
4 
5 #include "FairGenerator.h"
6 #include "TVirtualMCDecayer.h"
7 
8 #include <vector> // std::vector
9 
10 class FairPrimaryGenerator;
11 class TParticle;
12 class CbmStack;
13 
14 class CbmFastDecayer : public FairGenerator {
15 
16 public:
19 
23  CbmFastDecayer(const char* fileName, TString particle);
24 
27 
33  Bool_t ReadEvent(FairPrimaryGenerator* primGen);
34 
35  virtual Bool_t Init();
36  TVirtualMCDecayer* GetDecayer() { return fDecayer; }
37  void SetExternalDecayer(TVirtualMCDecayer* decayer) { fDecayer = decayer; }
38 
39  void SetParticlesForDecay(char const* pdgs = "");
40  void SetParticlesForGeant(char const* pdgs = "");
41 
42 protected:
43 private:
44  CbmStack* fStack = NULL;
45  TVirtualMCDecayer* fDecayer = NULL;
46 
47  std::vector<int> fDecayPdgCodes;
48  std::vector<int> fGeantPdgCodes;
49 
52 
53  ClassDef(CbmFastDecayer, 0) //CbmGenerator interface to EvtGen
54 };
55 
57 
58 #endif
CbmFastDecayer::SetParticlesForDecay
void SetParticlesForDecay(char const *pdgs="")
Definition: CbmFastDecayer.cxx:284
CbmFastDecayer::fDecayer
TVirtualMCDecayer * fDecayer
pointer to CbmStack
Definition: CbmFastDecayer.h:45
CbmFastDecayer::GetDecayer
TVirtualMCDecayer * GetDecayer()
Definition: CbmFastDecayer.h:36
CbmFastDecayer
Definition: CbmFastDecayer.h:14
CbmFastDecayer::CbmFastDecayer
CbmFastDecayer()
CbmFastDecayer::ReadEvent
Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Definition: CbmFastDecayer.cxx:78
CbmFastDecayer::SetExternalDecayer
void SetExternalDecayer(TVirtualMCDecayer *decayer)
Definition: CbmFastDecayer.h:37
CbmFastDecayer::~CbmFastDecayer
~CbmFastDecayer()
Definition: CbmFastDecayer.cxx:40
CbmFastDecayer::fStack
CbmStack * fStack
Definition: CbmFastDecayer.h:44
CbmFastDecayer::Init
virtual Bool_t Init()
Definition: CbmFastDecayer.cxx:51
CbmFastDecayer::CbmFastDecayer
CbmFastDecayer(const CbmFastDecayer &EvtGen)
CbmFastDecayer::SetParticlesForGeant
void SetParticlesForGeant(char const *pdgs="")
Definition: CbmFastDecayer.cxx:301
CbmFastDecayer::fGeantPdgCodes
std::vector< int > fGeantPdgCodes
Definition: CbmFastDecayer.h:48
CbmFastDecayer::fDecayPdgCodes
std::vector< int > fDecayPdgCodes
pointer to decayer
Definition: CbmFastDecayer.h:47
CbmFastDecayer::operator=
CbmFastDecayer & operator=(const CbmFastDecayer &rhs)
CbmStack
Definition: CbmStack.h:45