ATLAS Offline Software
Loading...
Searching...
No Matches
MSVtxValidationAlg Class Reference

#include <MSVtxValidationAlg.h>

Inheritance diagram for MSVtxValidationAlg:

Classes

struct  TriggerInfo

Public Member Functions

virtual StatusCode initialize () override final
virtual StatusCode execute () override final
virtual StatusCode finalize () override final
 AthHistogramAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor with parameters:
virtual StatusCode sysInitialize ()
 Initialization method invoked by the framework.
const ServiceHandle< ITHistSvc > & histSvc () const
 The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a pointer to the THistSvc.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.
StatusCode configAthHistogramming (const ServiceHandle< ITHistSvc > &histSvc, const std::string &prefix, const std::string &rootDir, const std::string &histNamePrefix, const std::string &histNamePostfix, const std::string &histTitlePrefix, const std::string &histTitlePostfix)
 To be called by the derived classes to fill the internal configuration.
TH1 * bookGetPointer (const TH1 &hist, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms.
TH1 * bookGetPointer (TH1 *hist, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms.
TH1 * bookGetPointer (TH1 &histRef, std::string tDir="", std::string stream="")
 Simplify the booking and registering (into THistSvc) of histograms.
TTree * bookGetPointer (const TTree &treeRef, std::string tDir="", std::string stream="")
 Simplify the booking and registering (into THistSvc) of TTrees.
TGraph * bookGetPointer (const TGraph &graphRef, std::string tDir="", std::string stream="")
 Simplify the booking and registering (into THistSvc) of TGraphs.
TEfficiency * bookGetPointer (const TEfficiency &eff, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency.
TEfficiency * bookGetPointer (TEfficiency *eff, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency.
TEfficiency * bookGetPointer (TEfficiency &effRef, std::string tDir="", std::string stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency.
StatusCode book (const TH1 &hist, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms.
StatusCode book (TH1 *hist, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms.
StatusCode book (TH1 &histRef, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms.
StatusCode book (const TTree &treeRef, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TTrees.
StatusCode book (const TGraph &graphRef, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TGraphs.
StatusCode book (const TEfficiency &eff, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency.
StatusCode book (TEfficiency *eff, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency.
StatusCode book (TEfficiency &effRef, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency.
TH1 * hist (const std::string &histName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered histograms of any type.
TH2 * hist2d (const std::string &histName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered 2-d histograms.
TH3 * hist3d (const std::string &histName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered 3-d histograms.
TTree * tree (const std::string &treeName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered TTrees.
TGraph * graph (const std::string &graphName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered TGraphs.
TEfficiency * efficiency (const std::string &effName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered TEfficiency.

Private Types

using ParticleBranchPtr_t = std::shared_ptr<MuonVal::IParticleFourMomBranch>
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
typedef uint32_t hash_t
 typedef for the internal hash
typedef std::map< const hash_t, TH1 * > HistMap_t
 Typedef for convenience.
typedef std::map< const hash_t, TEfficiency * > EffMap_t
 Typedef for convenience.
typedef std::map< const hash_t, TTree * > TreeMap_t
 Typedef for convenience.
typedef std::map< const hash_t, TGraph * > GraphMap_t
 Typedef for convenience.

Private Member Functions

StatusCode fillTruth (const EventContext &ctx)
StatusCode fillTruthVertex (const EventContext &ctx)
StatusCode fillTruthParticle (const EventContext &ctx)
StatusCode fillJet (const EventContext &ctx)
StatusCode fillMet (const EventContext &ctx)
StatusCode fillMuons (const EventContext &ctx)
StatusCode fillTracklets (const EventContext &ctx)
StatusCode fillMSVtx (const EventContext &ctx)
StatusCode fillLLP (std::vector< const xAOD::TruthParticle * > &llps)
void fillHits (const xAOD::Vertex *vtx, const std::string &decorator_str, MuonVal::VectorBranch< int > &branch)
TriggerInfo getTriggerDecisions (std::string triggerString)
template<typename T>
bool getTriggerMatchingDecision (const T *object, TriggerInfo &triggerInfo, float dRmatching)
StatusCode fillActiveVertices (const EventContext &ctx, const xAOD::Jet *jet)
StatusCode fillMSVtxIsolation (const xAOD::Vertex *msVtx, const xAOD::TrackParticleContainer *tracks, const xAOD::JetContainer *jets)
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>
void buildBookingString (std::string &bookingString, std::string &histName, std::string &tDir, std::string &stream, bool usePrefixPostfix=false)
 Method to build individual booking string.
void myReplace (std::string &str, const std::string &oldStr, const std::string &newStr)
 Helper method to replace sub-string.
hash_t hash (const std::string &histName) const
 Method to calculate a 32-bit hash from a string.

Private Attributes

SG::ReadHandleKey< xAOD::EventInfom_evtKey {this, "EvtKey", "EventInfo"}
SG::ReadHandleKey< xAOD::TruthParticleContainerm_TruthParticleKey {this, "TruthParticleKey", "TruthParticles"}
SG::ReadHandleKey< xAOD::TruthVertexContainerm_TruthVertexKey {this, "TruthVertexKey", "TruthVertices"}
SG::ReadHandleKey< xAOD::TrackParticleContainerm_TrackParticleKey {this, "TrackParticleKey", "InDetTrackParticles"}
SG::ReadHandleKey< xAOD::JetContainerm_JetKey {this, "JetKey", "HLT_AntiKt4EMTopoJets_nojcalib"}
SG::ReadHandleKey< xAOD::MissingETContainerm_MetKey {this, "MetKey", "STCalibMET"}
SG::ReadHandleKey< xAOD::MuonContainerm_MuonKey {this, "MuonKey", "Muons"}
SG::ReadHandleKey< xAOD::MuonSegmentContainerm_MuonSegKey {this, "MuonSegmentsKey", "MuonSegments"}
SG::ReadHandleKey< xAOD::TrackParticleContainerm_TrackletKey {this, "TrackletKey", "MSonlyTracklets"}
SG::ReadHandleKey< xAOD::VertexContainerm_MSVtxKey {this, "MSVertexKey", "MSDisplacedVertex"}
PublicToolHandle< Trig::TrigDecisionToolm_trigDec {this, "TrigDecisionTool", "", "TrigDecisionTool (optional)"}
PublicToolHandle< Trig::R3MatchingToolm_matchingTool {this, "R3MatchingTool", "", "R3MatchingTool (optional)"}
Gaudi::Property< std::string > m_triggerStringJets {this, "TriggerString", "HLT_j400.*"}
Gaudi::Property< float > m_jetTriggerMatchingDR {this, "jetTriggerMatching", 0.1, "max dR distance for jet trigger matching"}
Gaudi::Property< bool > m_isMC {this, "isMC", true, "is the input data simulated (MC) or real data?"}
Gaudi::Property< bool > m_readTriggers {this, "readTriggers", false, "should trigger information be read?"}
Gaudi::Property< bool > m_dumpTruthParticles {this, "dumpTruthParticles", false, "dump truth particles to the tree"}
Gaudi::Property< bool > m_dumpTruthVertices {this, "dumpTruthVertices", false, "dump truth vertices to the tree"}
Gaudi::Property< bool > m_fillMET {this, "fillMET", false, "add met information to the tree"}
Gaudi::Property< bool > m_fillJets {this, "fillJets", false, "add jet information to the tree"}
Gaudi::Property< bool > m_computeActiveVertices {this, "computeActiveVertices", false, "extracts active vertices in the vicinity of a jet by looping through truth particles. Requires isMC."}
Gaudi::Property< bool > m_computeVertexIso {this, "computeVertexIso", false, "add vertex isolation variables to the tree"}
Gaudi::Property< int > m_pdgId_portal {this, "pdgId_portal", 25, "Truth portal PDGId"}
Gaudi::Property< int > m_pdgId_llp {this, "pdgId_llp", 35, "Truth LLP PDGId"}
Gaudi::Property< bool > m_llp_genStableChildren {this, "llp_genStableChildren", false, "Restricts the TruthParticle-LLP linking to generator stable children rather than detector stable children"}
Gaudi::Property< float > m_trackIso_pT {this, "trackIso_pT", 5.0*Gaudi::Units::GeV, "minimum track pT [GeV] to be considered for isolation"}
Gaudi::Property< float > m_softTrackIso_R {this, "softTrackIso_R", 0.2, "cone radius around vertex to sum up track pT"}
Gaudi::Property< float > m_jetIso_pT {this, "jetIso_pT", 20.0*Gaudi::Units::GeV, "minimum jet pT [GeV] to be considered for isolation"}
Gaudi::Property< float > m_jetIso_LogRatio {this, "jetIso_LogRatio", 0.5, "max log ECal/HCal ratio for jet to be considered for isolation"}
MuonVal::MuonTesterTree m_tree {"MSVtxValidTree", "MSVtxValidation"}
std::unordered_set< int > m_hadronicProcessEnum = {111, 116, 121, 131, 132, 141, 151, 152, 161, 165, 166, 167, 210, 310}
std::unordered_set< int > m_emProcessEnum = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,30,31,40,49}
MuonVal::ThreeVectorBranch m_truthVtx_pos {m_tree, "truthVtx_"}
MuonVal::VectorBranch< int > & m_truthVtx_status {m_tree.newVector<int>("truthVtx_status")}
MuonVal::VectorBranch< int > & m_truthVtx_interactionType {m_tree.newVector<int>("truthVtx_ interactionType")}
MuonVal::VectorBranch< int > & m_truthVtx_NchildrenDirect {m_tree.newVector<int>("truthVtx_NchildrenDirect")}
MuonVal::VectorBranch< int > & m_truthVtx_Nchildren {m_tree.newVector<int>("truthVtx_Nchildren")}
MuonVal::VectorBranch< int > & m_truthVtx_NchildrenCharged {m_tree.newVector<int>("truthVtx_NchildrenCharged")}
MuonVal::MatrixBranch< int > & m_truthVtx_truthParticle_link {m_tree.newMatrix<int>("truthVtx_truthParticle_link")}
ParticleBranchPtr_t m_truthParticle {nullptr}
MuonVal::VectorBranch< int > & m_truthParticle_llpVtx_link {m_tree.newVector<int>("truthParticle_llpVtx_link")}
std::unique_ptr< std::vector< int > > m_truthParticle_llpVtx_link_tmp = std::make_unique<std::vector<int>>()
MuonVal::VectorBranch< int > & m_truthParticle_actVtx_link {m_tree.newVector<int>("truthParticle_actVtx_link")}
std::unique_ptr< std::vector< int > > m_truthParticle_actVtx_link_tmp = std::make_unique<std::vector<int>>()
MuonVal::VectorBranch< int > & m_truthParticle_truthVtx_link {m_tree.newVector<int>("truthParticle_truthVtx_link")}
std::unique_ptr< std::vector< int > > m_truthParticle_truthVtx_link_tmp = std::make_unique<std::vector<int>>()
ParticleBranchPtr_t m_portal {nullptr}
MuonVal::ScalarBranch< int > & m_portal_N {m_tree.newScalar<int>("portal_N",defaults::Int)}
ParticleBranchPtr_t m_llp {nullptr}
MuonVal::ScalarBranch< int > & m_llp_N {m_tree.newScalar<int>("llp_N",defaults::Int)}
MuonVal::VectorBranch< int > & m_llp_Nchildren {m_tree.newVector<int>("llp_Nchildren")}
MuonVal::VectorBranch< int > & m_llp_NchildrenCharged {m_tree.newVector<int>("llp_NchildrenCharged")}
MuonVal::ThreeVectorBranch m_llpVtx_pos {m_tree, "llpVtx_"}
MuonVal::ScalarBranch< int > & m_llpVtx_N {m_tree.newScalar<int>("llpVtx_N",defaults::Int)}
MuonVal::VectorBranch< float > & m_llpVtx_Lxy {m_tree.newVector<float>("llpVtx_Lxy")}
MuonVal::VectorBranch< float > & m_llpVtx_ctau {m_tree.newVector<float>("llpVtx_ctau")}
MuonVal::MatrixBranch< int > & m_llpVtx_truthParticle_link {m_tree.newMatrix<int>("llpVtx_truthParticle_link")}
MuonVal::ThreeVectorBranch m_msVtx_pos {m_tree, "msVtx_"}
MuonVal::ScalarBranch< int > & m_msVtx_N {m_tree.newScalar<int>("msVtx_N",defaults::Int)}
MuonVal::VectorBranch< float > & m_msVtx_chi2 {m_tree.newVector<float>("msVtx_chi2")}
MuonVal::VectorBranch< int > & m_msVtx_nDoF {m_tree.newVector<int>("msVtx_nDoF")}
MuonVal::VectorBranch< int > & m_msVtx_Ntrklet {m_tree.newVector<int>("msVtx_Ntrklet")}
MuonVal::VectorBranch< int > & m_msVtx_nMDT {m_tree.newVector<int>("msVtx_nMDT")}
MuonVal::VectorBranch< int > & m_msVtx_nMDT_inwards {m_tree.newVector<int>("msVtx_nMDT_inwards")}
MuonVal::VectorBranch< int > & m_msVtx_nMDT_I {m_tree.newVector<int>("msVtx_nMDT_I")}
MuonVal::VectorBranch< int > & m_msVtx_nMDT_E {m_tree.newVector<int>("msVtx_nMDT_E")}
MuonVal::VectorBranch< int > & m_msVtx_nMDT_M {m_tree.newVector<int>("msVtx_nMDT_M")}
MuonVal::VectorBranch< int > & m_msVtx_nMDT_O {m_tree.newVector<int>("msVtx_nMDT_O")}
MuonVal::VectorBranch< int > & m_msVtx_nRPC {m_tree.newVector<int>("msVtx_nRPC")}
MuonVal::VectorBranch< int > & m_msVtx_nRPC_inwards {m_tree.newVector<int>("msVtx_nRPC_inwards")}
MuonVal::VectorBranch< int > & m_msVtx_nRPC_I {m_tree.newVector<int>("msVtx_nRPC_I")}
MuonVal::VectorBranch< int > & m_msVtx_nRPC_E {m_tree.newVector<int>("msVtx_nRPC_E")}
MuonVal::VectorBranch< int > & m_msVtx_nRPC_M {m_tree.newVector<int>("msVtx_nRPC_M")}
MuonVal::VectorBranch< int > & m_msVtx_nRPC_O {m_tree.newVector<int>("msVtx_nRPC_O")}
MuonVal::VectorBranch< int > & m_msVtx_nTGC {m_tree.newVector<int>("msVtx_nTGC")}
MuonVal::VectorBranch< int > & m_msVtx_nTGC_inwards {m_tree.newVector<int>("msVtx_nTGC_inwards")}
MuonVal::VectorBranch< int > & m_msVtx_nTGC_I {m_tree.newVector<int>("msVtx_nTGC_I")}
MuonVal::VectorBranch< int > & m_msVtx_nTGC_E {m_tree.newVector<int>("msVtx_nTGC_E")}
MuonVal::VectorBranch< int > & m_msVtx_nTGC_M {m_tree.newVector<int>("msVtx_nTGC_M")}
MuonVal::VectorBranch< int > & m_msVtx_nTGC_O {m_tree.newVector<int>("msVtx_nTGC_O")}
MuonVal::VectorBranch< float > & m_msVtx_isoTracks_mindR {m_tree.newVector<float>("msVtx_isoTracks_mindR")}
MuonVal::VectorBranch< float > & m_msVtx_isoTracks_pTsum {m_tree.newVector<float>("msVtx_isoTracks_pTsum")}
MuonVal::VectorBranch< float > & m_msVtx_isoJets_mindR {m_tree.newVector<float>("msVtx_isoJets_mindR")}
MuonVal::ThreeVectorBranch m_trklet_pos {m_tree, "trklet_"}
MuonVal::ThreeVectorBranch m_trklet_mom {m_tree, "trklet_p"}
MuonVal::ScalarBranch< int > & m_trklet_N {m_tree.newScalar<int>("trklet_N",defaults::Int)}
MuonVal::VectorBranch< float > & m_trklet_d0 {m_tree.newVector<float>("trklet_d0")}
MuonVal::VectorBranch< float > & m_trklet_z0 {m_tree.newVector<float>("trklet_z0")}
MuonVal::VectorBranch< float > & m_trklet_theta {m_tree.newVector<float>("trklet_theta")}
MuonVal::VectorBranch< float > & m_trklet_eta {m_tree.newVector<float>("trklet_eta")}
MuonVal::VectorBranch< float > & m_trklet_phi {m_tree.newVector<float>("trklet_phi")}
MuonVal::VectorBranch< float > & m_trklet_qOverP {m_tree.newVector<float>("trklet_qOverP")}
MuonVal::VectorBranch< float > & m_trklet_q {m_tree.newVector<float>("trklet_q")}
MuonVal::VectorBranch< int > & m_trklet_vtxLink {m_tree.newVector<int>("trklet_vtxLink")}
std::shared_ptr< MuonPRDTest::SegmentVariablesm_muonSeg {nullptr}
ParticleBranchPtr_t m_muon {nullptr}
ParticleBranchPtr_t m_jet {nullptr}
MuonVal::ScalarBranch< int > & m_jet_N {m_tree.newScalar<int>("jet_N",defaults::Int)}
MuonVal::VectorBranch< int > & m_jet_triggers {m_tree.newVector<int>("jet_triggers")}
MuonVal::VectorBranch< int > & m_jet_NactVtx {m_tree.newVector<int>("jet_NactVtx")}
MuonVal::MatrixBranch< int > & m_jet_actVtx_link {m_tree.newMatrix<int>("jet_actVtx_link")}
MuonVal::ThreeVectorBranch m_actVtx_pos {m_tree, "actVtx_"}
MuonVal::VectorBranch< int > & m_actVtx_NChildren {m_tree.newVector<int>("actVtx_NChildren")}
MuonVal::VectorBranch< int > & m_actVtx_chainDepth {m_tree.newVector<int>("actVtx_chainDepth")}
MuonVal::VectorBranch< float > & m_actVtx_energy {m_tree.newVector<float>("actVtx_energy")}
MuonVal::VectorBranch< float > & m_actVtx_mass {m_tree.newVector<float>("actVtx_mass")}
MuonVal::VectorBranch< float > & m_actVtx_pT {m_tree.newVector<float>("actVtx_pT")}
MuonVal::VectorBranch< float > & m_actVtx_scalarPtSum {m_tree.newVector<float>("actVtx_scalarPtSum")}
MuonVal::VectorBranch< int > & m_actVtx_jet_link {m_tree.newVector<int>("actVtx_jet_link")}
MuonVal::VectorBranch< float > & m_actVtx_jet_dEta {m_tree.newVector<float>("actVtx_jet_dEta")}
MuonVal::VectorBranch< float > & m_actVtx_jet_dPhi {m_tree.newVector<float>("actVtx_jet_dPhi")}
MuonVal::MatrixBranch< int > & m_actVtx_truthParticle_link {m_tree.newMatrix<int>("actVtx_truthParticle_link")}
MuonVal::ScalarBranch< float > & m_met {m_tree.newScalar<float>("met",defaults::Float)}
MuonVal::ScalarBranch< float > & m_met_x {m_tree.newScalar<float>("met_X",defaults::Float)}
MuonVal::ScalarBranch< float > & m_met_y {m_tree.newScalar<float>("met_Y",defaults::Float)}
MuonVal::ScalarBranch< float > & m_met_phi {m_tree.newScalar<float>("met_phi",defaults::Float)}
MuonVal::ScalarBranch< float > & m_sumEt {m_tree.newScalar<float>("sumEt",defaults::Float)}
TH1F * m_h_LLP1LLP2dR {nullptr}
TH1F * m_h_diLLPMass {nullptr}
TH1F * m_h_leadLLPLxy {nullptr}
TH1F * m_h_leadLLPLz {nullptr}
TH1F * m_h_leadLLPctau {nullptr}
TH1F * m_h_leadLLPpt {nullptr}
TH1F * m_h_subleadLLPLxy {nullptr}
TH1F * m_h_subleadLLPLz {nullptr}
TH1F * m_h_subleadLLPctau {nullptr}
TH1F * m_h_subleadLLPpt {nullptr}
ServiceHandle< ITHistSvc > m_histSvc
 Default constructor: AthHistogramAlgorithm();.
std::string m_prefix
 Name of the ROOT output stream (file)
std::string m_rootDir
 Name of the ROOT directory.
std::string m_histNamePrefix
 The prefix for the histogram THx name.
std::string m_histNamePostfix
 The postfix for the histogram THx name.
std::string m_histTitlePrefix
 The prefix for the histogram THx title.
std::string m_histTitlePostfix
 The postfix for the histogram THx title.
DataObjIDColl m_extendedExtraObjects
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared
HistMap_t m_histMap
 The map of histogram names to their pointers.
EffMap_t m_effMap
 The map of histogram names to their pointers.
TreeMap_t m_treeMap
 The map of TTree names to their pointers.
GraphMap_t m_graphMap
 The map of TGraph names to their pointers.
std::string m_streamName
 Name of the ROOT output stream (file)
std::string m_name
 Instance name.
MsgStream m_msg
 Cached Message Stream.

Detailed Description

Definition at line 50 of file MSVtxValidationAlg.h.

Member Typedef Documentation

◆ EffMap_t

typedef std::map< const hash_t, TEfficiency* > AthHistogramming::EffMap_t
privateinherited

Typedef for convenience.

Definition at line 205 of file AthHistogramming.h.

◆ GraphMap_t

typedef std::map< const hash_t, TGraph* > AthHistogramming::GraphMap_t
privateinherited

Typedef for convenience.

Definition at line 219 of file AthHistogramming.h.

◆ hash_t

typedef uint32_t AthHistogramming::hash_t
privateinherited

typedef for the internal hash

Definition at line 169 of file AthHistogramming.h.

◆ HistMap_t

typedef std::map< const hash_t, TH1* > AthHistogramming::HistMap_t
privateinherited

Typedef for convenience.

Definition at line 198 of file AthHistogramming.h.

◆ ParticleBranchPtr_t

Definition at line 138 of file MSVtxValidationAlg.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

◆ TreeMap_t

typedef std::map< const hash_t, TTree* > AthHistogramming::TreeMap_t
privateinherited

Typedef for convenience.

Definition at line 212 of file AthHistogramming.h.

Member Function Documentation

◆ AthHistogramAlgorithm()

AthHistogramAlgorithm::AthHistogramAlgorithm ( const std::string & name,
ISvcLocator * pSvcLocator )

Constructor with parameters:

Definition at line 40 of file AthHistogramAlgorithm.cxx.

32 :
33 ::AthAlgorithm( name, pSvcLocator ),
34 ::AthHistogramming( name ),
35 m_histSvc ( "THistSvc/THistSvc", name )
36{
37 //
38 // Property declaration
39 //
40 // The histogram service
41 declareProperty("THistSvc",
42 m_histSvc = ServiceHandle<ITHistSvc>("THistSvc/THistSvc", name),
43 "Handle to a THistSvc instance: it will be used to write "
44 "ROOT objects to ROOT files" );
45 // declareProperty("THistService", m_histSvc, "The THistSvc" );
46
47 declareProperty("RootStreamName", m_prefix = "/ANALYSIS", "Name of the output ROOT stream (file) that the THistSvc uses");
48 declareProperty("RootDirName", m_rootDir = "",
49 "Name of the ROOT directory inside the ROOT file where the histograms will go");
50
51 declareProperty( "HistNamePrefix", m_histNamePrefix = "", "The prefix for the histogram THx name" );
52 declareProperty( "HistNamePostfix", m_histNamePostfix = "", "The postfix for the histogram THx name" );
53
54 declareProperty( "HistTitlePrefix", m_histTitlePrefix = "", "The prefix for the histogram THx title" );
55 declareProperty( "HistTitlePostfix", m_histTitlePostfix = "", "The postfix for the histogram THx title" );
56}
AthAlgorithm()
Default constructor:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
std::string m_histNamePrefix
The prefix for the histogram THx name.
ServiceHandle< ITHistSvc > m_histSvc
Default constructor: AthHistogramAlgorithm();.
std::string m_prefix
Name of the ROOT output stream (file)
std::string m_histNamePostfix
The postfix for the histogram THx name.
std::string m_histTitlePostfix
The postfix for the histogram THx title.
std::string m_rootDir
Name of the ROOT directory.
std::string m_histTitlePrefix
The prefix for the histogram THx title.
AthHistogramming(const std::string &name)
Constructor with parameters:

◆ book() [1/8]

StatusCode AthHistogramming::book ( const TEfficiency & eff,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TEfficiency.

Definition at line 335 of file AthHistogramming.h.

336{
337 // We need to create a non-const clone
338 TEfficiency* effClone = dynamic_cast< TEfficiency* >( eff.Clone() );
339 if ( !effClone ) {
340 m_msg << MSG::ERROR << "Couldn't create a TEfficiency clone" << endmsg;
341 return StatusCode::FAILURE;
342 }
343 return this->book( *effClone, tDir, stream );
344}
#define endmsg
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
MsgStream m_msg
Cached Message Stream.

◆ book() [2/8]

StatusCode AthHistogramming::book ( const TGraph & graphRef,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TGraphs.

◆ book() [3/8]

StatusCode AthHistogramming::book ( const TH1 & hist,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of histograms.

Definition at line 303 of file AthHistogramming.h.

304{
305 // We need to create a non-const clone
306 TH1* histClone = dynamic_cast< TH1* >( hist.Clone() );
307 if ( !histClone ) {
308 m_msg << MSG::ERROR << "Couldn't create a TH1 clone" << endmsg;
309 return StatusCode::FAILURE;
310 }
311 return this->book( *histClone, tDir, stream );
312}
TH1 * hist(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered histograms of any type.

◆ book() [4/8]

StatusCode AthHistogramming::book ( const TTree & treeRef,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TTrees.

Definition at line 403 of file AthHistogramming.h.

404{
405 // Call the other Book method and see if it returns a valid pointer
406 TTree* treePointer = this->bookGetPointer( treeRef, tDir, stream );
407 if ( treePointer )
408 {
409 return StatusCode::SUCCESS;
410 }
411 else
412 {
413 return StatusCode::FAILURE;
414 }
415}
TH1 * bookGetPointer(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.

◆ book() [5/8]

StatusCode AthHistogramming::book ( TEfficiency & effRef,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TEfficiency.

Definition at line 356 of file AthHistogramming.h.

357{
358 // Call the other Book method and see if it returns a valid pointer
359 TEfficiency* effPointer = this->bookGetPointer( effRef, tDir, stream );
360 if ( !effPointer ) {
361 m_msg << MSG::ERROR << "Couldn't book a TEfficiency" << endmsg;
362 return StatusCode::FAILURE;
363 }
364 return StatusCode::SUCCESS;
365}

◆ book() [6/8]

StatusCode AthHistogramming::book ( TEfficiency * eff,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TEfficiency.

Definition at line 346 of file AthHistogramming.h.

347{
348 if ( !eff ) {
349 m_msg << MSG::ERROR << "Got a zero pointer to a TEfficiency" << endmsg;
350 return StatusCode::FAILURE;
351 }
352 return this->book( *eff, tDir, stream );
353}

◆ book() [7/8]

StatusCode AthHistogramming::book ( TH1 & histRef,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of histograms.

Definition at line 324 of file AthHistogramming.h.

325{
326 // Call the other Book method and see if it returns a valid pointer
327 TH1* histPointer = this->bookGetPointer( histRef, tDir, stream );
328 if ( !histPointer ) {
329 m_msg << MSG::ERROR << "Couldn't book a TH1" << endmsg;
330 return StatusCode::FAILURE;
331 }
332 return StatusCode::SUCCESS;
333}

◆ book() [8/8]

StatusCode AthHistogramming::book ( TH1 * hist,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of histograms.

Definition at line 314 of file AthHistogramming.h.

315{
316 if ( !hist ) {
317 m_msg << MSG::ERROR << "Got a zero pointer to a TH1" << endmsg;
318 return StatusCode::FAILURE;
319 }
320 return this->book( *hist, tDir, stream );
321}

◆ bookGetPointer() [1/8]

TEfficiency * AthHistogramming::bookGetPointer ( const TEfficiency & eff,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TEfficiency.

Definition at line 281 of file AthHistogramming.h.

282{
283 // We need to create a non-const clone
284 TEfficiency* histClone = dynamic_cast< TEfficiency* >( hist.Clone() );
285 if ( !histClone ) {
286 m_msg << MSG::ERROR << "Couldn't create a TEfficiency clone in bookGetPointer" << endmsg;
287 return 0;
288 }
289 return this->bookGetPointer( *histClone, tDir, stream );
290
291}

◆ bookGetPointer() [2/8]

TGraph * AthHistogramming::bookGetPointer ( const TGraph & graphRef,
std::string tDir = "",
std::string stream = "" )
protectedinherited

Simplify the booking and registering (into THistSvc) of TGraphs.

Definition at line 427 of file AthHistogramming.cxx.

428{
429 // Get a pointer
430 const TGraph* graphPointer = &graphRef;
431
432 // Check that we got a valid pointer
433 if ( !graphPointer )
434 {
435 m_msg << MSG::WARNING
436 << "We got an invalid TGraph pointer in the BookGetPointer(TGraph*) method of the class" << m_name
437 << "!" << endmsg;
438 return NULL;
439 }
440
441 // Modify the name and title according to the prefixes of this classes instance
442 std::string graphName = graphPointer->GetName();
443 const std::string graphTitle = graphPointer->GetTitle();
444
445 // Check if the hash for this graphName already exists, i.e., if we have a hash collision
446 const hash_t graphHash = this->hash(graphName);
447 GraphMap_t::const_iterator it = m_graphMap.find( graphHash );
448 if ( it != m_graphMap.end() ) // It does exist!
449 {
450 m_msg << MSG::WARNING
451 << "Detected a hash collision. The hash for the TGraph with name=" << graphName
452 << " already exists and points to a TGraph with name=" << it->second->GetName()
453 << " NOT going to book the new histogram and returning a NULL pointer!" << endmsg;
454 return NULL;
455 }
456
457 // Create a clone that has the new name
458 TGraph* graphClone = dynamic_cast< TGraph* >( graphPointer->Clone((m_histNamePrefix+graphName+m_histNamePostfix).c_str()) );
459 if( !graphClone )
460 {
461 m_msg << MSG::WARNING
462 << "We couldn't clone the TGraph in the BookGetPointer(TGraph&) method of the class" << m_name
463 << "!" << endmsg;
464 return NULL;
465 }
466 graphClone->SetTitle ((m_histTitlePrefix+graphTitle+m_histTitlePostfix).c_str());
467
468 // Massage the final string to book things
469 std::string bookingString("");
470 this->buildBookingString( bookingString, graphName, tDir, stream );
471
472 // Register the TGraph into the THistSvc
473 if ( !((histSvc()->regGraph(bookingString, graphClone)).isSuccess()) )
474 {
475 m_msg << MSG::WARNING
476 << "Problem registering TGraph with name " << graphName
477 << ", title " << graphTitle
478 << " in " << m_name << "!" << endmsg;
479 return NULL;
480 }
481
482 // Also register it in the local map of string to pointer
483 m_graphMap.insert( m_graphMap.end(), std::pair< const hash_t, TGraph* >( graphHash, graphClone ) );
484
485 return graphClone;
486}
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
std::string m_histNamePostfix
The postfix for the histogram THx name.
hash_t hash(const std::string &histName) const
Method to calculate a 32-bit hash from a string.
uint32_t hash_t
typedef for the internal hash
std::string m_histTitlePostfix
The postfix for the histogram THx title.
std::string m_histTitlePrefix
The prefix for the histogram THx title.
std::string m_name
Instance name.
void buildBookingString(std::string &bookingString, std::string &histName, std::string &tDir, std::string &stream, bool usePrefixPostfix=false)
Method to build individual booking string.
std::string m_histNamePrefix
The prefix for the histogram THx name.
GraphMap_t m_graphMap
The map of TGraph names to their pointers.

◆ bookGetPointer() [3/8]

TH1 * AthHistogramming::bookGetPointer ( const TH1 & hist,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of histograms.

Definition at line 260 of file AthHistogramming.h.

261{
262 // We need to create a non-const clone
263 TH1* histClone = dynamic_cast< TH1* >( hist.Clone() );
264 if ( !histClone ) {
265 m_msg << MSG::ERROR << "Couldn't create a TH1 clone in bookGetPointer" << endmsg;
266 return 0;
267 }
268 return this->bookGetPointer( *histClone, tDir, stream );
269
270}

◆ bookGetPointer() [4/8]

TTree * AthHistogramming::bookGetPointer ( const TTree & treeRef,
std::string tDir = "",
std::string stream = "" )
protectedinherited

Simplify the booking and registering (into THistSvc) of TTrees.

Definition at line 312 of file AthHistogramming.cxx.

313{
314 // Get a pointer
315 const TTree* treePointer = &treeRef;
316
317 // Check that we got a valid pointer
318 if ( !treePointer )
319 {
320 m_msg << MSG::WARNING
321 << "We got an invalid TTree pointer in the BookGetPointer(TTree*) method of the class" << m_name
322 << "!" << endmsg;
323 return NULL;
324 }
325
326 // Modify the name and title according to the prefixes of this classes instance
327 std::string treeName = treePointer->GetName();
328 const std::string treeTitle = treePointer->GetTitle();
329
330 // Check if the hash for this treeName already exists, i.e., if we have a hash collision
331 const hash_t treeHash = this->hash(treeName);
332 TreeMap_t::const_iterator it = m_treeMap.find( treeHash );
333 if ( it != m_treeMap.end() ) // It does exist!
334 {
335 m_msg << MSG::WARNING
336 << "Detected a hash collision. The hash for the TTree with name=" << treeName
337 << " already exists and points to a TTree with name=" << it->second->GetName()
338 << " NOT going to book the new histogram and returning a NULL pointer!" << endmsg;
339 return NULL;
340 }
341
342 // Create a clone that has the new name
343 TTree* treeClone = dynamic_cast< TTree* >( treePointer->Clone(treeName.c_str()) );
344 if( !treeClone )
345 {
346 m_msg << MSG::WARNING
347 << "We couldn't clone the TTree in the BookGetPointer(TTree&) method of the class" << m_name
348 << "!" << endmsg;
349 return NULL;
350 }
351 treeClone->SetTitle (treeTitle.c_str());
352
353 // Massage the final string to book things
354 std::string bookingString("");
355 this->buildBookingString( bookingString, treeName, tDir, stream );
356
357 // Register the TTree into the THistSvc
358 if ( !((histSvc()->regTree(bookingString, treeClone)).isSuccess()) )
359 {
360 m_msg << MSG::WARNING
361 << "Problem registering TTree with name " << treeName
362 << ", title " << treeTitle
363 << " in " << m_name << "!" << endmsg;
364 return NULL;
365 }
366
367 // Also register it in the local map of string to pointer
368 m_treeMap.insert( m_treeMap.end(), std::pair< const hash_t, TTree* >( treeHash, treeClone ) );
369
370 return treeClone;
371}
TreeMap_t m_treeMap
The map of TTree names to their pointers.

◆ bookGetPointer() [5/8]

TEfficiency * AthHistogramming::bookGetPointer ( TEfficiency & effRef,
std::string tDir = "",
std::string stream = "" )
protectedinherited

Simplify the booking and registering (into THistSvc) of TEfficiency.

Definition at line 146 of file AthHistogramming.cxx.

147{
148 // Modify the name and title according to the prefixes of this classes instance
149 std::string effName(effRef.GetName());
150 const std::string effTitle(effRef.GetTitle());
151 std::string bookingString("");
152
153 this->buildBookingString( bookingString, effName, tDir, stream );
154 effRef.SetTitle((m_histTitlePrefix+effTitle+m_histTitlePostfix).c_str() );
155 effRef.SetName(effName.c_str());
156
157 // Check if the hash for this effName already exists, i.e., if we have a hash collision
158 const hash_t effHash = this->hash(effName);
159 EffMap_t::const_iterator it = m_effMap.find( effHash );
160 if ( it != m_effMap.end() ) // It does exist!
161 {
162 m_msg << MSG::WARNING
163 << "Detected a hash collision. The hash for the TEfficiency with name=" << effName
164 << " already exists and points to a TEfficiency with name=" << it->second->GetName()
165 << " NOT going to book the new TEfficiency and returning a NULL pointer!" << endmsg;
166 return NULL;
167 }
168
169 // Set the new name and title for the TEfficiency, based on the prefixes that the user set for this class instance
170 // Create a clone that has the new name
171
172 // Massage the final string to book things
173
174 // Register the TEfficiency into the THistSvc
175 if ( !((histSvc()->regEfficiency(bookingString, &effRef)).isSuccess()) )
176 {
177 m_msg << MSG::WARNING
178 << "Problem registering TEfficiency with name " << effName
179 << ", name prefix " << m_histNamePrefix
180 << ", title " << effTitle
181 << ", tile prefix " << m_histTitlePrefix
182 << ", and tile postfix " << m_histTitlePostfix
183 << " in " << m_name << "!" << endmsg;
184 return NULL;
185 }
186
187 // Also register it in the local map of string to pointer
188 m_effMap.insert( m_effMap.end(), std::pair< const hash_t, TEfficiency* >( effHash, &effRef ) );
189
190 return &effRef;
191}
EffMap_t m_effMap
The map of histogram names to their pointers.

◆ bookGetPointer() [6/8]

TEfficiency * AthHistogramming::bookGetPointer ( TEfficiency * eff,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of TEfficiency.

Definition at line 293 of file AthHistogramming.h.

294{
295 if ( !hist ) {
296 m_msg << MSG::ERROR << "Got a zero pointer to a TEfficiency in bookGetPointer" << endmsg;
297 return 0;
298 }
299 return this->bookGetPointer( *hist, tDir, stream );
300}

◆ bookGetPointer() [7/8]

TH1 * AthHistogramming::bookGetPointer ( TH1 & histRef,
std::string tDir = "",
std::string stream = "" )
protectedinherited

Simplify the booking and registering (into THistSvc) of histograms.

Definition at line 98 of file AthHistogramming.cxx.

99{
100 // Modify the name and title according to the prefixes of this classes instance
101 std::string histName(histRef.GetName());
102 const std::string histTitle(histRef.GetTitle());
103 std::string bookingString("");
104
105 this->buildBookingString( bookingString, histName, tDir, stream );
106 histRef.SetTitle((m_histTitlePrefix+histTitle+m_histTitlePostfix).c_str() );
107 histRef.SetName(histName.c_str());
108
109 // Check if the hash for this histName already exists, i.e., if we have a hash collision
110 const hash_t histHash = this->hash(histName);
111 HistMap_t::const_iterator it = m_histMap.find( histHash );
112 if ( it != m_histMap.end() ) // It does exist!
113 {
114 m_msg << MSG::WARNING
115 << "Detected a hash collision. The hash for the histogram with name=" << histName
116 << " already exists and points to a histogram with name=" << it->second->GetName()
117 << " NOT going to book the new histogram and returning a NULL pointer!" << endmsg;
118 return NULL;
119 }
120
121 // Set the new name and title for the histogram, based on the prefixes that the user set for this class instance
122 // Create a clone that has the new name
123
124 // Massage the final string to book things
125
126 // Register the histogram into the THistSvc
127 if ( !((histSvc()->regHist(bookingString, &histRef)).isSuccess()) )
128 {
129 m_msg << MSG::WARNING
130 << "Problem registering histogram with name " << histName
131 << ", name prefix " << m_histNamePrefix
132 << ", title " << histTitle
133 << ", tile prefix " << m_histTitlePrefix
134 << ", and tile postfix " << m_histTitlePostfix
135 << " in " << m_name << "!" << endmsg;
136 return NULL;
137 }
138
139 // Also register it in the local map of string to pointer
140 m_histMap.insert( m_histMap.end(), std::pair< const hash_t, TH1* >( histHash, &histRef ) );
141
142 return &histRef;
143}
HistMap_t m_histMap
The map of histogram names to their pointers.

◆ bookGetPointer() [8/8]

TH1 * AthHistogramming::bookGetPointer ( TH1 * hist,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the booking and registering (into THistSvc) of histograms.

Definition at line 272 of file AthHistogramming.h.

273{
274 if ( !hist ) {
275 m_msg << MSG::ERROR << "Got a zero pointer to a TH1 in bookGetPointer" << endmsg;
276 return 0;
277 }
278 return this->bookGetPointer( *hist, tDir, stream );
279}

◆ buildBookingString()

void AthHistogramming::buildBookingString ( std::string & bookingString,
std::string & histName,
std::string & tDir,
std::string & stream,
bool usePrefixPostfix = false )
privateinherited

Method to build individual booking string.

Definition at line 560 of file AthHistogramming.cxx.

565{
566 // Massage the final string to book things
567 if(tDir.empty()) tDir = m_rootDir;
568 size_t pos = histName.rfind('/');
569 if(pos != std::string::npos){
570 tDir+='/';
571 tDir.append(histName, 0,pos);
572 histName.erase(0,pos+1);
573 };
574 if(stream.empty()) stream = m_streamName;
575
576 if(usePrefixPostfix){
577 bookingString = "/"+stream+"/"+tDir+"/"+m_histNamePrefix+histName+m_histNamePostfix;
578 } else {
579 bookingString = "/"+stream+"/"+tDir+"/"+histName;
580 }
581 while(bookingString.find("//") != std::string::npos){
582 this->myReplace(bookingString,"//","/");
583 }
584
585 return;
586}
std::string m_rootDir
Name of the ROOT directory.
std::string m_streamName
Name of the ROOT output stream (file)
void myReplace(std::string &str, const std::string &oldStr, const std::string &newStr)
Helper method to replace sub-string.

◆ configAthHistogramming()

StatusCode AthHistogramming::configAthHistogramming ( const ServiceHandle< ITHistSvc > & histSvc,
const std::string & prefix,
const std::string & rootDir,
const std::string & histNamePrefix,
const std::string & histNamePostfix,
const std::string & histTitlePrefix,
const std::string & histTitlePostfix )
protectedinherited

To be called by the derived classes to fill the internal configuration.

Definition at line 66 of file AthHistogramming.cxx.

70{
73 m_rootDir = rootDir;
74 m_histNamePrefix = histNamePrefix;
75 m_histNamePostfix = histNamePostfix;
76 m_histTitlePrefix = histTitlePrefix;
77 m_histTitlePostfix = histTitlePostfix;
78
79 return StatusCode::SUCCESS;
80}
ServiceHandle< ITHistSvc > m_histSvc
Pointer to the THistSvc (event store by default)

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ efficiency()

TEfficiency * AthHistogramming::efficiency ( const std::string & effName,
const std::string & tDir = "",
const std::string & stream = "" )
protectedinherited

Simplify the retrieval of registered TEfficiency.

Definition at line 250 of file AthHistogramming.cxx.

251{
252 // Build a 32 bit hash out of the name
253 const hash_t effHash = this->hash(effName);
254
255 // See if this entry exists in the map
256 EffMap_t::const_iterator it = m_effMap.find( effHash );
257 if ( it == m_effMap.end() ) // It doesn't exist!
258 { // Let's see into the THistSvc if somebody else has registered the TEfficiency...
259
260 // Need to copy the strings as we will massage them from here on
261 std::string effNameCopy = effName;
262 std::string tDirCopy = tDir;
263 std::string streamCopy = stream;
264
265 // Massage the final string to book things
266 std::string bookingString("");
267 this->buildBookingString( bookingString, effNameCopy, tDirCopy, streamCopy ,false);
268
269 TEfficiency* effPointer(NULL);
270 if ( !((histSvc()->getEfficiency(bookingString, effPointer)).isSuccess()) )
271 {
272 // Massage the final string to book things
273 std::string bookingString("");
274 this->buildBookingString( bookingString, effNameCopy, tDirCopy, streamCopy, true );
275
276 if ( !((histSvc()->getEfficiency(bookingString, effPointer)).isSuccess()) )
277 {
278 m_msg << MSG::WARNING
279 << "Problem retrieving the TEfficiency with name (including pre- and post-fixes) "
280 << m_histNamePrefix + effNameCopy + m_histNamePostfix
281 << " or with name " << effNameCopy
282 << " in " << m_name << "... it doesn't exist, neither in the cached map nor in the THistSvc!"
283 << " Will return an NULL pointer... you have to handle it correctly!" << endmsg;
284 return NULL;
285 }
286 // If we get to here, we actually found the TEfficiency in the THistSvc.
287 // So let's add it to the local cache map and return its pointer
288 m_effMap.insert( m_effMap.end(), std::pair< const hash_t, TEfficiency* >( effHash, effPointer ) );
289 return effPointer;
290 }
291 // If we get to here, we actually found the TEfficiency in the THistSvc.
292 // So let's add it to the local cache map and return its pointer
293 m_effMap.insert( m_effMap.end(), std::pair< const hash_t, TEfficiency* >( effHash, effPointer ) );
294 return effPointer;
295 }
296
297 // Return the pointer to the TEfficiency that we got from the local cache map
298 return it->second;
299}

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode MSVtxValidationAlg::execute ( )
finaloverridevirtual

Definition at line 520 of file MSVtxValidationAlg.cxx.

520 {
521 ATH_MSG_DEBUG ("Executing " << name() << "...");
522
523 const EventContext& ctx = Gaudi::Hive::currentContext();
524
525 // event variables
526 const xAOD::EventInfo* eventInfo{nullptr};
527 ATH_CHECK(SG::get(eventInfo, m_evtKey, ctx));
528
529 ATH_MSG_DEBUG("Start to run over event "<<eventInfo->eventNumber()<<" in run" <<eventInfo->runNumber());
530
531 if(m_isMC) ATH_CHECK(fillTruth(ctx));
532 if(m_fillJets) ATH_CHECK(fillJet(ctx));
533 if(m_fillMET) ATH_CHECK(fillMet(ctx));
534 ATH_CHECK(fillMuons(ctx));
536 ATH_CHECK(fillMSVtx(ctx));
537
538 ATH_CHECK(m_tree.fill(ctx));
539
540 return StatusCode::SUCCESS;
541}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
Gaudi::Property< bool > m_fillMET
Gaudi::Property< bool > m_fillJets
StatusCode fillMSVtx(const EventContext &ctx)
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey
MuonVal::MuonTesterTree m_tree
StatusCode fillMet(const EventContext &ctx)
StatusCode fillMuons(const EventContext &ctx)
StatusCode fillTruth(const EventContext &ctx)
StatusCode fillJet(const EventContext &ctx)
Gaudi::Property< bool > m_isMC
StatusCode fillTracklets(const EventContext &ctx)
uint32_t runNumber() const
The current event's run number.
uint64_t eventNumber() const
The current event's event number.
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
EventInfo_v1 EventInfo
Definition of the latest event info version.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 50 of file AthAlgorithm.cxx.

51{
52 // If we didn't find any symlinks to add, just return the collection
53 // from the base class. Otherwise, return the extended collection.
54 if (!m_extendedExtraObjects.empty()) {
56 }
57 return Algorithm::extraOutputDeps();
58}
DataObjIDColl m_extendedExtraObjects

◆ fillActiveVertices()

StatusCode MSVtxValidationAlg::fillActiveVertices ( const EventContext & ctx,
const xAOD::Jet * jet )
private

Definition at line 346 of file MSVtxValidationAlg.cxx.

346 {
347 const xAOD::TruthParticleContainer* truth_particles{nullptr};
348 ATH_CHECK(SG::get(truth_particles, m_TruthParticleKey, ctx));
349
350 std::vector<ActiveVertex> actVertices = getActiveVertices(jet, *truth_particles);
351
352 if (!actVertices.size()){
353 m_jet_actVtx_link.push_back({}); // empty links for this jet as no active vertex was identified
354 return StatusCode::SUCCESS;
355 }
356
357 for (ActiveVertex actVtx : actVertices) {
358 if (!actVtx.vtx) continue;
359 // index of active vertex found in the event. Not just a simple counter since each jet can have several active vertices
360 size_t actVtxIdx = m_actVtx_NChildren.size();
361 // fill the active vertex branches
362 m_actVtx_pos.push_back(actVtx.vtx->v4().Vect());
363 m_actVtx_NChildren.push_back(actVtx.nChildren);
364 m_actVtx_chainDepth.push_back(actVtx.decayDepth);
365 m_actVtx_energy.push_back(actVtx.vtxEnergy/Gaudi::Units::GeV);
366 m_actVtx_mass.push_back(actVtx.vtxMass/Gaudi::Units::GeV);
367 m_actVtx_pT.push_back(actVtx.vtxPt/Gaudi::Units::GeV);
368 m_actVtx_scalarPtSum.push_back(actVtx.vtxScalarPtSum/Gaudi::Units::GeV);
369
370 m_actVtx_jet_link.push_back(jet->index()); // link the active vertex to the jet
371 m_actVtx_jet_dEta.push_back(jet->eta() - actVtx.vtx->v4().Eta());
372 m_actVtx_jet_dPhi.push_back(jet->p4().DeltaPhi(actVtx.vtx->v4()));
373
374 m_jet_actVtx_link.push_back(jet->index(), actVtxIdx); // link the jet to the active vertex
375
376 // note that a truth particle can be linked to multiple active vertices, so the link index is not unique
377 if (!m_dumpTruthParticles) continue;
378 for (auto tpLink : actVtx.vtx->outgoingParticleLinks()) {
379 if (!tpLink) continue;
380 m_actVtx_truthParticle_link.push_back(actVtxIdx, tpLink.index());
381 m_truthParticle_actVtx_link_tmp->at(tpLink.index()) = actVtxIdx;
382 }
383 }
384 m_jet_NactVtx.push_back(actVertices.size()); // number of active vertices associated to this jet
385
386 return StatusCode::SUCCESS;
387}
MuonVal::MatrixBranch< int > & m_jet_actVtx_link
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_TruthParticleKey
MuonVal::ThreeVectorBranch m_actVtx_pos
std::unique_ptr< std::vector< int > > m_truthParticle_actVtx_link_tmp
Gaudi::Property< bool > m_dumpTruthParticles
MuonVal::VectorBranch< float > & m_actVtx_pT
MuonVal::VectorBranch< float > & m_actVtx_energy
MuonVal::VectorBranch< float > & m_actVtx_jet_dEta
MuonVal::MatrixBranch< int > & m_actVtx_truthParticle_link
MuonVal::VectorBranch< int > & m_jet_NactVtx
MuonVal::VectorBranch< float > & m_actVtx_mass
MuonVal::VectorBranch< float > & m_actVtx_jet_dPhi
MuonVal::VectorBranch< int > & m_actVtx_chainDepth
MuonVal::VectorBranch< int > & m_actVtx_NChildren
MuonVal::VectorBranch< int > & m_actVtx_jet_link
MuonVal::VectorBranch< float > & m_actVtx_scalarPtSum
size_t index() const
Return the index of this element within its container.
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition Jet_v1.cxx:71
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition Jet_v1.cxx:49
std::vector< ActiveVertex > getActiveVertices(const xAOD::Jet *jet, const xAOD::TruthParticleContainer &truthParticles)
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.

◆ fillHits()

void MSVtxValidationAlg::fillHits ( const xAOD::Vertex * vtx,
const std::string & decorator_str,
MuonVal::VectorBranch< int > & branch )
private

Definition at line 500 of file MSVtxValidationAlg.cxx.

500 {
501 // fills branch with the number of hits close to the vertex. When the decorator is not available, the default integer value is used
502 const SG::AuxElement::Accessor<int> hits_acc(decorator_str);
503 if (hits_acc.isAvailable(*vtx)) branch.push_back(hits_acc(*vtx));
504
505 return;
506}
void push_back(const T &value)
Adds a new element at the end of the vector.
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572

◆ fillJet()

StatusCode MSVtxValidationAlg::fillJet ( const EventContext & ctx)
private

Definition at line 291 of file MSVtxValidationAlg.cxx.

291 {
292 const xAOD::JetContainer* jets{nullptr};
293 ATH_CHECK(SG::get(jets, m_JetKey, ctx));
294
295 TriggerInfo triggerInfo;
297
298 m_jet_N = jets->size();
299 for (const xAOD::Jet* jet : *jets) {
300 m_jet->push_back(jet);
303 }
304
305 // copy linking data from temp vector and clear the temp vector for the next event
307 for (int link : *m_truthParticle_actVtx_link_tmp) m_truthParticle_actVtx_link.push_back(link);
309 }
310
311 return StatusCode::SUCCESS;
312}
MuonVal::VectorBranch< int > & m_jet_triggers
StatusCode fillActiveVertices(const EventContext &ctx, const xAOD::Jet *jet)
bool getTriggerMatchingDecision(const T *object, TriggerInfo &triggerInfo, float dRmatching)
Gaudi::Property< float > m_jetTriggerMatchingDR
Gaudi::Property< bool > m_computeActiveVertices
SG::ReadHandleKey< xAOD::JetContainer > m_JetKey
MuonVal::ScalarBranch< int > & m_jet_N
TriggerInfo getTriggerDecisions(std::string triggerString)
MuonVal::VectorBranch< int > & m_truthParticle_actVtx_link
Gaudi::Property< std::string > m_triggerStringJets
Gaudi::Property< bool > m_readTriggers
ParticleBranchPtr_t m_jet
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".

◆ fillLLP()

StatusCode MSVtxValidationAlg::fillLLP ( std::vector< const xAOD::TruthParticle * > & llps)
private

Definition at line 170 of file MSVtxValidationAlg.cxx.

170 {
171
172 // LLP and LLP children
173 m_llp_N = llps.size();
174 std::sort(llps.begin(), llps.end(), comparePt); // sort llps by pT
175 const xAOD::TruthParticle* leadLLP = nullptr;
176 const xAOD::TruthParticle* subleadLLP = nullptr;
177
178 int num_vtx = 0;
179 for(unsigned int llp_idx=0; const xAOD::TruthParticle* llp : llps){
180 m_llp->push_back(llp);
181
182 if(llp->hasDecayVtx()){
183 const xAOD::TruthVertex* decVtx = llp->decayVtx();
184 m_llpVtx_pos.push_back(decVtx->v4().Vect());
185 m_llpVtx_Lxy.push_back(decVtx->perp());
186 m_llpVtx_ctau.push_back(getCTau(decVtx));
187 ++num_vtx;
188 }
189
190 // leading LLP
191 if(llp_idx==0){
192 if(llp->hasDecayVtx()){
193 const xAOD::TruthVertex* decVtx = llp->decayVtx();
194 m_h_leadLLPLxy->Fill(decVtx->perp());
195 m_h_leadLLPLz->Fill(decVtx->z());
196 m_h_leadLLPctau->Fill(getCTau(decVtx));
197 }
198 m_h_leadLLPpt->Fill(llp->pt()/Gaudi::Units::GeV);
199 leadLLP = llp;
200 }
201 // subleading llp
202 if(llp_idx==1){
203 if(llp->hasDecayVtx()){
204 const xAOD::TruthVertex* decVtx = llp->decayVtx();
205 m_h_subleadLLPLxy->Fill(decVtx->perp());
206 m_h_subleadLLPLz->Fill(decVtx->z());
207 m_h_subleadLLPctau->Fill(getCTau(decVtx));
208 }
209 m_h_subleadLLPpt->Fill(llp->pt()/Gaudi::Units::GeV);
210 subleadLLP = llp;
211
212 // di-llp histograms
213 TLorentzVector llpSum = subleadLLP->p4()+leadLLP->p4();
214 m_h_LLP1LLP2dR->Fill(leadLLP->p4().DeltaR(subleadLLP->p4()));
215 m_h_diLLPMass->Fill(llpSum.E()/Gaudi::Units::GeV);
216 }
217
218 // LLP children
219 if (llp->hasDecayVtx() && llp->nChildren()>0 && !llp->isGenStable()) {
220 std::vector<const xAOD::TruthParticle*> stableChildren = getStableChildren(llp, m_llp_genStableChildren);
221 m_llp_Nchildren.push_back((int)stableChildren.size());
222 int nChargedChildren = 0;
223 for (const xAOD::TruthParticle *child : stableChildren){
224 if (child->charge() != 0) ++nChargedChildren;
225 if (!m_dumpTruthParticles) continue;
226 m_llpVtx_truthParticle_link.push_back(llp_idx, child->index());
227 m_truthParticle_llpVtx_link_tmp->at(child->index()) = llp_idx;
228 }
229 m_llp_NchildrenCharged.push_back(nChargedChildren);
230 }
231 ++llp_idx;
232 }
233 m_llpVtx_N = num_vtx;
234
235 // copy linking data from temp vector and clear the temp vector for the next event
237 for (int link : *m_truthParticle_llpVtx_link_tmp) m_truthParticle_llpVtx_link.push_back(link);
239 }
240
241
242 return StatusCode::SUCCESS;
243}
MuonVal::MatrixBranch< int > & m_llpVtx_truthParticle_link
MuonVal::ThreeVectorBranch m_llpVtx_pos
MuonVal::VectorBranch< float > & m_llpVtx_Lxy
std::unique_ptr< std::vector< int > > m_truthParticle_llpVtx_link_tmp
MuonVal::VectorBranch< int > & m_truthParticle_llpVtx_link
MuonVal::VectorBranch< int > & m_llp_NchildrenCharged
Gaudi::Property< bool > m_llp_genStableChildren
MuonVal::ScalarBranch< int > & m_llp_N
MuonVal::VectorBranch< float > & m_llpVtx_ctau
MuonVal::ScalarBranch< int > & m_llpVtx_N
ParticleBranchPtr_t m_llp
MuonVal::VectorBranch< int > & m_llp_Nchildren
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
float z() const
Vertex longitudinal distance along the beam line form the origin.
FourVec_t v4() const
The full 4-vector of the vertex.
float perp() const
Vertex transverse distance from the beam line.
std::vector< const xAOD::TruthParticle * > getStableChildren(const xAOD::TruthParticle *particle, bool findOnlyGenStable)
bool comparePt(const xAOD::TruthParticle *part1, const xAOD::TruthParticle *part2)
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
TruthVertex_v1 TruthVertex
Typedef to implementation.
Definition TruthVertex.h:15
TruthParticle_v1 TruthParticle
Typedef to implementation.

◆ fillMet()

StatusCode MSVtxValidationAlg::fillMet ( const EventContext & ctx)
private

Definition at line 390 of file MSVtxValidationAlg.cxx.

390 {
391 const xAOD::MissingETContainer* MET{nullptr};
392 ATH_CHECK(SG::get(MET, m_MetKey, ctx));
393
394 m_met = (*MET)["Final"]->met()/Gaudi::Units::GeV;
395 m_met_x = (*MET)["Final"]->mpx()/Gaudi::Units::GeV;
396 m_met_y = (*MET)["Final"]->mpy()/Gaudi::Units::GeV;
397 m_met_phi = (*MET)["Final"]->phi();
398 m_sumEt = (*MET)["Final"]->sumet()/Gaudi::Units::GeV;
399
400 return StatusCode::SUCCESS;
401}
MuonVal::ScalarBranch< float > & m_met
MuonVal::ScalarBranch< float > & m_met_x
MuonVal::ScalarBranch< float > & m_sumEt
MuonVal::ScalarBranch< float > & m_met_phi
SG::ReadHandleKey< xAOD::MissingETContainer > m_MetKey
MuonVal::ScalarBranch< float > & m_met_y

◆ fillMSVtx()

StatusCode MSVtxValidationAlg::fillMSVtx ( const EventContext & ctx)
private

Definition at line 443 of file MSVtxValidationAlg.cxx.

443 {
444 const xAOD::VertexContainer* msVertices{nullptr};
445 ATH_CHECK(SG::get(msVertices, m_MSVtxKey, ctx));
446
447 const xAOD::TrackParticleContainer* tracks{nullptr};
448 const xAOD::JetContainer* jets{nullptr};
449 if (m_computeVertexIso) {
450 ATH_CHECK(SG::get(tracks, m_TrackParticleKey, ctx));
451 ATH_CHECK(SG::get(jets, m_JetKey, ctx));
452 }
453
454 m_msVtx_N = msVertices->size();
455 for(const xAOD::Vertex* msVtx : *msVertices){
456 m_msVtx_pos.push_back(msVtx->position());
457 m_msVtx_chi2.push_back(msVtx->chiSquared());
458 m_msVtx_nDoF.push_back(msVtx->numberDoF());
459
460 // hits close to vertex: total, inwards of the vertex, inner layer, extended layer, middle layer, outer layer
461 fillHits(msVtx, "nMDT", m_msVtx_nMDT);
462 fillHits(msVtx, "nMDT_inwards", m_msVtx_nMDT_inwards);
463 fillHits(msVtx, "nMDT_I", m_msVtx_nMDT_I);
464 fillHits(msVtx, "nMDT_E", m_msVtx_nMDT_E);
465 fillHits(msVtx, "nMDT_M", m_msVtx_nMDT_M);
466 fillHits(msVtx, "nMDT_O", m_msVtx_nMDT_O);
467
468 fillHits(msVtx, "nRPC", m_msVtx_nRPC);
469 fillHits(msVtx, "nRPC_inwards", m_msVtx_nRPC_inwards);
470 fillHits(msVtx, "nRPC_I", m_msVtx_nRPC_I);
471 fillHits(msVtx, "nRPC_E", m_msVtx_nRPC_E);
472 fillHits(msVtx, "nRPC_M", m_msVtx_nRPC_M);
473 fillHits(msVtx, "nRPC_O", m_msVtx_nRPC_O);
474
475 fillHits(msVtx, "nTGC", m_msVtx_nTGC);
476 fillHits(msVtx, "nTGC_inwards", m_msVtx_nTGC_inwards);
477 fillHits(msVtx, "nTGC_I", m_msVtx_nTGC_I);
478 fillHits(msVtx, "nTGC_E", m_msVtx_nTGC_E);
479 fillHits(msVtx, "nTGC_M", m_msVtx_nTGC_M);
480 fillHits(msVtx, "nTGC_O", m_msVtx_nTGC_O);
481
482 // set a linking index for each tracklet used in the reconstruction of the vertex
483 size_t nTrk = msVtx->nTrackParticles();
484 m_msVtx_Ntrklet.push_back(nTrk);
485
486 for(size_t j=0; j<nTrk; ++j){
487 const xAOD::TrackParticle *consti = msVtx->trackParticle(j);
488 if (!consti) continue;
489 m_trklet_vtxLink[consti->index()] = msVtx->index();
490 }
491
492 // optionally compute the vertex isolation from tracks and jets
493 if (m_computeVertexIso) ATH_CHECK(fillMSVtxIsolation(msVtx, tracks, jets));
494 }
495
496 return StatusCode::SUCCESS;
497}
size_type size() const noexcept
Returns the number of elements in the collection.
MuonVal::VectorBranch< int > & m_msVtx_nTGC_M
MuonVal::VectorBranch< int > & m_trklet_vtxLink
MuonVal::VectorBranch< float > & m_msVtx_chi2
SG::ReadHandleKey< xAOD::VertexContainer > m_MSVtxKey
MuonVal::VectorBranch< int > & m_msVtx_nTGC_I
MuonVal::VectorBranch< int > & m_msVtx_nMDT_I
MuonVal::ScalarBranch< int > & m_msVtx_N
MuonVal::VectorBranch< int > & m_msVtx_nRPC_E
MuonVal::VectorBranch< int > & m_msVtx_nRPC_inwards
MuonVal::VectorBranch< int > & m_msVtx_nTGC_O
MuonVal::VectorBranch< int > & m_msVtx_nMDT_inwards
MuonVal::ThreeVectorBranch m_msVtx_pos
StatusCode fillMSVtxIsolation(const xAOD::Vertex *msVtx, const xAOD::TrackParticleContainer *tracks, const xAOD::JetContainer *jets)
MuonVal::VectorBranch< int > & m_msVtx_nMDT_M
MuonVal::VectorBranch< int > & m_msVtx_nMDT
MuonVal::VectorBranch< int > & m_msVtx_nDoF
MuonVal::VectorBranch< int > & m_msVtx_nRPC_I
MuonVal::VectorBranch< int > & m_msVtx_Ntrklet
MuonVal::VectorBranch< int > & m_msVtx_nRPC_O
MuonVal::VectorBranch< int > & m_msVtx_nRPC
Gaudi::Property< bool > m_computeVertexIso
MuonVal::VectorBranch< int > & m_msVtx_nMDT_E
MuonVal::VectorBranch< int > & m_msVtx_nTGC_inwards
MuonVal::VectorBranch< int > & m_msVtx_nTGC_E
void fillHits(const xAOD::Vertex *vtx, const std::string &decorator_str, MuonVal::VectorBranch< int > &branch)
MuonVal::VectorBranch< int > & m_msVtx_nMDT_O
MuonVal::VectorBranch< int > & m_msVtx_nRPC_M
MuonVal::VectorBranch< int > & m_msVtx_nTGC
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackParticleKey
TrackParticle_v1 TrackParticle
Reference the current persistent version:
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Vertex_v1 Vertex
Define the latest version of the vertex class.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".

◆ fillMSVtxIsolation()

StatusCode MSVtxValidationAlg::fillMSVtxIsolation ( const xAOD::Vertex * msVtx,
const xAOD::TrackParticleContainer * tracks,
const xAOD::JetContainer * jets )
private

Definition at line 509 of file MSVtxValidationAlg.cxx.

509 {
510
511 VtxIso iso = getIso(msVtx, *tracks, *jets, m_trackIso_pT, m_softTrackIso_R, m_jetIso_pT, m_jetIso_LogRatio);
514 m_msVtx_isoJets_mindR.push_back(iso.jet_mindR);
515
516 return StatusCode::SUCCESS;
517}
MuonVal::VectorBranch< float > & m_msVtx_isoTracks_pTsum
MuonVal::VectorBranch< float > & m_msVtx_isoTracks_mindR
Gaudi::Property< float > m_jetIso_pT
Gaudi::Property< float > m_jetIso_LogRatio
MuonVal::VectorBranch< float > & m_msVtx_isoJets_mindR
Gaudi::Property< float > m_softTrackIso_R
Gaudi::Property< float > m_trackIso_pT
VtxIso getIso(const xAOD::Vertex *vtx, const xAOD::TrackParticleContainer &Tracks, const xAOD::JetContainer &Jets, double trackIso_pT, double softTrackIso_R, double jetIso_pT, double jetIso_LogRatio)

◆ fillMuons()

StatusCode MSVtxValidationAlg::fillMuons ( const EventContext & ctx)
private

Definition at line 404 of file MSVtxValidationAlg.cxx.

404 {
405 const xAOD::MuonContainer* muons{nullptr};
406 ATH_CHECK(SG::get(muons, m_MuonKey, ctx));
407
408 for (const xAOD::Muon* muon : *muons) m_muon->push_back(muon);
409
410 return StatusCode::SUCCESS;
411}
SG::ReadHandleKey< xAOD::MuonContainer > m_MuonKey
ParticleBranchPtr_t m_muon
Muon_v1 Muon
Reference the current persistent version:
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".

◆ fillTracklets()

StatusCode MSVtxValidationAlg::fillTracklets ( const EventContext & ctx)
private

Definition at line 414 of file MSVtxValidationAlg.cxx.

414 {
415
416 const xAOD::TrackParticleContainer* msOnlyTracklets{nullptr};
417 ATH_CHECK(SG::get(msOnlyTracklets, m_TrackletKey, ctx));
418
419 m_trklet_N = msOnlyTracklets->size();
420 for(const xAOD::TrackParticle* mstrklet : *msOnlyTracklets){
421 // perigee parameters
422 m_trklet_d0.push_back(mstrklet->d0());
423 m_trklet_z0.push_back(mstrklet->z0());
424 m_trklet_phi.push_back(mstrklet->phi());
425 m_trklet_theta.push_back(mstrklet->theta());
426 m_trklet_eta.push_back(mstrklet->eta());
427 m_trklet_qOverP.push_back(mstrklet->qOverP());
428 m_trklet_q.push_back(mstrklet->charge());
429 // cartesian parameters
430 const Trk::Perigee &tkl_perigee = mstrklet->perigeeParameters();
431 const Amg::Vector3D &trklet_pos = tkl_perigee.position();
432 const Amg::Vector3D &trklet_mom = tkl_perigee.momentum()/Gaudi::Units::GeV;
433 m_trklet_pos.push_back(trklet_pos);
434 m_trklet_mom.push_back(trklet_mom);
435 // set default link index to vertex to -1 and adjust when in fillMSVtx
436 m_trklet_vtxLink.push_back(-1);
437 }
438
439 return StatusCode::SUCCESS;
440}
MuonVal::VectorBranch< float > & m_trklet_qOverP
MuonVal::VectorBranch< float > & m_trklet_theta
MuonVal::VectorBranch< float > & m_trklet_z0
MuonVal::ThreeVectorBranch m_trklet_pos
MuonVal::ScalarBranch< int > & m_trklet_N
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackletKey
MuonVal::ThreeVectorBranch m_trklet_mom
MuonVal::VectorBranch< float > & m_trklet_phi
MuonVal::VectorBranch< float > & m_trklet_q
MuonVal::VectorBranch< float > & m_trklet_eta
MuonVal::VectorBranch< float > & m_trklet_d0
const Amg::Vector3D & momentum() const
Access method for the momentum.
const Amg::Vector3D & position() const
Access method for the position.
Eigen::Matrix< double, 3, 1 > Vector3D
ParametersT< TrackParametersDim, Charged, PerigeeSurface > Perigee

◆ fillTruth()

StatusCode MSVtxValidationAlg::fillTruth ( const EventContext & ctx)
private

Definition at line 123 of file MSVtxValidationAlg.cxx.

123 {
124 ATH_CHECK(fillTruthParticle(ctx)); // need to be run before fillTruthVertex to set up the truth particle - truth vertex linking
126
127 return StatusCode::SUCCESS;
128}
Gaudi::Property< bool > m_dumpTruthVertices
StatusCode fillTruthVertex(const EventContext &ctx)
StatusCode fillTruthParticle(const EventContext &ctx)

◆ fillTruthParticle()

StatusCode MSVtxValidationAlg::fillTruthParticle ( const EventContext & ctx)
private

Definition at line 131 of file MSVtxValidationAlg.cxx.

131 {
132 // Fill truth particle branches and histograms
133 const xAOD::TruthParticleContainer* truth_particles{nullptr};
134 ATH_CHECK(SG::get(truth_particles, m_TruthParticleKey, ctx));
135
136 // dump the TruthParticle information and collect portal, LLPs
137 std::vector<const xAOD::TruthParticle*> portals{}, llps{};
138 for(const xAOD::TruthParticle* tp : *truth_particles){
139 if (!tp) continue;
141 m_truthParticle->push_back(tp);
142 // set default link index to -1
143 m_truthParticle_llpVtx_link_tmp->push_back(-1); // adjusted in fillLLP
144 m_truthParticle_actVtx_link_tmp->push_back(-1); // adjusted in fillJet
145 m_truthParticle_truthVtx_link_tmp->push_back(-1); // adjusted in fillTruthVertex
146 }
147
148 // fill vector of portal particles, skipping the particle if it is a self-decay
149 if(std::abs(tp->pdgId()) == m_pdgId_portal){
150 bool selfdecay = false;
151 for (size_t p = 0; p < tp->production_vertex()->nIncomingParticles(); ++p) if (tp->parent(p)->pdgId() == tp->pdgId()) { selfdecay = true; break;}
152 if (!selfdecay) portals.push_back(tp);
153 }
154
155 // fill vector of LLPs
156 if(std::abs(tp->pdgId()) == m_pdgId_llp) llps.push_back(tp);
157 }
158
159 // portal
160 m_portal_N = portals.size();
161 for(const xAOD::TruthParticle* portal : portals) m_portal->push_back(portal);
162
163 // LLP and LLP Children
164 ATH_CHECK(fillLLP(llps));
165
166 return StatusCode::SUCCESS;
167}
ParticleBranchPtr_t m_portal
ParticleBranchPtr_t m_truthParticle
Gaudi::Property< int > m_pdgId_portal
StatusCode fillLLP(std::vector< const xAOD::TruthParticle * > &llps)
MuonVal::ScalarBranch< int > & m_portal_N
Gaudi::Property< int > m_pdgId_llp
std::unique_ptr< std::vector< int > > m_truthParticle_truthVtx_link_tmp

◆ fillTruthVertex()

StatusCode MSVtxValidationAlg::fillTruthVertex ( const EventContext & ctx)
private

Definition at line 246 of file MSVtxValidationAlg.cxx.

246 {
247 const xAOD::TruthVertexContainer* truth_vertices{nullptr};
248 ATH_CHECK(SG::get(truth_vertices, m_TruthVertexKey, ctx));
249
250 int truthVtxIdx = 0;
251 for (const xAOD::TruthVertex* vtx : *truth_vertices){
252 if (!vtx) continue;
253 m_truthVtx_pos.push_back(vtx->v4().Vect());
254 m_truthVtx_status.push_back(vtx->status());
255
256 // set the interaction type based on the status code
257 int interactionType = -1;
258 if (m_hadronicProcessEnum.count(vtx->status() - 1000)) interactionType = 0;
259 else if (m_emProcessEnum.count(vtx->status() - 1000)) interactionType = 1;
260 m_truthVtx_interactionType.push_back(interactionType);
261
262 // children
263 m_truthVtx_NchildrenDirect.push_back(vtx->nOutgoingParticles());
264 int nChildren = 0;
265 int nChildrenCharged = 0;
266 for(const xAOD::TruthParticle* child : vtx->particles_out()){
267 std::vector<const xAOD::TruthParticle*> stableChildren = getStableChildren(child, false);
268 nChildren += stableChildren.size();
269 for (const xAOD::TruthParticle *stableChild : stableChildren){
270 if (stableChild->charge() != 0) ++nChildrenCharged;
271 if (!m_dumpTruthParticles) continue;
272 m_truthVtx_truthParticle_link.push_back(truthVtxIdx, stableChild->index());
273 m_truthParticle_truthVtx_link_tmp->at(stableChild->index()) = truthVtxIdx;
274 }
275 }
276 m_truthVtx_Nchildren.push_back(nChildren);
277 m_truthVtx_NchildrenCharged.push_back(nChildrenCharged);
278 truthVtxIdx++;
279 }
280
281 // copy linking data from temp vector and clear the temp vector for the next event
285 }
286
287 return StatusCode::SUCCESS;
288}
MuonVal::MatrixBranch< int > & m_truthVtx_truthParticle_link
std::unordered_set< int > m_emProcessEnum
MuonVal::VectorBranch< int > & m_truthParticle_truthVtx_link
std::unordered_set< int > m_hadronicProcessEnum
MuonVal::VectorBranch< int > & m_truthVtx_status
SG::ReadHandleKey< xAOD::TruthVertexContainer > m_TruthVertexKey
MuonVal::VectorBranch< int > & m_truthVtx_NchildrenCharged
MuonVal::ThreeVectorBranch m_truthVtx_pos
MuonVal::VectorBranch< int > & m_truthVtx_Nchildren
MuonVal::VectorBranch< int > & m_truthVtx_NchildrenDirect
MuonVal::VectorBranch< int > & m_truthVtx_interactionType
TruthVertexContainer_v1 TruthVertexContainer
Declare the latest version of the truth vertex container.

◆ finalize()

StatusCode MSVtxValidationAlg::finalize ( )
finaloverridevirtual

Definition at line 544 of file MSVtxValidationAlg.cxx.

544 {
545 ATH_MSG_DEBUG ("Finalizing " << name() << "...");
546 ATH_CHECK(m_tree.write());
547
548 return StatusCode::SUCCESS;
549}

◆ getTriggerDecisions()

MSVtxValidationAlg::TriggerInfo MSVtxValidationAlg::getTriggerDecisions ( std::string triggerString)
private

Definition at line 315 of file MSVtxValidationAlg.cxx.

315 {
316 // for the configured trigger chain, store the trigger decision for this event
317 const Trig::ChainGroup* chain = m_trigDec->getChainGroup(triggerString);
318 std::vector<std::string> triggerNames = chain->getListOfTriggers();
319
320 std::vector<bool> triggerPassed;
321 for (const std::string& triggerName : triggerNames) {
322 if (m_trigDec->isPassed(triggerName)) triggerPassed.push_back(true);
323 else triggerPassed.push_back(false);
324 }
325
326 return {triggerString, triggerNames, triggerPassed};
327}
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec

◆ getTriggerMatchingDecision()

template<typename T>
bool MSVtxValidationAlg::getTriggerMatchingDecision ( const T * object,
TriggerInfo & triggerInfo,
float dRmatching )
private

Definition at line 331 of file MSVtxValidationAlg.cxx.

331 {
332
333 bool firedTrigger = false;
334 for (size_t i = 0; i < triggerInfo.passed.size(); ++i) {
335 if (!triggerInfo.passed[i]) continue; // skip if trigger not passed
336 if (m_matchingTool->match(*object, triggerInfo.names[i], dRmatching, false)) {
337 firedTrigger = true;
338 break; // this object has fired one for the triggers in the chain so do not need to check the other triggers
339 }
340 }
341
342 return firedTrigger;
343}
PublicToolHandle< Trig::R3MatchingTool > m_matchingTool

◆ graph()

TGraph * AthHistogramming::graph ( const std::string & graphName,
const std::string & tDir = "",
const std::string & stream = "" )
protectedinherited

Simplify the retrieval of registered TGraphs.

Definition at line 492 of file AthHistogramming.cxx.

493{
494 // Build a 32 bit hash out of the name
495 const hash_t graphHash = this->hash(graphName);
496
497 // See if this entry exists in the map
498 GraphMap_t::const_iterator it = m_graphMap.find( graphHash );
499 if ( it == m_graphMap.end() ) // It doesn't exist!
500 { // Let's see into the THistSvc if somebody else has registered the TGraph...
501
502 // Need to copy the strings as we will massage them from here on
503 std::string graphNameCopy = graphName;
504 std::string tDirCopy = tDir;
505 std::string streamCopy = stream;
506
507 // Massage the final string to book things
508 std::string bookingString("");
509 this->buildBookingString( bookingString, graphNameCopy, tDirCopy, streamCopy, true);
510
511 TGraph* graphPointer(NULL);
512 if ( !((histSvc()->getGraph(bookingString, graphPointer)).isSuccess()) )
513 {
514 // Massage the final string to book things
515 std::string bookingString("");
516 this->buildBookingString( bookingString, graphNameCopy, tDirCopy, streamCopy, false );
517
518 if ( !((histSvc()->getGraph(bookingString, graphPointer)).isSuccess()) )
519 {
520 m_msg << MSG::WARNING
521 << "Problem retrieving the TGraph with name (including pre- and post-fixes) "
522 << m_histNamePrefix + graphNameCopy + m_histNamePostfix
523 << " or with name " << graphNameCopy
524 << " in " << m_name << "... it doesn't exist, neither in the cached map nor in the THistSvc!"
525 << " Will return an NULL pointer... you have to handle it correctly!" << endmsg;
526 return NULL;
527 }
528 // If we get to here, we actually found the TGraph in the THistSvc.
529 // So let's add it to the local cache map and return its pointer
530 m_graphMap.insert( m_graphMap.end(), std::pair< const hash_t, TGraph* >( graphHash, graphPointer ) );
531 return graphPointer;
532 }
533 // If we get to here, we actually found the TGraph in the THistSvc.
534 // So let's add it to the local cache map and return its pointer
535 m_graphMap.insert( m_graphMap.end(), std::pair< const hash_t, TGraph* >( graphHash, graphPointer ) );
536 return graphPointer;
537 }
538
539
540 // Return the pointer to the TGraph that we got from the local cache map
541 return it->second;
542}

◆ hash()

AthHistogramming::hash_t AthHistogramming::hash ( const std::string & histName) const
inlineprivateinherited

Method to calculate a 32-bit hash from a string.

Definition at line 428 of file AthHistogramming.h.

429{
430 const uint64_t hash64 = CxxUtils::crc64( histName );
431 return (hash_t)(hash64 & 0xFFFFFFFF);
432}
uint64_t crc64(const CRCTable &table, const char *data, size_t data_len)
Find the CRC-64 of a string,.
Definition crc64.cxx:696
std::uint64_t hash64(const void *data, std::size_t size)
Passthrough to XXH3_64bits.
Definition XXH.cxx:9

◆ hist()

TH1 * AthHistogramming::hist ( const std::string & histName,
const std::string & tDir = "",
const std::string & stream = "" )
protectedinherited

Simplify the retrieval of registered histograms of any type.

Definition at line 198 of file AthHistogramming.cxx.

199{
200 // Build a 32 bit hash out of the name
201 const hash_t histHash = this->hash(histName);
202
203 // See if this entry exists in the map
204 HistMap_t::const_iterator it = m_histMap.find( histHash );
205 if ( it == m_histMap.end() ) // It doesn't exist!
206 { // Let's see into the THistSvc if somebody else has registered the histogram...
207
208 // Need to copy the strings as we will massage them from here on
209 std::string histNameCopy = histName;
210 std::string tDirCopy = tDir;
211 std::string streamCopy = stream;
212
213 // Massage the final string to book things
214 std::string bookingString("");
215 this->buildBookingString( bookingString, histNameCopy, tDirCopy, streamCopy ,false);
216
217 TH1* histPointer(NULL);
218 if ( !((histSvc()->getHist(bookingString, histPointer)).isSuccess()) )
219 {
220 // Massage the final string to book things
221 std::string bookingString("");
222 this->buildBookingString( bookingString, histNameCopy, tDirCopy, streamCopy, true );
223
224 if ( !((histSvc()->getHist(bookingString, histPointer)).isSuccess()) )
225 {
226 m_msg << MSG::WARNING
227 << "Problem retrieving the histogram with name (including pre- and post-fixes) "
228 << m_histNamePrefix + histNameCopy + m_histNamePostfix
229 << " or with name " << histNameCopy
230 << " in " << m_name << "... it doesn't exist, neither in the cached map nor in the THistSvc!"
231 << " Will return an NULL pointer... you have to handle it correctly!" << endmsg;
232 return NULL;
233 }
234 // If we get to here, we actually found the histogram in the THistSvc.
235 // So let's add it to the local cache map and return its pointer
236 m_histMap.insert( m_histMap.end(), std::pair< const hash_t, TH1* >( histHash, histPointer ) );
237 return histPointer;
238 }
239 // If we get to here, we actually found the histogram in the THistSvc.
240 // So let's add it to the local cache map and return its pointer
241 m_histMap.insert( m_histMap.end(), std::pair< const hash_t, TH1* >( histHash, histPointer ) );
242 return histPointer;
243 }
244
245
246 // Return the pointer to the histogram that we got from the local cache map
247 return it->second;
248}

◆ hist2d()

TH2 * AthHistogramming::hist2d ( const std::string & histName,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the retrieval of registered 2-d histograms.

Definition at line 369 of file AthHistogramming.h.

370{
371 // Get the TH1 pointer
372 TH1* th1Pointer = this->hist(histName, tDir, stream);
373 if ( !th1Pointer )
374 {
375 m_msg << MSG::ERROR
376 << "Cannot get a 2-d histogram with name " << histName
377 << "... will probably seg-fault!" << endmsg;
378 return NULL;
379 }
380 // If the TH1 pointer is valid, simply return the dynamic_cast
381 return dynamic_cast<TH2*>( th1Pointer );
382}

◆ hist3d()

TH3 * AthHistogramming::hist3d ( const std::string & histName,
const std::string & tDir = "",
const std::string & stream = "" )
inlineprotectedinherited

Simplify the retrieval of registered 3-d histograms.

Definition at line 386 of file AthHistogramming.h.

387{
388 // Get the TH1 pointer
389 TH1* th1Pointer = this->hist(histName, tDir, stream);
390 if ( !th1Pointer )
391 {
392 m_msg << MSG::ERROR
393 << "Cannot get a 3-d histogram with name " << histName
394 << "... will probably seg-fault!" << endmsg;
395 return NULL;
396 }
397 // If the TH1 pointer is valid, simply return the dynamic_cast
398 return dynamic_cast<TH3*>( th1Pointer );
399}

◆ histSvc()

const ServiceHandle< ITHistSvc > & AthHistogramAlgorithm::histSvc ( ) const
inlineinherited

The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a pointer to the THistSvc.

Definition at line 113 of file AthHistogramAlgorithm.h.

114{
115 return m_histSvc;
116}

◆ initialize()

StatusCode MSVtxValidationAlg::initialize ( )
finaloverridevirtual

Definition at line 14 of file MSVtxValidationAlg.cxx.

14 {
15 ATH_MSG_DEBUG ("Initializing " << name() << "...");
16
17 ATH_CHECK(m_evtKey.initialize());
22 ATH_CHECK(m_MetKey.initialize(m_fillMET));
23 ATH_CHECK(m_MuonKey.initialize());
24 ATH_CHECK(m_MuonSegKey.initialize());
25 ATH_CHECK(m_TrackletKey.initialize());
26 ATH_CHECK(m_MSVtxKey.initialize());
27 if (m_readTriggers) {
28 m_trigDec.setTypeAndName("Trig::TrigDecisionTool/TrigDecisionTool");
29 m_matchingTool.setTypeAndName("Trig::R3MatchingTool/R3MatchingTool");
30 ATH_CHECK(m_trigDec.retrieve());
31 ATH_CHECK(m_matchingTool.retrieve());
32 }
33
34 // attach branches to the tree
35 m_tree.addBranch(std::make_unique<MuonVal::EventInfoBranch>(m_tree, 0));
36
37 // truth TrackParticles
38 m_truthParticle = std::make_shared<MuonVal::IParticleFourMomBranch>(m_tree, "truthParticle");
39 m_truthParticle->addVariableGeV<float>(defaults::Float, "m");
40 m_truthParticle->addVariable<int>(defaults::Int, "pdgId");
41 m_truthParticle->addVariable<int>(defaults::Int, "status");
42 m_truthParticle->addVariable<float>(defaults::Float, "pX");
43 m_truthParticle->addVariable<float>(defaults::Float, "pY");
44 m_truthParticle->addVariable<float>(defaults::Float, "pZ");
45 m_tree.addBranch(m_truthParticle);
46
47 // portal
48 m_portal = std::make_shared<MuonVal::IParticleFourMomBranch>(m_tree, "portal");
49 m_portal->addVariableGeV<float>(defaults::Float, "m");
50 m_tree.addBranch(m_portal);
51
52 // LLP
53 m_llp = std::make_shared<MuonVal::IParticleFourMomBranch>(m_tree, "llp");
54 m_llp->addVariableGeV<float>(defaults::Float, "m");
55 m_tree.addBranch(m_llp);
56
57 // muon segments: dumps the entire muon segment container without needing an explicit fill call
58 m_muonSeg = std::make_shared<MuonPRDTest::SegmentVariables>(m_tree, m_MuonSegKey.key(), "muonSeg", msgLevel());
59 m_tree.addBranch(m_muonSeg);
60
61 // muons
62 m_muon = std::make_shared<MuonVal::IParticleFourMomBranch>(m_tree, "muon");
63 m_tree.addBranch(m_muon);
64
65 // jets
66 m_jet = std::make_shared<MuonVal::IParticleFourMomBranch>(m_tree, "jet");
67 m_jet->addVariableGeV<float>(defaults::Float, "m");
68 m_tree.addBranch(m_jet);
69
70 ATH_CHECK(m_tree.init(this));
71
72 // --- //
73 // Book output histograms following the THistSvc recommendation on managing ownership. Register via histSvc()->regHist("/<stream>/histName", rawHistPtr); //
74 // --- //
75
76 // llp pair
77 auto h_LLP1LLP2dR = std::make_unique<TH1F>("h_LLP1LLP2dR","h_LLP1LLP2dR; #Delta R(LLP1, LLP2); Count / bin",50,0,4);
78 m_h_LLP1LLP2dR = h_LLP1LLP2dR.get();
79 ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_LLP1LLP2dR", std::move(h_LLP1LLP2dR)));
80
81 auto h_diLLPMass = std::make_unique<TH1F>("h_diLLPMass","h_diLLPMass; m_{LL1, LLP2} [GeV]; Count / bin",50,0,1000);
82 m_h_diLLPMass = h_diLLPMass.get();
83 ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_diLLPMass", std::move(h_diLLPMass)));
84
85 // leading LLP
86 auto h_leadLLPLxy = std::make_unique<TH1F>("h_leadLLPLxy","h_leadLLPLxy; lead LLP L_{xy} [mm]; Count / bin",50,0,10000);
87 m_h_leadLLPLxy = h_leadLLPLxy.get();
88 ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_leadLLPLxy", std::move(h_leadLLPLxy)));
89
90 auto h_leadLLPLz = std::make_unique<TH1F>("h_leadLLPLz","h_leadLLPLz; lead LLP L_{z} [mm]; Count / bin",50,0,14000);
91 m_h_leadLLPLz = h_leadLLPLz.get();
92 ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_leadLLPLz", std::move(h_leadLLPLz)));
93
94 auto h_leadLLPctau = std::make_unique<TH1F>("h_leadLLPctau","h_leadLLPctau; lead LLP c#tau [mm]; Count / bin",50,0,2000);
95 m_h_leadLLPctau = h_leadLLPctau.get();
96 ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_leadLLPctau", std::move(h_leadLLPctau)));
97
98 auto h_leadLLPpt = std::make_unique<TH1F>("h_leadLLPpt","h_leadLLPpt; lead LLP p_{T} [GeV]; Count / bin",50,0,400);
99 m_h_leadLLPpt = h_leadLLPpt.get();
100 ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_leadLLPpt", std::move(h_leadLLPpt)));
101
102 // subleading LLP
103 auto h_subleadLLPLxy = std::make_unique<TH1F>("h_subleadLLPLxy","h_subleadLLPLxy; sublead LLP L_{xy} [mm]; Count / bin",50,0,10000);
104 m_h_subleadLLPLxy = h_subleadLLPLxy.get();
105 ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_subleadLLPLxy", std::move(h_subleadLLPLxy)));
106
107 auto h_subleadLLPLz = std::make_unique<TH1F>("h_subleadLLPLz","h_subleadLLPLz; sublead LLP L_{z} [mm]; Count / bin",50,0,10000);
108 m_h_subleadLLPLz = h_subleadLLPLz.get();
109 ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_subleadLLPLz", std::move(h_subleadLLPLz)));
110
111 auto h_subleadLLPctau = std::make_unique<TH1F>("h_subleadLLPctau","h_subleadLLPctau; sublead LLP c#tau [mm]; Count / bin",50,0,2000);
112 m_h_subleadLLPctau = h_subleadLLPctau.get();
113 ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_subleadLLPctau", std::move(h_subleadLLPctau)));
114
115 auto h_subleadLLPpt = std::make_unique<TH1F>("h_subleadLLPpt","h_subleadLLPpt; sublead LLP p_{T} [GeV]; Count / bin",50,0,400);
116 m_h_subleadLLPpt = h_subleadLLPpt.get();
117 ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_subleadLLPpt", std::move(h_subleadLLPpt)));
118
119 return StatusCode::SUCCESS;
120}
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
std::shared_ptr< MuonPRDTest::SegmentVariables > m_muonSeg
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_MuonSegKey
constexpr int Int
constexpr float Float

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ msg()

MsgStream & AthCommonMsg< Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ myReplace()

void AthHistogramming::myReplace ( std::string & str,
const std::string & oldStr,
const std::string & newStr )
privateinherited

Helper method to replace sub-string.

Definition at line 590 of file AthHistogramming.cxx.

593{
594 size_t pos = 0;
595 while((pos = str.find(oldStr, pos)) != std::string::npos)
596 {
597 str.replace(pos, oldStr.length(), newStr);
598 pos += newStr.length();
599 }
600}

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ sysInitialize()

StatusCode AthHistogramAlgorithm::sysInitialize ( )
virtualinherited

Initialization method invoked by the framework.

This method is responsible for any bookkeeping of initialization required by the framework itself. It will in turn invoke the initialize() method of the derived algorithm, and of any sub-algorithms which it creates.

Reimplemented from AthAlgorithm.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 75 of file AthHistogramAlgorithm.cxx.

76{
77 // ---- stolen from GaudiKernel/Algorithm::sysInitialize -------
78 // Bypass the initialization if the algorithm
79 // has already been initialized.
80 if ( Gaudi::StateMachine::INITIALIZED <= FSMState() ) return StatusCode::SUCCESS;
81
82 // Set the Algorithm's properties
83 bindPropertiesTo( serviceLocator()->getOptsSvc() );
84
85 // Bypass the initialization if the algorithm is disabled.
86 // Need to do this after bindPropertiesTo.
87 if ( !isEnabled( ) ) return StatusCode::SUCCESS;
88
89 // ---- stolen from GaudiKernel/Algorithm::sysInitialize ------- END ---
90
91
92 // Get the THistSvc
94
95 // Configure the underlying AthHistogramming helper
100
101 // Print some setup information into the log file
102 ATH_MSG_DEBUG ("Initializing " << name() << "...");
103 ATH_MSG_DEBUG (" using THistService = " << m_histSvc );
104 ATH_MSG_DEBUG (" using RootStreamName = " << m_prefix );
105 ATH_MSG_DEBUG (" using RootDirName = " << m_rootDir );
106 ATH_MSG_DEBUG (" using HistNamePrefix = " << m_histNamePrefix );
107 ATH_MSG_DEBUG (" using HistNamePostfix = " << m_histNamePostfix );
108 ATH_MSG_DEBUG (" using HistTitlePrefix = " << m_histTitlePrefix );
109 ATH_MSG_DEBUG (" using HistTitlePostfix = " << m_histTitlePostfix );
110
111
112 // re-direct to base class...
114}
virtual StatusCode sysInitialize() override
Override sysInitialize.
StatusCode configAthHistogramming(const ServiceHandle< ITHistSvc > &histSvc, const std::string &prefix, const std::string &rootDir, const std::string &histNamePrefix, const std::string &histNamePostfix, const std::string &histTitlePrefix, const std::string &histTitlePostfix)
To be called by the derived classes to fill the internal configuration.
retrieve(aClass, aKey=None)
Definition PyKernel.py:110

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ tree()

TTree * AthHistogramming::tree ( const std::string & treeName,
const std::string & tDir = "",
const std::string & stream = "" )
protectedinherited

Simplify the retrieval of registered TTrees.

Definition at line 378 of file AthHistogramming.cxx.

379{
380 // Build a 32 bit hash out of the name
381 const hash_t treeHash = this->hash(treeName);
382
383 // See if this entry exists in the map
384 TreeMap_t::const_iterator it = m_treeMap.find( treeHash );
385 if ( it == m_treeMap.end() ) // It doesn't exist!
386 { // Let's see into the THistSvc if somebody else has registered the TTree...
387
388 // Need to copy the strings as we will massage them from here on
389 std::string treeNameCopy = treeName;
390 std::string tDirCopy = tDir;
391 std::string streamCopy = stream;
392
393 // Massage the final string to book things
394 std::string bookingString("");
395 this->buildBookingString( bookingString, treeNameCopy, tDirCopy, streamCopy );
396
397 TTree* treePointer(NULL);
398 if ( !((histSvc()->getTree(bookingString, treePointer)).isSuccess()) )
399 {
400 m_msg << MSG::WARNING
401 << "Problem retrieving the TTree with name " << treeNameCopy
402 << " in " << m_name << "... it doesn't exist, neither in the cached map nor in the THistSvc!"
403 << " Will return an NULL pointer... you have to handle it correctly!" << endmsg;
404 return NULL;
405 }
406 // If we get to here, we actually found the TTree in the THistSvc.
407 // So let's add it to the local cache map and return its pointer
408 m_treeMap.insert( m_treeMap.end(), std::pair< const hash_t, TTree* >( treeHash, treePointer ) );
409 return treePointer;
410 }
411
412 // Return the pointer to the TTree that we got from the local cache map
413 return it->second;
414}

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_actVtx_chainDepth

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_actVtx_chainDepth {m_tree.newVector<int>("actVtx_chainDepth")}
private

Definition at line 238 of file MSVtxValidationAlg.h.

238{m_tree.newVector<int>("actVtx_chainDepth")};

◆ m_actVtx_energy

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_actVtx_energy {m_tree.newVector<float>("actVtx_energy")}
private

Definition at line 239 of file MSVtxValidationAlg.h.

239{m_tree.newVector<float>("actVtx_energy")};

◆ m_actVtx_jet_dEta

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_actVtx_jet_dEta {m_tree.newVector<float>("actVtx_jet_dEta")}
private

Definition at line 244 of file MSVtxValidationAlg.h.

244{m_tree.newVector<float>("actVtx_jet_dEta")};

◆ m_actVtx_jet_dPhi

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_actVtx_jet_dPhi {m_tree.newVector<float>("actVtx_jet_dPhi")}
private

Definition at line 245 of file MSVtxValidationAlg.h.

245{m_tree.newVector<float>("actVtx_jet_dPhi")};

◆ m_actVtx_jet_link

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_actVtx_jet_link {m_tree.newVector<int>("actVtx_jet_link")}
private

Definition at line 243 of file MSVtxValidationAlg.h.

243{m_tree.newVector<int>("actVtx_jet_link")};

◆ m_actVtx_mass

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_actVtx_mass {m_tree.newVector<float>("actVtx_mass")}
private

Definition at line 240 of file MSVtxValidationAlg.h.

240{m_tree.newVector<float>("actVtx_mass")};

◆ m_actVtx_NChildren

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_actVtx_NChildren {m_tree.newVector<int>("actVtx_NChildren")}
private

Definition at line 237 of file MSVtxValidationAlg.h.

237{m_tree.newVector<int>("actVtx_NChildren")};

◆ m_actVtx_pos

MuonVal::ThreeVectorBranch MSVtxValidationAlg::m_actVtx_pos {m_tree, "actVtx_"}
private

Definition at line 236 of file MSVtxValidationAlg.h.

236{m_tree, "actVtx_"};

◆ m_actVtx_pT

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_actVtx_pT {m_tree.newVector<float>("actVtx_pT")}
private

Definition at line 241 of file MSVtxValidationAlg.h.

241{m_tree.newVector<float>("actVtx_pT")};

◆ m_actVtx_scalarPtSum

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_actVtx_scalarPtSum {m_tree.newVector<float>("actVtx_scalarPtSum")}
private

Definition at line 242 of file MSVtxValidationAlg.h.

242{m_tree.newVector<float>("actVtx_scalarPtSum")};

◆ m_actVtx_truthParticle_link

MuonVal::MatrixBranch<int>& MSVtxValidationAlg::m_actVtx_truthParticle_link {m_tree.newMatrix<int>("actVtx_truthParticle_link")}
private

Definition at line 246 of file MSVtxValidationAlg.h.

246{m_tree.newMatrix<int>("actVtx_truthParticle_link")};

◆ m_computeActiveVertices

Gaudi::Property<bool> MSVtxValidationAlg::m_computeActiveVertices {this, "computeActiveVertices", false, "extracts active vertices in the vicinity of a jet by looping through truth particles. Requires isMC."}
private

Definition at line 99 of file MSVtxValidationAlg.h.

99{this, "computeActiveVertices", false, "extracts active vertices in the vicinity of a jet by looping through truth particles. Requires isMC."};

◆ m_computeVertexIso

Gaudi::Property<bool> MSVtxValidationAlg::m_computeVertexIso {this, "computeVertexIso", false, "add vertex isolation variables to the tree"}
private

Definition at line 100 of file MSVtxValidationAlg.h.

100{this, "computeVertexIso", false, "add vertex isolation variables to the tree"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_dumpTruthParticles

Gaudi::Property<bool> MSVtxValidationAlg::m_dumpTruthParticles {this, "dumpTruthParticles", false, "dump truth particles to the tree"}
private

Definition at line 95 of file MSVtxValidationAlg.h.

95{this, "dumpTruthParticles", false, "dump truth particles to the tree"};

◆ m_dumpTruthVertices

Gaudi::Property<bool> MSVtxValidationAlg::m_dumpTruthVertices {this, "dumpTruthVertices", false, "dump truth vertices to the tree"}
private

Definition at line 96 of file MSVtxValidationAlg.h.

96{this, "dumpTruthVertices", false, "dump truth vertices to the tree"};

◆ m_effMap

EffMap_t AthHistogramming::m_effMap
privateinherited

The map of histogram names to their pointers.

Definition at line 208 of file AthHistogramming.h.

◆ m_emProcessEnum

std::unordered_set<int> MSVtxValidationAlg::m_emProcessEnum = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,30,31,40,49}
private

Definition at line 144 of file MSVtxValidationAlg.h.

144{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,30,31,40,49};

◆ m_evtKey

SG::ReadHandleKey<xAOD::EventInfo> MSVtxValidationAlg::m_evtKey {this, "EvtKey", "EventInfo"}
private

Definition at line 63 of file MSVtxValidationAlg.h.

63{this, "EvtKey", "EventInfo"};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_fillJets

Gaudi::Property<bool> MSVtxValidationAlg::m_fillJets {this, "fillJets", false, "add jet information to the tree"}
private

Definition at line 98 of file MSVtxValidationAlg.h.

98{this, "fillJets", false, "add jet information to the tree"};

◆ m_fillMET

Gaudi::Property<bool> MSVtxValidationAlg::m_fillMET {this, "fillMET", false, "add met information to the tree"}
private

Definition at line 97 of file MSVtxValidationAlg.h.

97{this, "fillMET", false, "add met information to the tree"};

◆ m_graphMap

GraphMap_t AthHistogramming::m_graphMap
privateinherited

The map of TGraph names to their pointers.

Definition at line 222 of file AthHistogramming.h.

◆ m_h_diLLPMass

TH1F* MSVtxValidationAlg::m_h_diLLPMass {nullptr}
private

Definition at line 260 of file MSVtxValidationAlg.h.

260{nullptr};

◆ m_h_leadLLPctau

TH1F* MSVtxValidationAlg::m_h_leadLLPctau {nullptr}
private

Definition at line 263 of file MSVtxValidationAlg.h.

263{nullptr};

◆ m_h_leadLLPLxy

TH1F* MSVtxValidationAlg::m_h_leadLLPLxy {nullptr}
private

Definition at line 261 of file MSVtxValidationAlg.h.

261{nullptr};

◆ m_h_leadLLPLz

TH1F* MSVtxValidationAlg::m_h_leadLLPLz {nullptr}
private

Definition at line 262 of file MSVtxValidationAlg.h.

262{nullptr};

◆ m_h_leadLLPpt

TH1F* MSVtxValidationAlg::m_h_leadLLPpt {nullptr}
private

Definition at line 264 of file MSVtxValidationAlg.h.

264{nullptr};

◆ m_h_LLP1LLP2dR

TH1F* MSVtxValidationAlg::m_h_LLP1LLP2dR {nullptr}
private

Definition at line 259 of file MSVtxValidationAlg.h.

259{nullptr};

◆ m_h_subleadLLPctau

TH1F* MSVtxValidationAlg::m_h_subleadLLPctau {nullptr}
private

Definition at line 267 of file MSVtxValidationAlg.h.

267{nullptr};

◆ m_h_subleadLLPLxy

TH1F* MSVtxValidationAlg::m_h_subleadLLPLxy {nullptr}
private

Definition at line 265 of file MSVtxValidationAlg.h.

265{nullptr};

◆ m_h_subleadLLPLz

TH1F* MSVtxValidationAlg::m_h_subleadLLPLz {nullptr}
private

Definition at line 266 of file MSVtxValidationAlg.h.

266{nullptr};

◆ m_h_subleadLLPpt

TH1F* MSVtxValidationAlg::m_h_subleadLLPpt {nullptr}
private

Definition at line 268 of file MSVtxValidationAlg.h.

268{nullptr};

◆ m_hadronicProcessEnum

std::unordered_set<int> MSVtxValidationAlg::m_hadronicProcessEnum = {111, 116, 121, 131, 132, 141, 151, 152, 161, 165, 166, 167, 210, 310}
private

Definition at line 142 of file MSVtxValidationAlg.h.

142{111, 116, 121, 131, 132, 141, 151, 152, 161, 165, 166, 167, 210, 310};

◆ m_histMap

HistMap_t AthHistogramming::m_histMap
privateinherited

The map of histogram names to their pointers.

Definition at line 201 of file AthHistogramming.h.

◆ m_histNamePostfix

std::string AthHistogramAlgorithm::m_histNamePostfix
privateinherited

The postfix for the histogram THx name.

Definition at line 97 of file AthHistogramAlgorithm.h.

◆ m_histNamePrefix

std::string AthHistogramAlgorithm::m_histNamePrefix
privateinherited

The prefix for the histogram THx name.

Definition at line 94 of file AthHistogramAlgorithm.h.

◆ m_histSvc

ServiceHandle<ITHistSvc> AthHistogramAlgorithm::m_histSvc
privateinherited

Default constructor: AthHistogramAlgorithm();.

a handle on the Hist/TTree registration service

Definition at line 83 of file AthHistogramAlgorithm.h.

◆ m_histTitlePostfix

std::string AthHistogramAlgorithm::m_histTitlePostfix
privateinherited

The postfix for the histogram THx title.

Definition at line 103 of file AthHistogramAlgorithm.h.

◆ m_histTitlePrefix

std::string AthHistogramAlgorithm::m_histTitlePrefix
privateinherited

The prefix for the histogram THx title.

Definition at line 100 of file AthHistogramAlgorithm.h.

◆ m_isMC

Gaudi::Property<bool> MSVtxValidationAlg::m_isMC {this, "isMC", true, "is the input data simulated (MC) or real data?"}
private

Definition at line 92 of file MSVtxValidationAlg.h.

92{this, "isMC", true, "is the input data simulated (MC) or real data?"};

◆ m_jet

ParticleBranchPtr_t MSVtxValidationAlg::m_jet {nullptr}
private

Definition at line 229 of file MSVtxValidationAlg.h.

229{nullptr};

◆ m_jet_actVtx_link

MuonVal::MatrixBranch<int>& MSVtxValidationAlg::m_jet_actVtx_link {m_tree.newMatrix<int>("jet_actVtx_link")}
private

Definition at line 233 of file MSVtxValidationAlg.h.

233{m_tree.newMatrix<int>("jet_actVtx_link")};

◆ m_jet_N

MuonVal::ScalarBranch<int>& MSVtxValidationAlg::m_jet_N {m_tree.newScalar<int>("jet_N",defaults::Int)}
private

Definition at line 230 of file MSVtxValidationAlg.h.

230{m_tree.newScalar<int>("jet_N",defaults::Int)};

◆ m_jet_NactVtx

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_jet_NactVtx {m_tree.newVector<int>("jet_NactVtx")}
private

Definition at line 232 of file MSVtxValidationAlg.h.

232{m_tree.newVector<int>("jet_NactVtx")};

◆ m_jet_triggers

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_jet_triggers {m_tree.newVector<int>("jet_triggers")}
private

Definition at line 231 of file MSVtxValidationAlg.h.

231{m_tree.newVector<int>("jet_triggers")};

◆ m_jetIso_LogRatio

Gaudi::Property<float> MSVtxValidationAlg::m_jetIso_LogRatio {this, "jetIso_LogRatio", 0.5, "max log ECal/HCal ratio for jet to be considered for isolation"}
private

Definition at line 109 of file MSVtxValidationAlg.h.

109{this, "jetIso_LogRatio", 0.5, "max log ECal/HCal ratio for jet to be considered for isolation"};

◆ m_jetIso_pT

Gaudi::Property<float> MSVtxValidationAlg::m_jetIso_pT {this, "jetIso_pT", 20.0*Gaudi::Units::GeV, "minimum jet pT [GeV] to be considered for isolation"}
private

Definition at line 108 of file MSVtxValidationAlg.h.

108{this, "jetIso_pT", 20.0*Gaudi::Units::GeV, "minimum jet pT [GeV] to be considered for isolation"};

◆ m_JetKey

SG::ReadHandleKey<xAOD::JetContainer> MSVtxValidationAlg::m_JetKey {this, "JetKey", "HLT_AntiKt4EMTopoJets_nojcalib"}
private

Definition at line 67 of file MSVtxValidationAlg.h.

67{this, "JetKey", "HLT_AntiKt4EMTopoJets_nojcalib"};

◆ m_jetTriggerMatchingDR

Gaudi::Property<float> MSVtxValidationAlg::m_jetTriggerMatchingDR {this, "jetTriggerMatching", 0.1, "max dR distance for jet trigger matching"}
private

Definition at line 88 of file MSVtxValidationAlg.h.

88{this, "jetTriggerMatching", 0.1, "max dR distance for jet trigger matching"};

◆ m_llp

ParticleBranchPtr_t MSVtxValidationAlg::m_llp {nullptr}
private

Definition at line 167 of file MSVtxValidationAlg.h.

167{nullptr};

◆ m_llp_genStableChildren

Gaudi::Property<bool> MSVtxValidationAlg::m_llp_genStableChildren {this, "llp_genStableChildren", false, "Restricts the TruthParticle-LLP linking to generator stable children rather than detector stable children"}
private

Definition at line 104 of file MSVtxValidationAlg.h.

104{this, "llp_genStableChildren", false, "Restricts the TruthParticle-LLP linking to generator stable children rather than detector stable children"};

◆ m_llp_N

MuonVal::ScalarBranch<int>& MSVtxValidationAlg::m_llp_N {m_tree.newScalar<int>("llp_N",defaults::Int)}
private

Definition at line 168 of file MSVtxValidationAlg.h.

168{m_tree.newScalar<int>("llp_N",defaults::Int)};

◆ m_llp_Nchildren

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_llp_Nchildren {m_tree.newVector<int>("llp_Nchildren")}
private

Definition at line 169 of file MSVtxValidationAlg.h.

169{m_tree.newVector<int>("llp_Nchildren")};

◆ m_llp_NchildrenCharged

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_llp_NchildrenCharged {m_tree.newVector<int>("llp_NchildrenCharged")}
private

Definition at line 170 of file MSVtxValidationAlg.h.

170{m_tree.newVector<int>("llp_NchildrenCharged")};

◆ m_llpVtx_ctau

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_llpVtx_ctau {m_tree.newVector<float>("llpVtx_ctau")}
private

Definition at line 176 of file MSVtxValidationAlg.h.

176{m_tree.newVector<float>("llpVtx_ctau")};

◆ m_llpVtx_Lxy

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_llpVtx_Lxy {m_tree.newVector<float>("llpVtx_Lxy")}
private

Definition at line 175 of file MSVtxValidationAlg.h.

175{m_tree.newVector<float>("llpVtx_Lxy")};

◆ m_llpVtx_N

MuonVal::ScalarBranch<int>& MSVtxValidationAlg::m_llpVtx_N {m_tree.newScalar<int>("llpVtx_N",defaults::Int)}
private

Definition at line 174 of file MSVtxValidationAlg.h.

174{m_tree.newScalar<int>("llpVtx_N",defaults::Int)};

◆ m_llpVtx_pos

MuonVal::ThreeVectorBranch MSVtxValidationAlg::m_llpVtx_pos {m_tree, "llpVtx_"}
private

Definition at line 173 of file MSVtxValidationAlg.h.

173{m_tree, "llpVtx_"};

◆ m_llpVtx_truthParticle_link

MuonVal::MatrixBranch<int>& MSVtxValidationAlg::m_llpVtx_truthParticle_link {m_tree.newMatrix<int>("llpVtx_truthParticle_link")}
private

Definition at line 177 of file MSVtxValidationAlg.h.

177{m_tree.newMatrix<int>("llpVtx_truthParticle_link")};

◆ m_matchingTool

PublicToolHandle<Trig::R3MatchingTool> MSVtxValidationAlg::m_matchingTool {this, "R3MatchingTool", "", "R3MatchingTool (optional)"}
private

Definition at line 79 of file MSVtxValidationAlg.h.

79{this, "R3MatchingTool", "", "R3MatchingTool (optional)"};

◆ m_met

MuonVal::ScalarBranch<float>& MSVtxValidationAlg::m_met {m_tree.newScalar<float>("met",defaults::Float)}
private

Definition at line 249 of file MSVtxValidationAlg.h.

249{m_tree.newScalar<float>("met",defaults::Float)};

◆ m_met_phi

MuonVal::ScalarBranch<float>& MSVtxValidationAlg::m_met_phi {m_tree.newScalar<float>("met_phi",defaults::Float)}
private

Definition at line 252 of file MSVtxValidationAlg.h.

252{m_tree.newScalar<float>("met_phi",defaults::Float)};

◆ m_met_x

MuonVal::ScalarBranch<float>& MSVtxValidationAlg::m_met_x {m_tree.newScalar<float>("met_X",defaults::Float)}
private

Definition at line 250 of file MSVtxValidationAlg.h.

250{m_tree.newScalar<float>("met_X",defaults::Float)};

◆ m_met_y

MuonVal::ScalarBranch<float>& MSVtxValidationAlg::m_met_y {m_tree.newScalar<float>("met_Y",defaults::Float)}
private

Definition at line 251 of file MSVtxValidationAlg.h.

251{m_tree.newScalar<float>("met_Y",defaults::Float)};

◆ m_MetKey

SG::ReadHandleKey<xAOD::MissingETContainer> MSVtxValidationAlg::m_MetKey {this, "MetKey", "STCalibMET"}
private

Definition at line 68 of file MSVtxValidationAlg.h.

68{this, "MetKey", "STCalibMET"};

◆ m_msg

MsgStream AthHistogramming::m_msg
privateinherited

Cached Message Stream.

Definition at line 248 of file AthHistogramming.h.

◆ m_msVtx_chi2

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_msVtx_chi2 {m_tree.newVector<float>("msVtx_chi2")}
private

Definition at line 182 of file MSVtxValidationAlg.h.

182{m_tree.newVector<float>("msVtx_chi2")};

◆ m_msVtx_isoJets_mindR

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_msVtx_isoJets_mindR {m_tree.newVector<float>("msVtx_isoJets_mindR")}
private

Definition at line 207 of file MSVtxValidationAlg.h.

207{m_tree.newVector<float>("msVtx_isoJets_mindR")};

◆ m_msVtx_isoTracks_mindR

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_msVtx_isoTracks_mindR {m_tree.newVector<float>("msVtx_isoTracks_mindR")}
private

Definition at line 205 of file MSVtxValidationAlg.h.

205{m_tree.newVector<float>("msVtx_isoTracks_mindR")};

◆ m_msVtx_isoTracks_pTsum

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_msVtx_isoTracks_pTsum {m_tree.newVector<float>("msVtx_isoTracks_pTsum")}
private

Definition at line 206 of file MSVtxValidationAlg.h.

206{m_tree.newVector<float>("msVtx_isoTracks_pTsum")};

◆ m_msVtx_N

MuonVal::ScalarBranch<int>& MSVtxValidationAlg::m_msVtx_N {m_tree.newScalar<int>("msVtx_N",defaults::Int)}
private

Definition at line 181 of file MSVtxValidationAlg.h.

181{m_tree.newScalar<int>("msVtx_N",defaults::Int)};

◆ m_msVtx_nDoF

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nDoF {m_tree.newVector<int>("msVtx_nDoF")}
private

Definition at line 183 of file MSVtxValidationAlg.h.

183{m_tree.newVector<int>("msVtx_nDoF")};

◆ m_msVtx_nMDT

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nMDT {m_tree.newVector<int>("msVtx_nMDT")}
private

Definition at line 186 of file MSVtxValidationAlg.h.

186{m_tree.newVector<int>("msVtx_nMDT")};

◆ m_msVtx_nMDT_E

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nMDT_E {m_tree.newVector<int>("msVtx_nMDT_E")}
private

Definition at line 189 of file MSVtxValidationAlg.h.

189{m_tree.newVector<int>("msVtx_nMDT_E")};

◆ m_msVtx_nMDT_I

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nMDT_I {m_tree.newVector<int>("msVtx_nMDT_I")}
private

Definition at line 188 of file MSVtxValidationAlg.h.

188{m_tree.newVector<int>("msVtx_nMDT_I")};

◆ m_msVtx_nMDT_inwards

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nMDT_inwards {m_tree.newVector<int>("msVtx_nMDT_inwards")}
private

Definition at line 187 of file MSVtxValidationAlg.h.

187{m_tree.newVector<int>("msVtx_nMDT_inwards")};

◆ m_msVtx_nMDT_M

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nMDT_M {m_tree.newVector<int>("msVtx_nMDT_M")}
private

Definition at line 190 of file MSVtxValidationAlg.h.

190{m_tree.newVector<int>("msVtx_nMDT_M")};

◆ m_msVtx_nMDT_O

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nMDT_O {m_tree.newVector<int>("msVtx_nMDT_O")}
private

Definition at line 191 of file MSVtxValidationAlg.h.

191{m_tree.newVector<int>("msVtx_nMDT_O")};

◆ m_msVtx_nRPC

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nRPC {m_tree.newVector<int>("msVtx_nRPC")}
private

Definition at line 192 of file MSVtxValidationAlg.h.

192{m_tree.newVector<int>("msVtx_nRPC")};

◆ m_msVtx_nRPC_E

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nRPC_E {m_tree.newVector<int>("msVtx_nRPC_E")}
private

Definition at line 195 of file MSVtxValidationAlg.h.

195{m_tree.newVector<int>("msVtx_nRPC_E")};

◆ m_msVtx_nRPC_I

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nRPC_I {m_tree.newVector<int>("msVtx_nRPC_I")}
private

Definition at line 194 of file MSVtxValidationAlg.h.

194{m_tree.newVector<int>("msVtx_nRPC_I")};

◆ m_msVtx_nRPC_inwards

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nRPC_inwards {m_tree.newVector<int>("msVtx_nRPC_inwards")}
private

Definition at line 193 of file MSVtxValidationAlg.h.

193{m_tree.newVector<int>("msVtx_nRPC_inwards")};

◆ m_msVtx_nRPC_M

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nRPC_M {m_tree.newVector<int>("msVtx_nRPC_M")}
private

Definition at line 196 of file MSVtxValidationAlg.h.

196{m_tree.newVector<int>("msVtx_nRPC_M")};

◆ m_msVtx_nRPC_O

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nRPC_O {m_tree.newVector<int>("msVtx_nRPC_O")}
private

Definition at line 197 of file MSVtxValidationAlg.h.

197{m_tree.newVector<int>("msVtx_nRPC_O")};

◆ m_msVtx_nTGC

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nTGC {m_tree.newVector<int>("msVtx_nTGC")}
private

Definition at line 198 of file MSVtxValidationAlg.h.

198{m_tree.newVector<int>("msVtx_nTGC")};

◆ m_msVtx_nTGC_E

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nTGC_E {m_tree.newVector<int>("msVtx_nTGC_E")}
private

Definition at line 201 of file MSVtxValidationAlg.h.

201{m_tree.newVector<int>("msVtx_nTGC_E")};

◆ m_msVtx_nTGC_I

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nTGC_I {m_tree.newVector<int>("msVtx_nTGC_I")}
private

Definition at line 200 of file MSVtxValidationAlg.h.

200{m_tree.newVector<int>("msVtx_nTGC_I")};

◆ m_msVtx_nTGC_inwards

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nTGC_inwards {m_tree.newVector<int>("msVtx_nTGC_inwards")}
private

Definition at line 199 of file MSVtxValidationAlg.h.

199{m_tree.newVector<int>("msVtx_nTGC_inwards")};

◆ m_msVtx_nTGC_M

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nTGC_M {m_tree.newVector<int>("msVtx_nTGC_M")}
private

Definition at line 202 of file MSVtxValidationAlg.h.

202{m_tree.newVector<int>("msVtx_nTGC_M")};

◆ m_msVtx_nTGC_O

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nTGC_O {m_tree.newVector<int>("msVtx_nTGC_O")}
private

Definition at line 203 of file MSVtxValidationAlg.h.

203{m_tree.newVector<int>("msVtx_nTGC_O")};

◆ m_msVtx_Ntrklet

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_Ntrklet {m_tree.newVector<int>("msVtx_Ntrklet")}
private

Definition at line 184 of file MSVtxValidationAlg.h.

184{m_tree.newVector<int>("msVtx_Ntrklet")};

◆ m_msVtx_pos

MuonVal::ThreeVectorBranch MSVtxValidationAlg::m_msVtx_pos {m_tree, "msVtx_"}
private

Definition at line 180 of file MSVtxValidationAlg.h.

180{m_tree, "msVtx_"};

◆ m_MSVtxKey

SG::ReadHandleKey<xAOD::VertexContainer> MSVtxValidationAlg::m_MSVtxKey {this, "MSVertexKey", "MSDisplacedVertex"}
private

Definition at line 72 of file MSVtxValidationAlg.h.

72{this, "MSVertexKey", "MSDisplacedVertex"};

◆ m_muon

ParticleBranchPtr_t MSVtxValidationAlg::m_muon {nullptr}
private

Definition at line 226 of file MSVtxValidationAlg.h.

226{nullptr};

◆ m_MuonKey

SG::ReadHandleKey<xAOD::MuonContainer> MSVtxValidationAlg::m_MuonKey {this, "MuonKey", "Muons"}
private

Definition at line 69 of file MSVtxValidationAlg.h.

69{this, "MuonKey", "Muons"};

◆ m_muonSeg

std::shared_ptr<MuonPRDTest::SegmentVariables> MSVtxValidationAlg::m_muonSeg {nullptr}
private

Definition at line 223 of file MSVtxValidationAlg.h.

223{nullptr};

◆ m_MuonSegKey

SG::ReadHandleKey<xAOD::MuonSegmentContainer> MSVtxValidationAlg::m_MuonSegKey {this, "MuonSegmentsKey", "MuonSegments"}
private

Definition at line 70 of file MSVtxValidationAlg.h.

70{this, "MuonSegmentsKey", "MuonSegments"};

◆ m_name

std::string AthHistogramming::m_name
privateinherited

Instance name.

Definition at line 245 of file AthHistogramming.h.

◆ m_pdgId_llp

Gaudi::Property<int> MSVtxValidationAlg::m_pdgId_llp {this, "pdgId_llp", 35, "Truth LLP PDGId"}
private

Definition at line 103 of file MSVtxValidationAlg.h.

103{this, "pdgId_llp", 35, "Truth LLP PDGId"};

◆ m_pdgId_portal

Gaudi::Property<int> MSVtxValidationAlg::m_pdgId_portal {this, "pdgId_portal", 25, "Truth portal PDGId"}
private

Definition at line 102 of file MSVtxValidationAlg.h.

102{this, "pdgId_portal", 25, "Truth portal PDGId"};

◆ m_portal

ParticleBranchPtr_t MSVtxValidationAlg::m_portal {nullptr}
private

Definition at line 163 of file MSVtxValidationAlg.h.

163{nullptr};

◆ m_portal_N

MuonVal::ScalarBranch<int>& MSVtxValidationAlg::m_portal_N {m_tree.newScalar<int>("portal_N",defaults::Int)}
private

Definition at line 164 of file MSVtxValidationAlg.h.

164{m_tree.newScalar<int>("portal_N",defaults::Int)};

◆ m_prefix

std::string AthHistogramAlgorithm::m_prefix
privateinherited

Name of the ROOT output stream (file)

Definition at line 88 of file AthHistogramAlgorithm.h.

◆ m_readTriggers

Gaudi::Property<bool> MSVtxValidationAlg::m_readTriggers {this, "readTriggers", false, "should trigger information be read?"}
private

Definition at line 93 of file MSVtxValidationAlg.h.

93{this, "readTriggers", false, "should trigger information be read?"};

◆ m_rootDir

std::string AthHistogramAlgorithm::m_rootDir
privateinherited

Name of the ROOT directory.

Definition at line 91 of file AthHistogramAlgorithm.h.

◆ m_softTrackIso_R

Gaudi::Property<float> MSVtxValidationAlg::m_softTrackIso_R {this, "softTrackIso_R", 0.2, "cone radius around vertex to sum up track pT"}
private

Definition at line 107 of file MSVtxValidationAlg.h.

107{this, "softTrackIso_R", 0.2, "cone radius around vertex to sum up track pT"};

◆ m_streamName

std::string AthHistogramming::m_streamName
privateinherited

Name of the ROOT output stream (file)

Definition at line 226 of file AthHistogramming.h.

◆ m_sumEt

MuonVal::ScalarBranch<float>& MSVtxValidationAlg::m_sumEt {m_tree.newScalar<float>("sumEt",defaults::Float)}
private

Definition at line 253 of file MSVtxValidationAlg.h.

253{m_tree.newScalar<float>("sumEt",defaults::Float)};

◆ m_trackIso_pT

Gaudi::Property<float> MSVtxValidationAlg::m_trackIso_pT {this, "trackIso_pT", 5.0*Gaudi::Units::GeV, "minimum track pT [GeV] to be considered for isolation"}
private

Definition at line 106 of file MSVtxValidationAlg.h.

106{this, "trackIso_pT", 5.0*Gaudi::Units::GeV, "minimum track pT [GeV] to be considered for isolation"};

◆ m_TrackletKey

SG::ReadHandleKey<xAOD::TrackParticleContainer> MSVtxValidationAlg::m_TrackletKey {this, "TrackletKey", "MSonlyTracklets"}
private

Definition at line 71 of file MSVtxValidationAlg.h.

71{this, "TrackletKey", "MSonlyTracklets"};

◆ m_TrackParticleKey

SG::ReadHandleKey<xAOD::TrackParticleContainer> MSVtxValidationAlg::m_TrackParticleKey {this, "TrackParticleKey", "InDetTrackParticles"}
private

Definition at line 66 of file MSVtxValidationAlg.h.

66{this, "TrackParticleKey", "InDetTrackParticles"};

◆ m_tree

MuonVal::MuonTesterTree MSVtxValidationAlg::m_tree {"MSVtxValidTree", "MSVtxValidation"}
private

Definition at line 137 of file MSVtxValidationAlg.h.

137{"MSVtxValidTree", "MSVtxValidation"};

◆ m_treeMap

TreeMap_t AthHistogramming::m_treeMap
privateinherited

The map of TTree names to their pointers.

Definition at line 215 of file AthHistogramming.h.

◆ m_trigDec

PublicToolHandle<Trig::TrigDecisionTool> MSVtxValidationAlg::m_trigDec {this, "TrigDecisionTool", "", "TrigDecisionTool (optional)"}
private

Definition at line 78 of file MSVtxValidationAlg.h.

78{this, "TrigDecisionTool", "", "TrigDecisionTool (optional)"};

◆ m_triggerStringJets

Gaudi::Property<std::string> MSVtxValidationAlg::m_triggerStringJets {this, "TriggerString", "HLT_j400.*"}
private

Definition at line 87 of file MSVtxValidationAlg.h.

87{this, "TriggerString", "HLT_j400.*"}; // accepts single trigger name, comma separated list of trigger names, or regex

◆ m_trklet_d0

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_trklet_d0 {m_tree.newVector<float>("trklet_d0")}
private

Definition at line 213 of file MSVtxValidationAlg.h.

213{m_tree.newVector<float>("trklet_d0")};

◆ m_trklet_eta

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_trklet_eta {m_tree.newVector<float>("trklet_eta")}
private

Definition at line 216 of file MSVtxValidationAlg.h.

216{m_tree.newVector<float>("trklet_eta")};

◆ m_trklet_mom

MuonVal::ThreeVectorBranch MSVtxValidationAlg::m_trklet_mom {m_tree, "trklet_p"}
private

Definition at line 211 of file MSVtxValidationAlg.h.

211{m_tree, "trklet_p"};

◆ m_trklet_N

MuonVal::ScalarBranch<int>& MSVtxValidationAlg::m_trklet_N {m_tree.newScalar<int>("trklet_N",defaults::Int)}
private

Definition at line 212 of file MSVtxValidationAlg.h.

212{m_tree.newScalar<int>("trklet_N",defaults::Int)};

◆ m_trklet_phi

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_trklet_phi {m_tree.newVector<float>("trklet_phi")}
private

Definition at line 217 of file MSVtxValidationAlg.h.

217{m_tree.newVector<float>("trklet_phi")};

◆ m_trklet_pos

MuonVal::ThreeVectorBranch MSVtxValidationAlg::m_trklet_pos {m_tree, "trklet_"}
private

Definition at line 210 of file MSVtxValidationAlg.h.

210{m_tree, "trklet_"};

◆ m_trklet_q

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_trklet_q {m_tree.newVector<float>("trklet_q")}
private

Definition at line 219 of file MSVtxValidationAlg.h.

219{m_tree.newVector<float>("trklet_q")};

◆ m_trklet_qOverP

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_trklet_qOverP {m_tree.newVector<float>("trklet_qOverP")}
private

Definition at line 218 of file MSVtxValidationAlg.h.

218{m_tree.newVector<float>("trklet_qOverP")};

◆ m_trklet_theta

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_trklet_theta {m_tree.newVector<float>("trklet_theta")}
private

Definition at line 215 of file MSVtxValidationAlg.h.

215{m_tree.newVector<float>("trklet_theta")};

◆ m_trklet_vtxLink

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_trklet_vtxLink {m_tree.newVector<int>("trklet_vtxLink")}
private

Definition at line 220 of file MSVtxValidationAlg.h.

220{m_tree.newVector<int>("trklet_vtxLink")};

◆ m_trklet_z0

MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_trklet_z0 {m_tree.newVector<float>("trklet_z0")}
private

Definition at line 214 of file MSVtxValidationAlg.h.

214{m_tree.newVector<float>("trklet_z0")};

◆ m_truthParticle

ParticleBranchPtr_t MSVtxValidationAlg::m_truthParticle {nullptr}
private

Definition at line 154 of file MSVtxValidationAlg.h.

154{nullptr};

◆ m_truthParticle_actVtx_link

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_truthParticle_actVtx_link {m_tree.newVector<int>("truthParticle_actVtx_link")}
private

Definition at line 157 of file MSVtxValidationAlg.h.

157{m_tree.newVector<int>("truthParticle_actVtx_link")};

◆ m_truthParticle_actVtx_link_tmp

std::unique_ptr<std::vector<int> > MSVtxValidationAlg::m_truthParticle_actVtx_link_tmp = std::make_unique<std::vector<int>>()
private

Definition at line 158 of file MSVtxValidationAlg.h.

◆ m_truthParticle_llpVtx_link

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_truthParticle_llpVtx_link {m_tree.newVector<int>("truthParticle_llpVtx_link")}
private

Definition at line 155 of file MSVtxValidationAlg.h.

155{m_tree.newVector<int>("truthParticle_llpVtx_link")};

◆ m_truthParticle_llpVtx_link_tmp

std::unique_ptr<std::vector<int> > MSVtxValidationAlg::m_truthParticle_llpVtx_link_tmp = std::make_unique<std::vector<int>>()
private

Definition at line 156 of file MSVtxValidationAlg.h.

◆ m_truthParticle_truthVtx_link

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_truthParticle_truthVtx_link {m_tree.newVector<int>("truthParticle_truthVtx_link")}
private

Definition at line 159 of file MSVtxValidationAlg.h.

159{m_tree.newVector<int>("truthParticle_truthVtx_link")};

◆ m_truthParticle_truthVtx_link_tmp

std::unique_ptr<std::vector<int> > MSVtxValidationAlg::m_truthParticle_truthVtx_link_tmp = std::make_unique<std::vector<int>>()
private

Definition at line 160 of file MSVtxValidationAlg.h.

◆ m_TruthParticleKey

SG::ReadHandleKey<xAOD::TruthParticleContainer> MSVtxValidationAlg::m_TruthParticleKey {this, "TruthParticleKey", "TruthParticles"}
private

Definition at line 64 of file MSVtxValidationAlg.h.

64{this, "TruthParticleKey", "TruthParticles"};

◆ m_TruthVertexKey

SG::ReadHandleKey<xAOD::TruthVertexContainer> MSVtxValidationAlg::m_TruthVertexKey {this, "TruthVertexKey", "TruthVertices"}
private

Definition at line 65 of file MSVtxValidationAlg.h.

65{this, "TruthVertexKey", "TruthVertices"};

◆ m_truthVtx_interactionType

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_truthVtx_interactionType {m_tree.newVector<int>("truthVtx_ interactionType")}
private

Definition at line 147 of file MSVtxValidationAlg.h.

147{m_tree.newVector<int>("truthVtx_ interactionType")}; // 0 for hadronic, 1 for EM, -1 for other

◆ m_truthVtx_Nchildren

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_truthVtx_Nchildren {m_tree.newVector<int>("truthVtx_Nchildren")}
private

Definition at line 149 of file MSVtxValidationAlg.h.

149{m_tree.newVector<int>("truthVtx_Nchildren")}; // number of detector stable decay products

◆ m_truthVtx_NchildrenCharged

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_truthVtx_NchildrenCharged {m_tree.newVector<int>("truthVtx_NchildrenCharged")}
private

Definition at line 150 of file MSVtxValidationAlg.h.

150{m_tree.newVector<int>("truthVtx_NchildrenCharged")}; // number of charged detector stable decay products

◆ m_truthVtx_NchildrenDirect

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_truthVtx_NchildrenDirect {m_tree.newVector<int>("truthVtx_NchildrenDirect")}
private

Definition at line 148 of file MSVtxValidationAlg.h.

148{m_tree.newVector<int>("truthVtx_NchildrenDirect")}; // number of outgoing particles from the vertex

◆ m_truthVtx_pos

MuonVal::ThreeVectorBranch MSVtxValidationAlg::m_truthVtx_pos {m_tree, "truthVtx_"}
private

Definition at line 145 of file MSVtxValidationAlg.h.

145{m_tree, "truthVtx_"};

◆ m_truthVtx_status

MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_truthVtx_status {m_tree.newVector<int>("truthVtx_status")}
private

Definition at line 146 of file MSVtxValidationAlg.h.

146{m_tree.newVector<int>("truthVtx_status")};

◆ m_truthVtx_truthParticle_link

MuonVal::MatrixBranch<int>& MSVtxValidationAlg::m_truthVtx_truthParticle_link {m_tree.newMatrix<int>("truthVtx_truthParticle_link")}
private

Definition at line 151 of file MSVtxValidationAlg.h.

151{m_tree.newMatrix<int>("truthVtx_truthParticle_link")};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


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