ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
Root
PrdTesterModule.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include <
MuonPRDTest/PrdTesterModule.h
>
6
#include <
StoreGate/ReadCondHandle.h
>
7
namespace
MuonPRDTest
{
8
PrdTesterModule::PrdTesterModule
(
MuonTesterTree
&
tree
,
9
const
std::string& grp_name,
10
MSG::Level msglvl) :
11
MuonTesterBranch
(
tree
,
" prd module "
+ grp_name) {
12
setLevel
(msglvl);
13
m_idHelperSvc
.retrieve().ignore();
14
}
15
const
Muon::IMuonIdHelperSvc
*
PrdTesterModule::idHelperSvc
()
const
{
return
m_idHelperSvc
.get(); }
16
const
MuonGM::MuonDetectorManager
*
PrdTesterModule::getDetMgr
(
const
EventContext& ctx)
const
{
17
const
MuonGM::MuonDetectorManager
* detMgr{
nullptr
};
18
if
(!
SG::get
(detMgr,
m_detMgrKey
, ctx).isSuccess()) {
19
ATH_MSG_ERROR
(
"Failed to retrieve MuonDetectorManager "
);
20
return
nullptr
;
21
}
22
return
detMgr;
23
}
24
bool
PrdTesterModule::init
() {
25
return
declare_dependency
(
m_detMgrKey
) &&
26
m_idHelperSvc
.retrieve().isSuccess() &&
declare_keys
();
27
}
28
bool
PrdTesterModule::declare_keys
() {
return
true
; }
29
}
// namespace MuonPRDTest
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition
AthMsgStreamMacros.h:33
PrdTesterModule.h
ReadCondHandle.h
AthMessaging::setLevel
void setLevel(MSG::Level lvl)
Change the current logging level.
Definition
AthMessaging.cxx:28
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition
MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:51
MuonPRDTest::PrdTesterModule::getDetMgr
const MuonGM::MuonDetectorManager * getDetMgr(const EventContext &ctx) const
Definition
PrdTesterModule.cxx:16
MuonPRDTest::PrdTesterModule::declare_keys
virtual bool declare_keys()=0
Definition
PrdTesterModule.cxx:28
MuonPRDTest::PrdTesterModule::idHelperSvc
const Muon::IMuonIdHelperSvc * idHelperSvc() const
Definition
PrdTesterModule.cxx:15
MuonPRDTest::PrdTesterModule::init
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
Definition
PrdTesterModule.cxx:24
MuonPRDTest::PrdTesterModule::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
PrdTesterModule.h:30
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition
PrdTesterModule.cxx:8
MuonPRDTest::PrdTesterModule::m_detMgrKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detMgrKey
Definition
PrdTesterModule.h:29
MuonVal::MuonTesterBranch::MuonTesterBranch
MuonTesterBranch(MuonTesterTree &tree, const std::string &br_name)
Definition
MuonTesterBranch.cxx:33
MuonVal::MuonTesterBranch::declare_dependency
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition
MuonTesterBranch.cxx:53
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
Muon::IMuonIdHelperSvc
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition
IMuonIdHelperSvc.h:27
MuonPRDTest
Definition
MuonHitTesterAlg.h:15
SG::get
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
Definition
ReadCondHandle.h:282
Generated on
for ATLAS Offline Software by
1.17.0