ATLAS Offline Software
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:

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 > &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

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 fillMSVtx (const EventContext &ctx)
 
StatusCode fillMSVtxIso (const EventContext &ctx)
 
StatusCode fillTracklets (const EventContext &ctx)
 
StatusCode fillMuonSegments (const EventContext &ctx)
 
StatusCode fillJet (const EventContext &ctx)
 
StatusCode fillMet (const EventContext &ctx)
 
void fillHits (const xAOD::Vertex *vtx, const std::string &decorator_str, MuonVal::VectorBranch< int > &branch)
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &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::TrackParticleContainerm_TrackParticleKey {this, "TrackParticleKey", "InDetTrackParticles"}
 
SG::ReadHandleKey< xAOD::JetContainerm_JetKey {this, "JetKey", "STCalibAntiKt4EMTopoJets"}
 
SG::ReadHandleKey< xAOD::MissingETContainerm_MetKey {this, "MetKey", "STCalibMET"}
 
SG::ReadHandleKey< xAOD::TrackParticleContainerm_TrackletKey {this, "TrackletKey", "MSonlyTracklets"}
 
SG::ReadHandleKey< xAOD::VertexContainerm_MSVtxKey {this, "MSVertexKey", "MSDisplacedVertex"}
 
MuonVal::MuonTesterTree m_tree {"MSVtxValidTree", "MSVtxValidation"}
 
Gaudi::Property< std::string > m_MuonSegKey {this, "MuonSegmentsKey", "MuonSegments"}
 
Gaudi::Property< bool > m_readJets {this, "readJets", false, "add jet information to the tree"}
 
Gaudi::Property< bool > m_readMET {this, "readMET", false, "add met information to the tree"}
 
Gaudi::Property< bool > m_computeIso {this, "computeIso", 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< 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"}
 
std::shared_ptr< MuonVal::IParticleFourMomBranchm_portal {nullptr}
 
MuonVal::ScalarBranch< int > & m_portal_N {m_tree.newScalar<int>("portal_N",0)}
 
std::shared_ptr< MuonVal::IParticleFourMomBranchm_llp {nullptr}
 
MuonVal::ScalarBranch< int > & m_llp_N {m_tree.newScalar<int>("llp_N",0)}
 
MuonVal::VectorBranch< int > & m_llp_Nkids {m_tree.newVector<int>("llp_Nkids")}
 
MuonVal::VectorBranch< int > & m_llpKid_llpLink {m_tree.newVector<int>("llpKid_llpLink")}
 
MuonVal::VectorBranch< int > & m_llpKid_pdgid {m_tree.newVector<int>("llpKid_pdgid")}
 
std::shared_ptr< MuonVal::ThreeVectorBranchm_llpVtx {nullptr}
 
MuonVal::ScalarBranch< int > & m_llpVtx_N {m_tree.newScalar<int>("llpVtx_N",0)}
 
MuonVal::VectorBranch< float > & m_llpVtx_Lxy {m_tree.newVector<float>("llpVtx_Lxy")}
 
MuonVal::VectorBranch< float > & m_llpVtx_ctau {m_tree.newVector<float>("llpVtx_ctau")}
 
std::shared_ptr< MuonVal::ThreeVectorBranchm_msVtx {nullptr}
 
MuonVal::ScalarBranch< int > & m_msVtx_N {m_tree.newScalar<int>("msVtx_N",0)}
 
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")}
 
std::shared_ptr< MuonVal::ThreeVectorBranchm_trklet_pos {nullptr}
 
std::shared_ptr< MuonVal::ThreeVectorBranchm_trklet_mom {nullptr}
 
MuonVal::ScalarBranch< int > & m_trklet_N {m_tree.newScalar<int>("trklet_N",0)}
 
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}
 
std::shared_ptr< MuonVal::IParticleFourMomBranchm_jet {nullptr}
 
MuonVal::ScalarBranch< int > & m_jet_N {m_tree.newScalar<int>("jet_N",0)}
 
MuonVal::ScalarBranch< float > & m_met {m_tree.newScalar<float>("met",-1)}
 
MuonVal::ScalarBranch< float > & m_met_x {m_tree.newScalar<float>("met_X",-99999)}
 
MuonVal::ScalarBranch< float > & m_met_y {m_tree.newScalar<float>("met_Y",-99999)}
 
MuonVal::ScalarBranch< float > & m_met_phi {m_tree.newScalar<float>("met_phi",-99999)}
 
MuonVal::ScalarBranch< float > & m_sumEt {m_tree.newScalar<float>("sumEt",-1)}
 
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 37 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.

◆ 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 > &  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 > &  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 > &  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 > &  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 > &  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 353 of file MSVtxValidationAlg.cxx.

353  {
354  ATH_MSG_DEBUG ("Executing " << name() << "...");
355 
356  const EventContext& ctx = Gaudi::Hive::currentContext();
357 
358  // event variables
359  SG::ReadHandle eventInfo{m_evtKey, ctx};
360  ATH_CHECK(eventInfo.isPresent());
361  ATH_MSG_DEBUG("Start to run over event "<<eventInfo->eventNumber()<<" in run" <<eventInfo->runNumber());
362 
363  ATH_CHECK(fillTruth(ctx));
364  ATH_CHECK(fillJet(ctx));
365  ATH_CHECK(fillMet(ctx));
366  ATH_CHECK(fillTracklets(ctx));
367  ATH_CHECK(fillMSVtx(ctx));
368  ATH_CHECK(fillMSVtxIso(ctx));
369 
370  ATH_CHECK(m_tree.fill(ctx));
371 
372  return StatusCode::SUCCESS;
373 }

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

◆ fillHits()

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

Definition at line 273 of file MSVtxValidationAlg.cxx.

273  {
274  // fills branch with the number of hits close to the vertex. When the decorator is not available, the default integer value is used
275  const SG::AuxElement::Accessor<int> hits_acc(decorator_str);
276  if (hits_acc.isAvailable(*vtx)) branch.push_back(hits_acc(*vtx));
277 
278  return;
279 }

