17 if (!MuonDetMgr) {
return false; }
27 unsigned int n_digits{0};
29 ATH_MSG_DEBUG(
"processing collection with size " << coll->size());
30 for (
unsigned int digitNum = 0; digitNum < coll->size(); digitNum++) {
31 const sTgcDigit* digit = coll->at(digitNum);
36 ATH_MSG_ERROR(
"sTGCDigitVariables::fillVariables() - Failed to retrieve sTGCReadoutElement for "<<
idHelperSvc()->toString(Id));
constexpr std::array< T, N > make_array(const T &def_val)
Helper function to initialize in-place arrays with non-zero values.
size_t size() const
Duplicate of fullSize for backwards compatability.
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 sTgcReadoutElement * getsTgcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
An sTgcReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station c...
virtual bool stripPosition(const Identifier &id, Amg::Vector2D &pos) const override final
strip position - should be renamed to channel position If the strip number is outside the range of va...
bool padCorners(const Identifier &id, std::array< Amg::Vector2D, 4 > &corners) const
pad corners
virtual int stripNumber(const Amg::Vector2D &pos, const Identifier &id) const override final
strip number corresponding to local position.
const MuonGM::MuonDetectorManager * getDetMgr(const EventContext &ctx) const
const Muon::IMuonIdHelperSvc * idHelperSvc() const
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
VectorBranch< int > & m_NSWsTGC_dig_bctag
SG::ReadHandleKey< sTgcDigitContainer > m_key
sTgcIdentifierBranch m_NSWsTGC_dig_id
VectorBranch< bool > & m_NSWsTGC_dig_isDead
sTgcDigitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
ScalarBranch< unsigned int > & m_NSWsTGC_nDigits
VectorBranch< double > & m_NSWsTGC_dig_time
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...
TwoVectorBranch m_NSWsTGC_dig_localPos
bool declare_keys() override final
VectorBranch< int > & m_NSWsTGC_dig_channelNumber
VectorBranch< double > & m_NSWsTGC_dig_charge
ThreeVectorBranch m_NSWsTGC_dig_PadglobalCornerPos
VectorBranch< bool > & m_NSWsTGC_dig_isPileup
ThreeVectorBranch m_NSWsTGC_dig_globalPos
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 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.
Use IdentifiableContainer with sTgcDigitCollection.
size_type digit_size() const
Eigen::Matrix< double, 2, 1 > Vector2D
Eigen::Matrix< double, 3, 1 > Vector3D