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

#include <DEventWriterROOT.h>

+ Inheritance diagram for DEventWriterROOT:

Public Member Functions

 JOBJECT_PUBLIC (DEventWriterROOT)
 
virtual ~DEventWriterROOT (void)
 
void Initialize (JEventLoop *locEventLoop)
 
void Create_ThrownTree (JEventLoop *locEventLoop, string locOutputFileName) const
 
void Fill_DataTrees (JEventLoop *locEventLoop, string locDReactionTag) const
 
void Fill_DataTree (JEventLoop *locEventLoop, const DReaction *locReaction, deque< const DParticleCombo * > &locParticleCombos) const
 
void Fill_ThrownTree (JEventLoop *locEventLoop) const
 

Protected Member Functions

virtual void Create_CustomBranches_ThrownTree (DTreeBranchRegister &locBranchRegister, JEventLoop *locEventLoop) const
 
virtual void Fill_CustomBranches_ThrownTree (DTreeFillData *locTreeFillData, JEventLoop *locEventLoop, const DMCReaction *locMCReaction, const vector< const DMCThrown * > &locMCThrowns) const
 
virtual void Create_CustomBranches_DataTree (DTreeBranchRegister &locBranchRegister, JEventLoop *locEventLoop, const DReaction *locReaction, bool locIsMCDataFlag) const
 
virtual void Fill_CustomBranches_DataTree (DTreeFillData *locTreeFillData, JEventLoop *locEventLoop, const DReaction *locReaction, const DMCReaction *locMCReaction, const vector< const DMCThrown * > &locMCThrowns, const DMCThrownMatching *locMCThrownMatching, const DDetectorMatches *locDetectorMatches, const vector< const DBeamPhoton * > &locBeamPhotons, const vector< const DChargedTrackHypothesis * > &locChargedHypos, const vector< const DNeutralParticleHypothesis * > &locNeutralHypos, const deque< const DParticleCombo * > &locParticleCombos) const
 
string Convert_ToBranchName (string locInputName) const
 
string Build_BranchName (string locParticleBranchName, string locVariableName) const
 
ULong64_t Calc_ParticleMultiplexID (Particle_t locPID) const
 
void Get_DecayProductNames (const DReaction *locReaction, size_t locReactionStepIndex, TMap *locPositionToNameMap, TList *&locDecayProductNames, deque< size_t > &locSavedSteps) const
 

Protected Attributes

const DAnalysisUtilitiesdAnalysisUtilities
 

Private Member Functions

void Create_DataTree (const DReaction *locReaction, JEventLoop *locEventLoop, bool locIsMCDataFlag)
 
TMap * Create_UserInfoMaps (DTreeBranchRegister &locTreeBranchRegister, JEventLoop *locEventLoop, const DReaction *locReaction) const
 
void Create_UserTargetInfo (DTreeBranchRegister &locTreeBranchRegister, Particle_t locTargetPID) const
 
void Create_Branches_Thrown (DTreeBranchRegister &locTreeBranchRegister, bool locIsOnlyThrownFlag) const
 
void Create_Branches_ThrownParticles (DTreeBranchRegister &locTreeBranchRegister, bool locIsOnlyThrownFlag) const
 
void Create_Branches_Beam (DTreeBranchRegister &locTreeBranchRegister, bool locIsMCDataFlag) const
 
void Create_Branches_NeutralHypotheses (DTreeBranchRegister &locTreeBranchRegister, bool locIsMCDataFlag) const
 
void Create_Branches_ChargedHypotheses (DTreeBranchRegister &locTreeBranchRegister, bool locIsMCDataFlag) const
 
void Create_Branches_Combo (DTreeBranchRegister &locTreeBranchRegister, const DReaction *locReaction, bool locIsMCDataFlag, TMap *locPositionToNameMap) const
 
void Create_Branches_BeamComboParticle (DTreeBranchRegister &locTreeBranchRegister, Particle_t locBeamPID, DKinFitType locKinFitType) const
 
void Create_Branches_ComboTrack (DTreeBranchRegister &locTreeBranchRegister, string locParticleBranchName, DKinFitType locKinFitType) const
 
void Create_Branches_ComboNeutral (DTreeBranchRegister &locTreeBranchRegister, string locParticleBranchName, DKinFitType locKinFitType) const
 
void Compute_ThrownPIDInfo (const vector< const DMCThrown * > &locMCThrowns_FinalState, const vector< const DMCThrown * > &locMCThrowns_Decaying, ULong64_t &locNumPIDThrown_FinalState, ULong64_t &locPIDThrown_Decaying) const
 
