Hall-D Software
alpha
|
#include <DParticleComboCreator.h>
Public Member Functions | |
DParticleComboCreator (JEventLoop *locEventLoop, const DSourceComboer *locSourceComboer, DSourceComboTimeHandler *locSourceComboTimeHandler, const DSourceComboVertexer *locSourceComboVertexer) | |
const DParticleCombo * | Build_ParticleCombo (const DReactionVertexInfo *locReactionVertexInfo, const DSourceCombo *locFullCombo, const DKinematicData *locBeamParticle, int locRFBunchShift, DKinFitType locKinFitType) |
const DParticleCombo * | Create_KinFitCombo_NewCombo (const DParticleCombo *locOrigCombo, const DReaction *locReaction, const DKinFitResults *locKinFitResults, const shared_ptr< const DKinFitChain > &locKinFitChain) |
const DParticleCombo * | Build_ThrownCombo (JEventLoop *locEventLoop) |
const DParticleCombo * | Build_ThrownCombo (JEventLoop *locEventLoop, const DReaction *locThrownReaction, deque< pair< const DMCThrown *, deque< const DMCThrown * > > > &locThrownSteps) |
void | Reset (void) |
void | Set_DebugLevel (int locDebugLevel) |
Private Member Functions | |
bool | Get_CreateNeutralErrorMatrixFlag_Combo (const DReactionVertexInfo *locReactionVertexInfo, DKinFitType locKinFitType) |
void | Set_DecayingParticles (const DReaction *locReaction, const DParticleCombo *locNewParticleCombo, const DParticleCombo *locOldParticleCombo, size_t locStepIndex, DParticleComboStep *locNewParticleComboStep, const shared_ptr< const DKinFitChain > &locKinFitChain, const DKinFitResults *locKinFitResults) |
shared_ptr< DKinFitParticle > | Get_DecayingParticle (const DReaction *locReaction, const DParticleCombo *locOldParticleCombo, size_t locComboStepIndex, const shared_ptr< const DKinFitChain > &locKinFitChain, const DKinFitResults *locKinFitResults) const |
bool | Search_ForParticleInDecay (const shared_ptr< const DKinFitChain > &locKinFitChain, size_t locStepToSearch, const shared_ptr< DKinFitParticle > &locParticleToFind) const |
void | Set_SpacetimeVertex (const DReaction *locReaction, const DParticleCombo *locNewParticleCombo, const DParticleCombo *locOldParticleCombo, DParticleComboStep *locNewParticleComboStep, size_t locStepIndex, const DKinFitResults *locKinFitResults, const shared_ptr< const DKinFitChain > &locKinFitChain, double locOrigShiftedRFTime) const |
const DChargedTrackHypothesis * | Create_ChargedHypo (const DChargedTrack *locChargedTrack, Particle_t locPID, double locPropagatedRFTime, bool locIsProductionVertex, const DSourceCombo *locReactionFullCombo, const DSourceCombo *locVertexPrimaryFullCombo, const DKinematicData *locBeamParticle, DVector3 locVertex) |
const DBeamPhoton * | Create_BeamPhoton_KinFit (const DBeamPhoton *locBeamPhoton, const DKinFitParticle *locKinFitParticle, const DLorentzVector &locSpacetimeVertex) |
const DChargedTrackHypothesis * | Create_ChargedHypo_KinFit (const DChargedTrack *locChargedTrack, Particle_t locPID, const DKinFitParticle *locKinFitParticle, double locPropagatedRFTime) |
const DNeutralParticleHypothesis * | Create_NeutralHypo_KinFit (const DNeutralParticleHypothesis *locOrigHypo, DKinFitParticle *locKinFitParticle, double locPropagatedRFTime) |
DKinematicData * | Build_KinematicData (const DKinFitResults *locKinFitResults, DKinFitParticle *locKinFitParticle, DLorentzVector locSpacetimeVertex, bool locProductionVertexFlag) |
DParticleCombo * | Get_ParticleComboResource (void) |
DParticleComboStep * | Get_ParticleComboStepResource (void) |
Definition at line 30 of file DParticleComboCreator.h.
DAnalysis::DParticleComboCreator::DParticleComboCreator | ( | JEventLoop * | locEventLoop, |
const DSourceComboer * | locSourceComboer, | ||
DSourceComboTimeHandler * | locSourceComboTimeHandler, | ||
const DSourceComboVertexer * | locSourceComboVertexer | ||
) |
Definition at line 8 of file DParticleComboCreator.cc.
References dBeamPhotonfactory, dChargedTrackHypothesisFactory, dDebugLevel, dKinFitUtils, dNeutralParticleHypothesisFactory, dParticleID, dResourcePool_KinematicData, dResourcePool_ParticleCombo, dResourcePool_ParticleComboStep, dTargetCenter, dVertexCovMatrix, DApplication::GetDGeometry(), DGeometry::GetTargetZ(), and DResourcePool< DType >::Set_ControlParams().
|
private |
Definition at line 765 of file DParticleComboCreator.cc.
References dCreated_KinematicData, dKinFitUtils, dResourcePool_KinematicData, DKinFitParticle::Get_CovarianceMatrix(), DKinFitParticle::Get_Momentum(), DKinFitParticle::Get_PID(), DKinFitParticle::Get_Position(), DResourcePool< DType >::Get_Resource(), DKinFitParticle::Get_Time(), DKinFitParticle::Get_TParamIndex(), DKinFitParticle::Get_VertexP4AtProductionVertex(), DKinFitResults::Get_VXi(), DKinFitParticle::Get_VxParamIndex(), IsDetachedVertex(), PDGtoPType(), and DKinFitUtils_GlueX::Propagate_TrackInfoToCommonVertex().
Referenced by Create_KinFitCombo_NewCombo(), and Set_DecayingParticles().
const DParticleCombo * DAnalysis::DParticleComboCreator::Build_ParticleCombo | ( | const DReactionVertexInfo * | locReactionVertexInfo, |
const DSourceCombo * | locFullCombo, | ||
const DKinematicData * | locBeamParticle, | ||
int | locRFBunchShift, | ||
DKinFitType | locKinFitType | ||
) |
Definition at line 124 of file DParticleComboCreator.cc.
References DAnalysis::DSourceComboTimeHandler::Calc_RFTime(), DAnalysis::d_P4AndSpacetimeFit, DAnalysis::d_SpacetimeFit, dComboMap, dDebugLevel, dResourcePool_EventRFBunch, dRFBunchMap, dSourceComboTimeHandler, dSourceComboVertexer, Get_CreateNeutralErrorMatrixFlag_Combo(), DAnalysis::DSourceComboTimeHandler::Get_InitialEventRFBunch(), Get_ParticleComboResource(), DAnalysis::DSourceComboVertexer::Get_PrimaryVertex(), DAnalysis::DReactionVertexInfo::Get_Reaction(), DResourcePool< DType >::Get_Resource(), and DEventRFBunch::Reset().
Referenced by DAnalysis::DSourceComboer::Combo_WithBeam().
const DParticleCombo * DAnalysis::DParticleComboCreator::Build_ThrownCombo | ( | JEventLoop * | locEventLoop | ) |
Definition at line 797 of file DParticleComboCreator.cc.
References dAnalysisUtilities, and DAnalysisUtilities::Get_ThrownParticleSteps().
Referenced by DAnalysisUtilities::Check_IsBDTSignalEvent(), and DAnalysisUtilities::Check_ThrownsMatchReaction().
const DParticleCombo * DAnalysis::DParticleComboCreator::Build_ThrownCombo | ( | JEventLoop * | locEventLoop, |
const DReaction * | locThrownReaction, | ||
deque< pair< const DMCThrown *, deque< const DMCThrown * > > > & | locThrownSteps | ||
) |
Definition at line 811 of file DParticleComboCreator.cc.
References dComboMap, Get_ParticleComboResource(), and Get_ParticleComboStepResource().
|
private |
Definition at line 633 of file DParticleComboCreator.cc.
References dBeamPhotonfactory, DBeamPhoton::dCounter, dCreated_BeamPhoton, dKinFitBeamPhotonMap, DBeamPhoton::dSystem, DKinFitParticle::Get_CommonTParamIndex(), DKinFitParticle::Get_CommonVxParamIndex(), DKinFitParticle::Get_CovarianceMatrix(), DKinFitParticle::Get_Momentum(), DKinFitParticle::Get_Position(), DBeamPhoton_factory::Get_Resource(), DKinFitParticle::Get_Time(), DKinematicData::PID(), DKinematicData::position(), SPEED_OF_LIGHT, and DKinematicData::time().
Referenced by Create_KinFitCombo_NewCombo().
|
private |
Definition at line 310 of file DParticleComboCreator.cc.
References DParticleID::Calc_ChargedPIDFOM(), dChargedTrackHypothesisFactory, dCreated_ChargedHypo, dParticleID, dSourceComboTimeHandler, DAnalysis::DSourceComboTimeHandler::Get_ChargedPOCAToVertexX4(), DChargedTrack::Get_Hypothesis(), and DChargedTrackHypothesis_factory::Get_Resource().
|
private |
Definition at line 659 of file DParticleComboCreator.cc.
References DParticleID::Calc_ChargedPIDFOM(), dChargedTrackHypothesisFactory, dCreated_ChargedHypo, dKinFitChargedHypoMap, dParticleID, DKinFitParticle::Get_CommonTParamIndex(), DKinFitParticle::Get_CommonVxParamIndex(), DKinFitParticle::Get_CovarianceMatrix(), DChargedTrack::Get_Hypothesis(), DKinFitParticle::Get_Momentum(), DKinFitParticle::Get_Position(), DChargedTrackHypothesis_factory::Get_Resource(), and DKinFitParticle::Get_Time().
Referenced by Create_KinFitCombo_NewCombo().
const DParticleCombo * DAnalysis::DParticleComboCreator::Create_KinFitCombo_NewCombo | ( | const DParticleCombo * | locOrigCombo, |
const DReaction * | locReaction, | ||
const DKinFitResults * | locKinFitResults, | ||
const shared_ptr< const DKinFitChain > & | locKinFitChain | ||
) |
Definition at line 329 of file DParticleComboCreator.cc.
References Build_KinematicData(), Create_BeamPhoton_KinFit(), Create_ChargedHypo_KinFit(), Create_NeutralHypo_KinFit(), d_MissingParticle, dDebugLevel, dKinFitUtils, DEventRFBunch::dTime, DAnalysis::DParticleCombo::Get_EventRFBunch(), DAnalysis::DReaction::Get_KinFitUpdateCovarianceMatricesFlag(), DAnalysis::DParticleCombo::Get_NumParticleComboSteps(), DKinFitResults::Get_OutputKinFitParticle(), DKinFitResults::Get_OutputKinFitParticles(), Get_ParticleComboResource(), DAnalysis::DParticleCombo::Get_ParticleComboStep(), Get_ParticleComboStepResource(), DAnalysis::DReaction::Get_ReactionStep(), ParticleCharge(), Set_DecayingParticles(), Set_SpacetimeVertex(), and DKinFitUtils::Set_UpdateCovarianceMatricesFlag().
Referenced by DAnalysisResults_factory::Handle_ComboFit().
|
private |
Definition at line 711 of file DParticleComboCreator.cc.
References DParticleID::Calc_TimingChiSq(), dCreated_NeutralHypo, dDebugLevel, dKinFitNeutralHypoMap, dNeutralParticleHypothesisFactory, dParticleID, Gamma, DKinFitParticle::Get_CommonTime(), DKinFitParticle::Get_CommonTParamIndex(), DKinFitParticle::Get_CommonVertex(), DKinFitParticle::Get_CommonVxParamIndex(), DKinFitParticle::Get_CovarianceMatrix(), DKinFitParticle::Get_EParamIndex(), DKinFitParticle::Get_Momentum(), DNeutralParticleHypothesis::Get_NeutralShower(), DKinFitParticle::Get_Position(), DNeutralParticleHypothesis_factory::Get_Resource(), DKinFitParticle::Get_Time(), DKinematicData::PID(), DKinematicData::position(), DNeutralParticleHypothesis::t0_detector(), DNeutralParticleHypothesis::t0_err(), and DKinematicData::time().
Referenced by Create_KinFitCombo_NewCombo().
|
private |
Definition at line 95 of file DParticleComboCreator.cc.
References DAnalysis::d_FinalState, d_Neutral, dDanglingNeutralsFlagMap, and DAnalysis::DReactionVertexInfo::Get_StepVertexInfos().
Referenced by Build_ParticleCombo().
|
private |
Definition at line 557 of file DParticleComboCreator.cc.
References d_DecayingParticle, DAnalysis::DParticleCombo::Get_DecayChainParticles_Measured(), DAnalysis::DReactionStep::Get_InitialPID(), DKinFitResults::Get_OutputKinFitParticle(), DAnalysis::DReaction::Get_ReactionStep(), IsFixedMass(), PDGtoPType(), and Search_ForParticleInDecay().
Referenced by Set_DecayingParticles(), and Set_SpacetimeVertex().
|
inlineprivate |
Definition at line 104 of file DParticleComboCreator.h.
Referenced by Build_ParticleCombo(), Build_ThrownCombo(), and Create_KinFitCombo_NewCombo().
|
inlineprivate |
Definition at line 111 of file DParticleComboCreator.h.
Referenced by Build_ThrownCombo(), and Create_KinFitCombo_NewCombo().
void DAnalysis::DParticleComboCreator::Reset | ( | void | ) |
Definition at line 50 of file DParticleComboCreator.cc.
References dBeamPhotonfactory, dChargedHypoMap, dChargedTrackHypothesisFactory, dComboMap, dComboStepMap, dCreated_BeamPhoton, dCreated_ChargedHypo, dCreated_KinematicData, dCreated_NeutralHypo, dCreated_ParticleCombo, dCreated_ParticleComboStep, dDebugLevel, dKinFitBeamPhotonMap, dKinFitChargedHypoMap, dKinFitNeutralHypoMap, dNeutralHypoMap, dNeutralParticleHypothesisFactory, dResourcePool_EventRFBunch, dResourcePool_KinematicData, dResourcePool_ParticleCombo, dResourcePool_ParticleComboStep, dRFBunchMap, DBeamPhoton_factory::Get_NumObjectsAllThreads(), DChargedTrackHypothesis_factory::Get_NumObjectsAllThreads(), DNeutralParticleHypothesis_factory::Get_NumObjectsAllThreads(), DResourcePool< DType >::Get_NumObjectsAllThreads(), DResourcePool< DType >::Recycle(), DChargedTrackHypothesis_factory::Recycle_Hypotheses(), DNeutralParticleHypothesis_factory::Recycle_Hypotheses(), and DBeamPhoton_factory::Recycle_Resources().
Referenced by DAnalysisUtilities::Check_IsBDTSignalEvent(), DAnalysisUtilities::Check_ThrownsMatchReaction(), and DAnalysis::DSourceComboer::Reset_NewEvent().
|
private |
Definition at line 610 of file DParticleComboCreator.cc.
References d_DecayingParticle.
Referenced by Get_DecayingParticle().
|
inline |
Definition at line 42 of file DParticleComboCreator.h.
|
private |
Definition at line 518 of file DParticleComboCreator.cc.
References Build_KinematicData(), Get_DecayingParticle(), DAnalysis::Get_DecayStepIndex(), DAnalysis::Get_InitialParticleDecayFromIndices(), DAnalysis::DParticleCombo::Get_ParticleComboStep(), DAnalysis::DParticleComboStep::Get_SpacetimeVertex(), IsDetachedVertex(), PDGtoPType(), DAnalysis::DParticleComboStep::Set_InitialKinFitParticle(), and DAnalysis::DParticleComboStep::Set_InitialParticle().
Referenced by Create_KinFitCombo_NewCombo().
|
private |
Definition at line 423 of file DParticleComboCreator.cc.
References d_DetectedParticle, DAnalysis::d_NoFit, DAnalysis::d_P4Fit, dDebugLevel, dTargetCenter, Get_DecayingParticle(), DAnalysis::Get_InitialParticleDecayFromIndices(), DAnalysis::DReaction::Get_KinFitType(), DAnalysis::DParticleCombo::Get_ParticleComboStep(), DAnalysis::DParticleComboStep::Get_SpacetimeVertex(), IsDetachedVertex(), PDGtoPType(), DAnalysis::DParticleComboStep::Set_SpacetimeVertex(), and SPEED_OF_LIGHT.
Referenced by Create_KinFitCombo_NewCombo().
|
private |
Definition at line 74 of file DParticleComboCreator.h.
Referenced by Build_ThrownCombo().
|
private |
Definition at line 80 of file DParticleComboCreator.h.
Referenced by Create_BeamPhoton_KinFit(), DParticleComboCreator(), and Reset().
|
private |
Definition at line 85 of file DParticleComboCreator.h.
Referenced by Reset().
|
private |
Definition at line 79 of file DParticleComboCreator.h.
Referenced by Create_ChargedHypo(), Create_ChargedHypo_KinFit(), DParticleComboCreator(), and Reset().
|
private |
Definition at line 87 of file DParticleComboCreator.h.
Referenced by Build_ParticleCombo(), Build_ThrownCombo(), and Reset().
|
private |
Definition at line 83 of file DParticleComboCreator.h.
Referenced by Reset().
|
private |
Definition at line 102 of file DParticleComboCreator.h.
Referenced by Create_BeamPhoton_KinFit(), and Reset().
|
private |
Definition at line 100 of file DParticleComboCreator.h.
Referenced by Create_ChargedHypo(), Create_ChargedHypo_KinFit(), and Reset().
|
private |
Definition at line 97 of file DParticleComboCreator.h.
Referenced by Build_KinematicData(), and Reset().
|
private |
Definition at line 101 of file DParticleComboCreator.h.
Referenced by Create_NeutralHypo_KinFit(), and Reset().
|
private |
Definition at line 98 of file DParticleComboCreator.h.
Referenced by Reset().
|
private |
Definition at line 99 of file DParticleComboCreator.h.
Referenced by Reset().
|
private |
Definition at line 67 of file DParticleComboCreator.h.
Referenced by Get_CreateNeutralErrorMatrixFlag_Combo().
|
private |
Definition at line 46 of file DParticleComboCreator.h.
Referenced by Build_ParticleCombo(), Create_KinFitCombo_NewCombo(), Create_NeutralHypo_KinFit(), DParticleComboCreator(), Reset(), and Set_SpacetimeVertex().
|
private |
Definition at line 90 of file DParticleComboCreator.h.
Referenced by Create_BeamPhoton_KinFit(), and Reset().
|
private |
Definition at line 88 of file DParticleComboCreator.h.
Referenced by Create_ChargedHypo_KinFit(), and Reset().
|
private |
Definition at line 89 of file DParticleComboCreator.h.
Referenced by Create_NeutralHypo_KinFit(), and Reset().
|
private |
Definition at line 75 of file DParticleComboCreator.h.
Referenced by Build_KinematicData(), Create_KinFitCombo_NewCombo(), and DParticleComboCreator().
|
private |
Definition at line 86 of file DParticleComboCreator.h.
Referenced by Reset().
|
private |
Definition at line 78 of file DParticleComboCreator.h.
Referenced by Create_NeutralHypo_KinFit(), DParticleComboCreator(), and Reset().
|
private |
Definition at line 73 of file DParticleComboCreator.h.
Referenced by Create_ChargedHypo(), Create_ChargedHypo_KinFit(), Create_NeutralHypo_KinFit(), and DParticleComboCreator().
|
private |
Definition at line 93 of file DParticleComboCreator.h.
Referenced by Build_ParticleCombo(), and Reset().
|
private |
Definition at line 96 of file DParticleComboCreator.h.
Referenced by Build_KinematicData(), DParticleComboCreator(), and Reset().
|
private |
Definition at line 94 of file DParticleComboCreator.h.
Referenced by DParticleComboCreator(), and Reset().
|
private |
Definition at line 95 of file DParticleComboCreator.h.
Referenced by DParticleComboCreator(), and Reset().
|
private |
Definition at line 84 of file DParticleComboCreator.h.
Referenced by Build_ParticleCombo(), and Reset().
|
private |
Definition at line 70 of file DParticleComboCreator.h.
|
private |
Definition at line 71 of file DParticleComboCreator.h.
Referenced by Build_ParticleCombo(), and Create_ChargedHypo().
|
private |
Definition at line 72 of file DParticleComboCreator.h.
Referenced by Build_ParticleCombo().
|
private |
Definition at line 65 of file DParticleComboCreator.h.
Referenced by DParticleComboCreator(), and Set_SpacetimeVertex().
|
private |
Definition at line 66 of file DParticleComboCreator.h.
Referenced by DParticleComboCreator().