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

#include <DNeutralParticleHypothesis_factory.h>

+ Inheritance diagram for DNeutralParticleHypothesis_factory:

Public Member Functions

DNeutralParticleHypothesisCreate_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
 
DNeutralParticleHypothesisGet_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 DParticleIDdParticleID = nullptr
 
vector
< DNeutralParticleHypothesis * > 
dCreated
 
DResourcePool
< DNeutralParticleHypothesis > * 
dResourcePool_NeutralParticleHypothesis = nullptr
 
shared_ptr< DResourcePool
< TMatrixFSym > > 
dResourcePool_TMatrixFSym
 

Detailed Description

Definition at line 28 of file DNeutralParticleHypothesis_factory.h.

Member Function Documentation

jerror_t DNeutralParticleHypothesis_factory::brun ( jana::JEventLoop *  locEventLoop,
int32_t  runnumber 
)
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
void DNeutralParticleHypothesis_factory::Calc_ParticleCovariance_Photon ( const DNeutralShower locNeutralShower,
const TMatrixFSym *  locVertexCovMatrix,
const DVector3 locMomentum,
const DVector3 locPathVector,
TMatrixFSym *  locParticleCovariance 
) const
jerror_t DNeutralParticleHypothesis_factory::evnt ( jana::JEventLoop *  locEventLoop,
uint64_t  eventnumber 
)
private

Called every event.

Definition at line 52 of file DNeutralParticleHypothesis_factory.cc.

References DVertex::dCovarianceMatrix, DVertex::dSpacetimeVertex, and Gamma.

jerror_t DNeutralParticleHypothesis_factory::fini ( void  )
inlineprivate
size_t DNeutralParticleHypothesis_factory::Get_NumObjectsAllThreads ( void  ) const
inline
DNeutralParticleHypothesis* DNeutralParticleHypothesis_factory::Get_Resource ( void  )
inline
jerror_t DNeutralParticleHypothesis_factory::init ( void  )
private

Called once at program start.

Definition at line 21 of file DNeutralParticleHypothesis_factory.cc.

References DResourcePool< DType >::Set_ControlParams().

void DNeutralParticleHypothesis_factory::Recycle_Hypotheses ( vector< DNeutralParticleHypothesis * > &  locHypos)
inline
void DNeutralParticleHypothesis_factory::Recycle_Hypotheses ( vector< const DNeutralParticleHypothesis * > &  locHypos)
inline
void DNeutralParticleHypothesis_factory::Recycle_Hypothesis ( const DNeutralParticleHypothesis locHypo)
inline

Member Data Documentation

vector<DNeutralParticleHypothesis*> DNeutralParticleHypothesis_factory::dCreated
private

Definition at line 53 of file DNeutralParticleHypothesis_factory.h.

double DNeutralParticleHypothesis_factory::dMaxMassiveNeutralBeta = 0.99999
private

Definition at line 49 of file DNeutralParticleHypothesis_factory.h.

const DParticleID* DNeutralParticleHypothesis_factory::dParticleID = nullptr
private

Definition at line 50 of file DNeutralParticleHypothesis_factory.h.

DResourcePool<DNeutralParticleHypothesis>* DNeutralParticleHypothesis_factory::dResourcePool_NeutralParticleHypothesis = nullptr
private
shared_ptr<DResourcePool<TMatrixFSym> > DNeutralParticleHypothesis_factory::dResourcePool_TMatrixFSym
private

Definition at line 55 of file DNeutralParticleHypothesis_factory.h.

double DNeutralParticleHypothesis_factory::dTargetCenterZ
private

Definition at line 48 of file DNeutralParticleHypothesis_factory.h.


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