17 if (!MuonDetMgr) {
return false; }
19 if (!MMDigitContainer.
isValid()) {
24 ATH_MSG_DEBUG(
"retrieved MM Digit Container with size " << MMDigitContainer->digit_size());
26 if (MMDigitContainer->size() == 0)
ATH_MSG_DEBUG(
" MM Digit Container empty ");
27 unsigned int n_digits{0};
29 ATH_MSG_DEBUG(
"processing collection with size " << coll->size());
30 for (
const MmDigit* digit : *coll) {
35 ATH_MSG_ERROR(
"MMDigitVariables::fillVariables() - Failed to retrieve MMReadoutElement for "<<
idHelperSvc()->mmIdHelper().print_to_string(Id).c_str());
42 ATH_MSG_WARNING(
"MMDigitVariables: failed to associate a valid local position for (chip response) strip n. "
43 <<
"; associated positions will be set to 0.0.");
#define ATH_MSG_WARNING(x)
An MMReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station con...
virtual bool stripPosition(const Identifier &id, Amg::Vector2D &pos) const override final
strip position – local or global If the strip number is outside the range of valid strips,...
virtual const Trk::PlaneSurface & surface() const override
access to chamber surface (phi orientation), uses the first gas gap
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
const MMReadoutElement * getMMReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
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...
ThreeVectorBranch m_NSWMM_dig_stripGpos
MmIdentifierBranch m_NSWMM_dig_id
ScalarBranch< unsigned int > & m_NSWMM_nDigits
bool declare_keys() override final
TwoVectorBranch m_NSWMM_dig_stripLpos
MMDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
SG::ReadHandleKey< MmDigitContainer > m_key
const MuonGM::MuonDetectorManager * getDetMgr(const EventContext &ctx) const
const Muon::IMuonIdHelperSvc * idHelperSvc() const
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
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?
virtual void localToGlobal(const Amg::Vector2D &locp, const Amg::Vector3D &mom, Amg::Vector3D &glob) const override final
Specified for PlaneSurface: LocalToGlobal method without dynamic memory allocation.
Eigen::Matrix< double, 2, 1 > Vector2D
Eigen::Matrix< double, 3, 1 > Vector3D