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

Classes

class  DAnalysisAction
 
class  DParticleCombo
 
class  DParticleComboCreator
 
class  DParticleComboStep
 
class  DReaction
 
class  DReactionStep
 
class  DReactionStepVertexInfo
 
class  DReactionVertexInfo
 
class  DReactionVertexInfo_factory
 
class  DSourceComboInfo
 
class  DSourceCombo
 
struct  DSourceComboChecker_ReusedParticle
 
struct  DCompare_SourceComboInfos
 
class  DSourceComboer
 
class  DSourceComboP4Handler
 
class  DSourceComboTimeHandler
 
class  DSourceComboVertexer
 

Typedefs

using DSourceComboUse = tuple< Particle_t, signed char, const DSourceComboInfo *, bool, Particle_t >
 
using DSourceCombosByUse_Small = vector< pair< DSourceComboUse, vector< const DSourceCombo * >>>
 
using DCombosByBeamBunch = map< vector< int >, vector< const DSourceCombo * >>
 
using DSourceCombosByBeamBunchByUse = map< DSourceComboUse, DCombosByBeamBunch >
 
using DSourceCombosByUse_Large = map< DSourceComboUse, vector< const DSourceCombo * > * >
 
using DCombosByReaction = unordered_map< const DReaction *, vector< const DParticleCombo * >>
 
using DPhotonKinematicsByZBin = unordered_map< signed char, unordered_map< const DNeutralShower *, shared_ptr< const DKinematicData >>>
 
using DPhotonShowersByBeamBunch = map< vector< int >, vector< const JObject * >>
 

Enumerations

enum  DKinFitType {
  d_NoFit = 0, d_P4Fit = 1, d_VertexFit = 2, d_SpacetimeFit = 3,
  d_P4AndVertexFit = 4, d_P4AndSpacetimeFit = 5
}
 
enum  DReactionState_t { d_InitialState = 0, d_FinalState, d_EitherState }
 

Functions

void Print (const DParticleCombo *locCombo)
 
void Print (const DParticleComboStep *locStep)
 
const JObject * Get_FinalParticle_SourceObject (const DKinematicData *locParticle)
 
vector< const DKinematicData * > Get_ParticlesWithPID (Particle_t locPID, const vector< const DKinematicData * > &locInputParticles)
 
pair< int, int > Get_InitialParticleDecayFromIndices (const DReaction *locReaction, int locStepIndex)
 
size_t Get_ParticleInstanceIndex (const DReactionStep *locStep, size_t locParticleIndex)
 
int Get_DecayStepIndex (const DReaction *locReaction, size_t locStepIndex, size_t locParticleIndex)
 
vector< Particle_tGet_ChainPIDs (const DReaction *locReaction, size_t locStepIndex, int locUpToStepIndex, vector< Particle_t > locUpThroughPIDs, bool locExpandDecayingFlag, bool locExcludeMissingFlag)
 
vector< size_t > Get_DefinedParticleStepIndex (const DReaction *locReaction)
 
vector< const DReaction * > Get_Reactions (JEventLoop *locEventLoop)
 
void Print_Reaction (const DReaction *locReaction)
 
bool Get_IsFirstStepBeam (const DReaction *locReaction)
 
bool Check_ChannelEquality (const DReaction *lhs, const DReaction *rhs, bool locSameOrderFlag=true, bool locRightSubsetOfLeftFlag=false)
 
set< size_t > Get_NoConstrainMassSteps (const DReaction *locReaction)
 
vector< Particle_tGet_ChainPIDs (const DReaction *locReaction, Particle_t locInitialPID, int locUpToStepIndex, vector< Particle_t > locUpThroughPIDs, bool locExpandDecayingFlag, bool locExcludeMissingFlag)
 
vector< Particle_tGet_ChainPIDs (const DReaction *locReaction, Particle_t locInitialPID, bool locExpandDecayingFlag, bool locExcludeMissingFlag)
 
string Convert_PIDsToROOTName (const vector< Particle_t > &locPIDs)
 
vector< pair< int, int > > Get_MissingDecayProductIndices (const DReaction *locReaction, size_t locStepIndex)
 
bool Check_IfMissingDecayProduct (const DReaction *locReaction, size_t locStepIndex)
 
template<typename DType >
map< DType, size_t > Convert_VectorToCountMap (const vector< DType > &locVector)
 
string Get_InitialParticlesName (const DReactionStep *locStep, bool locTLatexFlag)
 