◆ fillJet()

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

Definition at line 215 of file MSVtxValidationAlg.cxx.

215  {
216  if (!m_readJets) return StatusCode::SUCCESS;
217 
219  ATH_CHECK(Jets.isPresent());
220 
221  m_jet_N = Jets->size();
222  for (const xAOD::Jet* jet : *Jets) m_jet->push_back(jet);
223 
224  return StatusCode::SUCCESS;
225 }

◆ fillMet()

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

Definition at line 228 of file MSVtxValidationAlg.cxx.

228  {
229  if (!m_readMET) return StatusCode::SUCCESS;
230 
232  ATH_CHECK(MET.isPresent());
233 
234  m_met = (*MET)["Final"]->met()/Gaudi::Units::GeV;
235  m_met_x = (*MET)["Final"]->mpx()/Gaudi::Units::GeV;
236  m_met_y = (*MET)["Final"]->mpy()/Gaudi::Units::GeV;
237  m_met_phi = (*MET)["Final"]->phi();
238  m_sumEt = (*MET)["Final"]->sumet()/Gaudi::Units::GeV;
239 
240  return StatusCode::SUCCESS;
241 }

◆ fillMSVtx()

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

Definition at line 282 of file MSVtxValidationAlg.cxx.

282  {
283  // Fill MS vertex branches
284  SG::ReadHandle MSVertices{m_MSVtxKey, ctx};
285  ATH_CHECK(MSVertices.isPresent());
286 
287  // fill MSVtx branches and histograms when the read handle is present
288  m_msVtx_N = MSVertices->size();
289  for(const xAOD::Vertex* msVtx : *MSVertices){
290  m_msVtx->push_back(msVtx->position());
291  m_msVtx_chi2.push_back(msVtx->chiSquared());
292  m_msVtx_nDoF.push_back(msVtx->numberDoF());
293 
294  // hits close to vertex: total, inwards of the vertex, inner layer, extended layer, middle layer, outer layer
295  fillHits(msVtx, "nMDT", m_msVtx_nMDT);
296  fillHits(msVtx, "nMDT_inwards", m_msVtx_nMDT_inwards);
297  fillHits(msVtx, "nMDT_I", m_msVtx_nMDT_I);
298  fillHits(msVtx, "nMDT_E", m_msVtx_nMDT_E);
299  fillHits(msVtx, "nMDT_M", m_msVtx_nMDT_M);
300  fillHits(msVtx, "nMDT_O", m_msVtx_nMDT_O);
301 
302  fillHits(msVtx, "nRPC", m_msVtx_nRPC);
303  fillHits(msVtx, "nRPC_inwards", m_msVtx_nRPC_inwards);
304  fillHits(msVtx, "nRPC_I", m_msVtx_nRPC_I);
305  fillHits(msVtx, "nRPC_E", m_msVtx_nRPC_E);
306  fillHits(msVtx, "nRPC_M", m_msVtx_nRPC_M);
307  fillHits(msVtx, "nRPC_O", m_msVtx_nRPC_O);
308 
309  fillHits(msVtx, "nTGC", m_msVtx_nTGC);
310  fillHits(msVtx, "nTGC_inwards", m_msVtx_nTGC_inwards);
311  fillHits(msVtx, "nTGC_I", m_msVtx_nTGC_I);
312  fillHits(msVtx, "nTGC_E", m_msVtx_nTGC_E);
313  fillHits(msVtx, "nTGC_M", m_msVtx_nTGC_M);
314  fillHits(msVtx, "nTGC_O", m_msVtx_nTGC_O);
315 
316  // set a linking index for each tracklet used in the reconstruction of the vertex
317  size_t nTrk = msVtx->nTrackParticles();
319 
320  for(size_t j=0; j<nTrk; ++j){
321  const xAOD::TrackParticle *consti = msVtx->trackParticle(j);
322  if (!consti) continue;
323  m_trklet_vtxLink[consti->index()] = msVtx->index();
324  }
325  }
326 
327  return StatusCode::SUCCESS;
328 }

◆ fillMSVtxIso()

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

Definition at line 331 of file MSVtxValidationAlg.cxx.

331  {
332  // Fill the isolation variables for the MS vertices
333  if (!m_computeIso) return StatusCode::SUCCESS;
334 
335  SG::ReadHandle MSVertices{m_MSVtxKey, ctx};
336  ATH_CHECK(MSVertices.isPresent());
338  ATH_CHECK(Tracks.isPresent());
340  ATH_CHECK(Jets.isPresent());
341 
342  for(const xAOD::Vertex* msVtx : *MSVertices){
347  }
348 
349  return StatusCode::SUCCESS;
350 }

◆ fillMuonSegments()

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

◆ fillTracklets()

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

Definition at line 244 of file MSVtxValidationAlg.cxx.

244  {
245 
246  SG::ReadHandle MSOnlyTracklets{m_TrackletKey , ctx};
247  ATH_CHECK(MSOnlyTracklets.isPresent());
248 
249  m_trklet_N = MSOnlyTracklets->size();
250  for(const xAOD::TrackParticle* mstrklet : *MSOnlyTracklets){
251  // perigee parameters
252  m_trklet_d0.push_back(mstrklet->d0());
253  m_trklet_z0.push_back(mstrklet->z0());
254  m_trklet_phi.push_back(mstrklet->phi());
255  m_trklet_theta.push_back(mstrklet->theta());
256  m_trklet_eta.push_back(mstrklet->eta());
257  m_trklet_qOverP.push_back(mstrklet->qOverP());
258  m_trklet_q.push_back(mstrklet->charge());
259  // cartesian parameters
260  const Trk::Perigee &tkl_perigee = mstrklet->perigeeParameters();
261  const Amg::Vector3D &trklet_pos = tkl_perigee.position();
262  const Amg::Vector3D &trklet_mom = tkl_perigee.momentum()/Gaudi::Units::GeV;
263  m_trklet_pos->push_back(trklet_pos);
264  m_trklet_mom->push_back(trklet_mom);
265  // set default link index to vertex to -1 and adjust when in fillMSVtx
267  }
268 
269  return StatusCode::SUCCESS;
270 }

