FairRoot/PandaRoot
PndEvtGenDirect.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndEvtGenDirect header file -----
3 // ----- Created 11/04/08 by M.Al-Turany -----
4 // -------------------------------------------------------------------------
5 
14 #ifndef PND_EVTDIRECT_H
15 #define PND_EVTDIRECT_H
16 
17 #include "FairGenerator.h"
18 #include "TF1.h"
19 
20 class TVirtualMCStack;
21 class FairPrimaryGenerator;
22 
23 #include "EvtGenBase/EvtStdHep.hh"
24 #include "EvtGenBase/EvtId.hh"
25 
26 class EvtGen;
27 
28 class PndEvtGenDirect : public FairGenerator
29 {
30 
31  public:
32 
35 
36  PndEvtGenDirect(TString particle,TString decfile="",Double_t Mom=0, Long_t Seed=-1,TString defDECAY="",TString defPDL="",Double_t ATarg=0.0); // Mom>0 -> pbar Momentum; Mom<0 -> cms Energy
37  // ATarg is for nuclear target, value is 0 for p and d, and between 3 and 238 for heavier nuclei
38 
40  virtual ~PndEvtGenDirect();
41 
45  virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
46 
48  inline void SetVerbose(int v=1){verbose=v;};
49 
50  private:
51 
53  Int_t verbose;
59 
60  EvtGen *myGenerator;
61  EvtStdHep evtstdhep;
62  EvtId PART;
63 
65 
66 };
67 
68 #endif
virtual ~PndEvtGenDirect()
Double_t fMomentum
Energy of System.
void SetVerbose(int v=1)
EvtGen * myGenerator
Momentum of System.
__m128 v
Definition: P4_F32vec4.h:4
FairPrimaryGenerator * primGen
Definition: sim_emc_apd.C:81
const int particle
void SetStoreTree(Bool_t store=true)
Double_t
vector< FitStore > store(3000)
EvtId PART
The decay tree.
ClassDef(PndEvtGenDirect, 1)
The mother particle.
EvtStdHep evtstdhep
Pointer to the actual EvtGen.
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)