13 if (!MuonDetMgr) {
return false; }
15 ATH_MSG_VERBOSE(
"MuonDetectorManager from Conditions Store accessed" << MuonDetMgr);
20 if (!mdtSdoContainer.
isValid()) {
25 for (
const auto& coll : *mdtSdoContainer) {
32 std::vector<MuonSimData::Deposit> deposits;
40 int barcode = deposits[0].first.barcode();
41 double MuonMCdata_firstentry = deposits[0].second.firstEntry();
42 double MuonMCdata_secondentry = deposits[0].second.secondEntry();
45 ATH_MSG_DEBUG(
"MDT SDO localPosX=" << std::setw(9) << std::setprecision(2) << MuonMCdata_firstentry
46 <<
", localPosY=" << std::setw(9) << std::setprecision(2) << MuonMCdata_secondentry);
#define ATH_MSG_VERBOSE(x)
Handle class for reading from StoreGate.
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
VectorBranch< int > & m_mdt_sdo_word
SG::ReadHandleKey< MuonSimDataCollection > m_sdo_key
MdtIdentifierBranch m_mdt_sdo_id
VectorBranch< int > & m_mdt_sdo_barcode
ThreeVectorBranch m_mdt_sdo_globalPos
bool declare_keys() override final
MdtSDOVariables(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
VectorBranch< float > & m_mdt_sdo_localPosY
ScalarBranch< unsigned int > & m_mdt_nsdo
VectorBranch< float > & m_mdt_sdo_localPosX
bool fill(const EventContext &ctx) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
VectorBranch< float > & m_mdt_sdo_globalTime
const MuonGM::MuonDetectorManager * getDetMgr(const EventContext &ctx) const
const Muon::IMuonIdHelperSvc * idHelperSvc() const
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
void deposits(std::vector< Deposit > &deposits) const
const Amg::Vector3D globalPosition() const
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
TTree * tree() override final
Returns the underlying TTree object.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.