8 #ifndef _DBeamPhoton_factory_
9 #define _DBeamPhoton_factory_
11 #include <JANA/JFactory.h>
43 jerror_t
brun(jana::JEventLoop *locEventLoop, int32_t runnumber);
46 jerror_t
evnt(jana::JEventLoop *locEventLoop, uint64_t locEventNumber);
49 for(
auto locBeam : _data)
71 #endif // _DBeamPhoton_factory_
void Recycle_Resources(vector< DBeamPhoton * > &locBeams)
void Recycle_Resources(vector< const DBeamPhoton * > &locBeams)
jerror_t brun(jana::JEventLoop *locEventLoop, int32_t runnumber)
Called everytime a new run number is detected.
DBeamPhoton_factory(void)
double DELTA_T_DOUBLES_MAX
shared_ptr< DResourcePool< TMatrixFSym > > dResourcePool_TMatrixFSym
void Recycle_Resource(const DBeamPhoton *locBeam)
DType * Get_Resource(void)
size_t Get_NumObjectsAllThreads(void) const
DResourcePool< DBeamPhoton > * dResourcePool_BeamPhotons
void Set_BeamPhoton(DBeamPhoton *gamma, const DTAGHHit *hit, uint64_t locEventNumber)
size_t Get_NumObjectsAllThreads(void) const
void Set_ControlParams(size_t locGetBatchSize, size_t locNumToAllocateAtOnce, size_t locMaxLocalPoolSize)
vector< DBeamPhoton * > dCreated
double DELTA_E_DOUBLES_MAX
jerror_t init(void)
Called once at program start.
jerror_t evnt(jana::JEventLoop *locEventLoop, uint64_t locEventNumber)
Called every event.
DBeamPhoton * Get_Resource(void)
void Recycle(const DType *locResource)