ATLAS Offline Software
Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
MSVtxValidationAlg Class Reference

#include <MSVtxValidationAlg.h>

Inheritance diagram for MSVtxValidationAlg:
Collaboration diagram for MSVtxValidationAlg:

Classes

struct  TriggerInfo
 

Public Member Functions

virtual StatusCode initialize () override final
 
virtual StatusCode execute () override final
 
virtual StatusCode finalize () override final
 
 AthHistogramAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor with parameters: More...
 
virtual StatusCode sysInitialize ()
 Initialization method invoked by the framework. More...
 
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. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 
StatusCode configAthHistogramming (const ServiceHandle< ITHistSvc > &histSvc, const std::string &prefix, const std::string &rootDir, const std::string &histNamePrefix, const std::string &histNamePostfix, const std::string &histTitlePrefix, const std::string &histTitlePostfix)
 To be called by the derived classes to fill the internal configuration. More...
 
TH1 * bookGetPointer (const TH1 &hist, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms. More...
 
TH1 * bookGetPointer (TH1 *hist, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms. More...
 
TH1 * bookGetPointer (TH1 &histRef, std::string tDir="", std::string stream="")
 Simplify the booking and registering (into THistSvc) of histograms. More...
 
TTree * bookGetPointer (const TTree &treeRef, std::string tDir="", std::string stream="")
 Simplify the booking and registering (into THistSvc) of TTrees. More...
 
TGraph * bookGetPointer (const TGraph &graphRef, std::string tDir="", std::string stream="")
 Simplify the booking and registering (into THistSvc) of TGraphs. More...
 
TEfficiency * bookGetPointer (const TEfficiency &eff, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency. More...
 
TEfficiency * bookGetPointer (TEfficiency *eff, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency. More...
 
TEfficiency * bookGetPointer (TEfficiency &effRef, std::string tDir="", std::string stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency. More...
 
StatusCode book (const TH1 &hist, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms. More...
 
StatusCode book (TH1 *hist, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms. More...
 
StatusCode book (TH1 &histRef, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of histograms. More...
 
StatusCode book (const TTree &treeRef, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TTrees. More...
 
StatusCode book (const TGraph &graphRef, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TGraphs. More...
 
StatusCode book (const TEfficiency &eff, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency. More...
 
StatusCode book (TEfficiency *eff, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency. More...
 
StatusCode book (TEfficiency &effRef, const std::string &tDir="", const std::string &stream="")
 Simplify the booking and registering (into THistSvc) of TEfficiency. More...
 
TH1 * hist (const std::string &histName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered histograms of any type. More...
 
TH2 * hist2d (const std::string &histName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered 2-d histograms. More...
 
TH3 * hist3d (const std::string &histName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered 3-d histograms. More...
 
TTree * tree (const std::string &treeName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered TTrees. More...
 
TGraph * graph (const std::string &graphName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered TGraphs. More...
 
TEfficiency * efficiency (const std::string &effName, const std::string &tDir="", const std::string &stream="")
 Simplify the retrieval of registered TEfficiency. More...
 

Private Types

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

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 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> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 
void buildBookingString (std::string &bookingString, std::string &histName, std::string &tDir, std::string &stream, bool usePrefixPostfix=false)
 Method to build individual booking string. More...
 
void myReplace (std::string &str, const std::string &oldStr, const std::string &newStr)
 Helper method to replace sub-string. More...
 
hash_t hash (const std::string &histName) const
 Method to calculate a 32-bit hash from a string. More...
 

Private Attributes

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

Detailed Description

Definition at line 49 of file MSVtxValidationAlg.h.

Member Typedef Documentation

◆ EffMap_t

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

Typedef for convenience.

Definition at line 205 of file AthHistogramming.h.

◆ GraphMap_t

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

Typedef for convenience.

Definition at line 219 of file AthHistogramming.h.

◆ hash_t

typedef uint32_t AthHistogramming::hash_t
privateinherited

typedef for the internal hash

Definition at line 169 of file AthHistogramming.h.

◆ HistMap_t

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

Typedef for convenience.

Definition at line 198 of file AthHistogramming.h.

◆ ParticleBranchPtr_t

Definition at line 135 of file MSVtxValidationAlg.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

◆ TreeMap_t

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

Typedef for convenience.

Definition at line 212 of file AthHistogramming.h.

Member Function Documentation

◆ AthHistogramAlgorithm()

AthHistogramAlgorithm::AthHistogramAlgorithm

Constructor with parameters:

Definition at line 40 of file AthHistogramAlgorithm.cxx.

32  :
33  ::AthAlgorithm( name, pSvcLocator ),
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 }

◆ book() [1/8]

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

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

Definition at line 335 of file AthHistogramming.h.

336 {
337  // We need to create a non-const clone
338  TEfficiency* effClone = dynamic_cast< TEfficiency* >( eff.Clone() );
339  if ( !effClone ) {
340  m_msg << MSG::ERROR << "Couldn't create a TEfficiency clone" << endmsg;
341  return StatusCode::FAILURE;
342  }
343  return this->book( *effClone, tDir, stream );
344 }

◆ book() [2/8]

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

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

◆ book() [3/8]

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

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

Definition at line 303 of file AthHistogramming.h.

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

◆ book() [4/8]

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

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

Definition at line 403 of file AthHistogramming.h.

404 {
405  // Call the other Book method and see if it returns a valid pointer
406  TTree* treePointer = this->bookGetPointer( treeRef, tDir, stream );
407  if ( treePointer )
408  {
409  return StatusCode::SUCCESS;
410  }
411  else
412  {
413  return StatusCode::FAILURE;
414  }
415 }

◆ book() [5/8]

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

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

Definition at line 356 of file AthHistogramming.h.

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

◆ book() [6/8]

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

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

Definition at line 346 of file AthHistogramming.h.

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

◆ book() [7/8]

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

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

Definition at line 324 of file AthHistogramming.h.

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

◆ book() [8/8]

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

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

Definition at line 314 of file AthHistogramming.h.

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

◆ bookGetPointer() [1/8]

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

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

Definition at line 281 of file AthHistogramming.h.

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

◆ bookGetPointer() [2/8]

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

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

Definition at line 427 of file AthHistogramming.cxx.

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

◆ bookGetPointer() [3/8]

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

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

Definition at line 260 of file AthHistogramming.h.

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

◆ bookGetPointer() [4/8]

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

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

Definition at line 312 of file AthHistogramming.cxx.

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

◆ bookGetPointer() [5/8]

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

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

Definition at line 146 of file AthHistogramming.cxx.

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

◆ bookGetPointer() [6/8]

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

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

Definition at line 293 of file AthHistogramming.h.

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

◆ bookGetPointer() [7/8]

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

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

Definition at line 98 of file AthHistogramming.cxx.

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

◆ bookGetPointer() [8/8]

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

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

Definition at line 272 of file AthHistogramming.h.

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

◆ buildBookingString()

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

Method to build individual booking string.

Definition at line 560 of file AthHistogramming.cxx.

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

◆ configAthHistogramming()

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

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

Definition at line 66 of file AthHistogramming.cxx.

70 {
73  m_rootDir = rootDir;
74  m_histNamePrefix = histNamePrefix;
75  m_histNamePostfix = histNamePostfix;
76  m_histTitlePrefix = histTitlePrefix;
77  m_histTitlePostfix = histTitlePostfix;
78 
79  return StatusCode::SUCCESS;
80 }

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

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

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ efficiency()

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

Simplify the retrieval of registered TEfficiency.

Definition at line 250 of file AthHistogramming.cxx.

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

◆ evtStore() [1/2]

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

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

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode MSVtxValidationAlg::execute ( )
finaloverridevirtual

Definition at line 505 of file MSVtxValidationAlg.cxx.

505  {
506  ATH_MSG_DEBUG ("Executing " << name() << "...");
507 
508  const EventContext& ctx = Gaudi::Hive::currentContext();
509 
510  // event variables
511  const xAOD::EventInfo* eventInfo{nullptr};
512  ATH_CHECK(SG::get(eventInfo, m_evtKey, ctx));
513 
514  ATH_MSG_DEBUG("Start to run over event "<<eventInfo->eventNumber()<<" in run" <<eventInfo->runNumber());
515 
516  if(m_isMC) ATH_CHECK(fillTruth(ctx));
517  if(m_fillJets) ATH_CHECK(fillJet(ctx));
518  if(m_fillMET) ATH_CHECK(fillMet(ctx));
519  ATH_CHECK(fillTracklets(ctx));
520  ATH_CHECK(fillMSVtx(ctx));
521 
522  ATH_CHECK(m_tree.fill(ctx));
523 
524  return StatusCode::SUCCESS;
525 }

◆ extraDeps_update_handler()

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

Add StoreName to extra input/output deps as needed.

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

◆ extraOutputDeps()

const DataObjIDColl & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 50 of file AthAlgorithm.cxx.

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

◆ fillActiveVertices()

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

Definition at line 341 of file MSVtxValidationAlg.cxx.

341  {
342  const xAOD::TruthParticleContainer* truth_particles{nullptr};
343  ATH_CHECK(SG::get(truth_particles, m_TruthParticleKey, ctx));
344 
345  std::vector<ActiveVertex> actVertices = getActiveVertices(jet, *truth_particles);
346 
347  if (!actVertices.size()){
348  m_jet_actVtx_link.push_back({}); // empty links for this jet as no active vertex was identified
349  return StatusCode::SUCCESS;
350  }
351 
352  for (ActiveVertex actVtx : actVertices) {
353  if (!actVtx.vtx) continue;
354  // index of active vertex found in the event. Not just a simple counter since each jet can have several active vertices
355  size_t actVtxIdx = m_actVtx_NChildren.size();
356  // fill the active vertex branches
357  m_actVtx_pos.push_back(actVtx.vtx->v4().Vect());
358  m_actVtx_NChildren.push_back(actVtx.nChildren);
359  m_actVtx_chainDepth.push_back(actVtx.decayDepth);
360  m_actVtx_energy.push_back(actVtx.vtxEnergy/Gaudi::Units::GeV);
361  m_actVtx_mass.push_back(actVtx.vtxMass/Gaudi::Units::GeV);
363  m_actVtx_scalarPtSum.push_back(actVtx.vtxScalarPtSum/Gaudi::Units::GeV);
364 
365  m_actVtx_jet_link.push_back(jet->index()); // link the active vertex to the jet
366  m_actVtx_jet_dEta.push_back(jet->eta() - actVtx.vtx->v4().Eta());
367  m_actVtx_jet_dPhi.push_back(jet->p4().DeltaPhi(actVtx.vtx->v4()));
368 
369  m_jet_actVtx_link.push_back(jet->index(), actVtxIdx); // link the jet to the active vertex
370 
371  // note that a truth particle can be linked to multiple active vertices, so the link index is not unique
372  if (!m_dumpTruthParticles) continue;
373  for (auto tpLink : actVtx.vtx->outgoingParticleLinks()) {
374  if (!tpLink) continue;
375  m_actVtx_truthParticle_link.push_back(actVtxIdx, tpLink.index());
376  m_truthParticle_actVtx_link_tmp->at(tpLink.index()) = actVtxIdx;
377  }
378  }
379  m_jet_NactVtx.push_back(actVertices.size()); // number of active vertices associated to this jet
380 
381  return StatusCode::SUCCESS;
382 }

◆ fillHits()

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

Definition at line 485 of file MSVtxValidationAlg.cxx.

485  {
486  // fills branch with the number of hits close to the vertex. When the decorator is not available, the default integer value is used
487  const SG::AuxElement::Accessor<int> hits_acc(decorator_str);
488  if (hits_acc.isAvailable(*vtx)) branch.push_back(hits_acc(*vtx));
489 
490  return;
491 }

◆ fillJet()

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

Definition at line 286 of file MSVtxValidationAlg.cxx.

286  {
287  const xAOD::JetContainer* jets{nullptr};
288  ATH_CHECK(SG::get(jets, m_JetKey, ctx));
289 
290  TriggerInfo triggerInfo;
292 
293  m_jet_N = jets->size();
294  for (const xAOD::Jet* jet : *jets) {
295  m_jet->push_back(jet);
298  }
299 
300  // copy linking data from temp vector and clear the temp vector for the next event
301  if (m_dumpTruthParticles) {
304  }
305 
306  return StatusCode::SUCCESS;
307 }

◆ fillLLP()

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

Definition at line 165 of file MSVtxValidationAlg.cxx.

165  {
166 
167  // LLP and LLP children
168  m_llp_N = llps.size();
169  std::sort(llps.begin(), llps.end(), comparePt); // sort llps by pT
170  const xAOD::TruthParticle* leadLLP = nullptr;
171  const xAOD::TruthParticle* subleadLLP = nullptr;
172 
173  int num_vtx = 0;
174  for(unsigned int llp_idx=0; const xAOD::TruthParticle* llp : llps){
175  m_llp->push_back(llp);
176 
177  if(llp->hasDecayVtx()){
178  const xAOD::TruthVertex* decVtx = llp->decayVtx();
179  m_llpVtx_pos.push_back(decVtx->v4().Vect());
180  m_llpVtx_Lxy.push_back(decVtx->perp());
182  ++num_vtx;
183  }
184 
185  // leading LLP
186  if(llp_idx==0){
187  if(llp->hasDecayVtx()){
188  const xAOD::TruthVertex* decVtx = llp->decayVtx();
189  m_h_leadLLPLxy->Fill(decVtx->perp());
190  m_h_leadLLPLz->Fill(decVtx->z());
191  m_h_leadLLPctau->Fill(getCTau(decVtx));
192  }
193  m_h_leadLLPpt->Fill(llp->pt()/Gaudi::Units::GeV);
194  leadLLP = llp;
195  }
196  // subleading llp
197  if(llp_idx==1){
198  if(llp->hasDecayVtx()){
199  const xAOD::TruthVertex* decVtx = llp->decayVtx();
200  m_h_subleadLLPLxy->Fill(decVtx->perp());
201  m_h_subleadLLPLz->Fill(decVtx->z());
202  m_h_subleadLLPctau->Fill(getCTau(decVtx));
203  }
204  m_h_subleadLLPpt->Fill(llp->pt()/Gaudi::Units::GeV);
205  subleadLLP = llp;
206 
207  // di-llp histograms
208  TLorentzVector llpSum = subleadLLP->p4()+leadLLP->p4();
209  m_h_LLP1LLP2dR->Fill(leadLLP->p4().DeltaR(subleadLLP->p4()));
210  m_h_diLLPMass->Fill(llpSum.E()/Gaudi::Units::GeV);
211  }
212 
213  // LLP children
214  if (llp->hasDecayVtx() && llp->nChildren()>0 && !llp->isGenStable()) {
215  std::vector<const xAOD::TruthParticle*> stableChildren = getStableChildren(llp, m_llp_genStableChildren);
216  m_llp_Nchildren.push_back((int)stableChildren.size());
217  int nChargedChildren = 0;
218  for (const xAOD::TruthParticle *child : stableChildren){
219  if (child->charge() != 0) ++nChargedChildren;
220  if (!m_dumpTruthParticles) continue;
221  m_llpVtx_truthParticle_link.push_back(llp_idx, child->index());
222  m_truthParticle_llpVtx_link_tmp->at(child->index()) = llp_idx;
223  }
224  m_llp_NchildrenCharged.push_back(nChargedChildren);
225  }
226  ++llp_idx;
227  }
228  m_llpVtx_N = num_vtx;
229 
230  // copy linking data from temp vector and clear the temp vector for the next event
231  if (m_dumpTruthParticles) {
234  }
235 
236 
237  return StatusCode::SUCCESS;
238 }

◆ fillMet()

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

Definition at line 385 of file MSVtxValidationAlg.cxx.

385  {
386  const xAOD::MissingETContainer* MET{nullptr};
387  ATH_CHECK(SG::get(MET, m_MetKey, ctx));
388 
389  m_met = (*MET)["Final"]->met()/Gaudi::Units::GeV;
390  m_met_x = (*MET)["Final"]->mpx()/Gaudi::Units::GeV;
391  m_met_y = (*MET)["Final"]->mpy()/Gaudi::Units::GeV;
392  m_met_phi = (*MET)["Final"]->phi();
393  m_sumEt = (*MET)["Final"]->sumet()/Gaudi::Units::GeV;
394 
395  return StatusCode::SUCCESS;
396 }

◆ fillMSVtx()

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

Definition at line 428 of file MSVtxValidationAlg.cxx.

428  {
429  const xAOD::VertexContainer* msVertices{nullptr};
430  ATH_CHECK(SG::get(msVertices, m_MSVtxKey, ctx));
431 
432  const xAOD::TrackParticleContainer* tracks{nullptr};
433  const xAOD::JetContainer* jets{nullptr};
434  if (m_computeVertexIso) {
435  ATH_CHECK(SG::get(tracks, m_TrackParticleKey, ctx));
436  ATH_CHECK(SG::get(jets, m_JetKey, ctx));
437  }
438 
439  m_msVtx_N = msVertices->size();
440  for(const xAOD::Vertex* msVtx : *msVertices){
441  m_msVtx_pos.push_back(msVtx->position());
442  m_msVtx_chi2.push_back(msVtx->chiSquared());
443  m_msVtx_nDoF.push_back(msVtx->numberDoF());
444 
445  // hits close to vertex: total, inwards of the vertex, inner layer, extended layer, middle layer, outer layer
446  fillHits(msVtx, "nMDT", m_msVtx_nMDT);
447  fillHits(msVtx, "nMDT_inwards", m_msVtx_nMDT_inwards);
448  fillHits(msVtx, "nMDT_I", m_msVtx_nMDT_I);
449  fillHits(msVtx, "nMDT_E", m_msVtx_nMDT_E);
450  fillHits(msVtx, "nMDT_M", m_msVtx_nMDT_M);
451  fillHits(msVtx, "nMDT_O", m_msVtx_nMDT_O);
452 
453  fillHits(msVtx, "nRPC", m_msVtx_nRPC);
454  fillHits(msVtx, "nRPC_inwards", m_msVtx_nRPC_inwards);
455  fillHits(msVtx, "nRPC_I", m_msVtx_nRPC_I);
456  fillHits(msVtx, "nRPC_E", m_msVtx_nRPC_E);
457  fillHits(msVtx, "nRPC_M", m_msVtx_nRPC_M);
458  fillHits(msVtx, "nRPC_O", m_msVtx_nRPC_O);
459 
460  fillHits(msVtx, "nTGC", m_msVtx_nTGC);
461  fillHits(msVtx, "nTGC_inwards", m_msVtx_nTGC_inwards);
462  fillHits(msVtx, "nTGC_I", m_msVtx_nTGC_I);
463  fillHits(msVtx, "nTGC_E", m_msVtx_nTGC_E);
464  fillHits(msVtx, "nTGC_M", m_msVtx_nTGC_M);
465  fillHits(msVtx, "nTGC_O", m_msVtx_nTGC_O);
466 
467  // set a linking index for each tracklet used in the reconstruction of the vertex
468  size_t nTrk = msVtx->nTrackParticles();
470 
471  for(size_t j=0; j<nTrk; ++j){
472  const xAOD::TrackParticle *consti = msVtx->trackParticle(j);
473  if (!consti) continue;
474  m_trklet_vtxLink[consti->index()] = msVtx->index();
475  }
476 
477  // optionally compute the vertex isolation from tracks and jets
478  if (m_computeVertexIso) ATH_CHECK(fillMSVtxIsolation(msVtx, tracks, jets));
479  }
480 
481  return StatusCode::SUCCESS;
482 }

◆ fillMSVtxIsolation()

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

Definition at line 494 of file MSVtxValidationAlg.cxx.

494  {
495 
500 
501  return StatusCode::SUCCESS;
502 }

◆ fillTracklets()

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

Definition at line 399 of file MSVtxValidationAlg.cxx.

399  {
400 
401  const xAOD::TrackParticleContainer* msOnlyTracklets{nullptr};
402  ATH_CHECK(SG::get(msOnlyTracklets, m_TrackletKey, ctx));
403 
404  m_trklet_N = msOnlyTracklets->size();
405  for(const xAOD::TrackParticle* mstrklet : *msOnlyTracklets){
406  // perigee parameters
407  m_trklet_d0.push_back(mstrklet->d0());
408  m_trklet_z0.push_back(mstrklet->z0());
409  m_trklet_phi.push_back(mstrklet->phi());
410  m_trklet_theta.push_back(mstrklet->theta());
411  m_trklet_eta.push_back(mstrklet->eta());
412  m_trklet_qOverP.push_back(mstrklet->qOverP());
413  m_trklet_q.push_back(mstrklet->charge());
414  // cartesian parameters
415  const Trk::Perigee &tkl_perigee = mstrklet->perigeeParameters();
416  const Amg::Vector3D &trklet_pos = tkl_perigee.position();
417  const Amg::Vector3D &trklet_mom = tkl_perigee.momentum()/Gaudi::Units::GeV;
418  m_trklet_pos.push_back(trklet_pos);
419  m_trklet_mom.push_back(trklet_mom);
420  // set default link index to vertex to -1 and adjust when in fillMSVtx
422  }
423 
424  return StatusCode::SUCCESS;
425 }

◆ fillTruth()

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

Definition at line 118 of file MSVtxValidationAlg.cxx.

118  {
119  ATH_CHECK(fillTruthParticle(ctx)); // need to be run before fillTruthVertex to set up the truth particle - truth vertex linking
121 
122  return StatusCode::SUCCESS;
123 }

◆ fillTruthParticle()

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

Definition at line 126 of file MSVtxValidationAlg.cxx.

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

◆ fillTruthVertex()

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

Definition at line 241 of file MSVtxValidationAlg.cxx.

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

◆ finalize()

StatusCode MSVtxValidationAlg::finalize ( )
finaloverridevirtual

Definition at line 528 of file MSVtxValidationAlg.cxx.

528  {
529  ATH_MSG_DEBUG ("Finalizing " << name() << "...");
531 
532  return StatusCode::SUCCESS;
533 }

◆ getTriggerDecisions()

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

Definition at line 310 of file MSVtxValidationAlg.cxx.

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

◆ getTriggerMatchingDecision()

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

Definition at line 326 of file MSVtxValidationAlg.cxx.

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

◆ graph()

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

Simplify the retrieval of registered TGraphs.

Definition at line 492 of file AthHistogramming.cxx.

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

◆ hash()

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

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

Definition at line 428 of file AthHistogramming.h.

429 {
431  return (hash_t)(hash64 & 0xFFFFFFFF);
432 }

◆ hist()

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

Simplify the retrieval of registered histograms of any type.

Definition at line 198 of file AthHistogramming.cxx.

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

◆ hist2d()

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

Simplify the retrieval of registered 2-d histograms.

Definition at line 369 of file AthHistogramming.h.

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

◆ hist3d()

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

Simplify the retrieval of registered 3-d histograms.

Definition at line 386 of file AthHistogramming.h.

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

◆ histSvc()

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

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

Definition at line 113 of file AthHistogramAlgorithm.h.

114 {
115  return m_histSvc;
116 }

◆ initialize()

StatusCode MSVtxValidationAlg::initialize ( )
finaloverridevirtual

Definition at line 14 of file MSVtxValidationAlg.cxx.

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

◆ inputHandles()

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

Return this algorithm's input handles.

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

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

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

Definition at line 30 of file AthCommonMsg.h.

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

◆ myReplace()

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

Helper method to replace sub-string.

Definition at line 590 of file AthHistogramming.cxx.

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

◆ outputHandles()

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

Return this algorithm's output handles.

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

◆ renounce()

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

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

StatusCode AthHistogramAlgorithm::sysInitialize ( )
virtualinherited

Initialization method invoked by the framework.

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

Reimplemented from AthAlgorithm.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 75 of file AthHistogramAlgorithm.cxx.

76 {
77  // ---- stolen from GaudiKernel/Algorithm::sysInitialize -------
78  // Bypass the initialization if the algorithm
79  // has already been initialized.
80  if ( Gaudi::StateMachine::INITIALIZED <= FSMState() ) return StatusCode::SUCCESS;
81 
82  // Set the Algorithm's properties
83  bindPropertiesTo( serviceLocator()->getOptsSvc() );
84 
85  // Bypass the initialization if the algorithm is disabled.
86  // Need to do this after bindPropertiesTo.
87  if ( !isEnabled( ) ) return StatusCode::SUCCESS;
88 
89  // ---- stolen from GaudiKernel/Algorithm::sysInitialize ------- END ---
90 
91 
92  // Get the THistSvc
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 }

◆ sysStart()

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

Handle START transition.

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

◆ tree()

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

Simplify the retrieval of registered TTrees.

Definition at line 378 of file AthHistogramming.cxx.

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

◆ updateVHKA()

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

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
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 232 of file MSVtxValidationAlg.h.

◆ m_actVtx_energy

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

Definition at line 233 of file MSVtxValidationAlg.h.

◆ m_actVtx_jet_dEta

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

Definition at line 238 of file MSVtxValidationAlg.h.

◆ m_actVtx_jet_dPhi

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

Definition at line 239 of file MSVtxValidationAlg.h.

◆ m_actVtx_jet_link

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

Definition at line 237 of file MSVtxValidationAlg.h.

◆ m_actVtx_mass

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

Definition at line 234 of file MSVtxValidationAlg.h.

◆ m_actVtx_NChildren

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

Definition at line 231 of file MSVtxValidationAlg.h.

◆ m_actVtx_pos

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

Definition at line 230 of file MSVtxValidationAlg.h.

◆ m_actVtx_pT

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

Definition at line 235 of file MSVtxValidationAlg.h.

◆ m_actVtx_scalarPtSum

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

Definition at line 236 of file MSVtxValidationAlg.h.

◆ m_actVtx_truthParticle_link

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

Definition at line 240 of file MSVtxValidationAlg.h.

◆ 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 97 of file MSVtxValidationAlg.h.

◆ m_computeVertexIso

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

Definition at line 98 of file MSVtxValidationAlg.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_dumpTruthParticles

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

Definition at line 93 of file MSVtxValidationAlg.h.

◆ m_dumpTruthVertices

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

Definition at line 94 of file MSVtxValidationAlg.h.

◆ m_effMap

EffMap_t AthHistogramming::m_effMap
privateinherited

The map of histogram names to their pointers.

Definition at line 208 of file AthHistogramming.h.

◆ m_emProcessEnum

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

Definition at line 141 of file MSVtxValidationAlg.h.

◆ m_evtKey

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

Definition at line 62 of file MSVtxValidationAlg.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_fillJets

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

Definition at line 96 of file MSVtxValidationAlg.h.

◆ m_fillMET

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

Definition at line 95 of file MSVtxValidationAlg.h.

◆ m_graphMap

GraphMap_t AthHistogramming::m_graphMap
privateinherited

The map of TGraph names to their pointers.

Definition at line 222 of file AthHistogramming.h.

◆ m_h_diLLPMass

TH1F* MSVtxValidationAlg::m_h_diLLPMass {nullptr}
private

Definition at line 254 of file MSVtxValidationAlg.h.

◆ m_h_leadLLPctau

TH1F* MSVtxValidationAlg::m_h_leadLLPctau {nullptr}
private

Definition at line 257 of file MSVtxValidationAlg.h.

◆ m_h_leadLLPLxy

TH1F* MSVtxValidationAlg::m_h_leadLLPLxy {nullptr}
private

Definition at line 255 of file MSVtxValidationAlg.h.

◆ m_h_leadLLPLz

TH1F* MSVtxValidationAlg::m_h_leadLLPLz {nullptr}
private

Definition at line 256 of file MSVtxValidationAlg.h.

◆ m_h_leadLLPpt

TH1F* MSVtxValidationAlg::m_h_leadLLPpt {nullptr}
private

Definition at line 258 of file MSVtxValidationAlg.h.

◆ m_h_LLP1LLP2dR

TH1F* MSVtxValidationAlg::m_h_LLP1LLP2dR {nullptr}
private

Definition at line 253 of file MSVtxValidationAlg.h.

◆ m_h_subleadLLPctau

TH1F* MSVtxValidationAlg::m_h_subleadLLPctau {nullptr}
private

Definition at line 261 of file MSVtxValidationAlg.h.

◆ m_h_subleadLLPLxy

TH1F* MSVtxValidationAlg::m_h_subleadLLPLxy {nullptr}
private

Definition at line 259 of file MSVtxValidationAlg.h.

◆ m_h_subleadLLPLz

TH1F* MSVtxValidationAlg::m_h_subleadLLPLz {nullptr}
private

Definition at line 260 of file MSVtxValidationAlg.h.

◆ m_h_subleadLLPpt

TH1F* MSVtxValidationAlg::m_h_subleadLLPpt {nullptr}
private

Definition at line 262 of file MSVtxValidationAlg.h.

◆ 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 139 of file MSVtxValidationAlg.h.

◆ m_histMap

HistMap_t AthHistogramming::m_histMap
privateinherited

The map of histogram names to their pointers.

Definition at line 201 of file AthHistogramming.h.

◆ m_histNamePostfix

std::string AthHistogramAlgorithm::m_histNamePostfix
privateinherited

The postfix for the histogram THx name.

Definition at line 97 of file AthHistogramAlgorithm.h.

◆ m_histNamePrefix

std::string AthHistogramAlgorithm::m_histNamePrefix
privateinherited

The prefix for the histogram THx name.

Definition at line 94 of file AthHistogramAlgorithm.h.

◆ m_histSvc

ServiceHandle<ITHistSvc> AthHistogramAlgorithm::m_histSvc
privateinherited

Default constructor: AthHistogramAlgorithm();.

a handle on the Hist/TTree registration service

Definition at line 83 of file AthHistogramAlgorithm.h.

◆ m_histTitlePostfix

std::string AthHistogramAlgorithm::m_histTitlePostfix
privateinherited

The postfix for the histogram THx title.

Definition at line 103 of file AthHistogramAlgorithm.h.

◆ m_histTitlePrefix

std::string AthHistogramAlgorithm::m_histTitlePrefix
privateinherited

The prefix for the histogram THx title.

Definition at line 100 of file AthHistogramAlgorithm.h.

◆ m_isMC

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

Definition at line 90 of file MSVtxValidationAlg.h.

◆ m_jet

ParticleBranchPtr_t MSVtxValidationAlg::m_jet {nullptr}
private

Definition at line 223 of file MSVtxValidationAlg.h.

◆ m_jet_actVtx_link

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

Definition at line 227 of file MSVtxValidationAlg.h.

◆ m_jet_N

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

Definition at line 224 of file MSVtxValidationAlg.h.

◆ m_jet_NactVtx

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

Definition at line 226 of file MSVtxValidationAlg.h.

◆ m_jet_triggers

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

Definition at line 225 of file MSVtxValidationAlg.h.

◆ 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 107 of file MSVtxValidationAlg.h.

◆ 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 106 of file MSVtxValidationAlg.h.

◆ m_JetKey

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

Definition at line 66 of file MSVtxValidationAlg.h.

◆ m_jetTriggerMatchingDR

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

Definition at line 86 of file MSVtxValidationAlg.h.

◆ m_llp

ParticleBranchPtr_t MSVtxValidationAlg::m_llp {nullptr}
private

Definition at line 164 of file MSVtxValidationAlg.h.

◆ 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 102 of file MSVtxValidationAlg.h.

◆ m_llp_N

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

Definition at line 165 of file MSVtxValidationAlg.h.

◆ m_llp_Nchildren

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

Definition at line 166 of file MSVtxValidationAlg.h.

◆ m_llp_NchildrenCharged

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

Definition at line 167 of file MSVtxValidationAlg.h.

◆ m_llpVtx_ctau

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

Definition at line 173 of file MSVtxValidationAlg.h.

◆ m_llpVtx_Lxy

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

Definition at line 172 of file MSVtxValidationAlg.h.

◆ m_llpVtx_N

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

Definition at line 171 of file MSVtxValidationAlg.h.

◆ m_llpVtx_pos

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

Definition at line 170 of file MSVtxValidationAlg.h.

◆ m_llpVtx_truthParticle_link

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

Definition at line 174 of file MSVtxValidationAlg.h.

◆ m_matchingTool

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

Definition at line 77 of file MSVtxValidationAlg.h.

◆ m_met

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

Definition at line 243 of file MSVtxValidationAlg.h.

◆ m_met_phi

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

Definition at line 246 of file MSVtxValidationAlg.h.

◆ m_met_x

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

Definition at line 244 of file MSVtxValidationAlg.h.

◆ m_met_y

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

Definition at line 245 of file MSVtxValidationAlg.h.

◆ m_MetKey

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

Definition at line 67 of file MSVtxValidationAlg.h.

◆ m_msg

MsgStream AthHistogramming::m_msg
privateinherited

Cached Message Stream.

Definition at line 248 of file AthHistogramming.h.

◆ m_msVtx_chi2

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

Definition at line 179 of file MSVtxValidationAlg.h.

◆ m_msVtx_isoJets_mindR

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

Definition at line 204 of file MSVtxValidationAlg.h.

◆ m_msVtx_isoTracks_mindR

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

Definition at line 202 of file MSVtxValidationAlg.h.

◆ m_msVtx_isoTracks_pTsum

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

Definition at line 203 of file MSVtxValidationAlg.h.

◆ m_msVtx_N

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

Definition at line 178 of file MSVtxValidationAlg.h.

◆ m_msVtx_nDoF

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

Definition at line 180 of file MSVtxValidationAlg.h.

◆ m_msVtx_nMDT

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

Definition at line 183 of file MSVtxValidationAlg.h.

◆ m_msVtx_nMDT_E

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

Definition at line 186 of file MSVtxValidationAlg.h.

◆ m_msVtx_nMDT_I

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

Definition at line 185 of file MSVtxValidationAlg.h.

◆ m_msVtx_nMDT_inwards

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

Definition at line 184 of file MSVtxValidationAlg.h.

◆ m_msVtx_nMDT_M

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

Definition at line 187 of file MSVtxValidationAlg.h.

◆ m_msVtx_nMDT_O

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

Definition at line 188 of file MSVtxValidationAlg.h.

◆ m_msVtx_nRPC

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

Definition at line 189 of file MSVtxValidationAlg.h.

◆ m_msVtx_nRPC_E

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

Definition at line 192 of file MSVtxValidationAlg.h.

◆ m_msVtx_nRPC_I

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

Definition at line 191 of file MSVtxValidationAlg.h.

◆ m_msVtx_nRPC_inwards

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

Definition at line 190 of file MSVtxValidationAlg.h.

◆ m_msVtx_nRPC_M

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

Definition at line 193 of file MSVtxValidationAlg.h.

◆ m_msVtx_nRPC_O

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

Definition at line 194 of file MSVtxValidationAlg.h.

◆ m_msVtx_nTGC

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

Definition at line 195 of file MSVtxValidationAlg.h.

◆ m_msVtx_nTGC_E

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

Definition at line 198 of file MSVtxValidationAlg.h.

◆ m_msVtx_nTGC_I

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

Definition at line 197 of file MSVtxValidationAlg.h.

◆ m_msVtx_nTGC_inwards

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

Definition at line 196 of file MSVtxValidationAlg.h.

◆ m_msVtx_nTGC_M

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

Definition at line 199 of file MSVtxValidationAlg.h.

◆ m_msVtx_nTGC_O

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

Definition at line 200 of file MSVtxValidationAlg.h.

◆ m_msVtx_Ntrklet

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

Definition at line 181 of file MSVtxValidationAlg.h.

◆ m_msVtx_pos

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

Definition at line 177 of file MSVtxValidationAlg.h.

◆ m_MSVtxKey

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

Definition at line 70 of file MSVtxValidationAlg.h.

◆ m_muonSeg

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

Definition at line 220 of file MSVtxValidationAlg.h.

◆ m_MuonSegKey

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

Definition at line 68 of file MSVtxValidationAlg.h.

◆ m_name

std::string AthHistogramming::m_name
privateinherited

Instance name.

Definition at line 245 of file AthHistogramming.h.

◆ m_pdgId_llp

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

Definition at line 101 of file MSVtxValidationAlg.h.

◆ m_pdgId_portal

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

Definition at line 100 of file MSVtxValidationAlg.h.

◆ m_portal

ParticleBranchPtr_t MSVtxValidationAlg::m_portal {nullptr}
private

Definition at line 160 of file MSVtxValidationAlg.h.

◆ m_portal_N

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

Definition at line 161 of file MSVtxValidationAlg.h.

◆ 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 91 of file MSVtxValidationAlg.h.

◆ 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 105 of file MSVtxValidationAlg.h.

◆ m_streamName

std::string AthHistogramming::m_streamName
privateinherited

Name of the ROOT output stream (file)

Definition at line 226 of file AthHistogramming.h.

◆ m_sumEt

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

Definition at line 247 of file MSVtxValidationAlg.h.

◆ 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 104 of file MSVtxValidationAlg.h.

◆ m_TrackletKey

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

Definition at line 69 of file MSVtxValidationAlg.h.

◆ m_TrackParticleKey

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

Definition at line 65 of file MSVtxValidationAlg.h.

◆ m_tree

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

Definition at line 134 of file MSVtxValidationAlg.h.

◆ m_treeMap

TreeMap_t AthHistogramming::m_treeMap
privateinherited

The map of TTree names to their pointers.

Definition at line 215 of file AthHistogramming.h.

◆ m_trigDec

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

Definition at line 76 of file MSVtxValidationAlg.h.

◆ m_triggerStringJets

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

Definition at line 85 of file MSVtxValidationAlg.h.

◆ m_trklet_d0

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

Definition at line 210 of file MSVtxValidationAlg.h.

◆ m_trklet_eta

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

Definition at line 213 of file MSVtxValidationAlg.h.

◆ m_trklet_mom

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

Definition at line 208 of file MSVtxValidationAlg.h.

◆ m_trklet_N

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

Definition at line 209 of file MSVtxValidationAlg.h.

◆ m_trklet_phi

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

Definition at line 214 of file MSVtxValidationAlg.h.

◆ m_trklet_pos

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

Definition at line 207 of file MSVtxValidationAlg.h.

◆ m_trklet_q

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

Definition at line 216 of file MSVtxValidationAlg.h.

◆ m_trklet_qOverP

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

Definition at line 215 of file MSVtxValidationAlg.h.

◆ m_trklet_theta

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

Definition at line 212 of file MSVtxValidationAlg.h.

◆ m_trklet_vtxLink

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

Definition at line 217 of file MSVtxValidationAlg.h.

◆ m_trklet_z0

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

Definition at line 211 of file MSVtxValidationAlg.h.

◆ m_truthParticle

ParticleBranchPtr_t MSVtxValidationAlg::m_truthParticle {nullptr}
private

Definition at line 151 of file MSVtxValidationAlg.h.

◆ m_truthParticle_actVtx_link

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

Definition at line 154 of file MSVtxValidationAlg.h.

◆ 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 155 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 152 of file MSVtxValidationAlg.h.

◆ 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 153 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 156 of file MSVtxValidationAlg.h.

◆ 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 157 of file MSVtxValidationAlg.h.

◆ m_TruthParticleKey

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

Definition at line 63 of file MSVtxValidationAlg.h.

◆ m_TruthVertexKey

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

Definition at line 64 of file MSVtxValidationAlg.h.

◆ m_truthVtx_interactionType

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

Definition at line 144 of file MSVtxValidationAlg.h.

◆ m_truthVtx_Nchildren

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

Definition at line 146 of file MSVtxValidationAlg.h.

◆ m_truthVtx_NchildrenCharged

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

Definition at line 147 of file MSVtxValidationAlg.h.

◆ m_truthVtx_NchildrenDirect

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

Definition at line 145 of file MSVtxValidationAlg.h.

◆ m_truthVtx_pos

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

Definition at line 142 of file MSVtxValidationAlg.h.

◆ m_truthVtx_status

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

Definition at line 143 of file MSVtxValidationAlg.h.

◆ m_truthVtx_truthParticle_link

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

Definition at line 148 of file MSVtxValidationAlg.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
AthHistogramming::m_rootDir
std::string m_rootDir
Name of the ROOT directory.
Definition: AthHistogramming.h:229
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
MSVtxValidationAlg::fillActiveVertices
StatusCode fillActiveVertices(const EventContext &ctx, const xAOD::Jet *jet)
Definition: MSVtxValidationAlg.cxx:341
AthHistogramming::histSvc
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
Definition: AthHistogramming.h:421
AthHistogramAlgorithm::histSvc
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
Definition: AthHistogramAlgorithm.h:113
MSVtxValidationAlg::m_llpVtx_pos
MuonVal::ThreeVectorBranch m_llpVtx_pos
Definition: MSVtxValidationAlg.h:170
MSVtxValidationAlg::m_h_subleadLLPLz
TH1F * m_h_subleadLLPLz
Definition: MSVtxValidationAlg.h:260
MSVtxValidationAlg::m_truthVtx_truthParticle_link
MuonVal::MatrixBranch< int > & m_truthVtx_truthParticle_link
Definition: MSVtxValidationAlg.h:148
MSVtxValidationAlg::m_msVtx_nTGC
MuonVal::VectorBranch< int > & m_msVtx_nTGC
Definition: MSVtxValidationAlg.h:195
MSVtxValidationAlg::m_truthParticle_llpVtx_link_tmp
std::unique_ptr< std::vector< int > > m_truthParticle_llpVtx_link_tmp
Definition: MSVtxValidationAlg.h:153
MSVtxValidationAlg::m_trklet_q
MuonVal::VectorBranch< float > & m_trklet_q
Definition: MSVtxValidationAlg.h:216
MSVtxValidationAlg::m_softTrackIso_R
Gaudi::Property< float > m_softTrackIso_R
Definition: MSVtxValidationAlg.h:105
MSVtxValidationAlg::m_h_leadLLPpt
TH1F * m_h_leadLLPpt
Definition: MSVtxValidationAlg.h:258
MSVtxValidationAlg::m_MuonSegKey
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_MuonSegKey
Definition: MSVtxValidationAlg.h:68
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
AthHistogramming::myReplace
void myReplace(std::string &str, const std::string &oldStr, const std::string &newStr)
Helper method to replace sub-string.
Definition: AthHistogramming.cxx:590
AthHistogramming::m_msg
MsgStream m_msg
Cached Message Stream.
Definition: AthHistogramming.h:248
AthHistogramming::m_histMap
HistMap_t m_histMap
The map of histogram names to their pointers.
Definition: AthHistogramming.h:201
defaults::Int
constexpr int Int
Definition: MSVtxValidationAlg.h:44
MSVtxValidationAlg::m_readTriggers
Gaudi::Property< bool > m_readTriggers
Definition: MSVtxValidationAlg.h:91
MSVtxValidationAlg::m_truthParticle_truthVtx_link
MuonVal::VectorBranch< int > & m_truthParticle_truthVtx_link
Definition: MSVtxValidationAlg.h:156
MSVtxValidationAlgUtils::VtxIso::track_pTsum
double track_pTsum
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.h:61
runLayerRecalibration.chain
chain
Definition: runLayerRecalibration.py:175
MSVtxValidationAlg::m_msVtx_chi2
MuonVal::VectorBranch< float > & m_msVtx_chi2
Definition: MSVtxValidationAlg.h:179
MSVtxValidationAlg::m_tree
MuonVal::MuonTesterTree m_tree
Definition: MSVtxValidationAlg.h:134
AddEmptyComponent.histName
string histName
Definition: AddEmptyComponent.py:64
MSVtxValidationAlg::m_truthParticle_actVtx_link_tmp
std::unique_ptr< std::vector< int > > m_truthParticle_actVtx_link_tmp
Definition: MSVtxValidationAlg.h:155
MSVtxValidationAlg::m_muonSeg
std::shared_ptr< MuonPRDTest::SegmentVariables > m_muonSeg
Definition: MSVtxValidationAlg.h:220
MSVtxValidationAlg::m_portal
ParticleBranchPtr_t m_portal
Definition: MSVtxValidationAlg.h:160
AthHistogramAlgorithm::m_histSvc
ServiceHandle< ITHistSvc > m_histSvc
Default constructor: AthHistogramAlgorithm();.
Definition: AthHistogramAlgorithm.h:83
MSVtxValidationAlg::fillTruthParticle
StatusCode fillTruthParticle(const EventContext &ctx)
Definition: MSVtxValidationAlg.cxx:126
MuonVal::MuonTesterTree::init
StatusCode init(OWNER *instance)
Initialize method.
MSVtxValidationAlg::m_actVtx_jet_dPhi
MuonVal::VectorBranch< float > & m_actVtx_jet_dPhi
Definition: MSVtxValidationAlg.h:239
MSVtxValidationAlg::fillTruth
StatusCode fillTruth(const EventContext &ctx)
Definition: MSVtxValidationAlg.cxx:118
MSVtxValidationAlg::getTriggerMatchingDecision
bool getTriggerMatchingDecision(const T *object, TriggerInfo &triggerInfo, float dRmatching)
Definition: MSVtxValidationAlg.cxx:326
AthHistogramming::book
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
Definition: AthHistogramming.h:303
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
MSVtxValidationAlg::m_truthParticle_truthVtx_link_tmp
std::unique_ptr< std::vector< int > > m_truthParticle_truthVtx_link_tmp
Definition: MSVtxValidationAlg.h:157
MSVtxValidationAlg::m_h_subleadLLPctau
TH1F * m_h_subleadLLPctau
Definition: MSVtxValidationAlg.h:261
MSVtxValidationAlg::m_computeVertexIso
Gaudi::Property< bool > m_computeVertexIso
Definition: MSVtxValidationAlg.h:98
MSVtxValidationAlg::m_actVtx_pT
MuonVal::VectorBranch< float > & m_actVtx_pT
Definition: MSVtxValidationAlg.h:235
MSVtxValidationAlg::m_portal_N
MuonVal::ScalarBranch< int > & m_portal_N
Definition: MSVtxValidationAlg.h:161
Trk::ParametersT
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
Definition: EMErrorDetail.h:25
MSVtxValidationAlg::m_truthVtx_NchildrenCharged
MuonVal::VectorBranch< int > & m_truthVtx_NchildrenCharged
Definition: MSVtxValidationAlg.h:147
MSVtxValidationAlg::m_TrackParticleKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackParticleKey
Definition: MSVtxValidationAlg.h:65
MSVtxValidationAlgUtils::VtxIso::track_mindR
double track_mindR
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.h:60
MSVtxValidationAlg::m_msVtx_nTGC_M
MuonVal::VectorBranch< int > & m_msVtx_nTGC_M
Definition: MSVtxValidationAlg.h:199
MSVtxValidationAlg::m_msVtx_Ntrklet
MuonVal::VectorBranch< int > & m_msVtx_Ntrklet
Definition: MSVtxValidationAlg.h:181
MSVtxValidationAlg::m_met_y
MuonVal::ScalarBranch< float > & m_met_y
Definition: MSVtxValidationAlg.h:245
MSVtxValidationAlg::m_msVtx_nRPC_M
MuonVal::VectorBranch< int > & m_msVtx_nRPC_M
Definition: MSVtxValidationAlg.h:193
MSVtxValidationAlgUtils::getCTau
double getCTau(const xAOD::TruthVertex *decVtx)
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.cxx:10
MSVtxValidationAlg::m_met_phi
MuonVal::ScalarBranch< float > & m_met_phi
Definition: MSVtxValidationAlg.h:246
skel.it
it
Definition: skel.GENtoEVGEN.py:407
MSVtxValidationAlg::m_msVtx_nRPC_E
MuonVal::VectorBranch< int > & m_msVtx_nRPC_E
Definition: MSVtxValidationAlg.h:192
AthHistogramAlgorithm::m_prefix
std::string m_prefix
Name of the ROOT output stream (file)
Definition: AthHistogramAlgorithm.h:88
MSVtxValidationAlg::m_actVtx_jet_dEta
MuonVal::VectorBranch< float > & m_actVtx_jet_dEta
Definition: MSVtxValidationAlg.h:238
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
MSVtxValidationAlg::m_llpVtx_Lxy
MuonVal::VectorBranch< float > & m_llpVtx_Lxy
Definition: MSVtxValidationAlg.h:172
defineDB.jets
jets
Definition: JetTagCalibration/share/defineDB.py:24
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
ParticleTest.tp
tp
Definition: ParticleTest.py:25
MSVtxValidationAlg::m_jet_actVtx_link
MuonVal::MatrixBranch< int > & m_jet_actVtx_link
Definition: MSVtxValidationAlg.h:227
MSVtxValidationAlg::fillMSVtx
StatusCode fillMSVtx(const EventContext &ctx)
Definition: MSVtxValidationAlg.cxx:428
MSVtxValidationAlg::m_JetKey
SG::ReadHandleKey< xAOD::JetContainer > m_JetKey
Definition: MSVtxValidationAlg.h:66
AthHistogramAlgorithm::m_histNamePrefix
std::string m_histNamePrefix
The prefix for the histogram THx name.
Definition: AthHistogramAlgorithm.h:94
MSVtxValidationAlg::m_llpVtx_N
MuonVal::ScalarBranch< int > & m_llpVtx_N
Definition: MSVtxValidationAlg.h:171
defaults::Float
constexpr float Float
Definition: MSVtxValidationAlg.h:45
AthHistogramAlgorithm::m_histTitlePrefix
std::string m_histTitlePrefix
The prefix for the histogram THx title.
Definition: AthHistogramAlgorithm.h:100
MSVtxValidationAlg::m_truthParticle
ParticleBranchPtr_t m_truthParticle
Definition: MSVtxValidationAlg.h:151
MSVtxValidationAlg::m_msVtx_nMDT_M
MuonVal::VectorBranch< int > & m_msVtx_nMDT_M
Definition: MSVtxValidationAlg.h:187
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
MSVtxValidationAlg::m_MSVtxKey
SG::ReadHandleKey< xAOD::VertexContainer > m_MSVtxKey
Definition: MSVtxValidationAlg.h:70
MSVtxValidationAlgUtils::VtxIso
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.h:59
MSVtxValidationAlg::m_truthVtx_status
MuonVal::VectorBranch< int > & m_truthVtx_status
Definition: MSVtxValidationAlg.h:143
MSVtxValidationAlg::m_msVtx_nTGC_inwards
MuonVal::VectorBranch< int > & m_msVtx_nTGC_inwards
Definition: MSVtxValidationAlg.h:196
MSVtxValidationAlg::m_actVtx_mass
MuonVal::VectorBranch< float > & m_actVtx_mass
Definition: MSVtxValidationAlg.h:234
MSVtxValidationAlg::m_trackIso_pT
Gaudi::Property< float > m_trackIso_pT
Definition: MSVtxValidationAlg.h:104
MSVtxValidationAlg::m_jet
ParticleBranchPtr_t m_jet
Definition: MSVtxValidationAlg.h:223
AthHistogramming::m_histNamePostfix
std::string m_histNamePostfix
The postfix for the histogram THx name.
Definition: AthHistogramming.h:235
MSVtxValidationAlg::m_msVtx_nTGC_E
MuonVal::VectorBranch< int > & m_msVtx_nTGC_E
Definition: MSVtxValidationAlg.h:198
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
H5Utils::getTree
std::string getTree(const std::string &file_name)
Definition: getTree.cxx:36
MSVtxValidationAlg::fillJet
StatusCode fillJet(const EventContext &ctx)
Definition: MSVtxValidationAlg.cxx:286
MSVtxValidationAlg::m_met_x
MuonVal::ScalarBranch< float > & m_met_x
Definition: MSVtxValidationAlg.h:244
xAOD::TruthVertex_v1::v4
FourVec_t v4() const
The full 4-vector of the vertex.
Definition: TruthVertex_v1.cxx:185
MSVtxValidationAlg::m_trklet_z0
MuonVal::VectorBranch< float > & m_trklet_z0
Definition: MSVtxValidationAlg.h:211
MSVtxValidationAlg::m_msVtx_isoJets_mindR
MuonVal::VectorBranch< float > & m_msVtx_isoJets_mindR
Definition: MSVtxValidationAlg.h:204
MSVtxValidationAlg::m_met
MuonVal::ScalarBranch< float > & m_met
Definition: MSVtxValidationAlg.h:243
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
MSVtxValidationAlg::m_llpVtx_truthParticle_link
MuonVal::MatrixBranch< int > & m_llpVtx_truthParticle_link
Definition: MSVtxValidationAlg.h:174
MSVtxValidationAlg::m_truthVtx_Nchildren
MuonVal::VectorBranch< int > & m_truthVtx_Nchildren
Definition: MSVtxValidationAlg.h:146
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
MSVtxValidationAlg::m_msVtx_nRPC_I
MuonVal::VectorBranch< int > & m_msVtx_nRPC_I
Definition: MSVtxValidationAlg.h:191
MuonVal::ThreeVectorBranch::push_back
void push_back(const Amg::Vector3D &vec)
interface using the Amg::Vector3D
Definition: ThreeVectorBranch.cxx:23
MSVtxValidationAlg::m_llp_Nchildren
MuonVal::VectorBranch< int > & m_llp_Nchildren
Definition: MSVtxValidationAlg.h:166
MSVtxValidationAlg::m_truthParticle_llpVtx_link
MuonVal::VectorBranch< int > & m_truthParticle_llpVtx_link
Definition: MSVtxValidationAlg.h:152
MSVtxValidationAlg::m_actVtx_energy
MuonVal::VectorBranch< float > & m_actVtx_energy
Definition: MSVtxValidationAlg.h:233
MSVtxValidationAlg::m_fillMET
Gaudi::Property< bool > m_fillMET
Definition: MSVtxValidationAlg.h:95
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
MSVtxValidationAlg::m_msVtx_nDoF
MuonVal::VectorBranch< int > & m_msVtx_nDoF
Definition: MSVtxValidationAlg.h:180
MuonVal::MatrixBranch::push_back
void push_back(size_t i, const T &value)
MSVtxValidationAlg::m_msVtx_nRPC
MuonVal::VectorBranch< int > & m_msVtx_nRPC
Definition: MSVtxValidationAlg.h:189
MSVtxValidationAlg::m_jet_triggers
MuonVal::VectorBranch< int > & m_jet_triggers
Definition: MSVtxValidationAlg.h:225
MSVtxValidationAlg::m_trklet_pos
MuonVal::ThreeVectorBranch m_trklet_pos
Definition: MSVtxValidationAlg.h:207
MSVtxValidationAlg::m_msVtx_nMDT_inwards
MuonVal::VectorBranch< int > & m_msVtx_nMDT_inwards
Definition: MSVtxValidationAlg.h:184
MSVtxValidationAlg::m_TruthVertexKey
SG::ReadHandleKey< xAOD::TruthVertexContainer > m_TruthVertexKey
Definition: MSVtxValidationAlg.h:64
MSVtxValidationAlg::m_trklet_theta
MuonVal::VectorBranch< float > & m_trklet_theta
Definition: MSVtxValidationAlg.h:212
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
MSVtxValidationAlg::m_pdgId_portal
Gaudi::Property< int > m_pdgId_portal
Definition: MSVtxValidationAlg.h:100
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthAlgorithm.cxx:66
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
MSVtxValidationAlg::m_llp
ParticleBranchPtr_t m_llp
Definition: MSVtxValidationAlg.h:164
MSVtxValidationAlg::m_jetIso_pT
Gaudi::Property< float > m_jetIso_pT
Definition: MSVtxValidationAlg.h:106
MSVtxValidationAlg::m_actVtx_jet_link
MuonVal::VectorBranch< int > & m_actVtx_jet_link
Definition: MSVtxValidationAlg.h:237
MSVtxValidationAlg::m_msVtx_N
MuonVal::ScalarBranch< int > & m_msVtx_N
Definition: MSVtxValidationAlg.h:178
MSVtxValidationAlg::m_llp_genStableChildren
Gaudi::Property< bool > m_llp_genStableChildren
Definition: MSVtxValidationAlg.h:102
lumiFormat.i
int i
Definition: lumiFormat.py:85
MSVtxValidationAlg::m_msVtx_isoTracks_pTsum
MuonVal::VectorBranch< float > & m_msVtx_isoTracks_pTsum
Definition: MSVtxValidationAlg.h:203
SG::get
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
Definition: ReadCondHandle.h:287
MSVtxValidationAlg::m_h_LLP1LLP2dR
TH1F * m_h_LLP1LLP2dR
Definition: MSVtxValidationAlg.h:253
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
MSVtxValidationAlg::m_emProcessEnum
std::unordered_set< int > m_emProcessEnum
Definition: MSVtxValidationAlg.h:141
MSVtxValidationAlg::m_truthVtx_NchildrenDirect
MuonVal::VectorBranch< int > & m_truthVtx_NchildrenDirect
Definition: MSVtxValidationAlg.h:145
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
MSVtxValidationAlg::m_msVtx_nMDT_O
MuonVal::VectorBranch< int > & m_msVtx_nMDT_O
Definition: MSVtxValidationAlg.h:188
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:37
MSVtxValidationAlg::m_msVtx_nTGC_I
MuonVal::VectorBranch< int > & m_msVtx_nTGC_I
Definition: MSVtxValidationAlg.h:197
MSVtxValidationAlg::m_sumEt
MuonVal::ScalarBranch< float > & m_sumEt
Definition: MSVtxValidationAlg.h:247
MSVtxValidationAlgUtils::comparePt
bool comparePt(const xAOD::TruthParticle *part1, const xAOD::TruthParticle *part2)
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.cxx:33
xAOD::TruthVertex_v1::perp
float perp() const
Vertex transverse distance from the beam line.
Definition: TruthVertex_v1.cxx:164
MSVtxValidationAlg::m_llp_NchildrenCharged
MuonVal::VectorBranch< int > & m_llp_NchildrenCharged
Definition: MSVtxValidationAlg.h:167
MSVtxValidationAlg::fillMSVtxIsolation
StatusCode fillMSVtxIsolation(const xAOD::Vertex *msVtx, const xAOD::TrackParticleContainer *tracks, const xAOD::JetContainer *jets)
Definition: MSVtxValidationAlg.cxx:494
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
dumpFileToPlots.treeName
string treeName
Definition: dumpFileToPlots.py:19
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthHistogramming::m_graphMap
GraphMap_t m_graphMap
The map of TGraph names to their pointers.
Definition: AthHistogramming.h:222
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
MSVtxValidationAlg::fillTruthVertex
StatusCode fillTruthVertex(const EventContext &ctx)
Definition: MSVtxValidationAlg.cxx:241
MSVtxValidationAlg::m_computeActiveVertices
Gaudi::Property< bool > m_computeActiveVertices
Definition: MSVtxValidationAlg.h:97
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
AthHistogramming::m_streamName
std::string m_streamName
Name of the ROOT output stream (file)
Definition: AthHistogramming.h:226
MSVtxValidationAlg::m_msVtx_nMDT
MuonVal::VectorBranch< int > & m_msVtx_nMDT
Definition: MSVtxValidationAlg.h:183
MSVtxValidationAlg::m_matchingTool
PublicToolHandle< Trig::R3MatchingTool > m_matchingTool
Definition: MSVtxValidationAlg.h:77
SG::AuxElement::index
size_t index() const
Return the index of this element within its container.
MSVtxValidationAlg::m_llp_N
MuonVal::ScalarBranch< int > & m_llp_N
Definition: MSVtxValidationAlg.h:165
AthHistogramming::configAthHistogramming
StatusCode configAthHistogramming(const ServiceHandle< ITHistSvc > &histSvc, const std::string &prefix, const std::string &rootDir, const std::string &histNamePrefix, const std::string &histNamePostfix, const std::string &histTitlePrefix, const std::string &histTitlePostfix)
To be called by the derived classes to fill the internal configuration.
Definition: AthHistogramming.cxx:66
MSVtxValidationAlg::m_trklet_d0
MuonVal::VectorBranch< float > & m_trklet_d0
Definition: MSVtxValidationAlg.h:210
DataVector
Derived DataVector<T>.
Definition: DataVector.h:795
AthHistogramming::hash_t
uint32_t hash_t
typedef for the internal hash
Definition: AthHistogramming.h:169
CxxUtils::crc64
uint64_t crc64(const CRCTable &table, const char *data, size_t data_len)
Find the CRC-64 of a string,.
Definition: crc64.cxx:696
MSVtxValidationAlg::m_actVtx_pos
MuonVal::ThreeVectorBranch m_actVtx_pos
Definition: MSVtxValidationAlg.h:230
MSVtxValidationAlg::m_jet_N
MuonVal::ScalarBranch< int > & m_jet_N
Definition: MSVtxValidationAlg.h:224
AthHistogramming::m_histTitlePostfix
std::string m_histTitlePostfix
The postfix for the histogram THx title.
Definition: AthHistogramming.h:241
MSVtxValidationAlg::m_actVtx_NChildren
MuonVal::VectorBranch< int > & m_actVtx_NChildren
Definition: MSVtxValidationAlg.h:231
MuonVal::VectorBranch::push_back
void push_back(const T &value)
Adds a new element at the end of the vector.
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
Trig::ChainGroup
Definition: ChainGroup.h:51
MSVtxValidationAlg::m_msVtx_isoTracks_mindR
MuonVal::VectorBranch< float > & m_msVtx_isoTracks_mindR
Definition: MSVtxValidationAlg.h:202
xAOD::TruthVertex_v1
Class describing a truth vertex in the MC record.
Definition: TruthVertex_v1.h:37
xAOD::MissingETContainer_v1
Container for xAOD::MissingET_v1 objects.
Definition: MissingETContainer_v1.h:21
MSVtxValidationAlg::m_msVtx_nMDT_E
MuonVal::VectorBranch< int > & m_msVtx_nMDT_E
Definition: MSVtxValidationAlg.h:186
MSVtxValidationAlg::m_jetIso_LogRatio
Gaudi::Property< float > m_jetIso_LogRatio
Definition: MSVtxValidationAlg.h:107
MSVtxValidationAlg::m_trklet_phi
MuonVal::VectorBranch< float > & m_trklet_phi
Definition: MSVtxValidationAlg.h:214
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
MET
Definition: MET.py:1
MSVtxValidationAlg::m_hadronicProcessEnum
std::unordered_set< int > m_hadronicProcessEnum
Definition: MSVtxValidationAlg.h:139
MSVtxValidationAlg::m_h_diLLPMass
TH1F * m_h_diLLPMass
Definition: MSVtxValidationAlg.h:254
MSVtxValidationAlg::m_TruthParticleKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_TruthParticleKey
Definition: MSVtxValidationAlg.h:63
MSVtxValidationAlg::m_trklet_vtxLink
MuonVal::VectorBranch< int > & m_trklet_vtxLink
Definition: MSVtxValidationAlg.h:217
MSVtxValidationAlgUtils::VtxIso::jet_mindR
double jet_mindR
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.h:62
AthHistogramming::hash
hash_t hash(const std::string &histName) const
Method to calculate a 32-bit hash from a string.
Definition: AthHistogramming.h:428
MSVtxValidationAlg::m_msVtx_nRPC_O
MuonVal::VectorBranch< int > & m_msVtx_nRPC_O
Definition: MSVtxValidationAlg.h:194
module_driven_slicing.getHist
def getHist(name, makehist)
Definition: module_driven_slicing.py:120
MSVtxValidationAlg::m_llpVtx_ctau
MuonVal::VectorBranch< float > & m_llpVtx_ctau
Definition: MSVtxValidationAlg.h:173
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MSVtxValidationAlg::m_pdgId_llp
Gaudi::Property< int > m_pdgId_llp
Definition: MSVtxValidationAlg.h:101
MSVtxValidationAlg::m_msVtx_nMDT_I
MuonVal::VectorBranch< int > & m_msVtx_nMDT_I
Definition: MSVtxValidationAlg.h:185
MSVtxValidationAlg::m_evtKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey
Definition: MSVtxValidationAlg.h:62
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:16
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
MSVtxValidationAlg::m_msVtx_pos
MuonVal::ThreeVectorBranch m_msVtx_pos
Definition: MSVtxValidationAlg.h:177
MSVtxValidationAlg::m_truthVtx_interactionType
MuonVal::VectorBranch< int > & m_truthVtx_interactionType
Definition: MSVtxValidationAlg.h:144
MSVtxValidationAlg::m_MetKey
SG::ReadHandleKey< xAOD::MissingETContainer > m_MetKey
Definition: MSVtxValidationAlg.h:67
xxh3::hash64
std::uint64_t hash64(const void *data, std::size_t size)
Passthrough to XXH3_64bits.
Definition: XXH.cxx:9
MSVtxValidationAlgUtils::getActiveVertices
std::vector< ActiveVertex > getActiveVertices(const xAOD::Jet *jet, const xAOD::TruthParticleContainer &truthParticles)
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.cxx:107
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
MSVtxValidationAlg::m_trigDec
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec
Definition: MSVtxValidationAlg.h:76
AthHistogramming::AthHistogramming
AthHistogramming(const std::string &name)
Constructor with parameters:
Definition: AthHistogramming.cxx:41
RTTAlgmain.branch
branch
Definition: RTTAlgmain.py:61
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
MSVtxValidationAlg::m_h_subleadLLPpt
TH1F * m_h_subleadLLPpt
Definition: MSVtxValidationAlg.h:262
MSVtxValidationAlg::m_truthVtx_pos
MuonVal::ThreeVectorBranch m_truthVtx_pos
Definition: MSVtxValidationAlg.h:142
a
TList * a
Definition: liststreamerinfos.cxx:10
AthHistogramming::m_effMap
EffMap_t m_effMap
The map of histogram names to their pointers.
Definition: AthHistogramming.h:208
MSVtxValidationAlg::getTriggerDecisions
TriggerInfo getTriggerDecisions(std::string triggerString)
Definition: MSVtxValidationAlg.cxx:310
MSVtxValidationAlg::m_trklet_eta
MuonVal::VectorBranch< float > & m_trklet_eta
Definition: MSVtxValidationAlg.h:213
h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
AthHistogramming::m_histTitlePrefix
std::string m_histTitlePrefix
The prefix for the histogram THx title.
Definition: AthHistogramming.h:238
MSVtxValidationAlgUtils::getStableChildren
std::vector< const xAOD::TruthParticle * > getStableChildren(const xAOD::TruthParticle *particle, bool findOnlyGenStable)
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.cxx:83
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
MSVtxValidationAlg::m_trklet_qOverP
MuonVal::VectorBranch< float > & m_trklet_qOverP
Definition: MSVtxValidationAlg.h:215
AthHistogramAlgorithm::m_histNamePostfix
std::string m_histNamePostfix
The postfix for the histogram THx name.
Definition: AthHistogramAlgorithm.h:97
MSVtxValidationAlgUtils::getIso
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)
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.cxx:153
xAOD::TruthVertex_v1::z
float z() const
Vertex longitudinal distance along the beam line form the origin.
MSVtxValidationAlg::m_msVtx_nTGC_O
MuonVal::VectorBranch< int > & m_msVtx_nTGC_O
Definition: MSVtxValidationAlg.h:200
AthHistogramming::m_treeMap
TreeMap_t m_treeMap
The map of TTree names to their pointers.
Definition: AthHistogramming.h:215
AthHistogramming::m_histNamePrefix
std::string m_histNamePrefix
The prefix for the histogram THx name.
Definition: AthHistogramming.h:232
MSVtxValidationAlg::m_triggerStringJets
Gaudi::Property< std::string > m_triggerStringJets
Definition: MSVtxValidationAlg.h:85
MSVtxValidationAlg::m_h_leadLLPLz
TH1F * m_h_leadLLPLz
Definition: MSVtxValidationAlg.h:256
MSVtxValidationAlg::fillHits
void fillHits(const xAOD::Vertex *vtx, const std::string &decorator_str, MuonVal::VectorBranch< int > &branch)
Definition: MSVtxValidationAlg.cxx:485
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
MuonVal::MuonTesterTree::fill
bool fill(const EventContext &ctx)
Fills the tree per call.
Definition: MuonTesterTree.cxx:89
MuonVal::MuonTesterTree::write
StatusCode write()
Finally write the TTree objects.
Definition: MuonTesterTree.cxx:178
AthHistogramAlgorithm::m_histTitlePostfix
std::string m_histTitlePostfix
The postfix for the histogram THx title.
Definition: AthHistogramAlgorithm.h:103
MSVtxValidationAlg::m_actVtx_chainDepth
MuonVal::VectorBranch< int > & m_actVtx_chainDepth
Definition: MSVtxValidationAlg.h:232
AthHistogramming::hist
TH1 * hist(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered histograms of any type.
Definition: AthHistogramming.cxx:198
MSVtxValidationAlgUtils::ActiveVertex
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.h:44
MSVtxValidationAlg::m_trklet_N
MuonVal::ScalarBranch< int > & m_trklet_N
Definition: MSVtxValidationAlg.h:209
AthHistogramming::m_histSvc
ServiceHandle< ITHistSvc > m_histSvc
Pointer to the THistSvc (event store by default)
Definition: AthHistogramming.h:194
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
dqt_zlumi_alleff_HIST.eff
int eff
Definition: dqt_zlumi_alleff_HIST.py:113
MSVtxValidationAlg::m_trklet_mom
MuonVal::ThreeVectorBranch m_trklet_mom
Definition: MSVtxValidationAlg.h:208
MSVtxValidationAlg::m_h_subleadLLPLxy
TH1F * m_h_subleadLLPLxy
Definition: MSVtxValidationAlg.h:259
MSVtxValidationAlg::m_actVtx_truthParticle_link
MuonVal::MatrixBranch< int > & m_actVtx_truthParticle_link
Definition: MSVtxValidationAlg.h:240
str
Definition: BTagTrackIpAccessor.cxx:11
MuonVal::VectorBranch::size
size_t size() const
Returns the number of actual saved elements.
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
MSVtxValidationAlg::m_msVtx_nRPC_inwards
MuonVal::VectorBranch< int > & m_msVtx_nRPC_inwards
Definition: MSVtxValidationAlg.h:190
MSVtxValidationAlg::m_actVtx_scalarPtSum
MuonVal::VectorBranch< float > & m_actVtx_scalarPtSum
Definition: MSVtxValidationAlg.h:236
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:44
xAOD::TruthParticle_v1::p4
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
Definition: TruthParticle_v1.cxx:191
MSVtxValidationAlg::m_h_leadLLPLxy
TH1F * m_h_leadLLPLxy
Definition: MSVtxValidationAlg.h:255
MSVtxValidationAlg::m_jetTriggerMatchingDR
Gaudi::Property< float > m_jetTriggerMatchingDR
Definition: MSVtxValidationAlg.h:86
MSVtxValidationAlg::m_dumpTruthVertices
Gaudi::Property< bool > m_dumpTruthVertices
Definition: MSVtxValidationAlg.h:94
AthHistogramming::m_name
std::string m_name
Instance name.
Definition: AthHistogramming.h:245
MSVtxValidationAlg::m_dumpTruthParticles
Gaudi::Property< bool > m_dumpTruthParticles
Definition: MSVtxValidationAlg.h:93
MSVtxValidationAlg::m_TrackletKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackletKey
Definition: MSVtxValidationAlg.h:69
MSVtxValidationAlg::fillLLP
StatusCode fillLLP(std::vector< const xAOD::TruthParticle * > &llps)
Definition: MSVtxValidationAlg.cxx:165
MSVtxValidationAlg::fillTracklets
StatusCode fillTracklets(const EventContext &ctx)
Definition: MSVtxValidationAlg.cxx:399
MSVtxValidationAlg::m_jet_NactVtx
MuonVal::VectorBranch< int > & m_jet_NactVtx
Definition: MSVtxValidationAlg.h:226
AthHistogramAlgorithm::m_rootDir
std::string m_rootDir
Name of the ROOT directory.
Definition: AthHistogramAlgorithm.h:91
MSVtxValidationAlg::fillMet
StatusCode fillMet(const EventContext &ctx)
Definition: MSVtxValidationAlg.cxx:385
fitman.k
k
Definition: fitman.py:528
MSVtxValidationAlg::m_fillJets
Gaudi::Property< bool > m_fillJets
Definition: MSVtxValidationAlg.h:96
MuonVal::MuonTesterTree::addBranch
bool addBranch(std::shared_ptr< IMuonTesterBranch > branch)
Branch is added to the tree without transferring the ownership.
Definition: MuonTesterTree.cxx:61
MSVtxValidationAlg::m_truthParticle_actVtx_link
MuonVal::VectorBranch< int > & m_truthParticle_actVtx_link
Definition: MSVtxValidationAlg.h:154
MSVtxValidationAlg::m_h_leadLLPctau
TH1F * m_h_leadLLPctau
Definition: MSVtxValidationAlg.h:257
AthHistogramming::buildBookingString
void buildBookingString(std::string &bookingString, std::string &histName, std::string &tDir, std::string &stream, bool usePrefixPostfix=false)
Method to build individual booking string.
Definition: AthHistogramming.cxx:560
ServiceHandle< ITHistSvc >
AthHistogramming::bookGetPointer
TH1 * bookGetPointer(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
Definition: AthHistogramming.h:260
MSVtxValidationAlg::m_isMC
Gaudi::Property< bool > m_isMC
Definition: MSVtxValidationAlg.h:90