void Group_ThrownParticles (const vector< const DMCThrown * > &locMCThrowns_FinalState, const vector< const DMCThrown * > &locMCThrowns_Decaying, vector< const DMCThrown * > &locMCThrownsToSave, map< const DMCThrown *, unsigned int > &locThrownIndexMap) const
 
void Fill_ThrownInfo (DTreeFillData *locTreeFillData, const DMCReaction *locMCReaction, const DBeamPhoton *locTaggedMCGenBeam, const vector< const DMCThrown * > &locMCThrowns, const map< const DMCThrown *, unsigned int > &locThrownIndexMap, ULong64_t locNumPIDThrown_FinalState, ULong64_t locPIDThrown_Decaying, const DMCThrownMatching *locMCThrownMatching=NULL) const
 
void Fill_ThrownParticleData (DTreeFillData *locTreeFillData, unsigned int locArrayIndex, const DMCThrown *locMCThrown, const map< const DMCThrown *, unsigned int > &locThrownIndexMap, const DMCThrownMatching *locMCThrownMatching) const
 
vector< const DBeamPhoton * > Get_BeamPhotons (const deque< const DParticleCombo * > &locParticleCombos) const
 
vector< const
DChargedTrackHypothesis * > 
Get_ChargedHypotheses (JEventLoop *locEventLoop) const
 
vector< const
DChargedTrackHypothesis * > 
Get_ChargedHypotheses_Used (JEventLoop *locEventLoop, const DReaction *locReaction, const deque< const DParticleCombo * > &locParticleCombos) const
 
vector< const
DNeutralParticleHypothesis * > 
Get_NeutralHypotheses (JEventLoop *locEventLoop, const set< Particle_t > &locReactionPIDs) const
 
vector< const
DNeutralParticleHypothesis * > 
Get_NeutralHypotheses_Used (JEventLoop *locEventLoop, const DReaction *locReaction, const set< Particle_t > &locReactionPIDs, const deque< const DParticleCombo * > &locParticleCombos) const
 
void Fill_BeamData (DTreeFillData *locTreeFillData, unsigned int locArrayIndex, const DBeamPhoton *locBeamPhoton, const DVertex *locVertex, const DMCThrownMatching *locMCThrownMatching) const
 
void Fill_ChargedHypo (DTreeFillData *locTreeFillData, unsigned int locArrayIndex, const DChargedTrackHypothesis *locChargedTrackHypothesis, const DMCThrownMatching *locMCThrownMatching, const map< const DMCThrown *, unsigned int > &locThrownIndexMap, const DDetectorMatches *locDetectorMatches) const
 
void Fill_NeutralHypo (DTreeFillData *locTreeFillData, unsigned int locArrayIndex, const DNeutralParticleHypothesis *locPhotonHypothesis, const DMCThrownMatching *locMCThrownMatching, const map< const DMCThrown *, unsigned int > &locThrownIndexMap, const DDetectorMatches *locDetectorMatches) const
 
void Fill_ComboData (DTreeFillData *locTreeFillData, const DReaction *locReaction, const DParticleCombo *locParticleCombo, unsigned int locComboIndex, const map< pair< oid_t, Particle_t >, size_t > &locObjectToArrayIndexMap) const
 
void Fill_ComboStepData (DTreeFillData *locTreeFillData, const DReaction *locReaction, const DParticleCombo *locParticleCombo, unsigned int locStepIndex, unsigned int locComboIndex, DKinFitType locKinFitType, const map< pair< oid_t, Particle_t >, size_t > &locObjectToArrayIndexMap) const
 
void Fill_ComboBeamData (DTreeFillData *locTreeFillData, unsigned int locComboIndex, const DBeamPhoton *locBeamPhoton, size_t locBeamIndex, DKinFitType locKinFitType) const
 
void Fill_ComboChargedData (DTreeFillData *locTreeFillData, unsigned int locComboIndex, string locParticleBranchName, const DChargedTrackHypothesis *locMeasuredChargedHypo, const DChargedTrackHypothesis *locChargedHypo, size_t locChargedIndex, DKinFitType locKinFitType) const
 
void Fill_ComboNeutralData (DTreeFillData *locTreeFillData, unsigned int locComboIndex, string locParticleBranchName, const DNeutralParticleHypothesis *locMeasuredNeutralHypo, const DNeutralParticleHypothesis *locNeutralHypo, size_t locNeutralIndex, DKinFitType locKinFitType) const
 

Private Attributes

unsigned int dInitNumThrownArraySize
 
unsigned int dInitNumBeamArraySize
 
unsigned int dInitNumTrackArraySize
 