vector< stringGet_FinalParticleNames (const DReactionStep *locStep, bool locIncludeMissingFlag, bool locTLatexFlag)
 
bool Are_ParticlesIdentical (const DReactionStep *locStep1, const DReactionStep *locStep2, bool locExceptMissingUnknownInInputFlag)
 
size_t Get_NumFinalPIDs (const DReactionStep *locStep, Particle_t locInputPID, bool locIncludeMissingFlag)
 
string Get_FinalParticlesName (const DReactionStep *locStep, bool locIncludeMissingFlag, bool locTLatexFlag)
 
string Get_StepName (const DReactionStep *locStep, bool locIncludeMissingFlag, bool locTLatexFlag)
 
void Print_ReactionStep (const DReactionStep *locReactionStep)
 
int Get_ParticleIndex (const DReactionStep *locStep, Particle_t locInputPID, size_t locInstance)
 
bool Get_HasMissingParticle_FinalState (const DReactionStep *locStep)
 
bool Check_ChannelEquality (const DReactionStep *lhs, const DReactionStep *rhs, bool locSameOrderFlag=true, bool locRightSubsetOfLeftFlag=false)
 
void Print_ReactionStepVertexInfo (const DReactionStepVertexInfo *locStepInfo)
 
string Build_VertexConstraintString (const DReactionStepVertexInfo *locVertexInfo, bool locSpacetimeFitFlag)
 
void Print_ReactionVertexInfo (const DReactionVertexInfo *locReactionInfo)
 
 for (auto locVertexInfo:dStepVertexInfos)
 
vector< const
DReactionStepVertexInfo * > 
Get_StepVertexInfos_OrderByStep (const DReactionVertexInfo *locReactionVertexInfo)
 
vector< const
DReactionStepVertexInfo * > 
Get_StepVertexInfos_ReverseOrderByStep (const DReactionVertexInfo *locReactionVertexInfo)
 
vector< pair< int, int > > Get_FullConstrainParticles (const DReactionVertexInfo *locReactionVertexInfo, bool locFitFlag, DReactionState_t locState=d_EitherState, Charge_t locCharge=d_AllCharges, bool locIncludeDecayingFlag=true)
 
vector< pair< int, int > > Get_OnlyConstrainTimeParticles (const DReactionVertexInfo *locReactionVertexInfo)
 
vector< const JObject * > Get_SourceParticles (const vector< pair< Particle_t, const JObject * >> &locSourceParticles, Particle_t locPID=Unknown)
 
vector< pair< Particle_t,
const JObject * > > 
Get_SourceParticles_ThisVertex (const DSourceCombo *locSourceCombo, Charge_t locCharge=d_AllCharges)
 
vector< const DSourceCombo * > Get_SourceCombos_ThisVertex (const DSourceCombo *locSourceCombo)
 
vector< pair< DSourceComboUse,
vector< const DSourceCombo * > > > 
Get_SourceCombosAndUses_ThisVertex (const DSourceCombo *locSourceCombo)
 
Charge_t Get_ChargeContent (const DSourceComboInfo *locSourceComboInfo)
 
bool Get_HasMassiveNeutrals (const DSourceComboInfo *locComboInfo)
 
const JObject * Get_SourceParticle_ThisStep (const DSourceCombo *locSourceCombo, Particle_t locPID, size_t locInstance, size_t &locPIDCountSoFar)
 
bool operator< (const DSourceComboUse &lhs, const DSourceComboUse &rhs)
 
void Print_SourceComboUse (const DSourceComboUse &locComboUse, unsigned char locNumTabs=0, bool locIgnoreTabs=false)
 
void Print_SourceComboInfo (const DSourceComboInfo *locComboInfo, unsigned char locNumTabs=0)
 
void Print_SourceCombo (const DSourceCombo *locCombo, unsigned char locNumTabs=0)
 
vector< const JObject * > Get_SourceParticles (const vector< pair< Particle_t, const JObject * >> &locSourceParticles, int locCharge)
 
Charge_t Get_ChargeContent (const vector< pair< Particle_t, unsigned char >> &locNumParticles)
 
vector< pair< Particle_t,
unsigned char > > 
Get_NumParticles_ThisVertex (const DSourceComboInfo *locSourceComboInfo)
 
Charge_t Get_ChargeContent_ThisVertex (const DSourceComboInfo *locSourceComboInfo)
 
bool Get_HasPhotons (const DSourceComboInfo *locComboInfo)
 
