PandaRoot
PndPythia6Direct.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDP6DIRECT_H
14 #define PNDP6DIRECT_H 1
15 
16 #include "TROOT.h"
17 #include "PndTargetGenerator.h"
18 
19 #ifdef __CINT__
20 #define _DLFCN_H_
21 #define _DLFCN_H
22 #endif
23 
24 #include "TPythia6.h"
25 #include "TMCParticle.h"
26 class FairPrimaryGenerator;
27 
29  public:
32 
34  virtual ~PndPythia6Direct();
35 
37  Bool_t ReadEvent(FairPrimaryGenerator *);
38  void Print();
39 
40  virtual Bool_t Init();
41 
42  void SetMom(Double_t mom) { fMom = mom; };
43  void SetStoreTree(Bool_t store = true) { fStoreTree = store; };
44  inline void SetVerbose(int v = 1) { fVerbose = v; };
45  void SetPandaDefaults();
46  void UsePandaDefaults(bool u = true) { fUsePandaDefaults = u; };
47  TPythia6 *GetTPythia6() { return fPythia; };
48 
49  private:
50  TPythia6 *fPythia;
51  TClonesArray *fParticleList;
52  TMCParticle *fParticle;
53 
54  protected:
55  Double_t fMom; // pbar momentum
56  bool fStoreTree; // flag if we sore also non-final state particles
57  bool fUsePandaDefaults; // flag to load some default setting
58  int fVerbose;
60 };
61 
62 #endif /* !PNDP6DIRECT_H */
ClassDef(PndPythia6Direct, 1)
Bool_t ReadEvent(FairPrimaryGenerator *)
virtual Bool_t Init()
__m128 v
Definition: P4_F32vec4.h:15
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()