unsigned int dInitNumNeutralArraySize
 
unsigned int dInitNumComboArraySize
 
double dTargetCenterZ
 
map< const DReaction
*, DCutAction_ThrownTopology * > 
dCutActionMap_ThrownTopology
 
map< const DReaction
*, DCutAction_TrueCombo * > 
dCutActionMap_TrueCombo
 
map< const DReaction
*, DCutAction_BDTSignalCombo * > 
dCutActionMap_BDTSignalCombo
 
DTreeInterfacedThrownTreeInterface = nullptr
 
DTreeFillData dThrownTreeFillData
 
map< const DReaction
*, DTreeInterface * > 
dTreeInterfaceMap
 
map< const DReaction
*, DTreeFillData * > 
dTreeFillDataMap
 
map< const DReaction *, const
DReactionVertexInfo * > 
dVertexInfoMap
 

Detailed Description

Definition at line 45 of file DEventWriterROOT.h.

Constructor & Destructor Documentation

DEventWriterROOT::~DEventWriterROOT ( void  )
virtual

Member Function Documentation

ULong64_t DEventWriterROOT::Calc_ParticleMultiplexID ( Particle_t  locPID) const
protected

Definition at line 1336 of file DEventWriterROOT.cc.

References Is_FinalStateParticle(), ParticleMultiplexPower(), and Pi0.

Referenced by Compute_ThrownPIDInfo().

void DEventWriterROOT::Compute_ThrownPIDInfo ( const vector< const DMCThrown * > &  locMCThrowns_FinalState,
const vector< const DMCThrown * > &  locMCThrowns_Decaying,
ULong64_t &  locNumPIDThrown_FinalState,
ULong64_t &  locPIDThrown_Decaying 
) const
private

Definition at line 1357 of file DEventWriterROOT.cc.

References Calc_ParticleMultiplexID(), and Pi0.

Referenced by Fill_DataTree(), and Fill_ThrownTree().

string DEventWriterROOT::Convert_ToBranchName ( string  locInputName) const
inlineprotected

Definition at line 166 of file DEventWriterROOT.h.

Referenced by Create_UserInfoMaps().

void DEventWriterROOT::Create_Branches_Beam ( DTreeBranchRegister locTreeBranchRegister,
bool  locIsMCDataFlag 
) const
private
void DEventWriterROOT::Create_Branches_BeamComboParticle ( DTreeBranchRegister locTreeBranchRegister,
Particle_t  locBeamPID,
DKinFitType  locKinFitType 
) const
private
void DEventWriterROOT::Create_Branches_ChargedHypotheses ( DTreeBranchRegister locTreeBranchRegister,
bool  locIsMCDataFlag 
) const
private
void DEventWriterROOT::Create_Branches_ComboNeutral ( DTreeBranchRegister locTreeBranchRegister,
string  locParticleBranchName,
DKinFitType  locKinFitType 
) const
private
void DEventWriterROOT::Create_Branches_ComboTrack ( DTreeBranchRegister locTreeBranchRegister,
string  locParticleBranchName,
DKinFitType  locKinFitType 
) const
private
void DEventWriterROOT::Create_Branches_NeutralHypotheses ( DTreeBranchRegister locTreeBranchRegister,
bool  locIsMCDataFlag 
) const
private
void DEventWriterROOT::Create_Branches_Thrown ( DTreeBranchRegister locTreeBranchRegister,
bool  locIsOnlyThrownFlag 
) const
private
void DEventWriterROOT::Create_Branches_ThrownParticles ( DTreeBranchRegister locTreeBranchRegister,
bool  locIsOnlyThrownFlag 
) const
private
virtual void DEventWriterROOT::Create_CustomBranches_DataTree ( DTreeBranchRegister locBranchRegister,
JEventLoop *  locEventLoop,
const DReaction locReaction,
bool  locIsMCDataFlag 
) const
inlineprotectedvirtual

Definition at line 65 of file DEventWriterROOT.h.

Referenced by Create_DataTree().

virtual void DEventWriterROOT::Create_CustomBranches_ThrownTree ( DTreeBranchRegister locBranchRegister,
JEventLoop *  locEventLoop 
) const
inlineprotectedvirtual

Definition at line 63 of file DEventWriterROOT.h.

Referenced by Create_ThrownTree().

