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
Smear::HadronicEventBuilder Class Reference

#include <EventSmear.h>

Inheritance diagram for Smear::HadronicEventBuilder:
Smear::EventFactory< erhic::hadronic::EventSmear > erhic::VirtualEventFactory

Public Member Functions

virtual ~HadronicEventBuilder ()
 
 HadronicEventBuilder (const Detector &d, TBranch &mcBranch)
 
virtual EventTypeCreate ()
 
- Public Member Functions inherited from Smear::EventFactory< erhic::hadronic::EventSmear >
virtual ~EventFactory ()
 
virtual std::string EventName () const
 
virtual TBranch * Branch (TTree &tree, const std::string &name)
 
virtual void Fill (TBranch &branch)
 
- Public Member Functions inherited from erhic::VirtualEventFactory
virtual ~VirtualEventFactory ()
 
virtual VirtualEventGetEvBufferPtr ()
 

Protected Attributes

Detector mDetector
 
erhic::hadronic::EventMCmMcEvent
 

Additional Inherited Members

- Public Types inherited from Smear::EventFactory< erhic::hadronic::EventSmear >
typedef erhic::hadronic::EventSmear EventType
 

Detailed Description

Factory class for smeared hadronic events.

Definition at line 74 of file EventSmear.h.

Constructor & Destructor Documentation

virtual Smear::HadronicEventBuilder::~HadronicEventBuilder ( )
inlinevirtual

Destructor.

Definition at line 79 of file EventSmear.h.

Smear::HadronicEventBuilder::HadronicEventBuilder ( const Detector d,
TBranch &  mcBranch 
)
inline

Constructor. Initialise with the Detector performing particle smearing and the tree branch providing DIS Monte Carlo events.

Definition at line 86 of file EventSmear.h.

Member Function Documentation

virtual EventType* Smear::HadronicEventBuilder::Create ( )
inlinevirtual

Create a smeared event corresponding to the current DIS Monte Carlo event in the input branch passed to the constructor. The user should call TTree::GetEntry() themselves between calls to Create().

Implements Smear::EventFactory< erhic::hadronic::EventSmear >.

Definition at line 98 of file EventSmear.h.


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