8 #ifndef _DChargedTrackHypothesis_factory_
9 #define _DChargedTrackHypothesis_factory_
14 #include <JANA/JFactory.h>
31 void Add_TimeToTrackingMatrix(
DChargedTrackHypothesis* locChargedTrackHypothesis, TMatrixFSym* locCovarianceMatrix,
double locFlightTimeVariance,
double locHitTimeVariance,
double locFlightTimePCorrelation)
const;
33 void Recycle_Hypotheses(vector<const DChargedTrackHypothesis*>& locHypos){dResourcePool_ChargedTrackHypothesis->Recycle(locHypos);}
34 void Recycle_Hypotheses(vector<DChargedTrackHypothesis*>& locHypos){dResourcePool_ChargedTrackHypothesis->Recycle(locHypos);}
40 auto locHypo = dResourcePool_ChargedTrackHypothesis->Get_Resource();
55 jerror_t brun(jana::JEventLoop *locEventLoop, int32_t runnumber);
56 jerror_t evnt(jana::JEventLoop *locEventLoop, uint64_t eventnumber);
59 for(
auto locHypo : _data)
60 Recycle_Hypothesis(locHypo);
62 delete dResourcePool_ChargedTrackHypothesis;
67 #endif // _DChargedTrackHypothesis_factory_
shared_ptr< DResourcePool< TMatrixFSym > > dResourcePool_TMatrixFSym
void Recycle_Hypotheses(vector< DChargedTrackHypothesis * > &locHypos)
const DParticleID * dPIDAlgorithm
vector< DChargedTrackHypothesis * > dCreated
DChargedTrackHypothesis * Get_Resource(void)
void Recycle_Hypothesis(const DChargedTrackHypothesis *locHypo)
void Recycle_Hypotheses(vector< const DChargedTrackHypothesis * > &locHypos)
size_t Get_NumObjectsAllThreads(void) const