Hall-D Software
alpha
|
#include <DNeutralParticleHypothesis_factory.h>
Public Member Functions | |
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 | Calc_ParticleCovariance_Massive (const DNeutralShower *locNeutralShower, const TMatrixFSym *locVertexCovMatrix, double locMass, double locDeltaT, const DVector3 &locMomentum, const DVector3 &locPathVector, TMatrixFSym *locParticleCovariance) const |
void | Recycle_Hypotheses (vector< DNeutralParticleHypothesis * > &locHypos) |
void | Recycle_Hypotheses (vector< const DNeutralParticleHypothesis * > &locHypos) |
void | Recycle_Hypothesis (const DNeutralParticleHypothesis *locHypo) |
size_t | Get_NumObjectsAllThreads (void) const |
DNeutralParticleHypothesis * | Get_Resource (void) |
Private Member Functions | |
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... | |
jerror_t | evnt (jana::JEventLoop *locEventLoop, uint64_t eventnumber) |
Called every event. More... | |
jerror_t | fini (void) |
Private Attributes | |
double | dTargetCenterZ |
double | dMaxMassiveNeutralBeta = 0.99999 |
const DParticleID * | dParticleID = nullptr |
vector < DNeutralParticleHypothesis * > | dCreated |
DResourcePool < DNeutralParticleHypothesis > * | dResourcePool_NeutralParticleHypothesis = nullptr |
shared_ptr< DResourcePool < TMatrixFSym > > | dResourcePool_TMatrixFSym |
Definition at line 28 of file DNeutralParticleHypothesis_factory.h.
|
private |
Called everytime a new run number is detected.
Definition at line 38 of file DNeutralParticleHypothesis_factory.cc.
References DApplication::GetDGeometry(), and DGeometry::GetTargetZ().
void DNeutralParticleHypothesis_factory::Calc_ParticleCovariance_Massive | ( | const DNeutralShower * | locNeutralShower, |
const TMatrixFSym * | locVertexCovMatrix, | ||
double | locMass, | ||
double | locDeltaT, | ||
const DVector3 & | locMomentum, | ||
const DVector3 & | locPathVector, | ||
TMatrixFSym * | locParticleCovariance | ||
) | const |
Definition at line 229 of file DNeutralParticleHypothesis_factory.cc.
References DNeutralShower::dCovarianceMatrix, and DNeutralShower::dEnergy.
void DNeutralParticleHypothesis_factory::Calc_ParticleCovariance_Photon | ( | const DNeutralShower * | locNeutralShower, |
const TMatrixFSym * | locVertexCovMatrix, | ||
const DVector3 & | locMomentum, | ||
const DVector3 & | locPathVector, | ||
TMatrixFSym * | locParticleCovariance | ||
) | const |
Definition at line 161 of file DNeutralParticleHypothesis_factory.cc.
References DNeutralShower::dCovarianceMatrix, and DNeutralShower::dEnergy.
DNeutralParticleHypothesis * DNeutralParticleHypothesis_factory::Create_DNeutralParticleHypothesis | ( | const DNeutralShower * | locNeutralShower, |
Particle_t | locPID, | ||
const DEventRFBunch * | locEventRFBunch, | ||
const DLorentzVector & | dSpacetimeVertex, | ||
const TMatrixFSym * | locVertexCovMatrix | ||
) |
Definition at line 87 of file DNeutralParticleHypothesis_factory.cc.
References DNeutralShower::dEnergy, DNeutralShower::dSpacetimeVertex, DEventRFBunch::dTimeSource, DEventRFBunch::dTimeVariance, Gamma, ParticleMass(), DNeutralParticleHypothesis::Set_ChiSq_Overall(), DNeutralParticleHypothesis::Set_NeutralShower(), DNeutralParticleHypothesis::Set_T0(), DKinematicData::setErrorMatrix(), DKinematicData::setMomentum(), DKinematicData::setPID(), DKinematicData::setPosition(), DKinematicData::setTime(), and sqrt().
Referenced by DNeutralParticle_factory_Combo::evnt().
|
private |
Called every event.
Definition at line 52 of file DNeutralParticleHypothesis_factory.cc.
References DVertex::dCovarianceMatrix, DVertex::dSpacetimeVertex, and Gamma.
|
inlineprivate |
Definition at line 60 of file DNeutralParticleHypothesis_factory.h.
References dResourcePool_NeutralParticleHypothesis, and Recycle_Hypothesis().
|
inline |
Definition at line 40 of file DNeutralParticleHypothesis_factory.h.
References dResourcePool_NeutralParticleHypothesis, and DResourcePool< DType >::Get_NumObjectsAllThreads().
Referenced by DAnalysis::DParticleComboCreator::Reset().
|
inline |
Definition at line 41 of file DNeutralParticleHypothesis_factory.h.
References dResourcePool_NeutralParticleHypothesis, and DResourcePool< DType >::Get_Resource().
Referenced by DAnalysis::DParticleComboCreator::Create_NeutralHypo_KinFit().
|
private |
Called once at program start.
Definition at line 21 of file DNeutralParticleHypothesis_factory.cc.
References DResourcePool< DType >::Set_ControlParams().
|
inline |
Definition at line 36 of file DNeutralParticleHypothesis_factory.h.
References dResourcePool_NeutralParticleHypothesis, and DResourcePool< DType >::Recycle().
Referenced by DNeutralParticle_factory_Combo::evnt(), and DAnalysis::DParticleComboCreator::Reset().
|
inline |
Definition at line 37 of file DNeutralParticleHypothesis_factory.h.
References dResourcePool_NeutralParticleHypothesis, and DResourcePool< DType >::Recycle().
|
inline |
Definition at line 38 of file DNeutralParticleHypothesis_factory.h.
References dResourcePool_NeutralParticleHypothesis, and DResourcePool< DType >::Recycle().
Referenced by fini().
|
private |
Definition at line 53 of file DNeutralParticleHypothesis_factory.h.
|
private |
Definition at line 49 of file DNeutralParticleHypothesis_factory.h.
|
private |
Definition at line 50 of file DNeutralParticleHypothesis_factory.h.
|
private |
Definition at line 54 of file DNeutralParticleHypothesis_factory.h.
Referenced by fini(), Get_NumObjectsAllThreads(), Get_Resource(), Recycle_Hypotheses(), and Recycle_Hypothesis().
|
private |
Definition at line 55 of file DNeutralParticleHypothesis_factory.h.
|
private |
Definition at line 48 of file DNeutralParticleHypothesis_factory.h.