8 #ifndef _DNeutralParticleHypothesis_factory_
9 #define _DNeutralParticleHypothesis_factory_
14 #include <TMatrixFSym.h>
16 #include <JANA/JFactory.h>
58 jerror_t
brun(jana::JEventLoop *locEventLoop, int32_t runnumber);
59 jerror_t
evnt(jana::JEventLoop *locEventLoop, uint64_t eventnumber);
62 for(
auto locHypo : _data)
70 #endif // _DNeutralParticleHypothesis_factory_
jerror_t brun(jana::JEventLoop *locEventLoop, int32_t runnumber)
Called everytime a new run number is detected.
size_t Get_NumObjectsAllThreads(void) const
DNeutralParticleHypothesis * Create_DNeutralParticleHypothesis(const DNeutralShower *locNeutralShower, Particle_t locPID, const DEventRFBunch *locEventRFBunch, const DLorentzVector &dSpacetimeVertex, const TMatrixFSym *locVertexCovMatrix)
void Calc_ParticleCovariance_Photon(const DNeutralShower *locNeutralShower, const TMatrixFSym *locVertexCovMatrix, const DVector3 &locMomentum, const DVector3 &locPathVector, TMatrixFSym *locParticleCovariance) const
void Recycle_Hypotheses(vector< const DNeutralParticleHypothesis * > &locHypos)
jerror_t evnt(jana::JEventLoop *locEventLoop, uint64_t eventnumber)
Called every event.
const DParticleID * dParticleID
DResourcePool< DNeutralParticleHypothesis > * dResourcePool_NeutralParticleHypothesis
TLorentzVector DLorentzVector
jerror_t init(void)
Called once at program start.
DType * Get_Resource(void)
shared_ptr< DResourcePool< TMatrixFSym > > dResourcePool_TMatrixFSym
double dMaxMassiveNeutralBeta
void Calc_ParticleCovariance_Massive(const DNeutralShower *locNeutralShower, const TMatrixFSym *locVertexCovMatrix, double locMass, double locDeltaT, const DVector3 &locMomentum, const DVector3 &locPathVector, TMatrixFSym *locParticleCovariance) const
DNeutralParticleHypothesis * Get_Resource(void)
size_t Get_NumObjectsAllThreads(void) const
void Recycle_Hypothesis(const DNeutralParticleHypothesis *locHypo)
vector< DNeutralParticleHypothesis * > dCreated
void Recycle_Hypotheses(vector< DNeutralParticleHypothesis * > &locHypos)
void Recycle(const DType *locResource)