◆ fillTruth()

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

Definition at line 133 of file MSVtxValidationAlg.cxx.

133  {
134  // Fill truth particle branches and histograms
136  ATH_CHECK(truth_particles.isPresent());
137 
138  // collect portal, LLPs
139  std::vector<const xAOD::TruthParticle*> portals{}, llps{};
140  for(const xAOD::TruthParticle* tp : *truth_particles){
141  if (!tp) continue;
142  // fill vector of portal particles, skipping the particle if it is a self-decay
143  if(std::abs(tp->pdgId()) == m_pdgId_portal && tp->parent()->pdgId() != tp->pdgId()) portals.push_back(tp);
144  // fill vector of LLPs
145  if(std::abs(tp->pdgId()) == m_pdgId_llp) llps.push_back(tp);
146  }
147 
148  // portal
149  m_portal_N = portals.size();
150  for(const xAOD::TruthParticle* portal : portals) m_portal->push_back(portal);
151 
152  // LLP and LLP children
153  m_llp_N = llps.size();
154  std::sort(llps.begin(), llps.end(), comparePt); // sort llps by pT
155  const xAOD::TruthParticle* leadLLP = nullptr;
156  const xAOD::TruthParticle* subleadLLP = nullptr;
157 
158  int num_vtx = 0;
159  for(unsigned int llp_idx=0; const xAOD::TruthParticle* llp : llps){
160  m_llp->push_back(llp);
161 
162  if(llp->hasDecayVtx()){
163  const xAOD::TruthVertex* decVtx = llp->decayVtx();
164  m_llpVtx->push_back(decVtx->v4().Vect());
165  m_llpVtx_Lxy.push_back(decVtx->perp());
167  ++num_vtx;
168  }
169 
170  // leading LLP
171  if(llp_idx==0){
172  if(llp->hasDecayVtx()){
173  const xAOD::TruthVertex* decVtx = llp->decayVtx();
174  m_h_leadLLPLxy->Fill(decVtx->perp());
175  m_h_leadLLPLz->Fill(decVtx->z());
176  m_h_leadLLPctau->Fill(getCTau(decVtx));
177  }
178  m_h_leadLLPpt->Fill(llp->pt()/Gaudi::Units::GeV);
179  leadLLP = llp;
180  }
181  // subleading llp
182  if(llp_idx==1){
183  if(llp->hasDecayVtx()){
184  const xAOD::TruthVertex* decVtx = llp->decayVtx();
185  m_h_subleadLLPLxy->Fill(decVtx->perp());
186  m_h_subleadLLPLz->Fill(decVtx->z());
187  m_h_subleadLLPctau->Fill(getCTau(decVtx));
188  }
189  m_h_subleadLLPpt->Fill(llp->pt()/Gaudi::Units::GeV);
190  subleadLLP = llp;
191 
192  // di-llp histograms
193  TLorentzVector llpSum = subleadLLP->p4()+leadLLP->p4();
194  m_h_LLP1LLP2dR->Fill(leadLLP->p4().DeltaR(subleadLLP->p4()));
195  m_h_diLLPMass->Fill(llpSum.E()/Gaudi::Units::GeV);
196  }
197 
198  // LLP children
199  if (llp->hasDecayVtx() && llp->nChildren()>0 && !llp->isGenStable()){
200  std::vector<const xAOD::TruthParticle*> genStableChildren = getGenStableChildren(llp);
201  m_llp_Nkids.push_back((int)genStableChildren.size());
202  for (const xAOD::TruthParticle *kid : genStableChildren){
203  m_llpKid_pdgid.push_back(kid->pdgId());
204  m_llpKid_llpLink.push_back(llp_idx);
205  }
206  }
207  ++llp_idx;
208  }
209  m_llpVtx_N = num_vtx;
210 
211  return StatusCode::SUCCESS;
212 }

◆ finalize()

StatusCode MSVtxValidationAlg::finalize ( )
finaloverridevirtual

Definition at line 376 of file MSVtxValidationAlg.cxx.

376  {
377  ATH_MSG_DEBUG ("Finalizing " << name() << "...");
379 
380  return StatusCode::SUCCESS;
381 }

◆ 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 16 of file MSVtxValidationAlg.cxx.

