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 "PndTargetGenerator.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 {
30 
31  public:
34 
35  PndEvtGenDirect(TString particle, TString decfile = "", Double_t Mom = 0, Long_t Seed = -1, TString defDECAY = "", TString defPDL = "",
36  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 
47  void SetStoreTree(Bool_t store = true) { fStoreTree = store; };
48  inline void SetVerbose(int v = 1) { verbose = v; };
49 
50  private:
51  Bool_t fStoreTree;
52  Int_t verbose;
56  Double_t fEnergy;
57  Double_t fMomentum;
58 
59  EvtGen *myGenerator;
60  EvtStdHep evtstdhep;
61  EvtId PART;
62 
63  ClassDef(PndEvtGenDirect, 2);
64 };
65 
66 #endif
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
virtual ~PndEvtGenDirect()
void SetVerbose(int v=1)
__m128 v
Definition: P4_F32vec4.h:3
void SetStoreTree(Bool_t store=true)