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
erhic::hadronic::Pythia6EventFactory Class Reference

A realisation of erhic::VirtualEventFactory generating objects of type hadronic::EventPythiaPP. More...

#include <Pythia6EventFactory.h>

Inheritance diagram for erhic::hadronic::Pythia6EventFactory:
erhic::VirtualEventFactory

Public Member Functions

virtual ~Pythia6EventFactory ()
 Destructor. More...
 
 Pythia6EventFactory (EventMCFilterABC *filter)
 Constructor. More...
 
virtual EventPythiaPPCreate ()
 Returns a new event instance. More...
 
virtual std::string EventName () const
 Returns the name of the event class created by this factory. More...
 
virtual TBranch * Branch (TTree &tree, const std::string &branchName)
 Create a new branch on a tree. More...
 
virtual void Fill (TBranch &)
 Fill a tree branch with the current event. More...
 
- Public Member Functions inherited from erhic::VirtualEventFactory
virtual ~VirtualEventFactory ()
 Destructor. More...
 
virtual VirtualEventGetEvBufferPtr ()
 Returns a pointer to the event buffer. More...
 

Protected Member Functions

virtual EventPythiaPPBuildEvent ()
 Construct an event from the current state of TPythia6. More...
 

Protected Attributes

std::auto_ptr< erhic::EventMCFilterABCmFilter
 
EventPythiaPPmEvent
 

Detailed Description

A realisation of erhic::VirtualEventFactory generating objects of type hadronic::EventPythiaPP.

Definition at line 31 of file Pythia6EventFactory.h.

Constructor & Destructor Documentation

◆ ~Pythia6EventFactory()

erhic::hadronic::Pythia6EventFactory::~Pythia6EventFactory ( )
virtual

Destructor.

Definition at line 28 of file Pythia6EventFactory.cxx.

◆ Pythia6EventFactory()

erhic::hadronic::Pythia6EventFactory::Pythia6EventFactory ( erhic::EventMCFilterABC filter)
explicit

Constructor.

Definition at line 31 of file Pythia6EventFactory.cxx.

Member Function Documentation

◆ Branch()

TBranch * erhic::hadronic::Pythia6EventFactory::Branch ( TTree &  tree,
const std::string &  branchName 
)
virtual

Create a new branch on a tree.

Reimplemented from erhic::VirtualEventFactory.

Definition at line 84 of file Pythia6EventFactory.cxx.

◆ BuildEvent()

EventPythiaPP * erhic::hadronic::Pythia6EventFactory::BuildEvent ( )
protectedvirtual

Construct an event from the current state of TPythia6.

Definition at line 46 of file Pythia6EventFactory.cxx.

◆ Create()

EventPythiaPP * erhic::hadronic::Pythia6EventFactory::Create ( )
virtual

Returns a new event instance.

Implements erhic::VirtualEventFactory.

Definition at line 36 of file Pythia6EventFactory.cxx.

◆ EventName()

std::string erhic::hadronic::Pythia6EventFactory::EventName ( ) const
virtual

Returns the name of the event class created by this factory.

Implements erhic::VirtualEventFactory.

Definition at line 80 of file Pythia6EventFactory.cxx.

◆ Fill()

void erhic::hadronic::Pythia6EventFactory::Fill ( TBranch &  branch)
virtual

Fill a tree branch with the current event.

Reimplemented from erhic::VirtualEventFactory.

Definition at line 92 of file Pythia6EventFactory.cxx.

Member Data Documentation

◆ mEvent

EventPythiaPP* erhic::hadronic::Pythia6EventFactory::mEvent
protected

Definition at line 70 of file Pythia6EventFactory.h.

◆ mFilter

std::auto_ptr<erhic::EventMCFilterABC> erhic::hadronic::Pythia6EventFactory::mFilter
protected

Definition at line 69 of file Pythia6EventFactory.h.


The documentation for this class was generated from the following files: