Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DBeamPhoton_factory Class Reference

#include <DBeamPhoton_factory.h>

+ Inheritance diagram for DBeamPhoton_factory:

Public Member Functions

 DBeamPhoton_factory (void)
 
void Recycle_Resources (vector< const DBeamPhoton * > &locBeams)
 
void Recycle_Resources (vector< DBeamPhoton * > &locBeams)
 
void Recycle_Resource (const DBeamPhoton *locBeam)
 
size_t Get_NumObjectsAllThreads (void) const
 
DBeamPhotonGet_Resource (void)
 
jerror_t init (void)
 Called once at program start. More...
 
jerror_t brun (jana::JEventLoop *locEventLoop, int32_t runnumber)
 Called everytime a new run number is detected. More...
 

Private Member Functions

jerror_t evnt (jana::JEventLoop *locEventLoop, uint64_t locEventNumber)
 Called every event. More...
 
jerror_t fini (void)
 
void Set_BeamPhoton (DBeamPhoton *gamma, const DTAGHHit *hit, uint64_t locEventNumber)
 
void Set_BeamPhoton (DBeamPhoton *gamma, const DTAGMHit *hit, uint64_t locEventNumber)
 

Private Attributes

double dTargetCenterZ
 
vector< DBeamPhoton * > dCreated
 
DResourcePool< DBeamPhoton > * dResourcePool_BeamPhotons = nullptr
 
shared_ptr< DResourcePool
< TMatrixFSym > > 
dResourcePool_TMatrixFSym
 
double DELTA_T_DOUBLES_MAX
 
double DELTA_E_DOUBLES_MAX
 

Detailed Description

Definition at line 18 of file DBeamPhoton_factory.h.

Constructor & Destructor Documentation

DBeamPhoton_factory::DBeamPhoton_factory ( void  )
inline

Member Function Documentation

jerror_t DBeamPhoton_factory::brun ( jana::JEventLoop *  locEventLoop,
int32_t  runnumber 
)

Called everytime a new run number is detected.

Definition at line 53 of file DBeamPhoton_factory.cc.

References dapp, DApplication::GetDGeometry(), and DGeometry::GetTargetZ().

jerror_t DBeamPhoton_factory::evnt ( jana::JEventLoop *  locEventLoop,
uint64_t  locEventNumber 
)
private

Called every event.

Definition at line 66 of file DBeamPhoton_factory.cc.

References DBeamPhoton_SortByTime(), and DKinematicData::Reset().

jerror_t DBeamPhoton_factory::fini ( void  )
inlineprivate

Definition at line 47 of file DBeamPhoton_factory.h.

References dResourcePool_BeamPhotons, and Recycle_Resource().

size_t DBeamPhoton_factory::Get_NumObjectsAllThreads ( void  ) const
inline
DBeamPhoton* DBeamPhoton_factory::Get_Resource ( void  )
inline
jerror_t DBeamPhoton_factory::init ( void  )

Called once at program start.

Definition at line 34 of file DBeamPhoton_factory.cc.

void DBeamPhoton_factory::Recycle_Resource ( const DBeamPhoton locBeam)
inline

Definition at line 32 of file DBeamPhoton_factory.h.

References dResourcePool_BeamPhotons, and DResourcePool< DType >::Recycle().

Referenced by fini().

void DBeamPhoton_factory::Recycle_Resources ( vector< const DBeamPhoton * > &  locBeams)
inline
void DBeamPhoton_factory::Recycle_Resources ( vector< DBeamPhoton * > &  locBeams)
inline

Member Data Documentation

vector<DBeamPhoton*> DBeamPhoton_factory::dCreated
private

Definition at line 59 of file DBeamPhoton_factory.h.

double DBeamPhoton_factory::DELTA_E_DOUBLES_MAX
private

Definition at line 65 of file DBeamPhoton_factory.h.

double DBeamPhoton_factory::DELTA_T_DOUBLES_MAX
private

Definition at line 64 of file DBeamPhoton_factory.h.

DResourcePool<DBeamPhoton>* DBeamPhoton_factory::dResourcePool_BeamPhotons = nullptr
private
shared_ptr<DResourcePool<TMatrixFSym> > DBeamPhoton_factory::dResourcePool_TMatrixFSym
private

Definition at line 61 of file DBeamPhoton_factory.h.

Referenced by DBeamPhoton_factory().

double DBeamPhoton_factory::dTargetCenterZ
private

Definition at line 56 of file DBeamPhoton_factory.h.


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