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:
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_
erhic
Definition: EventDis.cxx:14
erhic::Pythia6::~Pythia6
virtual ~Pythia6()
Destructor.
Definition: Pythia6.cxx:60
erhic::Pythia6::mFactory
std::auto_ptr< VirtualEventFactory > mFactory
Definition: Pythia6.h:73
erhic::VirtualEventFactory
Abstract base class for event builders.
Definition: erhic/EventFactory.h:35
erhic::Pythia6
Runs PYTHIA 6 and builds an output tree file in the ROOT environment.
Definition: Pythia6.h:34
erhic::Pythia6::mPrintInterval
int mPrintInterval
Definition: Pythia6.h:67
erhic::Pythia6::mNEvents
const int mNEvents
Number of events to produce.
Definition: Pythia6.h:70
erhic::Pythia6::mFile
TFile * mFile
Definition: Pythia6.h:68
erhic::Pythia6::mTree
TTree * mTree
< Pointer to the output file
Definition: Pythia6.h:69
erhic::Pythia6::mNGenerated
int mNGenerated
Number of events passing PYTHIA selection.
Definition: Pythia6.h:71
erhic::Pythia6::Run
virtual bool Run()
Runs PYTHIA and writes output.
Definition: Pythia6.cxx:66
erhic::Pythia6::Pythia6
Pythia6(TFile *file, VirtualEventFactory *, int nEvents, const std::string &treeName="EICTree", const std::string &branchName="event", int printInterval=1000)
Constructor.
Definition: Pythia6.cxx:29
erhic::Pythia6::mNTrials
int mNTrials
Number of events thrown by PYTHIA.
Definition: Pythia6.h:72