bool Check_AreDuplicateCombos (const DSourceCombo *lhs, const DSourceCombo *rhs)
 

Typedef Documentation

using DAnalysis::DCombosByBeamBunch = typedef map<vector<int>, vector<const DSourceCombo*>>

Definition at line 55 of file DSourceComboer.h.

using DAnalysis::DCombosByReaction = typedef unordered_map<const DReaction*, vector<const DParticleCombo*>>

Definition at line 60 of file DSourceComboer.h.

using DAnalysis::DPhotonKinematicsByZBin = typedef unordered_map<signed char, unordered_map<const DNeutralShower*, shared_ptr<const DKinematicData>>>

Definition at line 32 of file DSourceComboTimeHandler.h.

using DAnalysis::DPhotonShowersByBeamBunch = typedef map<vector<int>, vector<const JObject*>>

Definition at line 33 of file DSourceComboTimeHandler.h.

using DAnalysis::DSourceCombosByUse_Large = typedef map<DSourceComboUse, vector<const DSourceCombo*>*>

Definition at line 59 of file DSourceComboer.h.

using DAnalysis::DSourceCombosByUse_Small = typedef vector<pair<DSourceComboUse, vector<const DSourceCombo*>>>

Definition at line 35 of file DSourceCombo.h.

using DAnalysis::DSourceComboUse = typedef tuple<Particle_t, signed char, const DSourceComboInfo*, bool, Particle_t>

Definition at line 34 of file DSourceCombo.h.

Enumeration Type Documentation

Enumerator
d_NoFit 
d_P4Fit 
d_VertexFit 
d_SpacetimeFit 
d_P4AndVertexFit 
d_P4AndSpacetimeFit 

Definition at line 25 of file DReaction.h.

Enumerator
d_InitialState 
d_FinalState 
d_EitherState 

Definition at line 19 of file DReactionStepVertexInfo.h.

Function Documentation

bool DAnalysis::Are_ParticlesIdentical ( const DReactionStep *  locStep1,
const DReactionStep *  locStep2,
bool  locExceptMissingUnknownInInputFlag 
)
string DAnalysis::Build_VertexConstraintString ( const DReactionStepVertexInfo locVertexInfo,
bool  locSpacetimeFitFlag 
)
bool DAnalysis::Check_AreDuplicateCombos ( const DSourceCombo *  lhs,
const DSourceCombo *  rhs 
)
inline
bool DAnalysis::Check_ChannelEquality ( const DReaction lhs,
const DReaction rhs,
bool  locSameOrderFlag = true,
bool  locRightSubsetOfLeftFlag = false 
)
inline
bool DAnalysis::Check_IfMissingDecayProduct ( const DReaction locReaction,
size_t  locStepIndex 
)
inline
string DAnalysis::Convert_PIDsToROOTName ( const vector< Particle_t > &  locPIDs)
inline
template<typename DType >
map<DType, size_t> DAnalysis::Convert_VectorToCountMap ( const vector< DType > &  locVector)
inline

Definition at line 264 of file DReaction.h.

DAnalysis::for ( auto locVertexInfo:dStepVertexInfos  )
vector< Particle_t > DAnalysis::Get_ChainPIDs ( const DReaction locReaction,
size_t  locStepIndex,
int  locUpToStepIndex,
vector< Particle_t locUpThroughPIDs,
bool  locExpandDecayingFlag,
bool  locExcludeMissingFlag 
)
vector<Particle_t> DAnalysis::Get_ChainPIDs ( const DReaction locReaction,
Particle_t  locInitialPID,
int  locUpToStepIndex,
vector< Particle_t locUpThroughPIDs,
bool  locExpandDecayingFlag,
bool  locExcludeMissingFlag 
)
inline

Definition at line 211 of file DReaction.h.

References Get_ChainPIDs(), and DAnalysis::DReaction::Get_ReactionSteps().

vector<Particle_t> DAnalysis::Get_ChainPIDs ( const DReaction locReaction,
Particle_t  locInitialPID,
bool  locExpandDecayingFlag,
bool  locExcludeMissingFlag 
)
inline

Definition at line 224 of file DReaction.h.

References Get_ChainPIDs().

Charge_t DAnalysis::Get_ChargeContent ( const vector< pair< Particle_t, unsigned char >> &  locNumParticles)
inline

Definition at line 451 of file DSourceCombo.h.

References d_AllCharges, d_Charged, d_Neutral, and Is_CorrectCharge().

