PandaRoot
PndPythia6Direct.h
Go to the documentation of this file.
1 #ifndef PNDP6DIRECT_H
2 #define PNDP6DIRECT_H 1
3 
4 #include "TROOT.h"
5 #include "PndTargetGenerator.h"
6 
7 #ifdef __CINT__
8 #define _DLFCN_H_
9 #define _DLFCN_H
10 #endif
11 
12 #include "TPythia6.h"
13 #include "TMCParticle.h"
14 class FairPrimaryGenerator;
15 
17  public:
20 
22  virtual ~PndPythia6Direct();
23 
25  Bool_t ReadEvent(FairPrimaryGenerator *);
26  void Print();
27 
28  virtual Bool_t Init();
29 
30  void SetMom(Double_t mom) { fMom = mom; };
31  void SetStoreTree(Bool_t store = true) { fStoreTree = store; };
32  inline void SetVerbose(int v = 1) { fVerbose = v; };
33  void SetPandaDefaults();
34  void UsePandaDefaults(bool u = true) { fUsePandaDefaults = u; };
35  TPythia6 *GetTPythia6() { return fPythia; };
36 
37  private:
38  TPythia6 *fPythia;
39  TClonesArray *fParticleList;
40  TMCParticle *fParticle;
41 
42  protected:
43  Double_t fMom; // pbar momentum
44  bool fStoreTree; // flag if we sore also non-final state particles
45  bool fUsePandaDefaults; // flag to load some default setting
46  int fVerbose;
48 };
49 
50 #endif /* !PNDP6DIRECT_H */
ClassDef(PndPythia6Direct, 1)
Bool_t ReadEvent(FairPrimaryGenerator *)
virtual Bool_t Init()
__m128 v
Definition: P4_F32vec4.h:3
void SetMom(Double_t mom)
virtual ~PndPythia6Direct()
void SetPandaDefaults()
void SetVerbose(int v=1)
void SetStoreTree(Bool_t store=true)
void UsePandaDefaults(bool u=true)
TPythia6 * GetTPythia6()