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 (const EventContext &ctx) override final
 Execute method.
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 bool isClonable () const override
 Specify if the algorithm is clonable.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
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

virtual bool isReEntrant () const override final
 Legacy algorithms are not thread-safe.
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 to fill the internal configuration.
TH1 * bookGetPointer (const TH1 &hist, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of histograms.
TH1 * bookGetPointer (TH1 *hist, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of histograms.
TH1 * bookGetPointer (TH1 &histRef, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of histograms.
TTree * bookGetPointer (const TTree &treeRef, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of TTrees.
TGraph * bookGetPointer (const TGraph &graphRef, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of TGraphs.
TEfficiency * bookGetPointer (const TEfficiency &eff, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency.
TEfficiency * bookGetPointer (TEfficiency *eff, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency.
TEfficiency * bookGetPointer (TEfficiency &effRef, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency.
StatusCode book (const TH1 &hist, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of histograms.
StatusCode book (TH1 *hist, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of histograms.
StatusCode book (TH1 &histRef, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of histograms.
StatusCode book (const TTree &treeRef, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of TTrees.
StatusCode book (const TGraph &graphRef, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of TGraphs.
StatusCode book (const TEfficiency &eff, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency.
StatusCode book (TEfficiency *eff, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency.
StatusCode book (TEfficiency &effRef, std::string_view tDir="", std::string_view stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency.
TH1 * hist (std::string_view histName, std::string_view tDir="", std::string_view stream="")
 Simplify the retrieval of registered histograms of any type.
TH2 * hist2d (std::string_view histName, std::string_view tDir="", std::string_view stream="")
 Simplify the retrieval of registered 2-d histograms.
TH3 * hist3d (std::string_view histName, std::string_view tDir="", std::string_view stream="")
 Simplify the retrieval of registered 3-d histograms.
TTree * tree (std::string_view treeName, std::string_view tDir="", std::string_view stream="")
 Simplify the retrieval of registered TTrees.
TGraph * graph (std::string_view graphName, std::string_view tDir="", std::string_view stream="")
 Simplify the retrieval of registered TGraphs.
TEfficiency * efficiency (std::string_view effName, std::string_view tDir="", std::string_view stream="")
 Simplify the retrieval of registered TEfficiency.

Private Types

using ParticleBranchPtr_t = std::shared_ptr<MuonVal::IParticleFourMomBranch>
typedef ServiceHandle< StoreGateSvc > StoreGateSvc_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>
std::string buildBookingString (std::string_view histName, std::string_view tDir, std::string_view stream, bool usePrefixPostfix=false) const
 Method to build individual booking string.
hash_t hash (std::string_view histName) const
 Method to calculate a 32-bit hash from a string.

Private Attributes

SG::ReadHandleKey< xAOD::EventInfo > m_evtKey {this, "EvtKey", "EventInfo"}
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_TruthParticleKey {this, "TruthParticleKey", "TruthParticles"}
SG::ReadHandleKey< xAOD::TruthVertexContainer > m_TruthVertexKey {this, "TruthVertexKey", "TruthVertices"}
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackParticleKey {this, "TrackParticleKey", "InDetTrackParticles"}
SG::ReadHandleKey< xAOD::JetContainer > m_JetKey {this, "JetKey", "HLT_AntiKt4EMTopoJets_nojcalib"}
SG::ReadHandleKey< xAOD::MissingETContainer > m_MetKey {this, "MetKey", "STCalibMET"}
SG::ReadHandleKey< xAOD::MuonContainer > m_MuonKey {this, "MuonKey", "Muons"}
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_MuonSegKey {this, "MuonSegmentsKey", "MuonSegments"}
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackletKey {this, "TrackletKey", "MSonlyTracklets"}
SG::ReadHandleKey< xAOD::VertexContainer > m_MSVtxKey {this, "MSVertexKey", "MSDisplacedVertex"}
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec {this, "TrigDecisionTool", "", "TrigDecisionTool (optional)"}
PublicToolHandle< Trig::R3MatchingTool > m_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::SegmentVariables > m_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
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
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 199 of file AthHistogramming.h.

◆ GraphMap_t

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

Typedef for convenience.

Definition at line 213 of file AthHistogramming.h.

◆ hash_t

typedef uint32_t AthHistogramming::hash_t
privateinherited

typedef for the internal hash

Definition at line 171 of file AthHistogramming.h.

◆ HistMap_t

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

Typedef for convenience.

Definition at line 192 of file AthHistogramming.h.

◆ ParticleBranchPtr_t

Definition at line 138 of file MSVtxValidationAlg.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::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 206 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(const std::string &name, ISvcLocator *pSvcLocator)
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,
std::string_view tDir = "",
std::string_view stream = "" )
inlineprotectedinherited

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

Definition at line 329 of file AthHistogramming.h.

330{
331 // We need to create a non-const clone
332 TEfficiency* effClone = dynamic_cast< TEfficiency* >( eff.Clone() );
333 if ( !effClone ) {
334 m_msg << MSG::ERROR << "Couldn't create a TEfficiency clone" << endmsg;
335 return StatusCode::FAILURE;
336 }
337 return this->book( *effClone, tDir, stream );
338}
#define endmsg
StatusCode book(const TH1 &hist, std::string_view tDir="", std::string_view 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,
std::string_view tDir = "",
std::string_view stream = "" )
inlineprotectedinherited

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

◆ book() [3/8]

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

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

Definition at line 297 of file AthHistogramming.h.

298{
299 // We need to create a non-const clone
300 TH1* histClone = dynamic_cast< TH1* >( hist.Clone() );
301 if ( !histClone ) {
302 m_msg << MSG::ERROR << "Couldn't create a TH1 clone" << endmsg;
303 return StatusCode::FAILURE;
304 }
305 return this->book( *histClone, tDir, stream );
306}
TH1 * hist(std::string_view histName, std::string_view tDir="", std::string_view stream="")
Simplify the retrieval of registered histograms of any type.

◆ book() [4/8]

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

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

Definition at line 397 of file AthHistogramming.h.

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

◆ book() [5/8]

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

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

Definition at line 350 of file AthHistogramming.h.

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

◆ book() [6/8]

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

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

Definition at line 340 of file AthHistogramming.h.

341{
342 if ( !eff ) {
343 m_msg << MSG::ERROR << "Got a zero pointer to a TEfficiency" << endmsg;
344 return StatusCode::FAILURE;
345 }
346 return this->book( *eff, tDir, stream );
347}

◆ book() [7/8]

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

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

Definition at line 318 of file AthHistogramming.h.

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

◆ book() [8/8]

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

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

Definition at line 308 of file AthHistogramming.h.

309{
310 if ( !hist ) {
311 m_msg << MSG::ERROR << "Got a zero pointer to a TH1" << endmsg;
312 return StatusCode::FAILURE;
313 }
314 return this->book( *hist, tDir, stream );
315}

◆ bookGetPointer() [1/8]

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

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

Definition at line 275 of file AthHistogramming.h.

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

◆ bookGetPointer() [2/8]

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

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

Definition at line 374 of file AthHistogramming.cxx.

375{
376 // Get a pointer
377 const TGraph* graphPointer = &graphRef;
378
379 // Check that we got a valid pointer
380 if ( !graphPointer )
381 {
382 m_msg << MSG::WARNING
383 << "We got an invalid TGraph pointer in the BookGetPointer(TGraph*) method of the class" << m_name
384 << "!" << endmsg;
385 return NULL;
386 }
387
388 // Modify the name and title according to the prefixes of this classes instance
389 std::string graphName = graphPointer->GetName();
390 const std::string graphTitle = graphPointer->GetTitle();
391
392 // Check if the hash for this graphName already exists, i.e., if we have a hash collision
393 const hash_t graphHash = this->hash(graphName);
394 GraphMap_t::const_iterator it = m_graphMap.find( graphHash );
395 if ( it != m_graphMap.end() ) // It does exist!
396 {
397 m_msg << MSG::WARNING
398 << "Detected a hash collision. The hash for the TGraph with name=" << graphName
399 << " already exists and points to a TGraph with name=" << it->second->GetName()
400 << " NOT going to book the new histogram and returning a NULL pointer!" << endmsg;
401 return NULL;
402 }
403
404 // Create a clone that has the new name
405 TGraph* graphClone = dynamic_cast< TGraph* >( graphPointer->Clone((m_histNamePrefix+graphName+m_histNamePostfix).c_str()) );
406 if( !graphClone )
407 {
408 m_msg << MSG::WARNING
409 << "We couldn't clone the TGraph in the BookGetPointer(TGraph&) method of the class" << m_name
410 << "!" << endmsg;
411 return NULL;
412 }
413 graphClone->SetTitle ((m_histTitlePrefix+graphTitle+m_histTitlePostfix).c_str());
414
415 // Massage the final string to book things
416 std::string bookingString = buildBookingString( graphName, tDir, stream );
417
418 // Register the TGraph into the THistSvc
419 if ( !((histSvc()->regGraph(bookingString, graphClone)).isSuccess()) )
420 {
421 m_msg << MSG::WARNING
422 << "Problem registering TGraph with name " << graphName
423 << ", title " << graphTitle
424 << " in " << m_name << "!" << endmsg;
425 return NULL;
426 }
427
428 // Also register it in the local map of string to pointer
429 m_graphMap.insert( m_graphMap.end(), std::pair< const hash_t, TGraph* >( graphHash, graphClone ) );
430
431 return graphClone;
432}
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
hash_t hash(std::string_view histName) const
Method to calculate a 32-bit hash from a string.
std::string buildBookingString(std::string_view histName, std::string_view tDir, std::string_view stream, bool usePrefixPostfix=false) const
Method to build individual booking string.
std::string m_histNamePostfix
The postfix for the histogram THx name.
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.
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,
std::string_view tDir = "",
std::string_view stream = "" )
inlineprotectedinherited

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

Definition at line 254 of file AthHistogramming.h.

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

◆ bookGetPointer() [4/8]

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

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

Definition at line 268 of file AthHistogramming.cxx.

269{
270 // Get a pointer
271 const TTree* treePointer = &treeRef;
272
273 // Check that we got a valid pointer
274 if ( !treePointer )
275 {
276 m_msg << MSG::WARNING
277 << "We got an invalid TTree pointer in the BookGetPointer(TTree*) method of the class" << m_name
278 << "!" << endmsg;
279 return NULL;
280 }
281
282 // Modify the name and title according to the prefixes of this classes instance
283 std::string treeName = treePointer->GetName();
284 const std::string treeTitle = treePointer->GetTitle();
285
286 // Check if the hash for this treeName already exists, i.e., if we have a hash collision
287 const hash_t treeHash = this->hash(treeName);
288 TreeMap_t::const_iterator it = m_treeMap.find( treeHash );
289 if ( it != m_treeMap.end() ) // It does exist!
290 {
291 m_msg << MSG::WARNING
292 << "Detected a hash collision. The hash for the TTree with name=" << treeName
293 << " already exists and points to a TTree with name=" << it->second->GetName()
294 << " NOT going to book the new histogram and returning a NULL pointer!" << endmsg;
295 return NULL;
296 }
297
298 // Create a clone that has the new name
299 TTree* treeClone = dynamic_cast< TTree* >( treePointer->Clone(treeName.c_str()) );
300 if( !treeClone )
301 {
302 m_msg << MSG::WARNING
303 << "We couldn't clone the TTree in the BookGetPointer(TTree&) method of the class" << m_name
304 << "!" << endmsg;
305 return NULL;
306 }
307 treeClone->SetTitle (treeTitle.c_str());
308
309 // Massage the final string to book things
310 std::string bookingString = buildBookingString( treeName, tDir, stream );
311
312 // Register the TTree into the THistSvc
313 if ( !((histSvc()->regTree(bookingString, treeClone)).isSuccess()) )
314 {
315 m_msg << MSG::WARNING
316 << "Problem registering TTree with name " << treeName
317 << ", title " << treeTitle
318 << " in " << m_name << "!" << endmsg;
319 return NULL;
320 }
321
322 // Also register it in the local map of string to pointer
323 m_treeMap.insert( m_treeMap.end(), std::pair< const hash_t, TTree* >( treeHash, treeClone ) );
324
325 return treeClone;
326}
TreeMap_t m_treeMap
The map of TTree names to their pointers.

◆ bookGetPointer() [5/8]

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

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

Definition at line 139 of file AthHistogramming.cxx.

140{
141 std::string originalName{effRef.GetName()};
142 const auto effName = splitName(originalName).second;
143 const std::string effTitle(effRef.GetTitle());
144 std::string bookingString = buildBookingString(originalName, tDir, stream);
145 std::string finalEffName{m_histNamePrefix};
146 finalEffName += effName;
147 finalEffName += m_histNamePostfix;
148 effRef.SetTitle((m_histTitlePrefix + effTitle + m_histTitlePostfix).c_str());
149 effRef.SetName(finalEffName.c_str());
150
151 const hash_t effHash = this->hash(effName);
152 EffMap_t::const_iterator it = m_effMap.find(effHash);
153 if (it != m_effMap.end()) {
154 m_msg << MSG::WARNING
155 << "Detected a hash collision. The hash for the TEfficiency with name=" << effName
156 << " already exists and points to a TEfficiency with name=" << it->second->GetName()
157 << " NOT going to book the new TEfficiency and returning a NULL pointer!" << endmsg;
158 return nullptr;
159 }
160
161 if (!histSvc()->regEfficiency(bookingString, &effRef).isSuccess()) {
162 m_msg << MSG::WARNING
163 << "Problem registering TEfficiency with name " << effName
164 << ", name prefix " << m_histNamePrefix
165 << ", title " << effTitle
166 << ", title prefix " << m_histTitlePrefix
167 << ", and title postfix " << m_histTitlePostfix
168 << " in " << m_name << "!" << endmsg;
169 return nullptr;
170 }
171
172 m_effMap.insert(m_effMap.end(), std::pair<const hash_t, TEfficiency*>(effHash, &effRef));
173
174 return &effRef;
175}
EffMap_t m_effMap
The map of histogram names to their pointers.

◆ bookGetPointer() [6/8]

TEfficiency * AthHistogramming::bookGetPointer ( TEfficiency * eff,
std::string_view tDir = "",
std::string_view stream = "" )
inlineprotectedinherited

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

Definition at line 287 of file AthHistogramming.h.

288{
289 if ( !hist ) {
290 m_msg << MSG::ERROR << "Got a zero pointer to a TEfficiency in bookGetPointer" << endmsg;
291 return 0;
292 }
293 return this->bookGetPointer( *hist, tDir, stream );
294}

◆ bookGetPointer() [7/8]

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

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

Definition at line 97 of file AthHistogramming.cxx.

97 {
98
99 const std::string originalName{histRef.GetName()};
100 const auto histName = splitName(originalName).second;
101
102 const std::string histTitle(histRef.GetTitle());
103 std::string bookingString = buildBookingString(originalName, tDir, stream);
104
105 std::string finalHistName{m_histNamePrefix};
106 finalHistName += histName;
107 finalHistName += m_histNamePostfix;
108
109 histRef.SetTitle((m_histTitlePrefix + histTitle + m_histTitlePostfix).c_str());
110 histRef.SetName(finalHistName.c_str());
111
112 const hash_t histHash = this->hash(histName);
113 HistMap_t::const_iterator it = m_histMap.find(histHash);
114 if (it != m_histMap.end()) {
115 m_msg << MSG::WARNING
116 << "Detected a hash collision. The hash for the histogram with name=" << histName
117 << " already exists and points to a histogram with name=" << it->second->GetName()
118 << " NOT going to book the new histogram and returning a NULL pointer!" << endmsg;
119 return nullptr;
120 }
121
122 if (!histSvc()->regHist(bookingString, &histRef).isSuccess()) {
123 m_msg << MSG::WARNING
124 << "Problem registering histogram with name " << histName
125 << ", name prefix " << m_histNamePrefix
126 << ", title " << histTitle
127 << ", title prefix " << m_histTitlePrefix
128 << ", and title postfix " << m_histTitlePostfix
129 << " in " << m_name << "!" << endmsg;
130 return nullptr;
131 }
132
133 m_histMap.insert(m_histMap.end(), std::pair<const hash_t, TH1*>(histHash, &histRef));
134
135 return &histRef;
136}
HistMap_t m_histMap
The map of histogram names to their pointers.

◆ bookGetPointer() [8/8]

TH1 * AthHistogramming::bookGetPointer ( TH1 * hist,
std::string_view tDir = "",
std::string_view stream = "" )
inlineprotectedinherited

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

Definition at line 266 of file AthHistogramming.h.

267{
268 if ( !hist ) {
269 m_msg << MSG::ERROR << "Got a zero pointer to a TH1 in bookGetPointer" << endmsg;
270 return 0;
271 }
272 return this->bookGetPointer( *hist, tDir, stream );
273}

◆ buildBookingString()

std::string AthHistogramming::buildBookingString ( std::string_view histName,
std::string_view tDir,
std::string_view stream,
bool usePrefixPostfix = false ) const
privateinherited

Method to build individual booking string.

Definition at line 500 of file AthHistogramming.cxx.

501 {
502 if (tDir.empty()) {
503 tDir = m_rootDir;
504 }
505 if (stream.empty()) {
507 }
508 const auto [histDir, baseName] = splitName(histName);
509 std::string bookingString{"/"};
510 bookingString += stream;
511 bookingString += '/';
512 bookingString += tDir;
513 if (!histDir.empty()) {
514 bookingString += '/';
515 bookingString += histDir;
516 }
517 bookingString += '/';
518 if (usePrefixPostfix) {
519 bookingString += m_histNamePrefix;
520 }
521 bookingString += baseName;
522 if (usePrefixPostfix) {
523 bookingString += m_histNamePostfix;
524 }
525 const auto tail = std::ranges::unique(
526 bookingString, [](char lhs, char rhs) { return lhs == '/' && rhs == '/'; });
527 bookingString.erase(tail.begin(), tail.end());
528 return bookingString;
529}
std::string m_rootDir
Name of the ROOT directory.
std::string m_streamName
Name of the ROOT output stream (file).
std::string tail(std::string s, const std::string &pattern)
tail of a 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 to fill the internal configuration.

Definition at line 64 of file AthHistogramming.cxx.

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

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::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< Gaudi::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< Gaudi::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 ( std::string_view effName,
std::string_view tDir = "",
std::string_view stream = "" )
protectedinherited

Simplify the retrieval of registered TEfficiency.

Definition at line 214 of file AthHistogramming.cxx.

215{
216 // Build a 32 bit hash out of the name
217 const hash_t effHash = this->hash(effName);
218
219 // See if this entry exists in the map
220 EffMap_t::const_iterator it = m_effMap.find( effHash );
221 if ( it == m_effMap.end() ) // It doesn't exist!
222 { // Let's see into the THistSvc if somebody else has registered the TEfficiency...
223 // Massage the final string to book things
224 std::string bookingString = buildBookingString(effName, tDir, stream ,false);
225
226 TEfficiency* effPointer{};
227 if ( !((histSvc()->getEfficiency(bookingString, effPointer)).isSuccess()) )
228 {
229 // Book things
230 std::string bookingString = buildBookingString( effName, tDir, stream, true );
231
232 if ( !((histSvc()->getEfficiency(bookingString, effPointer)).isSuccess()) )
233 {
234 m_msg << MSG::WARNING
235 << "Problem retrieving the TEfficiency with name (including pre- and post-fixes) "
236 << bookingString
237 << " or with name " << effName
238 << " in " << m_name << "... it doesn't exist, neither in the cached map nor in the THistSvc!"
239 << " Will return an NULL pointer... you have to handle it correctly!" << endmsg;
240 return NULL;
241 }
242 // If we get to here, we actually found the TEfficiency in the THistSvc.
243 // So let's add it to the local cache map and return its pointer
244 m_effMap.insert( m_effMap.end(), std::pair< const hash_t, TEfficiency* >( effHash, effPointer ) );
245 return effPointer;
246 }
247 // If we get to here, we actually found the TEfficiency in the THistSvc.
248 // So let's add it to the local cache map and return its pointer
249 m_effMap.insert( m_effMap.end(), std::pair< const hash_t, TEfficiency* >( effHash, effPointer ) );
250 return effPointer;
251 }
252
253 // Return the pointer to the TEfficiency that we got from the local cache map
254 return it->second;
255}
std::pair< StatusCode, TEfficiency * > getEfficiency(ITHistSvc &svc, const std::string &name)

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::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 ( const EventContext & ctx)
finaloverridevirtual

Execute method.

Implements AthAlgorithm.

Definition at line 520 of file MSVtxValidationAlg.cxx.

520 {
521 ATH_MSG_DEBUG ("Executing " << name() << "...");
522
523
524 // event variables
525 const xAOD::EventInfo* eventInfo{nullptr};
526 ATH_CHECK(SG::get(eventInfo, m_evtKey, ctx));
527
528 ATH_MSG_DEBUG("Start to run over event "<<eventInfo->eventNumber()<<" in run" <<eventInfo->runNumber());
529
530 if(m_isMC) ATH_CHECK(fillTruth(ctx));
531 if(m_fillJets) ATH_CHECK(fillJet(ctx));
532 if(m_fillMET) ATH_CHECK(fillMet(ctx));
533 ATH_CHECK(fillMuons(ctx));
535 ATH_CHECK(fillMSVtx(ctx));
536
537 ATH_CHECK(m_tree.fill(ctx));
538
539 return StatusCode::SUCCESS;
540}
#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< Gaudi::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 & AthCommonAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ 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
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.

◆ 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
float j(const xAOD::IParticle &, const xAOD::TrackMeasurementValidation &hit, const Eigen::Matrix3d &jab_inv)
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.

◆ filterPassed()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ finalize()

StatusCode MSVtxValidationAlg::finalize ( )
finaloverridevirtual

Definition at line 543 of file MSVtxValidationAlg.cxx.

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

◆ 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 ( std::string_view graphName,
std::string_view tDir = "",
std::string_view stream = "" )
protectedinherited

Simplify the retrieval of registered TGraphs.

Definition at line 438 of file AthHistogramming.cxx.

439{
440 // Build a 32 bit hash out of the name
441 const hash_t graphHash = this->hash(graphName);
442
443 // See if this entry exists in the map
444 GraphMap_t::const_iterator it = m_graphMap.find( graphHash );
445 if ( it == m_graphMap.end() ) // It doesn't exist!
446 { // Let's see into the THistSvc if somebody else has registered the TGraph...
447
448 // Massage the final string to book things
449 std::string bookingString = buildBookingString( graphName, tDir, stream, false);
450
451 TGraph* graphPointer(nullptr);
452 if ( !((histSvc()->getGraph(bookingString, graphPointer)).isSuccess()) )
453 {
454 // Massage the final string to book things
455 std::string bookingString = buildBookingString( graphName, tDir, stream, true );
456
457 if ( !((histSvc()->getGraph(bookingString, graphPointer)).isSuccess()) )
458 {
459 m_msg << MSG::WARNING
460 << "Problem retrieving the TGraph with name (including pre- and post-fixes) "
461 << bookingString
462 << " or with name " << graphName
463 << " in " << m_name << "... it doesn't exist, neither in the cached map nor in the THistSvc!"
464 << " Will return an NULL pointer... you have to handle it correctly!" << endmsg;
465 return nullptr;
466 }
467 // If we get to here, we actually found the TGraph in the THistSvc.
468 // So let's add it to the local cache map and return its pointer
469 m_graphMap.insert( m_graphMap.end(), std::pair< const hash_t, TGraph* >( graphHash, graphPointer ) );
470 return graphPointer;
471 }
472 // If we get to here, we actually found the TGraph in the THistSvc.
473 // So let's add it to the local cache map and return its pointer
474 m_graphMap.insert( m_graphMap.end(), std::pair< const hash_t, TGraph* >( graphHash, graphPointer ) );
475 return graphPointer;
476 }
477
478
479 // Return the pointer to the TGraph that we got from the local cache map
480 return it->second;
481}
std::pair< StatusCode, TGraph * > getGraph(ITHistSvc &svc, const std::string &name)

◆ hash()

AthHistogramming::hash_t AthHistogramming::hash ( std::string_view histName) const
inlineprivateinherited

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

Definition at line 422 of file AthHistogramming.h.

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

◆ hist()

TH1 * AthHistogramming::hist ( std::string_view histName,
std::string_view tDir = "",
std::string_view stream = "" )
protectedinherited

Simplify the retrieval of registered histograms of any type.

Definition at line 182 of file AthHistogramming.cxx.

183 {
184
185 const auto histBaseName = splitName(histName).second;
186 std::string bookingString = buildBookingString(histName, tDir, stream, false);
187
188 const hash_t histHash = this->hash(histBaseName);
189
190 HistMap_t::const_iterator it = m_histMap.find(histHash);
191 if (it == m_histMap.end()) {
192 TH1* histPointer(nullptr);
193
194 if (!histSvc()->getHist(bookingString, histPointer).isSuccess()) {
195 std::string prefixedBookingString = buildBookingString(histName, tDir, stream, true);
196 if (!histSvc()->getHist(prefixedBookingString, histPointer).isSuccess()) {
197 m_msg << MSG::WARNING
198 << "Problem retrieving the histogram with name (including pre- and post-fixes) "
199 << prefixedBookingString
200 << " or with name " << histName
201 << " in " << m_name << "... it doesn't exist, neither in the cached map nor in the THistSvc!"
202 << " Will return an NULL pointer... you have to handle it correctly!" << endmsg;
203 return nullptr;
204 }
205 }
206
207 m_histMap.insert(m_histMap.end(), std::pair<const hash_t, TH1*>(histHash, histPointer));
208 return histPointer;
209 }
210
211 return it->second;
212}
std::pair< StatusCode, TH1 * > getHist(ITHistSvc &svc, const std::string &name, size_t index=0)

◆ hist2d()

TH2 * AthHistogramming::hist2d ( std::string_view histName,
std::string_view tDir = "",
std::string_view stream = "" )
inlineprotectedinherited

Simplify the retrieval of registered 2-d histograms.

Definition at line 363 of file AthHistogramming.h.

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

◆ hist3d()

TH3 * AthHistogramming::hist3d ( std::string_view histName,
std::string_view tDir = "",
std::string_view stream = "" )
inlineprotectedinherited

Simplify the retrieval of registered 3-d histograms.

Definition at line 380 of file AthHistogramming.h.

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

◆ 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< Gaudi::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.

◆ isClonable()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ isReEntrant()

virtual bool AthAlgorithm::isReEntrant ( ) const
inlinefinaloverrideprotectedvirtualinherited

Legacy algorithms are not thread-safe.

Definition at line 47 of file AthAlgorithm.h.

47{ return false; }

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msgLvl()

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

Definition at line 30 of file AthCommonMsg.h.

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

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::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< Gaudi::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< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ 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 AthCommonAlgorithm< Gaudi::Algorithm >.

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
93 ATH_CHECK ( histSvc().retrieve() );
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
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 to fill the internal configuration.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::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 ( std::string_view treeName,
std::string_view tDir = "",
std::string_view stream = "" )
protectedinherited

Simplify the retrieval of registered TTrees.

Definition at line 333 of file AthHistogramming.cxx.

334{
335 // Build a 32 bit hash out of the name
336 const hash_t treeHash = this->hash(treeName);
337 // See if this entry exists in the map
338 TreeMap_t::const_iterator it = m_treeMap.find( treeHash );
339 if ( it == m_treeMap.end() ) // It doesn't exist!
340 { // Let's see into the THistSvc if somebody else has registered the TTree...
341 // Massage the final string to book things
342 std::string bookingString = buildBookingString( treeName, tDir, stream);
343
344 TTree* treePointer(NULL);
345 if ( !((histSvc()->getTree(bookingString, treePointer)).isSuccess()) )
346 {
347 m_msg << MSG::WARNING
348 << "Problem retrieving the TTree with name " << treeName
349 << " in " << m_name << "... it doesn't exist, neither in the cached map nor in the THistSvc!"
350 << " Will return an NULL pointer... you have to handle it correctly!" << endmsg;
351 return NULL;
352 }
353 // If we get to here, we actually found the TTree in the THistSvc.
354 // So let's add it to the local cache map and return its pointer
355 m_treeMap.insert( m_treeMap.end(), std::pair< const hash_t, TTree* >( treeHash, treePointer ) );
356 return treePointer;
357 }
358
359 // Return the pointer to the TTree that we got from the local cache map
360 return it->second;
361}
std::pair< StatusCode, TTree * > getTree(ITHistSvc &svc, const std::string &name)

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::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 }

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< Gaudi::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 202 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< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.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 216 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 195 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 242 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 239 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 220 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 209 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< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


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