16  {
17  ATH_MSG_DEBUG ("Initializing " << name() << "...");
18 
22  ATH_CHECK(m_JetKey.initialize(m_readJets || m_computeIso));
23  ATH_CHECK(m_MetKey.initialize(m_readMET));
25  ATH_CHECK(m_MSVtxKey.initialize());
26 
27  // attach branches to the tree
28  m_tree.addBranch(std::make_unique<MuonVal::EventInfoBranch>(m_tree, 0));
29 
30  // portal
31  m_portal = std::make_shared<MuonVal::IParticleFourMomBranch>(m_tree, "portal");
32  m_portal->addVariableGeV<float>(default_f, "m");
34 
35  // LLP
36  m_llp = std::make_shared<MuonVal::IParticleFourMomBranch>(m_tree, "llp");
37  m_llp->addVariableGeV<float>(default_f, "m");
39 
40  // truth displaced vertex
41  m_llpVtx = std::make_shared<MuonVal::ThreeVectorBranch>(m_tree, "llpVtx_");
43 
44  // reconstructed MS vertex
45  m_msVtx = std::make_shared<MuonVal::ThreeVectorBranch>(m_tree, "msVtx_");
47  if (!m_computeIso){
48  m_tree.disableBranch("msVtx_isoTracks_mindR");
49  m_tree.disableBranch("msVtx_isoTracks_pTsum");
50  m_tree.disableBranch("msVtx_isoJets_mindR");
51  }
52 
53  // tracklets
54  m_trklet_pos = std::make_shared<MuonVal::ThreeVectorBranch>(m_tree, "trklet_pos");
55  m_trklet_mom = std::make_shared<MuonVal::ThreeVectorBranch>(m_tree, "trklet_mom");
58 
59  // muon segments: dumps the entire muon segment container without needing an explicit fill call
60  m_muonSeg = std::make_shared<MuonPRDTest::SegmentVariables>(m_tree, m_MuonSegKey, "muonSeg", msgLevel());
62 
63  // jets
64  if (m_readJets){
65  m_jet = std::make_shared<MuonVal::IParticleFourMomBranch>(m_tree, "jet");
66  m_jet->addVariableGeV<float>(default_f, "m");
68  }
69  else m_tree.disableBranch("jet_N");
70 
71  // met
72  if (!m_readMET){
73  m_tree.disableBranch("met");
74  m_tree.disableBranch("met_x");
75  m_tree.disableBranch("met_y");
76  m_tree.disableBranch("met_phi");
77  }
78 
79 
80  ATH_CHECK(m_tree.init(this));
81 
82  // --- //
83  // Book output histograms following the THistSvc recommendation on managing ownership. Register via histSvc()->regHist("/<stream>/histName", rawHistPtr); //
84  // --- //
85 
86  // llp pair
87  auto h_LLP1LLP2dR = std::make_unique<TH1F>("h_LLP1LLP2dR","h_LLP1LLP2dR; #Delta R(LLP1, LLP2); Count / bin",50,0,4);
88  m_h_LLP1LLP2dR = h_LLP1LLP2dR.get();
89  ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_LLP1LLP2dR", std::move(h_LLP1LLP2dR)));
90 
91  auto h_diLLPMass = std::make_unique<TH1F>("h_diLLPMass","h_diLLPMass; m_{LL1, LLP2} [GeV]; Count / bin",50,0,1000);
92  m_h_diLLPMass = h_diLLPMass.get();
93  ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_diLLPMass", std::move(h_diLLPMass)));
94 
95  // leading LLP
96  auto h_leadLLPLxy = std::make_unique<TH1F>("h_leadLLPLxy","h_leadLLPLxy; lead LLP L_{xy} [mm]; Count / bin",50,0,10000);
97  m_h_leadLLPLxy = h_leadLLPLxy.get();
98  ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_leadLLPLxy", std::move(h_leadLLPLxy)));
99 
100  auto h_leadLLPLz = std::make_unique<TH1F>("h_leadLLPLz","h_leadLLPLz; lead LLP L_{z} [mm]; Count / bin",50,0,14000);
101  m_h_leadLLPLz = h_leadLLPLz.get();
102  ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_leadLLPLz", std::move(h_leadLLPLz)));
103 
104  auto h_leadLLPctau = std::make_unique<TH1F>("h_leadLLPctau","h_leadLLPctau; lead LLP c#tau [mm]; Count / bin",50,0,2000);
105  m_h_leadLLPctau = h_leadLLPctau.get();
106  ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_leadLLPctau", std::move(h_leadLLPctau)));
107 
108  auto h_leadLLPpt = std::make_unique<TH1F>("h_leadLLPpt","h_leadLLPpt; lead LLP p_{T} [GeV]; Count / bin",50,0,400);
109  m_h_leadLLPpt = h_leadLLPpt.get();
110  ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_leadLLPpt", std::move(h_leadLLPpt)));
111 
112  // subleading LLP
113  auto h_subleadLLPLxy = std::make_unique<TH1F>("h_subleadLLPLxy","h_subleadLLPLxy; sublead LLP L_{xy} [mm]; Count / bin",50,0,10000);
114  m_h_subleadLLPLxy = h_subleadLLPLxy.get();
115  ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_subleadLLPLxy", std::move(h_subleadLLPLxy)));
116 
117  auto h_subleadLLPLz = std::make_unique<TH1F>("h_subleadLLPLz","h_subleadLLPLz; sublead LLP L_{z} [mm]; Count / bin",50,0,10000);
118  m_h_subleadLLPLz = h_subleadLLPLz.get();
119  ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_subleadLLPLz", std::move(h_subleadLLPLz)));
120 
121  auto h_subleadLLPctau = std::make_unique<TH1F>("h_subleadLLPctau","h_subleadLLPctau; sublead LLP c#tau [mm]; Count / bin",50,0,2000);
122  m_h_subleadLLPctau = h_subleadLLPctau.get();
123  ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_subleadLLPctau", std::move(h_subleadLLPctau)));
124 
125  auto h_subleadLLPpt = std::make_unique<TH1F>("h_subleadLLPpt","h_subleadLLPpt; sublead LLP p_{T} [GeV]; Count / bin",50,0,400);
126  m_h_subleadLLPpt = h_subleadLLPpt.get();
127  ATH_CHECK(histSvc()->regHist("/MSVtxValidation/h_subleadLLPpt", std::move(h_subleadLLPpt)));
128 
129  return StatusCode::SUCCESS;
130 }

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

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

Definition at line 63 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_effMap

EffMap_t AthHistogramming::m_effMap
privateinherited

The map of histogram names to their pointers.

Definition at line 208 of file AthHistogramming.h.

◆ m_evtKey

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

Definition at line 47 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_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 166 of file MSVtxValidationAlg.h.

◆ m_h_leadLLPctau

TH1F* MSVtxValidationAlg::m_h_leadLLPctau {nullptr}
private

Definition at line 169 of file MSVtxValidationAlg.h.

◆ m_h_leadLLPLxy

TH1F* MSVtxValidationAlg::m_h_leadLLPLxy {nullptr}
private

Definition at line 167 of file MSVtxValidationAlg.h.

◆ m_h_leadLLPLz

TH1F* MSVtxValidationAlg::m_h_leadLLPLz {nullptr}
private

Definition at line 168 of file MSVtxValidationAlg.h.

◆ m_h_leadLLPpt

TH1F* MSVtxValidationAlg::m_h_leadLLPpt {nullptr}
private

