16 if (!mmSdoContainer.
isValid()) {
20 unsigned int n_sdo{0};
21 for (
const auto& coll : *mmSdoContainer) {
29 std::vector<MuonSimData::Deposit> deposits;
37 int barcode = deposits[0].first.barcode();
38 double MuonMCdata_firstentry = deposits[0].second.firstEntry();
39 double MuonMCdata_secondentry = deposits[0].second.secondEntry();
42 ATH_MSG_DEBUG(
"MM SDO local position X=" << std::setw(9) << std::setprecision(2) << MuonMCdata_firstentry
43 <<
", local position Y=" << std::setw(9) << std::setprecision(2) << MuonMCdata_secondentry);
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...
ScalarBranch< unsigned int > & m_NSWMM_nsdo
VectorBranch< float > & m_NSWMM_sdo_localPosX
ThreeVectorBranch m_NSWMM_dig_globalPos
MmIdentifierBranch m_NSWMM_sdo_id
VectorBranch< int > & m_NSWMM_sdo_barcode
MMSDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
VectorBranch< float > & m_NSWMM_sdo_globaltime
bool declare_keys() override final
SG::ReadHandleKey< MuonSimDataCollection > m_key
VectorBranch< int > & m_NSWMM_sdo_word
VectorBranch< float > & m_NSWMM_sdo_localPosY
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?
Eigen::Matrix< double, 3, 1 > Vector3D