void DEventWriterROOT::Create_UserTargetInfo ( DTreeBranchRegister locTreeBranchRegister,
Particle_t  locTargetPID 
) const
private
void DEventWriterROOT::Fill_BeamData ( DTreeFillData locTreeFillData,
unsigned int  locArrayIndex,
const DBeamPhoton locBeamPhoton,
const DVertex locVertex,
const DMCThrownMatching locMCThrownMatching 
) const
private
void DEventWriterROOT::Fill_ChargedHypo ( DTreeFillData locTreeFillData,
unsigned int  locArrayIndex,
const DChargedTrackHypothesis locChargedTrackHypothesis,
const DMCThrownMatching locMCThrownMatching,
const map< const DMCThrown *, unsigned int > &  locThrownIndexMap,
const DDetectorMatches locDetectorMatches 
) const
private
void DEventWriterROOT::Fill_ComboBeamData ( DTreeFillData locTreeFillData,
unsigned int  locComboIndex,
const DBeamPhoton locBeamPhoton,
size_t  locBeamIndex,
DKinFitType  locKinFitType 
) const
private
void DEventWriterROOT::Fill_ComboChargedData ( DTreeFillData locTreeFillData,
unsigned int  locComboIndex,
string  locParticleBranchName,
const DChargedTrackHypothesis locMeasuredChargedHypo,
const DChargedTrackHypothesis locChargedHypo,
size_t  locChargedIndex,
DKinFitType  locKinFitType 
) const
private
void DEventWriterROOT::Fill_ComboData ( DTreeFillData locTreeFillData,
const DReaction locReaction,
const DParticleCombo locParticleCombo,
unsigned int  locComboIndex,
const map< pair< oid_t, Particle_t >, size_t > &  locObjectToArrayIndexMap 
) const
private
void DEventWriterROOT::Fill_ComboNeutralData ( DTreeFillData locTreeFillData,
unsigned int  locComboIndex,
string  locParticleBranchName,
const DNeutralParticleHypothesis locMeasuredNeutralHypo,
const DNeutralParticleHypothesis locNeutralHypo,
size_t  locNeutralIndex,
DKinFitType  locKinFitType 
) const
private
virtual void DEventWriterROOT::Fill_CustomBranches_DataTree ( DTreeFillData locTreeFillData,
JEventLoop *  locEventLoop,
const DReaction locReaction,
const DMCReaction locMCReaction,
const vector< const DMCThrown * > &  locMCThrowns,
const DMCThrownMatching locMCThrownMatching,
const DDetectorMatches locDetectorMatches,
const vector< const DBeamPhoton * > &  locBeamPhotons,
const vector< const DChargedTrackHypothesis * > &  locChargedHypos,
const vector< const DNeutralParticleHypothesis * > &  locNeutralHypos,
const deque< const DParticleCombo * > &  locParticleCombos 
) const
inlineprotectedvirtual

Definition at line 66 of file DEventWriterROOT.h.

Referenced by Fill_DataTree().

virtual void DEventWriterROOT::Fill_CustomBranches_ThrownTree ( DTreeFillData locTreeFillData,
JEventLoop *  locEventLoop,
const DMCReaction locMCReaction,
const vector< const DMCThrown * > &  locMCThrowns 
) const
inlineprotectedvirtual

Definition at line 64 of file DEventWriterROOT.h.

Referenced by Fill_ThrownTree().

void DEventWriterROOT::Fill_ThrownInfo ( DTreeFillData locTreeFillData,
const DMCReaction locMCReaction,
const DBeamPhoton locTaggedMCGenBeam,
const vector< const DMCThrown * > &  locMCThrowns,
const map< const DMCThrown *, unsigned int > &  locThrownIndexMap,
ULong64_t  locNumPIDThrown_FinalState,
ULong64_t  locPIDThrown_Decaying,
const DMCThrownMatching locMCThrownMatching = NULL 
) const
private
void DEventWriterROOT::Fill_ThrownParticleData ( DTreeFillData locTreeFillData,
unsigned int  locArrayIndex,
const DMCThrown locMCThrown,
const map< const DMCThrown *, unsigned int > &  locThrownIndexMap,
const DMCThrownMatching locMCThrownMatching 
) const
private
vector< const DBeamPhoton * > DEventWriterROOT::Get_BeamPhotons ( const deque< const DParticleCombo * > &  locParticleCombos) const
private
vector< const DChargedTrackHypothesis * > DEventWriterROOT::Get_ChargedHypotheses ( JEventLoop *  locEventLoop) const
private

Definition at line 1245 of file DEventWriterROOT.cc.

Referenced by Fill_DataTree(), and Get_ChargedHypotheses_Used().

vector< const DChargedTrackHypothesis * > DEventWriterROOT::Get_ChargedHypotheses_Used ( JEventLoop *  locEventLoop,
const DReaction locReaction,
const deque< const DParticleCombo * > &  locParticleCombos 
) const
private