Charge_t DAnalysis::Get_ChargeContent_ThisVertex ( const DSourceComboInfo *  locSourceComboInfo)
inline
int DAnalysis::Get_DecayStepIndex ( const DReaction locReaction,
size_t  locStepIndex,
size_t  locParticleIndex 
)
vector< size_t > DAnalysis::Get_DefinedParticleStepIndex ( const DReaction locReaction)
vector< string > DAnalysis::Get_FinalParticleNames ( const DReactionStep *  locStep,
bool  locIncludeMissingFlag,
bool  locTLatexFlag 
)
string DAnalysis::Get_FinalParticlesName ( const DReactionStep *  locStep,
bool  locIncludeMissingFlag,
bool  locTLatexFlag 
)
inline

Definition at line 268 of file DReactionStep.h.

References Get_FinalParticleNames(), and string.

Referenced by Get_StepName().

vector<pair<int, int> > DAnalysis::Get_FullConstrainParticles ( const DReactionVertexInfo locReactionVertexInfo,
bool  locFitFlag,
DReactionState_t  locState = d_EitherState,
Charge_t  locCharge = d_AllCharges,
bool  locIncludeDecayingFlag = true 
)
inline
bool DAnalysis::Get_HasMassiveNeutrals ( const DSourceComboInfo *  locComboInfo)
inline
bool DAnalysis::Get_HasMissingParticle_FinalState ( const DReactionStep *  locStep)
inline
bool DAnalysis::Get_HasPhotons ( const DSourceComboInfo *  locComboInfo)
inline
set<size_t> DAnalysis::Get_NoConstrainMassSteps ( const DReaction locReaction)
inline
size_t DAnalysis::Get_NumFinalPIDs ( const DReactionStep *  locStep,
Particle_t  locInputPID,
bool  locIncludeMissingFlag 
)
inline

Definition at line 261 of file DReactionStep.h.

References DAnalysis::DReactionStep::Get_FinalPIDs().

vector<pair<Particle_t, unsigned char> > DAnalysis::Get_NumParticles_ThisVertex ( const DSourceComboInfo *  locSourceComboInfo)
inline
vector<pair<int, int> > DAnalysis::Get_OnlyConstrainTimeParticles ( const DReactionVertexInfo locReactionVertexInfo)
inline
int DAnalysis::Get_ParticleIndex ( const DReactionStep *  locStep,
Particle_t  locInputPID,
size_t  locInstance 
)
inline
size_t DAnalysis::Get_ParticleInstanceIndex ( const DReactionStep locStep,
size_t  locParticleIndex 
)
vector<const DKinematicData*> DAnalysis::Get_ParticlesWithPID ( Particle_t  locPID,
const vector< const DKinematicData * > &  locInputParticles 
)
inline

Definition at line 193 of file DParticleComboStep.h.

vector< const DSourceCombo * > DAnalysis::Get_SourceCombos_ThisVertex ( const DSourceCombo *  locSourceCombo)
inline
const JObject * DAnalysis::Get_SourceParticle_ThisStep ( const DSourceCombo *  locSourceCombo,
Particle_t  locPID,
size_t  locInstance,
size_t &  locPIDCountSoFar 
)
inline
vector<const JObject*> DAnalysis::Get_SourceParticles ( const vector< pair< Particle_t, const JObject * >> &  locSourceParticles,
int  locCharge 
)
inline

Definition at line 381 of file DSourceCombo.h.

References ParticleCharge().

vector<const DReactionStepVertexInfo*> DAnalysis::Get_StepVertexInfos_OrderByStep ( const DReactionVertexInfo locReactionVertexInfo)
inline
bool DAnalysis::operator< ( const DSourceComboUse &  lhs,
const DSourceComboUse &  rhs 
)
inline
void DAnalysis::Print ( const DParticleComboStep *  locStep)
inline
void DAnalysis::Print ( const DParticleCombo locCombo)
inline
void DAnalysis::Print_Reaction ( const DReaction locReaction)
inline
void DAnalysis::Print_ReactionStep ( const DReactionStep *  locReactionStep)
inline

Definition at line 288 of file DReactionStep.h.

References Get_StepName().

Referenced by Print_Reaction().

void DAnalysis::Print_SourceComboInfo ( const DSourceComboInfo *  locComboInfo,
unsigned char  locNumTabs = 0 
)
inline
void DAnalysis::Print_SourceComboUse ( const DSourceComboUse &  locComboUse,
unsigned char  locNumTabs = 0,
bool  locIgnoreTabs = false 
)
inline