|
ATLAS Offline Software
|
#include <MSVtxValidationAlg.h>
|
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 |
|
|
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...
|
|
|
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...
|
|
|
SG::ReadHandleKey< xAOD::EventInfo > | m_evtKey {this, "EvtKey", "EventInfo"} |
|
SG::ReadHandleKey< xAOD::TruthParticleContainer > | m_TruthParticleKey {this, "TruthParticleKey", "TruthParticles"} |
|
SG::ReadHandleKey< xAOD::TrackParticleContainer > | m_TrackParticleKey {this, "TrackParticleKey", "InDetTrackParticles"} |
|
SG::ReadHandleKey< xAOD::JetContainer > | m_JetKey {this, "JetKey", "STCalibAntiKt4EMTopoJets"} |
|
SG::ReadHandleKey< xAOD::MissingETContainer > | m_MetKey {this, "MetKey", "STCalibMET"} |
|
SG::ReadHandleKey< xAOD::TrackParticleContainer > | m_TrackletKey {this, "TrackletKey", "MSonlyTracklets"} |
|
SG::ReadHandleKey< xAOD::VertexContainer > | m_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::IParticleFourMomBranch > | m_portal {nullptr} |
|
MuonVal::ScalarBranch< int > & | m_portal_N {m_tree.newScalar<int>("portal_N",0)} |
|
std::shared_ptr< MuonVal::IParticleFourMomBranch > | m_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::ThreeVectorBranch > | m_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::ThreeVectorBranch > | m_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::ThreeVectorBranch > | m_trklet_pos {nullptr} |
|
std::shared_ptr< MuonVal::ThreeVectorBranch > | m_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::SegmentVariables > | m_muonSeg {nullptr} |
|
std::shared_ptr< MuonVal::IParticleFourMomBranch > | m_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...
|
|
Definition at line 37 of file MSVtxValidationAlg.h.
◆ EffMap_t
◆ GraphMap_t
◆ hash_t
◆ HistMap_t
◆ StoreGateSvc_t
◆ TreeMap_t
◆ AthHistogramAlgorithm()
AthHistogramAlgorithm::AthHistogramAlgorithm |
Constructor with parameters:
Definition at line 40 of file AthHistogramAlgorithm.cxx.
43 "Handle to a THistSvc instance: it will be used to write "
44 "ROOT objects to ROOT files" );
47 declareProperty(
"RootStreamName",
m_prefix =
"/ANALYSIS",
"Name of the output ROOT stream (file) that the THistSvc uses");
49 "Name of the ROOT directory inside the ROOT file where the histograms will go");
◆ 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.
338 TEfficiency* effClone =
dynamic_cast< TEfficiency*
>(
eff.Clone() );
340 m_msg << MSG::ERROR <<
"Couldn't create a TEfficiency clone" <<
endmsg;
341 return StatusCode::FAILURE;
◆ 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.
306 TH1* histClone =
dynamic_cast< TH1*
>(
hist.Clone() );
308 m_msg << MSG::ERROR <<
"Couldn't create a TH1 clone" <<
endmsg;
309 return StatusCode::FAILURE;
311 return this->
book( *histClone, tDir,
stream );
◆ 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.
409 return StatusCode::SUCCESS;
413 return StatusCode::FAILURE;
◆ 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.
361 m_msg << MSG::ERROR <<
"Couldn't book a TEfficiency" <<
endmsg;
362 return StatusCode::FAILURE;
364 return StatusCode::SUCCESS;
◆ 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.
349 m_msg << MSG::ERROR <<
"Got a zero pointer to a TEfficiency" <<
endmsg;
350 return StatusCode::FAILURE;
◆ 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.
328 if ( !histPointer ) {
329 m_msg << MSG::ERROR <<
"Couldn't book a TH1" <<
endmsg;
330 return StatusCode::FAILURE;
332 return StatusCode::SUCCESS;
◆ 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.
317 m_msg << MSG::ERROR <<
"Got a zero pointer to a TH1" <<
endmsg;
318 return StatusCode::FAILURE;
◆ 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.
284 TEfficiency* histClone =
dynamic_cast< TEfficiency*
>(
hist.Clone() );
286 m_msg << MSG::ERROR <<
"Couldn't create a TEfficiency clone in bookGetPointer" <<
endmsg;
◆ 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.
430 const TGraph* graphPointer = &graphRef;
435 m_msg << MSG::WARNING
436 <<
"We got an invalid TGraph pointer in the BookGetPointer(TGraph*) method of the class" <<
m_name
442 std::string graphName = graphPointer->GetName();
443 const std::string graphTitle = graphPointer->GetTitle();
446 const hash_t graphHash = this->
hash(graphName);
447 GraphMap_t::const_iterator
it =
m_graphMap.find( graphHash );
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;
461 m_msg << MSG::WARNING
462 <<
"We couldn't clone the TGraph in the BookGetPointer(TGraph&) method of the class" <<
m_name
469 std::string bookingString(
"");
473 if ( !((
histSvc()->regGraph(bookingString, graphClone)).isSuccess()) )
475 m_msg << MSG::WARNING
476 <<
"Problem registering TGraph with name " << graphName
477 <<
", title " << graphTitle
483 m_graphMap.insert(
m_graphMap.end(), std::pair< const hash_t, TGraph* >( graphHash, graphClone ) );
◆ 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.
263 TH1* histClone =
dynamic_cast< TH1*
>(
hist.Clone() );
265 m_msg << MSG::ERROR <<
"Couldn't create a TH1 clone in bookGetPointer" <<
endmsg;
◆ 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.
315 const TTree* treePointer = &treeRef;
320 m_msg << MSG::WARNING
321 <<
"We got an invalid TTree pointer in the BookGetPointer(TTree*) method of the class" <<
m_name
327 std::string
treeName = treePointer->GetName();
328 const std::string treeTitle = treePointer->GetTitle();
332 TreeMap_t::const_iterator
it =
m_treeMap.find( treeHash );
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;
343 TTree* treeClone =
dynamic_cast< TTree*
>( treePointer->Clone(
treeName.c_str()) );
346 m_msg << MSG::WARNING
347 <<
"We couldn't clone the TTree in the BookGetPointer(TTree&) method of the class" <<
m_name
351 treeClone->SetTitle (treeTitle.c_str());
354 std::string bookingString(
"");
358 if ( !((
histSvc()->regTree(bookingString, treeClone)).isSuccess()) )
360 m_msg << MSG::WARNING
361 <<
"Problem registering TTree with name " <<
treeName
362 <<
", title " << treeTitle
368 m_treeMap.insert(
m_treeMap.end(), std::pair< const hash_t, TTree* >( treeHash, treeClone ) );
◆ 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.
149 std::string effName(effRef.GetName());
150 const std::string effTitle(effRef.GetTitle());
151 std::string bookingString(
"");
155 effRef.SetName(effName.c_str());
159 EffMap_t::const_iterator
it =
m_effMap.find( effHash );
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;
175 if ( !((
histSvc()->regEfficiency(bookingString, &effRef)).isSuccess()) )
177 m_msg << MSG::WARNING
178 <<
"Problem registering TEfficiency with name " << effName
180 <<
", title " << effTitle
188 m_effMap.insert(
m_effMap.end(), std::pair< const hash_t, TEfficiency* >( effHash, &effRef ) );
◆ 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.
296 m_msg << MSG::ERROR <<
"Got a zero pointer to a TEfficiency in bookGetPointer" <<
endmsg;
◆ 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.
101 std::string
histName(histRef.GetName());
102 const std::string histTitle(histRef.GetTitle());
103 std::string bookingString(
"");
111 HistMap_t::const_iterator
it =
m_histMap.find( histHash );
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;
127 if ( !((
histSvc()->regHist(bookingString, &histRef)).isSuccess()) )
129 m_msg << MSG::WARNING
130 <<
"Problem registering histogram with name " <<
histName
132 <<
", title " << histTitle
140 m_histMap.insert(
m_histMap.end(), std::pair< const hash_t, TH1* >( histHash, &histRef ) );
◆ 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.
275 m_msg << MSG::ERROR <<
"Got a zero pointer to a TH1 in bookGetPointer" <<
endmsg;
◆ 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.
569 if(
pos != std::string::npos){
576 if(usePrefixPostfix){
581 while(bookingString.find(
"//") != std::string::npos){
◆ 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.
79 return StatusCode::SUCCESS;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [6/6]
◆ 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.
256 EffMap_t::const_iterator
it =
m_effMap.find( effHash );
261 std::string effNameCopy = effName;
262 std::string tDirCopy = tDir;
263 std::string streamCopy =
stream;
266 std::string bookingString(
"");
269 TEfficiency* effPointer(NULL);
270 if ( !((
histSvc()->getEfficiency(bookingString, effPointer)).isSuccess()) )
273 std::string bookingString(
"");
276 if ( !((
histSvc()->getEfficiency(bookingString, effPointer)).isSuccess()) )
278 m_msg << MSG::WARNING
279 <<
"Problem retrieving the TEfficiency with name (including pre- and post-fixes) "
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;
288 m_effMap.insert(
m_effMap.end(), std::pair< const hash_t, TEfficiency* >( effHash, effPointer ) );
293 m_effMap.insert(
m_effMap.end(), std::pair< const hash_t, TEfficiency* >( effHash, effPointer ) );
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode MSVtxValidationAlg::execute |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 353 of file MSVtxValidationAlg.cxx.
356 const EventContext& ctx = Gaudi::Hive::currentContext();
361 ATH_MSG_DEBUG(
"Start to run over event "<<eventInfo->eventNumber()<<
" in run" <<eventInfo->runNumber());
372 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
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.
57 return Algorithm::extraOutputDeps();
◆ fillHits()
◆ fillJet()
StatusCode MSVtxValidationAlg::fillJet |
( |
const EventContext & |
ctx | ) |
|
|
private |
◆ fillMet()
StatusCode MSVtxValidationAlg::fillMet |
( |
const EventContext & |
ctx | ) |
|
|
private |
◆ fillMSVtx()
StatusCode MSVtxValidationAlg::fillMSVtx |
( |
const EventContext & |
ctx | ) |
|
|
private |
Definition at line 282 of file MSVtxValidationAlg.cxx.
290 m_msVtx->push_back(msVtx->position());
317 size_t nTrk = msVtx->nTrackParticles();
320 for(
size_t j=0; j<nTrk; ++j){
322 if (!consti)
continue;
327 return StatusCode::SUCCESS;
◆ fillMSVtxIso()
StatusCode MSVtxValidationAlg::fillMSVtxIso |
( |
const EventContext & |
ctx | ) |
|
|
private |
◆ fillMuonSegments()
StatusCode MSVtxValidationAlg::fillMuonSegments |
( |
const EventContext & |
ctx | ) |
|
|
private |
◆ fillTracklets()
StatusCode MSVtxValidationAlg::fillTracklets |
( |
const EventContext & |
ctx | ) |
|
|
private |
◆ fillTruth()
StatusCode MSVtxValidationAlg::fillTruth |
( |
const EventContext & |
ctx | ) |
|
|
private |
Definition at line 133 of file MSVtxValidationAlg.cxx.
139 std::vector<const xAOD::TruthParticle*> portals{}, llps{};
143 if(std::abs(
tp->pdgId()) ==
m_pdgId_portal &&
tp->parent()->pdgId() !=
tp->pdgId()) portals.push_back(
tp);
160 m_llp->push_back(llp);
162 if(llp->hasDecayVtx()){
172 if(llp->hasDecayVtx()){
183 if(llp->hasDecayVtx()){
193 TLorentzVector llpSum = subleadLLP->
p4()+leadLLP->
p4();
199 if (llp->hasDecayVtx() && llp->nChildren()>0 && !llp->isGenStable()){
211 return StatusCode::SUCCESS;
◆ finalize()
StatusCode MSVtxValidationAlg::finalize |
( |
| ) |
|
|
finaloverridevirtual |
◆ 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.
495 const hash_t graphHash = this->
hash(graphName);
498 GraphMap_t::const_iterator
it =
m_graphMap.find( graphHash );
503 std::string graphNameCopy = graphName;
504 std::string tDirCopy = tDir;
505 std::string streamCopy =
stream;
508 std::string bookingString(
"");
511 TGraph* graphPointer(NULL);
512 if ( !((
histSvc()->getGraph(bookingString, graphPointer)).isSuccess()) )
515 std::string bookingString(
"");
516 this->
buildBookingString( bookingString, graphNameCopy, tDirCopy, streamCopy,
false );
518 if ( !((
histSvc()->getGraph(bookingString, graphPointer)).isSuccess()) )
520 m_msg << MSG::WARNING
521 <<
"Problem retrieving the TGraph with name (including pre- and post-fixes) "
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;
530 m_graphMap.insert(
m_graphMap.end(), std::pair< const hash_t, TGraph* >( graphHash, graphPointer ) );
535 m_graphMap.insert(
m_graphMap.end(), std::pair< const hash_t, TGraph* >( graphHash, graphPointer ) );
◆ hash()
◆ 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.
204 HistMap_t::const_iterator
it =
m_histMap.find( histHash );
209 std::string histNameCopy =
histName;
210 std::string tDirCopy = tDir;
211 std::string streamCopy =
stream;
214 std::string bookingString(
"");
217 TH1* histPointer(NULL);
218 if ( !((
histSvc()->
getHist(bookingString, histPointer)).isSuccess()) )
221 std::string bookingString(
"");
224 if ( !((
histSvc()->
getHist(bookingString, histPointer)).isSuccess()) )
226 m_msg << MSG::WARNING
227 <<
"Problem retrieving the histogram with name (including pre- and post-fixes) "
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;
236 m_histMap.insert(
m_histMap.end(), std::pair< const hash_t, TH1* >( histHash, histPointer ) );
241 m_histMap.insert(
m_histMap.end(), std::pair< const hash_t, TH1* >( histHash, histPointer ) );
◆ 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.
376 <<
"Cannot get a 2-d histogram with name " <<
histName
377 <<
"... will probably seg-fault!" <<
endmsg;
381 return dynamic_cast<TH2*
>( th1Pointer );
◆ 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.
393 <<
"Cannot get a 3-d histogram with name " <<
histName
394 <<
"... will probably seg-fault!" <<
endmsg;
398 return dynamic_cast<TH3*
>( th1Pointer );
◆ histSvc()
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.
◆ initialize()
StatusCode MSVtxValidationAlg::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 16 of file MSVtxValidationAlg.cxx.
31 m_portal = std::make_shared<MuonVal::IParticleFourMomBranch>(
m_tree,
"portal");
32 m_portal->addVariableGeV<
float>(default_f,
"m");
36 m_llp = std::make_shared<MuonVal::IParticleFourMomBranch>(
m_tree,
"llp");
37 m_llp->addVariableGeV<
float>(default_f,
"m");
41 m_llpVtx = std::make_shared<MuonVal::ThreeVectorBranch>(
m_tree,
"llpVtx_");
45 m_msVtx = std::make_shared<MuonVal::ThreeVectorBranch>(
m_tree,
"msVtx_");
65 m_jet = std::make_shared<MuonVal::IParticleFourMomBranch>(
m_tree,
"jet");
66 m_jet->addVariableGeV<
float>(default_f,
"m");
87 auto h_LLP1LLP2dR = std::make_unique<TH1F>(
"h_LLP1LLP2dR",
"h_LLP1LLP2dR; #Delta R(LLP1, LLP2); Count / bin",50,0,4);
89 ATH_CHECK(
histSvc()->regHist(
"/MSVtxValidation/h_LLP1LLP2dR", std::move(h_LLP1LLP2dR)));
91 auto h_diLLPMass = std::make_unique<TH1F>(
"h_diLLPMass",
"h_diLLPMass; m_{LL1, LLP2} [GeV]; Count / bin",50,0,1000);
93 ATH_CHECK(
histSvc()->regHist(
"/MSVtxValidation/h_diLLPMass", std::move(h_diLLPMass)));
96 auto h_leadLLPLxy = std::make_unique<TH1F>(
"h_leadLLPLxy",
"h_leadLLPLxy; lead LLP L_{xy} [mm]; Count / bin",50,0,10000);
98 ATH_CHECK(
histSvc()->regHist(
"/MSVtxValidation/h_leadLLPLxy", std::move(h_leadLLPLxy)));
100 auto h_leadLLPLz = std::make_unique<TH1F>(
"h_leadLLPLz",
"h_leadLLPLz; lead LLP L_{z} [mm]; Count / bin",50,0,14000);
102 ATH_CHECK(
histSvc()->regHist(
"/MSVtxValidation/h_leadLLPLz", std::move(h_leadLLPLz)));
104 auto h_leadLLPctau = std::make_unique<TH1F>(
"h_leadLLPctau",
"h_leadLLPctau; lead LLP c#tau [mm]; Count / bin",50,0,2000);
106 ATH_CHECK(
histSvc()->regHist(
"/MSVtxValidation/h_leadLLPctau", std::move(h_leadLLPctau)));
108 auto h_leadLLPpt = std::make_unique<TH1F>(
"h_leadLLPpt",
"h_leadLLPpt; lead LLP p_{T} [GeV]; Count / bin",50,0,400);
110 ATH_CHECK(
histSvc()->regHist(
"/MSVtxValidation/h_leadLLPpt", std::move(h_leadLLPpt)));
113 auto h_subleadLLPLxy = std::make_unique<TH1F>(
"h_subleadLLPLxy",
"h_subleadLLPLxy; sublead LLP L_{xy} [mm]; Count / bin",50,0,10000);
115 ATH_CHECK(
histSvc()->regHist(
"/MSVtxValidation/h_subleadLLPLxy", std::move(h_subleadLLPLxy)));
117 auto h_subleadLLPLz = std::make_unique<TH1F>(
"h_subleadLLPLz",
"h_subleadLLPLz; sublead LLP L_{z} [mm]; Count / bin",50,0,10000);
119 ATH_CHECK(
histSvc()->regHist(
"/MSVtxValidation/h_subleadLLPLz", std::move(h_subleadLLPLz)));
121 auto h_subleadLLPctau = std::make_unique<TH1F>(
"h_subleadLLPctau",
"h_subleadLLPctau; sublead LLP c#tau [mm]; Count / bin",50,0,2000);
123 ATH_CHECK(
histSvc()->regHist(
"/MSVtxValidation/h_subleadLLPctau", std::move(h_subleadLLPctau)));
125 auto h_subleadLLPpt = std::make_unique<TH1F>(
"h_subleadLLPpt",
"h_subleadLLPpt; sublead LLP p_{T} [GeV]; Count / bin",50,0,400);
127 ATH_CHECK(
histSvc()->regHist(
"/MSVtxValidation/h_subleadLLPpt", std::move(h_subleadLLPpt)));
129 return StatusCode::SUCCESS;
◆ inputHandles()
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]
◆ msg() [2/2]
◆ msgLvl()
◆ 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.
595 while((
pos =
str.find(oldStr,
pos)) != std::string::npos)
597 str.replace(
pos, oldStr.length(), newStr);
598 pos += newStr.length();
◆ outputHandles()
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()
◆ renounceArray()
◆ 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.
80 if ( Gaudi::StateMachine::INITIALIZED <= FSMState() )
return StatusCode::SUCCESS;
83 bindPropertiesTo( serviceLocator()->getOptsSvc() );
87 if ( !isEnabled( ) )
return StatusCode::SUCCESS;
◆ sysStart()
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.
384 TreeMap_t::const_iterator
it =
m_treeMap.find( treeHash );
389 std::string treeNameCopy =
treeName;
390 std::string tDirCopy = tDir;
391 std::string streamCopy =
stream;
394 std::string bookingString(
"");
397 TTree* treePointer(NULL);
398 if ( !((
histSvc()->
getTree(bookingString, treePointer)).isSuccess()) )
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;
408 m_treeMap.insert(
m_treeMap.end(), std::pair< const hash_t, TTree* >( treeHash, treePointer ) );
◆ updateVHKA()
◆ m_computeIso
Gaudi::Property<bool> MSVtxValidationAlg::m_computeIso {this, "computeIso", false, "add vertex isolation variables to the tree"} |
|
private |
◆ m_detStore
◆ m_effMap
◆ m_evtKey
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_graphMap
◆ m_h_diLLPMass
TH1F* MSVtxValidationAlg::m_h_diLLPMass {nullptr} |
|
private |
◆ m_h_leadLLPctau
TH1F* MSVtxValidationAlg::m_h_leadLLPctau {nullptr} |
|
private |
◆ m_h_leadLLPLxy
TH1F* MSVtxValidationAlg::m_h_leadLLPLxy {nullptr} |
|
private |
◆ m_h_leadLLPLz
TH1F* MSVtxValidationAlg::m_h_leadLLPLz {nullptr} |
|
private |
◆ m_h_leadLLPpt
TH1F* MSVtxValidationAlg::m_h_leadLLPpt {nullptr} |
|
private |
◆ m_h_LLP1LLP2dR
TH1F* MSVtxValidationAlg::m_h_LLP1LLP2dR {nullptr} |
|
private |
◆ m_h_subleadLLPctau
TH1F* MSVtxValidationAlg::m_h_subleadLLPctau {nullptr} |
|
private |
◆ m_h_subleadLLPLxy
TH1F* MSVtxValidationAlg::m_h_subleadLLPLxy {nullptr} |
|
private |
◆ m_h_subleadLLPLz
TH1F* MSVtxValidationAlg::m_h_subleadLLPLz {nullptr} |
|
private |
◆ m_h_subleadLLPpt
TH1F* MSVtxValidationAlg::m_h_subleadLLPpt {nullptr} |
|
private |
◆ m_histMap
◆ m_histNamePostfix
std::string AthHistogramAlgorithm::m_histNamePostfix |
|
privateinherited |
◆ m_histNamePrefix
std::string AthHistogramAlgorithm::m_histNamePrefix |
|
privateinherited |
◆ m_histSvc
◆ m_histTitlePostfix
std::string AthHistogramAlgorithm::m_histTitlePostfix |
|
privateinherited |
◆ m_histTitlePrefix
std::string AthHistogramAlgorithm::m_histTitlePrefix |
|
privateinherited |
◆ m_jet
◆ m_jet_N
◆ 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 |
◆ 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 |
◆ m_JetKey
◆ m_llp
◆ m_llp_N
◆ m_llp_Nkids
◆ m_llpKid_llpLink
MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_llpKid_llpLink {m_tree.newVector<int>("llpKid_llpLink")} |
|
private |
◆ m_llpKid_pdgid
◆ m_llpVtx
◆ m_llpVtx_ctau
◆ m_llpVtx_Lxy
◆ m_llpVtx_N
◆ m_met
◆ m_met_phi
◆ m_met_x
◆ m_met_y
◆ m_MetKey
◆ m_msg
MsgStream AthHistogramming::m_msg |
|
privateinherited |
◆ m_msVtx
◆ m_msVtx_chi2
◆ m_msVtx_isoJets_mindR
MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_msVtx_isoJets_mindR {m_tree.newVector<float>("msVtx_isoJets_mindR")} |
|
private |
◆ m_msVtx_isoTracks_mindR
MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_msVtx_isoTracks_mindR {m_tree.newVector<float>("msVtx_isoTracks_mindR")} |
|
private |
◆ m_msVtx_isoTracks_pTsum
MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_msVtx_isoTracks_pTsum {m_tree.newVector<float>("msVtx_isoTracks_pTsum")} |
|
private |
◆ m_msVtx_N
◆ m_msVtx_nDoF
◆ m_msVtx_nMDT
◆ m_msVtx_nMDT_E
◆ m_msVtx_nMDT_I
◆ m_msVtx_nMDT_inwards
MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nMDT_inwards {m_tree.newVector<int>("msVtx_nMDT_inwards")} |
|
private |
◆ m_msVtx_nMDT_M
◆ m_msVtx_nMDT_O
◆ m_msVtx_nRPC
◆ m_msVtx_nRPC_E
◆ m_msVtx_nRPC_I
◆ m_msVtx_nRPC_inwards
MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nRPC_inwards {m_tree.newVector<int>("msVtx_nRPC_inwards")} |
|
private |
◆ m_msVtx_nRPC_M
◆ m_msVtx_nRPC_O
◆ m_msVtx_nTGC
◆ m_msVtx_nTGC_E
◆ m_msVtx_nTGC_I
◆ m_msVtx_nTGC_inwards
MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_msVtx_nTGC_inwards {m_tree.newVector<int>("msVtx_nTGC_inwards")} |
|
private |
◆ m_msVtx_nTGC_M
◆ m_msVtx_nTGC_O
◆ m_msVtx_Ntrklet
◆ m_MSVtxKey
◆ m_muonSeg
◆ m_MuonSegKey
Gaudi::Property<std::string> MSVtxValidationAlg::m_MuonSegKey {this, "MuonSegmentsKey", "MuonSegments"} |
|
private |
◆ m_name
std::string AthHistogramming::m_name |
|
privateinherited |
◆ m_pdgId_llp
Gaudi::Property<int> MSVtxValidationAlg::m_pdgId_llp {this, "pdgId_llp", 35, "Truth LLP PDGId"} |
|
private |
◆ m_pdgId_portal
Gaudi::Property<int> MSVtxValidationAlg::m_pdgId_portal {this, "pdgId_portal", 25, "Truth portal PDGId"} |
|
private |
◆ m_portal
◆ m_portal_N
◆ m_prefix
std::string AthHistogramAlgorithm::m_prefix |
|
privateinherited |
◆ m_readJets
Gaudi::Property<bool> MSVtxValidationAlg::m_readJets {this, "readJets", false, "add jet information to the tree"} |
|
private |
◆ m_readMET
Gaudi::Property<bool> MSVtxValidationAlg::m_readMET {this, "readMET", false, "add met information to the tree"} |
|
private |
◆ m_rootDir
std::string AthHistogramAlgorithm::m_rootDir |
|
privateinherited |
◆ 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 |
◆ m_streamName
std::string AthHistogramming::m_streamName |
|
privateinherited |
◆ m_sumEt
◆ 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 |
◆ m_TrackletKey
◆ m_TrackParticleKey
◆ m_tree
◆ m_treeMap
◆ m_trklet_d0
◆ m_trklet_eta
◆ m_trklet_mom
◆ m_trklet_N
◆ m_trklet_phi
◆ m_trklet_pos
◆ m_trklet_q
◆ m_trklet_qOverP
MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_trklet_qOverP {m_tree.newVector<float>("trklet_qOverP")} |
|
private |
◆ m_trklet_theta
MuonVal::VectorBranch<float>& MSVtxValidationAlg::m_trklet_theta {m_tree.newVector<float>("trklet_theta")} |
|
private |
◆ m_trklet_vtxLink
MuonVal::VectorBranch<int>& MSVtxValidationAlg::m_trklet_vtxLink {m_tree.newVector<int>("trklet_vtxLink")} |
|
private |
◆ m_trklet_z0
◆ m_TruthParticleKey
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
MuonVal::VectorBranch< int > & m_llpKid_pdgid
std::string m_rootDir
Name of the ROOT directory.
def retrieve(aClass, aKey=None)
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
std::vector< const xAOD::TrackParticle * > Tracks
MuonVal::VectorBranch< int > & m_msVtx_nTGC
MuonVal::VectorBranch< float > & m_trklet_q
Gaudi::Property< float > m_softTrackIso_R
void myReplace(std::string &str, const std::string &oldStr, const std::string &newStr)
Helper method to replace sub-string.
MsgStream m_msg
Cached Message Stream.
HistMap_t m_histMap
The map of histogram names to their pointers.
MuonVal::VectorBranch< float > & m_msVtx_chi2
MuonVal::MuonTesterTree m_tree
std::shared_ptr< MuonPRDTest::SegmentVariables > m_muonSeg
ServiceHandle< ITHistSvc > m_histSvc
Default constructor: AthHistogramAlgorithm();.
StatusCode init(OWNER *instance)
Initialize method.
std::vector< const xAOD::TruthParticle * > getGenStableChildren(const xAOD::TruthParticle *particle)
StatusCode fillTruth(const EventContext &ctx)
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
Helper class to provide type-safe access to aux data.
TH1F * m_h_subleadLLPctau
MuonVal::ScalarBranch< int > & m_portal_N
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackParticleKey
MuonVal::VectorBranch< int > & m_msVtx_nTGC_M
MuonVal::VectorBranch< int > & m_llp_Nkids
MuonVal::VectorBranch< int > & m_msVtx_Ntrklet
MuonVal::ScalarBranch< float > & m_met_y
MuonVal::VectorBranch< int > & m_msVtx_nRPC_M
double getCTau(const xAOD::TruthVertex *decVtx)
MuonVal::ScalarBranch< float > & m_met_phi
MuonVal::VectorBranch< int > & m_msVtx_nRPC_E
std::string m_prefix
Name of the ROOT output stream (file)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
MuonVal::VectorBranch< float > & m_llpVtx_Lxy
std::vector< SG::VarHandleKeyArray * > m_vhka
StatusCode fillMSVtx(const EventContext &ctx)
SG::ReadHandleKey< xAOD::JetContainer > m_JetKey
std::string m_histNamePrefix
The prefix for the histogram THx name.
MuonVal::ScalarBranch< int > & m_llpVtx_N
std::string m_histTitlePrefix
The prefix for the histogram THx title.
MuonVal::VectorBranch< int > & m_msVtx_nMDT_M
SG::ReadHandleKey< xAOD::VertexContainer > m_MSVtxKey
MuonVal::VectorBranch< int > & m_msVtx_nTGC_inwards
Gaudi::Property< float > m_trackIso_pT
std::string m_histNamePostfix
The postfix for the histogram THx name.
MuonVal::VectorBranch< int > & m_msVtx_nTGC_E
std::string getTree(const std::string &file_name)
StatusCode fillJet(const EventContext &ctx)
Gaudi::Property< bool > m_computeIso
MuonVal::ScalarBranch< float > & m_met_x
FourVec_t v4() const
The full 4-vector of the vertex.
MuonVal::VectorBranch< float > & m_trklet_z0
MuonVal::VectorBranch< float > & m_msVtx_isoJets_mindR
MuonVal::ScalarBranch< float > & m_met
std::shared_ptr< MuonVal::ThreeVectorBranch > m_llpVtx
std::shared_ptr< MuonVal::IParticleFourMomBranch > m_jet
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Property< bool > m_readMET
MuonVal::VectorBranch< int > & m_msVtx_nRPC_I
MuonVal::VectorBranch< int > & m_msVtx_nDoF
MuonVal::VectorBranch< int > & m_msVtx_nRPC
MuonVal::VectorBranch< int > & m_llpKid_llpLink
MuonVal::VectorBranch< int > & m_msVtx_nMDT_inwards
MuonVal::VectorBranch< float > & m_trklet_theta
StatusCode fillMSVtxIso(const EventContext &ctx)
Gaudi::Property< int > m_pdgId_portal
virtual StatusCode sysInitialize() override
Override sysInitialize.
std::shared_ptr< MuonVal::IParticleFourMomBranch > m_portal
Gaudi::Property< float > m_jetIso_pT
MuonVal::ScalarBranch< int > & m_msVtx_N
std::shared_ptr< MuonVal::ThreeVectorBranch > m_msVtx
MuonVal::VectorBranch< float > & m_msVtx_isoTracks_pTsum
void disableBranch(const std::string &br_name)
Skips the branch from being added to the tree.
MuonVal::VectorBranch< int > & m_msVtx_nMDT_O
Class describing a truth particle in the MC record.
MuonVal::VectorBranch< int > & m_msVtx_nTGC_I
MuonVal::ScalarBranch< float > & m_sumEt
bool comparePt(const xAOD::TruthParticle *part1, const xAOD::TruthParticle *part2)
float perp() const
Vertex transverse distance from the beam line.
GraphMap_t m_graphMap
The map of TGraph names to their pointers.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
std::string m_streamName
Name of the ROOT output stream (file)
MuonVal::VectorBranch< int > & m_msVtx_nMDT
size_t index() const
Return the index of this element within its container.
MuonVal::ScalarBranch< int > & m_llp_N
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.
MuonVal::VectorBranch< float > & m_trklet_d0
uint32_t hash_t
typedef for the internal hash
uint64_t crc64(const CRCTable &table, const char *data, size_t data_len)
Find the CRC-64 of a string,.
MuonVal::ScalarBranch< int > & m_jet_N
std::string m_histTitlePostfix
The postfix for the histogram THx title.
std::shared_ptr< MuonVal::ThreeVectorBranch > m_trklet_pos
void push_back(const T &value)
Adds a new element at the end of the vector.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
MuonVal::VectorBranch< float > & m_msVtx_isoTracks_mindR
Class describing a truth vertex in the MC record.
MuonVal::VectorBranch< int > & m_msVtx_nMDT_E
Gaudi::Property< float > m_jetIso_LogRatio
MuonVal::VectorBranch< float > & m_trklet_phi
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_TruthParticleKey
MuonVal::VectorBranch< int > & m_trklet_vtxLink
hash_t hash(const std::string &histName) const
Method to calculate a 32-bit hash from a string.
MuonVal::VectorBranch< int > & m_msVtx_nRPC_O
def getHist(name, makehist)
MuonVal::VectorBranch< float > & m_llpVtx_ctau
Eigen::Matrix< double, 3, 1 > Vector3D
Gaudi::Property< int > m_pdgId_llp
MuonVal::VectorBranch< int > & m_msVtx_nMDT_I
std::shared_ptr< MuonVal::IParticleFourMomBranch > m_llp
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey
SG::ReadHandleKey< xAOD::MissingETContainer > m_MetKey
std::uint64_t hash64(const void *data, std::size_t size)
Passthrough to XXH3_64bits.
AthHistogramming(const std::string &name)
Constructor with parameters:
DataObjIDColl m_extendedExtraObjects
EffMap_t m_effMap
The map of histogram names to their pointers.
MuonVal::VectorBranch< float > & m_trklet_eta
Class describing a Vertex.
std::string m_histTitlePrefix
The prefix for the histogram THx title.
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.
MuonVal::VectorBranch< float > & m_trklet_qOverP
std::string m_histNamePostfix
The postfix for the histogram THx name.
float z() const
Vertex longitudinal distance along the beam line form the origin.
MuonVal::VectorBranch< int > & m_msVtx_nTGC_O
TreeMap_t m_treeMap
The map of TTree names to their pointers.
std::string m_histNamePrefix
The prefix for the histogram THx name.
void fillHits(const xAOD::Vertex *vtx, const std::string &decorator_str, MuonVal::VectorBranch< int > &branch)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
bool fill(const EventContext &ctx)
Fills the tree per call.
std::shared_ptr< MuonVal::ThreeVectorBranch > m_trklet_mom
StatusCode write()
Finally write the TTree objects.
std::string m_histTitlePostfix
The postfix for the histogram THx title.
TH1 * hist(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered histograms of any type.
MuonVal::ScalarBranch< int > & m_trklet_N
ServiceHandle< ITHistSvc > m_histSvc
Pointer to the THistSvc (event store by default)
AthAlgorithm()
Default constructor:
MuonVal::VectorBranch< int > & m_msVtx_nRPC_inwards
Class describing a TrackParticle.
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
Gaudi::Property< std::string > m_MuonSegKey
std::string m_name
Instance name.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackletKey
StatusCode fillTracklets(const EventContext &ctx)
std::string m_rootDir
Name of the ROOT directory.
Gaudi::Property< bool > m_readJets
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
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)
StatusCode fillMet(const EventContext &ctx)
bool addBranch(std::shared_ptr< IMuonTesterBranch > branch)
Branch is added to the tree without transferring the ownership.
void buildBookingString(std::string &bookingString, std::string &histName, std::string &tDir, std::string &stream, bool usePrefixPostfix=false)
Method to build individual booking string.
TH1 * bookGetPointer(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.