FairRoot/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 "FairGenerator.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 
16 class PndPythia6Direct : public FairGenerator
17 {
18  public:
19 
22 
24  virtual ~PndPythia6Direct();
25 
27  Bool_t ReadEvent(FairPrimaryGenerator*);
28  void Print();
29 
30  virtual Bool_t Init();
31 
33  fMom = mom;
34  };
35  void SetStoreTree(Bool_t store=true) {
37  };
38  inline void SetVerbose(int v=1) {
39  fVerbose=v;
40  };
41  void SetPandaDefaults();
42  TPythia6* GetTPythia6() {
43  return fPythia;
44  };
45 
46  private:
47 
48  TPythia6 *fPythia;
49  TClonesArray *fParticleList;
50  TMCParticle *fParticle;
51  protected:
52 
53  Double_t fMom; // pbar momentum
54  bool fStoreTree; // flag if we sore also non-final state particles
55  int fVerbose;
57 };
58 
59 #endif /* !PNDP6DIRECT_H */
60 
ClassDef(PndPythia6Direct, 1)
Bool_t ReadEvent(FairPrimaryGenerator *)
virtual Bool_t Init()
Double_t mom
Definition: plot_dirc.C:14
TMCParticle * fParticle
__m128 v
Definition: P4_F32vec4.h:4
void SetMom(Double_t mom)
void SetVerbose(int v=1)
virtual ~PndPythia6Direct()
Double_t
vector< FitStore > store(3000)
void SetStoreTree(Bool_t store=true)
TClonesArray * fParticleList
TPythia6 * GetTPythia6()