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::EventDisFactory Class Reference

Factory class for smeared DIS events. More...

#include <EventDisFactory.h>

Inheritance diagram for Smear::EventDisFactory:
Smear::EventFactory< Smear::Event > erhic::VirtualEventFactory

Public Member Functions

virtual ~EventDisFactory ()
 Destructor. More...
 
 EventDisFactory (const Detector &, TBranch &)
 Constructor. More...
 
virtual EventCreate ()
 Create a smeared event corresponding to the current DIS Monte Carlo event in the input branch passed to the constructor. More...
 
erhic::VirtualEventGetEvBufferPtr ()
 Returns a pointer to the event buffer. More...
 
- Public Member Functions inherited from Smear::EventFactory< Smear::Event >
virtual ~EventFactory ()
 Destructor. More...
 
virtual std::string EventName () const
 Returns the name of the branch object type (Smear::Event). More...
 
virtual TBranch * Branch (TTree &tree, const std::string &name)
 Create and configure the output branch for smeared events in the tree. More...
 
virtual void Fill (TBranch &branch)
 Create() the new event and fill the requested tree branch with it. More...
 
- Public Member Functions inherited from erhic::VirtualEventFactory
virtual ~VirtualEventFactory ()
 Destructor. More...
 
virtual std::string EventName () const =0
 Returns a string with the full (including namespace) class name of the event type produced. More...
 

Protected Attributes

Detector mDetector
 
erhic::EventDismMcEvent
 

Additional Inherited Members

- Public Types inherited from Smear::EventFactory< Smear::Event >
typedef Smear::Event EventType
 

Detailed Description

Factory class for smeared DIS events.

Definition at line 30 of file EventDisFactory.h.

Constructor & Destructor Documentation

◆ ~EventDisFactory()

Smear::EventDisFactory::~EventDisFactory ( )
virtual

Destructor.

Definition at line 34 of file EventDisFactory.cxx.

◆ EventDisFactory()

Smear::EventDisFactory::EventDisFactory ( const Detector d,
TBranch &  mcBranch 
)

Constructor.

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

Definition at line 37 of file EventDisFactory.cxx.

Member Function Documentation

◆ Create()

Event * Smear::EventDisFactory::Create ( )
virtual

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() on the tree with the input branch between calls to Create().

Implements Smear::EventFactory< Smear::Event >.

Definition at line 43 of file EventDisFactory.cxx.

◆ GetEvBufferPtr()

erhic::VirtualEvent * Smear::EventDisFactory::GetEvBufferPtr ( )
inlinevirtual

Returns a pointer to the event buffer.

Reimplemented from erhic::VirtualEventFactory.

Definition at line 59 of file EventDisFactory.h.

Member Data Documentation

◆ mDetector

Detector Smear::EventDisFactory::mDetector
protected

Definition at line 55 of file EventDisFactory.h.

◆ mMcEvent

erhic::EventDis* Smear::EventDisFactory::mMcEvent
protected

Definition at line 56 of file EventDisFactory.h.


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