ATLAS Offline Software
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 
7 namespace MuonPRDTest {
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  }
16  const MuonGM::MuonDetectorManager* PrdTesterModule::getDetMgr(const EventContext& ctx) const {
18  if (!handle.isValid()) {
19  ATH_MSG_ERROR("Failed to retrieve MuonDetectorManager " << m_detMgrKey.fullKey());
20  return nullptr;
21  }
22  return handle.cptr();
23  }
26  m_idHelperSvc.retrieve().isSuccess() && declare_keys();
27  }
28  bool PrdTesterModule::declare_keys() { return true; }
29 } // namespace MuonPRDTest
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
MuonVal::MuonTesterBranch
Definition: MuonTesterBranch.h:21
tree
TChain * tree
Definition: tile_monitor.h:30
MuonPRDTest::PrdTesterModule::getDetMgr
const MuonGM::MuonDetectorManager * getDetMgr(const EventContext &ctx) const
Definition: PrdTesterModule.cxx:16
ReadCondHandle.h
MuonVal::MuonTesterBranch::declare_dependency
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
AthMessaging::setLevel
void setLevel(MSG::Level lvl)
Change the current logging level.
Definition: AthMessaging.cxx:28
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
MuonPRDTest::PrdTesterModule::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: PrdTesterModule.h:30
PrdTesterModule.h
MuonPRDTest::PrdTesterModule::PrdTesterModule
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
Definition: PrdTesterModule.cxx:8
MuonPRDTest::PrdTesterModule::declare_keys
virtual bool declare_keys()=0
Definition: PrdTesterModule.cxx:28
MuonPRDTest::PrdTesterModule::m_detMgrKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detMgrKey
Definition: PrdTesterModule.h:29
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
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:50
MuonPRDTest
Definition: CSCDigitVariables.h:10
MuonPRDTest::PrdTesterModule::idHelperSvc
const Muon::IMuonIdHelperSvc * idHelperSvc() const
Definition: PrdTesterModule.cxx:15
Muon::IMuonIdHelperSvc
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition: IMuonIdHelperSvc.h:27