eic-smear  1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
Pythia6.h
Go to the documentation of this file.
1 
10 #ifndef INCLUDE_EICSMEAR_ERHIC_PYTHIA6_H_
11 #define INCLUDE_EICSMEAR_ERHIC_PYTHIA6_H_
12 
13 #include <memory>
14 #include <string>
15 
16 #include <Rtypes.h> // For ClassDef macro
17 
18 class TFile;
19 class TTree;
20 
21 namespace erhic {
22 
23 class EventPythia;
24 class EventMCFilterABC;
25 class VirtualEvent;
26 class VirtualEventFactory;
27 
34 class Pythia6 {
35  public:
46  Pythia6(TFile* file,
48  int nEvents,
49  const std::string& treeName = "EICTree",
50  const std::string& branchName = "event",
51  int printInterval = 1000);
52 
56  virtual ~Pythia6();
57 
64  virtual bool Run();
65 
66  protected:
67  int mPrintInterval;
68  TFile* mFile;
69  TTree* mTree;
70  const int mNEvents;
72  int mNTrials;
73  std::auto_ptr<VirtualEventFactory> mFactory;
74 
75  ClassDef(erhic::Pythia6, 1)
76 };
77 
78 } // namespace erhic
79 
80 #endif // INCLUDE_EICSMEAR_ERHIC_PYTHIA6_H_
virtual ~Pythia6()
Definition: Pythia6.cxx:60
std::auto_ptr< VirtualEventFactory > mFactory
Event factory.
Definition: Pythia6.h:73
const int mNEvents
Number of events to produce.
Definition: Pythia6.h:70
TTree * mTree
Pointer to the generated tree.
Definition: Pythia6.h:69
virtual bool Run()
Definition: Pythia6.cxx:66
Pythia6(TFile *file, VirtualEventFactory *, int nEvents, const std::string &treeName="EICTree", const std::string &branchName="event", int printInterval=1000)
Definition: Pythia6.cxx:29
int mNTrials
Number of events thrown by PYTHIA.
Definition: Pythia6.h:72
TFile * mFile
Pointer to the output file.
Definition: Pythia6.h:68
int mNGenerated
Number of events passing PYTHIA selection.
Definition: Pythia6.h:71