Definition at line 170 of file MSVtxValidationAlg.h.

◆ m_h_LLP1LLP2dR

TH1F* MSVtxValidationAlg::m_h_LLP1LLP2dR {nullptr}
private

Definition at line 165 of file MSVtxValidationAlg.h.

◆ m_h_subleadLLPctau

TH1F* MSVtxValidationAlg::m_h_subleadLLPctau {nullptr}
private

Definition at line 173 of file MSVtxValidationAlg.h.

◆ m_h_subleadLLPLxy

TH1F* MSVtxValidationAlg::m_h_subleadLLPLxy {nullptr}
private

Definition at line 171 of file MSVtxValidationAlg.h.

◆ m_h_subleadLLPLz

TH1F* MSVtxValidationAlg::m_h_subleadLLPLz {nullptr}
private

Definition at line 172 of file MSVtxValidationAlg.h.

◆ m_h_subleadLLPpt

TH1F* MSVtxValidationAlg::m_h_subleadLLPpt {nullptr}
private

Definition at line 174 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_jet

std::shared_ptr<MuonVal::IParticleFourMomBranch> MSVtxValidationAlg::m_jet {nullptr}
private

Definition at line 152 of file MSVtxValidationAlg.h.

◆ m_jet_N

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

Definition at line 153 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 70 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 69 of file MSVtxValidationAlg.h.

◆ m_JetKey

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

Definition at line 50 of file MSVtxValidationAlg.h.

◆ m_llp

std::shared_ptr<MuonVal::IParticleFourMomBranch> MSVtxValidationAlg::m_llp {nullptr}
private

Definition at line 93 of file MSVtxValidationAlg.h.

◆ m_llp_N

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

Definition at line 94 of file MSVtxValidationAlg.h.

◆ m_llp_Nkids

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

Definition at line 95 of file MSVtxValidationAlg.h.

◆ m_llpKid_llpLink

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

Definition at line 96 of file MSVtxValidationAlg.h.

◆ m_llpKid_pdgid

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

Definition at line 97 of file MSVtxValidationAlg.h.

◆ m_llpVtx

std::shared_ptr<MuonVal::ThreeVectorBranch> MSVtxValidationAlg::m_llpVtx {nullptr}
private

Definition at line 100 of file MSVtxValidationAlg.h.

◆ m_llpVtx_ctau

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

Definition at line 103 of file MSVtxValidationAlg.h.

◆ m_llpVtx_Lxy

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

Definition at line 102 of file MSVtxValidationAlg.h.

◆ m_llpVtx_N

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

Definition at line 101 of file MSVtxValidationAlg.h.

◆ m_met

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

Definition at line 155 of file MSVtxValidationAlg.h.

◆ m_met_phi

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

Definition at line 158 of file MSVtxValidationAlg.h.

◆ m_met_x

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

Definition at line 156 of file MSVtxValidationAlg.h.

◆ m_met_y

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

Definition at line 157 of file MSVtxValidationAlg.h.

◆ m_MetKey

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

Definition at line 51 of file MSVtxValidationAlg.h.

◆ m_msg

MsgStream AthHistogramming::m_msg
privateinherited

Cached Message Stream.

Definition at line 248 of file AthHistogramming.h.

◆ m_msVtx

std::shared_ptr<MuonVal::ThreeVectorBranch> MSVtxValidationAlg::m_msVtx {nullptr}
private

Definition at line 106 of file MSVtxValidationAlg.h.

◆ m_msVtx_chi2

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

Definition at line 108 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 133 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 131 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 132 of file MSVtxValidationAlg.h.

◆ m_msVtx_N

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

Definition at line 107 of file MSVtxValidationAlg.h.

◆ m_msVtx_nDoF

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

Definition at line 109 of file MSVtxValidationAlg.h.

◆ m_msVtx_nMDT

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

Definition at line 112 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 115 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 114 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 113 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 116 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 117 of file MSVtxValidationAlg.h.

◆ m_msVtx_nRPC

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

Definition at line 118 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 121 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 120 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 119 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 122 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 123 of file MSVtxValidationAlg.h.

◆ m_msVtx_nTGC

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

Definition at line 124 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 127 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 126 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 125 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 128 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 129 of file MSVtxValidationAlg.h.

◆ m_msVtx_Ntrklet

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

Definition at line 110 of file MSVtxValidationAlg.h.

◆ m_MSVtxKey

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

Definition at line 53 of file MSVtxValidationAlg.h.

◆ m_muonSeg

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

Definition at line 149 of file MSVtxValidationAlg.h.

◆ m_MuonSegKey

Gaudi::Property<std::string> MSVtxValidationAlg::m_MuonSegKey {this, "MuonSegmentsKey", "MuonSegments"}
private

Definition at line 59 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 66 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 65 of file MSVtxValidationAlg.h.

◆ m_portal

std::shared_ptr<MuonVal::IParticleFourMomBranch> MSVtxValidationAlg::m_portal {nullptr}
private

Definition at line 89 of file MSVtxValidationAlg.h.

◆ m_portal_N

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

Definition at line 90 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_readJets

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

Definition at line 61 of file MSVtxValidationAlg.h.

◆ m_readMET

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

Definition at line 62 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 68 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",-1)}
private

Definition at line 159 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 67 of file MSVtxValidationAlg.h.

◆ m_TrackletKey

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

Definition at line 52 of file MSVtxValidationAlg.h.

◆ m_TrackParticleKey

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

Definition at line 49 of file MSVtxValidationAlg.h.

◆ m_tree

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

Definition at line 56 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_trklet_d0

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

Definition at line 139 of file MSVtxValidationAlg.h.

◆ m_trklet_eta

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

Definition at line 142 of file MSVtxValidationAlg.h.

◆ m_trklet_mom

std::shared_ptr<MuonVal::ThreeVectorBranch> MSVtxValidationAlg::m_trklet_mom {nullptr}
private

Definition at line 137 of file MSVtxValidationAlg.h.