Definition at line 1261 of file DEventWriterROOT.cc.

References d_Charged, and Get_ChargedHypotheses().

Referenced by Fill_DataTree().

void DEventWriterROOT::Get_DecayProductNames ( const DReaction locReaction,
size_t  locReactionStepIndex,
TMap *  locPositionToNameMap,
TList *&  locDecayProductNames,
deque< size_t > &  locSavedSteps 
) const
protected
vector< const DNeutralParticleHypothesis * > DEventWriterROOT::Get_NeutralHypotheses ( JEventLoop *  locEventLoop,
const set< Particle_t > &  locReactionPIDs 
) const
private

Definition at line 1288 of file DEventWriterROOT.cc.

Referenced by Fill_DataTree(), and Get_NeutralHypotheses_Used().

vector< const DNeutralParticleHypothesis * > DEventWriterROOT::Get_NeutralHypotheses_Used ( JEventLoop *  locEventLoop,
const DReaction locReaction,
const set< Particle_t > &  locReactionPIDs,
const deque< const DParticleCombo * > &  locParticleCombos 
) const
private

Definition at line 1304 of file DEventWriterROOT.cc.

References d_Neutral, and Get_NeutralHypotheses().

Referenced by Fill_DataTree().

void DEventWriterROOT::Group_ThrownParticles ( const vector< const DMCThrown * > &  locMCThrowns_FinalState,
const vector< const DMCThrown * > &  locMCThrowns_Decaying,
vector< const DMCThrown * > &  locMCThrownsToSave,
map< const DMCThrown *, unsigned int > &  locThrownIndexMap 
) const
private

Definition at line 1390 of file DEventWriterROOT.cc.

Referenced by Fill_DataTree(), and Fill_ThrownTree().

DEventWriterROOT::JOBJECT_PUBLIC ( DEventWriterROOT  )

Member Data Documentation

const DAnalysisUtilities* DEventWriterROOT::dAnalysisUtilities
protected

Definition at line 77 of file DEventWriterROOT.h.

Referenced by Fill_ComboStepData(), Fill_DataTree(), and Initialize().

map<const DReaction*, DCutAction_BDTSignalCombo*> DEventWriterROOT::dCutActionMap_BDTSignalCombo
private

Definition at line 92 of file DEventWriterROOT.h.

Referenced by Fill_DataTree(), Initialize(), and ~DEventWriterROOT().

map<const DReaction*, DCutAction_ThrownTopology*> DEventWriterROOT::dCutActionMap_ThrownTopology
private

Definition at line 90 of file DEventWriterROOT.h.

Referenced by Fill_DataTree(), Initialize(), and ~DEventWriterROOT().

map<const DReaction*, DCutAction_TrueCombo*> DEventWriterROOT::dCutActionMap_TrueCombo
private

Definition at line 91 of file DEventWriterROOT.h.

Referenced by Fill_DataTree(), Initialize(), and ~DEventWriterROOT().

unsigned int DEventWriterROOT::dInitNumBeamArraySize
private

Definition at line 82 of file DEventWriterROOT.h.

Referenced by Create_Branches_Beam(), and Initialize().

unsigned int DEventWriterROOT::dInitNumComboArraySize
private
unsigned int DEventWriterROOT::dInitNumNeutralArraySize
private
unsigned int DEventWriterROOT::dInitNumThrownArraySize
private
unsigned int DEventWriterROOT::dInitNumTrackArraySize
private

Definition at line 83 of file DEventWriterROOT.h.

Referenced by Create_Branches_ChargedHypotheses(), and Initialize().

double DEventWriterROOT::dTargetCenterZ
private

Definition at line 87 of file DEventWriterROOT.h.

Referenced by Create_UserTargetInfo(), and Initialize().

DTreeFillData DEventWriterROOT::dThrownTreeFillData
mutableprivate

Definition at line 103 of file DEventWriterROOT.h.

Referenced by Fill_ThrownTree().

DTreeInterface* DEventWriterROOT::dThrownTreeInterface = nullptr
mutableprivate
map<const DReaction*, DTreeFillData*> DEventWriterROOT::dTreeFillDataMap
private

Definition at line 105 of file DEventWriterROOT.h.

Referenced by Create_DataTree(), Fill_DataTree(), and ~DEventWriterROOT().

map<const DReaction*, DTreeInterface*> DEventWriterROOT::dTreeInterfaceMap
private
map<const DReaction*, const DReactionVertexInfo*> DEventWriterROOT::dVertexInfoMap
private

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