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
Pythia6EventBuilder.h
Go to the documentation of this file.
1 
10 #ifndef INCLUDE_EICSMEAR_ERHIC_PYTHIA6EVENTBUILDER_H_
11 #define INCLUDE_EICSMEAR_ERHIC_PYTHIA6EVENTBUILDER_H_
12 
13 #include <string>
14 
15 #include <Rtypes.h> // For ClassDef macro
16 
18 
19 namespace erhic {
20 
21 class EventMCFilterABC;
22 class EventPythia;
23 
33  public:
41  explicit Pythia6EventBuilder(EventMCFilterABC* = NULL);
42 
46  virtual ~Pythia6EventBuilder();
47 
53  virtual EventPythia* Create();
54 
55  virtual std::string EventName() const;
56 
57  virtual TBranch* Branch(TTree&, const std::string&);
58 
59  virtual void Fill(TBranch&);
60 
61  protected:
63  Long64_t mNGenerated;
64  Long64_t mNTrials;
67 
68  ClassDef(erhic::Pythia6EventBuilder, 1)
69 };
70 
71 } // namespace erhic
72 
73 #endif // INCLUDE_EICSMEAR_ERHIC_PYTHIA6EVENTBUILDER_H_
erhic::Pythia6EventBuilder::mFilter
EventMCFilterABC * mFilter
Definition: Pythia6EventBuilder.h:65
erhic::Pythia6EventBuilder
Interface to PYTHIA 6.
Definition: Pythia6EventBuilder.h:32
erhic
Definition: EventDis.cxx:14
erhic::Pythia6EventBuilder::mEvent
EventPythia * mEvent
Definition: Pythia6EventBuilder.h:66
erhic::Pythia6EventBuilder::Pythia6EventBuilder
Pythia6EventBuilder(EventMCFilterABC *=NULL)
Constructor.
Definition: Pythia6EventBuilder.cxx:33
erhic::Pythia6EventBuilder::EventName
virtual std::string EventName() const
Returns a string with the full (including namespace) class name of the event type produced.
Definition: Pythia6EventBuilder.cxx:157
erhic::EventMCFilterABC
Abstract base class for a filter on Monte Carlo events.
Definition: EventMCFilterABC.h:22
erhic::EventPythia
Pythia 6 DIS event.
Definition: erhic/EventPythia.h:28
erhic::Pythia6EventBuilder::BuildEvent
EventPythia * BuildEvent()
Definition: Pythia6EventBuilder.cxx:55
erhic::Pythia6EventBuilder::Branch
virtual TBranch * Branch(TTree &, const std::string &)
Add a branch named "name" for the event type generated by this factory to a ROOT TTree.
Definition: Pythia6EventBuilder.cxx:161
erhic::VirtualEventFactory
Abstract base class for event builders.
Definition: erhic/EventFactory.h:35
erhic::Pythia6EventBuilder::Create
virtual EventPythia * Create()
Generates an event from the current state of ROOT::TPythia6.
Definition: Pythia6EventBuilder.cxx:45
erhic::Pythia6EventBuilder::mNGenerated
Long64_t mNGenerated
Definition: Pythia6EventBuilder.h:63
erhic::Pythia6EventBuilder::Fill
virtual void Fill(TBranch &)
Calls Create() to generate an event and fills the provided branch with that event.
Definition: Pythia6EventBuilder.cxx:169
erhic::Pythia6EventBuilder::~Pythia6EventBuilder
virtual ~Pythia6EventBuilder()
Destructor.
Definition: Pythia6EventBuilder.cxx:40
EventFactory.h
erhic::Pythia6EventBuilder::mNTrials
Long64_t mNTrials
Definition: Pythia6EventBuilder.h:64