◆ m_trklet_N

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

Definition at line 138 of file MSVtxValidationAlg.h.

◆ m_trklet_phi

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

Definition at line 143 of file MSVtxValidationAlg.h.

◆ m_trklet_pos

std::shared_ptr<MuonVal::ThreeVectorBranch> MSVtxValidationAlg::m_trklet_pos {nullptr}
private

Definition at line 136 of file MSVtxValidationAlg.h.

◆ m_trklet_q

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

Definition at line 145 of file MSVtxValidationAlg.h.

◆ m_trklet_qOverP

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

Definition at line 144 of file MSVtxValidationAlg.h.

◆ m_trklet_theta

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

Definition at line 141 of file MSVtxValidationAlg.h.

◆ m_trklet_vtxLink

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

Definition at line 146 of file MSVtxValidationAlg.h.

◆ m_trklet_z0

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

Definition at line 140 of file MSVtxValidationAlg.h.

◆ m_TruthParticleKey

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

Definition at line 48 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:
MSVtxValidationAlg::m_llpKid_pdgid
MuonVal::VectorBranch< int > & m_llpKid_pdgid
Definition: MSVtxValidationAlg.h:97
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
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_h_subleadLLPLz
TH1F * m_h_subleadLLPLz
Definition: MSVtxValidationAlg.h:172
InDetGNNHardScatterSelection::getter_utils::Tracks
std::vector< const xAOD::TrackParticle * > Tracks
Definition: InnerDetector/InDetRecTools/InDetGNNHardScatterSelection/InDetGNNHardScatterSelection/CustomGetterUtils.h:49
MSVtxValidationAlg::m_msVtx_nTGC
MuonVal::VectorBranch< int > & m_msVtx_nTGC
Definition: MSVtxValidationAlg.h:124
MSVtxValidationAlg::m_trklet_q
MuonVal::VectorBranch< float > & m_trklet_q
Definition: MSVtxValidationAlg.h:145
MSVtxValidationAlg::m_softTrackIso_R
Gaudi::Property< float > m_softTrackIso_R
Definition: MSVtxValidationAlg.h:68
MSVtxValidationAlg::m_h_leadLLPpt
TH1F * m_h_leadLLPpt
Definition: MSVtxValidationAlg.h:170
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
MSVtxValidationAlgUtils::VtxIso::track_pTsum
double track_pTsum
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.h:40
MSVtxValidationAlg::m_msVtx_chi2
MuonVal::VectorBranch< float > & m_msVtx_chi2
Definition: MSVtxValidationAlg.h:108
MSVtxValidationAlg::m_tree
MuonVal::MuonTesterTree m_tree
Definition: MSVtxValidationAlg.h:56
AddEmptyComponent.histName
string histName
Definition: AddEmptyComponent.py:64
MSVtxValidationAlg::m_muonSeg
std::shared_ptr< MuonPRDTest::SegmentVariables > m_muonSeg
Definition: MSVtxValidationAlg.h:149
AthHistogramAlgorithm::m_histSvc
ServiceHandle< ITHistSvc > m_histSvc
Default constructor: AthHistogramAlgorithm();.
Definition: AthHistogramAlgorithm.h:83
MuonVal::MuonTesterTree::init
StatusCode init(OWNER *instance)
Initialize method.
MSVtxValidationAlgUtils::getGenStableChildren
std::vector< const xAOD::TruthParticle * > getGenStableChildren(const xAOD::TruthParticle *particle)
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.cxx:54
MSVtxValidationAlg::fillTruth
StatusCode fillTruth(const EventContext &ctx)
Definition: MSVtxValidationAlg.cxx:133
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_h_subleadLLPctau
TH1F * m_h_subleadLLPctau
Definition: MSVtxValidationAlg.h:173
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
MSVtxValidationAlg::m_portal_N
MuonVal::ScalarBranch< int > & m_portal_N
Definition: MSVtxValidationAlg.h:90
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
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_TrackParticleKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackParticleKey
Definition: MSVtxValidationAlg.h:49
MSVtxValidationAlgUtils::VtxIso::track_mindR
double track_mindR
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.h:39
MSVtxValidationAlg::m_msVtx_nTGC_M
MuonVal::VectorBranch< int > & m_msVtx_nTGC_M
Definition: MSVtxValidationAlg.h:128
MSVtxValidationAlg::m_llp_Nkids
MuonVal::VectorBranch< int > & m_llp_Nkids
Definition: MSVtxValidationAlg.h:95
Jets
Definition: Jets.py:1
MSVtxValidationAlg::m_msVtx_Ntrklet
MuonVal::VectorBranch< int > & m_msVtx_Ntrklet
Definition: MSVtxValidationAlg.h:110
MSVtxValidationAlg::m_met_y
MuonVal::ScalarBranch< float > & m_met_y
Definition: MSVtxValidationAlg.h:157
MSVtxValidationAlg::m_msVtx_nRPC_M
MuonVal::VectorBranch< int > & m_msVtx_nRPC_M
Definition: MSVtxValidationAlg.h:122
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:158
skel.it
it
Definition: skel.GENtoEVGEN.py:396
MSVtxValidationAlg::m_msVtx_nRPC_E
MuonVal::VectorBranch< int > & m_msVtx_nRPC_E
Definition: MSVtxValidationAlg.h:121
AthHistogramAlgorithm::m_prefix
std::string m_prefix
Name of the ROOT output stream (file)
Definition: AthHistogramAlgorithm.h:88
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:102
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
ParticleTest.tp
tp
Definition: ParticleTest.py:25
MSVtxValidationAlg::fillMSVtx
StatusCode fillMSVtx(const EventContext &ctx)
Definition: MSVtxValidationAlg.cxx:282
MSVtxValidationAlg::m_JetKey
SG::ReadHandleKey< xAOD::JetContainer > m_JetKey
Definition: MSVtxValidationAlg.h:50
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:101
AthHistogramAlgorithm::m_histTitlePrefix
std::string m_histTitlePrefix
The prefix for the histogram THx title.
Definition: AthHistogramAlgorithm.h:100
MSVtxValidationAlg::m_msVtx_nMDT_M
MuonVal::VectorBranch< int > & m_msVtx_nMDT_M
Definition: MSVtxValidationAlg.h:116
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
MSVtxValidationAlg::m_MSVtxKey
SG::ReadHandleKey< xAOD::VertexContainer > m_MSVtxKey
Definition: MSVtxValidationAlg.h:53
MSVtxValidationAlgUtils::VtxIso
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.h:38
MSVtxValidationAlg::m_msVtx_nTGC_inwards
MuonVal::VectorBranch< int > & m_msVtx_nTGC_inwards
Definition: MSVtxValidationAlg.h:125
MSVtxValidationAlg::m_trackIso_pT
Gaudi::Property< float > m_trackIso_pT
Definition: MSVtxValidationAlg.h:67
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:127
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:215
MSVtxValidationAlg::m_computeIso
Gaudi::Property< bool > m_computeIso
Definition: MSVtxValidationAlg.h:63
MSVtxValidationAlg::m_met_x
MuonVal::ScalarBranch< float > & m_met_x
Definition: MSVtxValidationAlg.h:156
xAOD::TruthVertex_v1::v4
FourVec_t v4() const
The full 4-vector of the vertex.
Definition: TruthVertex_v1.cxx:184
MSVtxValidationAlg::m_trklet_z0
MuonVal::VectorBranch< float > & m_trklet_z0
Definition: MSVtxValidationAlg.h:140
MSVtxValidationAlg::m_msVtx_isoJets_mindR
MuonVal::VectorBranch< float > & m_msVtx_isoJets_mindR
Definition: MSVtxValidationAlg.h:133
MSVtxValidationAlg::m_met
MuonVal::ScalarBranch< float > & m_met
Definition: MSVtxValidationAlg.h:155
MSVtxValidationAlg::m_llpVtx
std::shared_ptr< MuonVal::ThreeVectorBranch > m_llpVtx
Definition: MSVtxValidationAlg.h:100
MSVtxValidationAlg::m_jet
std::shared_ptr< MuonVal::IParticleFourMomBranch > m_jet
Definition: MSVtxValidationAlg.h:152
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
MSVtxValidationAlg::m_readMET
Gaudi::Property< bool > m_readMET
Definition: MSVtxValidationAlg.h:62
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
MSVtxValidationAlg::m_msVtx_nRPC_I
MuonVal::VectorBranch< int > & m_msVtx_nRPC_I
Definition: MSVtxValidationAlg.h:120
MSVtxValidationAlg::m_msVtx_nDoF
MuonVal::VectorBranch< int > & m_msVtx_nDoF
Definition: MSVtxValidationAlg.h:109
MSVtxValidationAlg::m_msVtx_nRPC
MuonVal::VectorBranch< int > & m_msVtx_nRPC
Definition: MSVtxValidationAlg.h:118
MSVtxValidationAlg::m_llpKid_llpLink
MuonVal::VectorBranch< int > & m_llpKid_llpLink
Definition: MSVtxValidationAlg.h:96
MSVtxValidationAlg::m_msVtx_nMDT_inwards
MuonVal::VectorBranch< int > & m_msVtx_nMDT_inwards
Definition: MSVtxValidationAlg.h:113
MSVtxValidationAlg::m_trklet_theta
MuonVal::VectorBranch< float > & m_trklet_theta
Definition: MSVtxValidationAlg.h:141
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
MSVtxValidationAlg::fillMSVtxIso
StatusCode fillMSVtxIso(const EventContext &ctx)
Definition: MSVtxValidationAlg.cxx:331
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
MSVtxValidationAlg::m_pdgId_portal
Gaudi::Property< int > m_pdgId_portal
Definition: MSVtxValidationAlg.h:65
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_portal
std::shared_ptr< MuonVal::IParticleFourMomBranch > m_portal
Definition: MSVtxValidationAlg.h:89
MSVtxValidationAlg::m_jetIso_pT
Gaudi::Property< float > m_jetIso_pT
Definition: MSVtxValidationAlg.h:69
MSVtxValidationAlg::m_msVtx_N
MuonVal::ScalarBranch< int > & m_msVtx_N
Definition: MSVtxValidationAlg.h:107
MSVtxValidationAlg::m_msVtx
std::shared_ptr< MuonVal::ThreeVectorBranch > m_msVtx
Definition: MSVtxValidationAlg.h:106
MSVtxValidationAlg::m_msVtx_isoTracks_pTsum
MuonVal::VectorBranch< float > & m_msVtx_isoTracks_pTsum
Definition: MSVtxValidationAlg.h:132
MuonVal::MuonTesterTree::disableBranch
void disableBranch(const std::string &br_name)
Skips the branch from being added to the tree.
Definition: MuonTesterTree.cxx:199
MSVtxValidationAlg::m_h_LLP1LLP2dR
TH1F * m_h_LLP1LLP2dR
Definition: MSVtxValidationAlg.h:165
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
MSVtxValidationAlg::m_msVtx_nMDT_O
MuonVal::VectorBranch< int > & m_msVtx_nMDT_O
Definition: MSVtxValidationAlg.h:117
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:126
MSVtxValidationAlg::m_sumEt
MuonVal::ScalarBranch< float > & m_sumEt
Definition: MSVtxValidationAlg.h:159
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:163
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
dumpFileToPlots.treeName
string treeName
Definition: dumpFileToPlots.py:20
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
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:112
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:94
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:139
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_jet_N
MuonVal::ScalarBranch< int > & m_jet_N
Definition: MSVtxValidationAlg.h:153
AthHistogramming::m_histTitlePostfix
std::string m_histTitlePostfix
The postfix for the histogram THx title.
Definition: AthHistogramming.h:241
MSVtxValidationAlg::m_trklet_pos
std::shared_ptr< MuonVal::ThreeVectorBranch > m_trklet_pos
Definition: MSVtxValidationAlg.h:136
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
MSVtxValidationAlg::m_msVtx_isoTracks_mindR
MuonVal::VectorBranch< float > & m_msVtx_isoTracks_mindR
Definition: MSVtxValidationAlg.h:131
xAOD::TruthVertex_v1
Class describing a truth vertex in the MC record.
Definition: TruthVertex_v1.h:37
MSVtxValidationAlg::m_msVtx_nMDT_E
MuonVal::VectorBranch< int > & m_msVtx_nMDT_E
Definition: MSVtxValidationAlg.h:115
MSVtxValidationAlg::m_jetIso_LogRatio
Gaudi::Property< float > m_jetIso_LogRatio
Definition: MSVtxValidationAlg.h:70
MSVtxValidationAlg::m_trklet_phi
MuonVal::VectorBranch< float > & m_trklet_phi
Definition: MSVtxValidationAlg.h:143
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
MET
Definition: MET.py:1
MSVtxValidationAlg::m_h_diLLPMass
TH1F * m_h_diLLPMass
Definition: MSVtxValidationAlg.h:166
MSVtxValidationAlg::m_TruthParticleKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_TruthParticleKey
Definition: MSVtxValidationAlg.h:48
MSVtxValidationAlg::m_trklet_vtxLink
MuonVal::VectorBranch< int > & m_trklet_vtxLink
Definition: MSVtxValidationAlg.h:146
MSVtxValidationAlgUtils::VtxIso::jet_mindR
double jet_mindR
Definition: MuonSpectrometer/MuonValidation/MuonVertexValidation/src/Utils.h:41
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:123
module_driven_slicing.getHist
def getHist(name, makehist)
Definition: module_driven_slicing.py:121
MSVtxValidationAlg::m_llpVtx_ctau
MuonVal::VectorBranch< float > & m_llpVtx_ctau
Definition: MSVtxValidationAlg.h:103
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:66
MSVtxValidationAlg::m_msVtx_nMDT_I
MuonVal::VectorBranch< int > & m_msVtx_nMDT_I
Definition: MSVtxValidationAlg.h:114
MSVtxValidationAlg::m_llp
std::shared_ptr< MuonVal::IParticleFourMomBranch > m_llp
Definition: MSVtxValidationAlg.h:93
MSVtxValidationAlg::m_evtKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey
Definition: MSVtxValidationAlg.h:47
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
MSVtxValidationAlg::m_MetKey
SG::ReadHandleKey< xAOD::MissingETContainer > m_MetKey
Definition: MSVtxValidationAlg.h:51
xxh3::hash64
std::uint64_t hash64(const void *data, std::size_t size)
Passthrough to XXH3_64bits.
Definition: XXH.cxx:9
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
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:174
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::m_trklet_eta
MuonVal::VectorBranch< float > & m_trklet_eta
Definition: MSVtxValidationAlg.h:142
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
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:144
AthHistogramAlgorithm::m_histNamePostfix
std::string m_histNamePostfix
The postfix for the histogram THx name.
Definition: AthHistogramAlgorithm.h:97
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:129
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_h_leadLLPLz
TH1F * m_h_leadLLPLz
Definition: MSVtxValidationAlg.h:168
MSVtxValidationAlg::fillHits
void fillHits(const xAOD::Vertex *vtx, const std::string &decorator_str, MuonVal::VectorBranch< int > &branch)
Definition: MSVtxValidationAlg.cxx:273
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
MuonVal::MuonTesterTree::fill
bool fill(const EventContext &ctx)
Fills the tree per call.
Definition: MuonTesterTree.cxx:89
MSVtxValidationAlg::m_trklet_mom
std::shared_ptr< MuonVal::ThreeVectorBranch > m_trklet_mom
Definition: MSVtxValidationAlg.h:137
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
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
MSVtxValidationAlg::m_trklet_N
MuonVal::ScalarBranch< int > & m_trklet_N
Definition: MSVtxValidationAlg.h:138
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_h_subleadLLPLxy
TH1F * m_h_subleadLLPLxy
Definition: MSVtxValidationAlg.h:171
str
Definition: BTagTrackIpAccessor.cxx:11
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
MSVtxValidationAlg::m_msVtx_nRPC_inwards
MuonVal::VectorBranch< int > & m_msVtx_nRPC_inwards
Definition: MSVtxValidationAlg.h:119
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
xAOD::TruthParticle_v1::p4
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
Definition: TruthParticle_v1.cxx:196
MSVtxValidationAlg::m_h_leadLLPLxy
TH1F * m_h_leadLLPLxy
Definition: MSVtxValidationAlg.h:167
MSVtxValidationAlg::m_MuonSegKey
Gaudi::Property< std::string > m_MuonSegKey
Definition: MSVtxValidationAlg.h:59
AthHistogramming::m_name
std::string m_name
Instance name.
Definition: AthHistogramming.h:245
MSVtxValidationAlg::m_TrackletKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackletKey
Definition: MSVtxValidationAlg.h:52
MSVtxValidationAlg::fillTracklets
StatusCode fillTracklets(const EventContext &ctx)
Definition: MSVtxValidationAlg.cxx:244
AthHistogramAlgorithm::m_rootDir
std::string m_rootDir
Name of the ROOT directory.
Definition: AthHistogramAlgorithm.h:91
MSVtxValidationAlg::m_readJets
Gaudi::Property< bool > m_readJets
Definition: MSVtxValidationAlg.h:61
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
MSVtxValidationAlgUtils::getIso
VtxIso getIso(const xAOD::Vertex *MSVtx, 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:92
MSVtxValidationAlg::fillMet
StatusCode fillMet(const EventContext &ctx)
Definition: MSVtxValidationAlg.cxx:228
fitman.k
k
Definition: fitman.py:528
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_h_leadLLPctau
TH1F * m_h_leadLLPctau
Definition: MSVtxValidationAlg.h:169
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