14 const std::string& container_name,
15 const std::string& cabling_key,
18 m_key{container_name},
28 if (!MuonDetMgr) {
return false; }
37 ATH_MSG_DEBUG(
"retrieved TGC rdo Container with size " << tgcrdoContainer->
size());
40 unsigned int n_rdo{0};
41 for (
const TgcRdo* coll : *tgcrdoContainer) {
42 ATH_MSG_DEBUG(
"processing collection with size " << coll->size());
45 bool orFlag = cabling->isOredChannel(rdo->subDetectorId(),
52 bool e_found = cabling->getElementIDfromReadoutID(Id,
75 ATH_MSG_DEBUG(
"TGC RDO: local pos.: x=" << localStripPos[0] <<
", y=" << localStripPos[1]);
#define ATH_MSG_WARNING(x)
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 TgcReadoutElement * getTgcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
virtual bool stripPosition(const Identifier &id, Amg::Vector2D &pos) const override
strip position If the strip number is outside the range of valid strips, the function will return fal...
const MuonGM::MuonDetectorManager * getDetMgr(const EventContext &ctx) const
const Muon::IMuonIdHelperSvc * idHelperSvc() const
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
SG::ReadHandleKey< TgcRdoContainer > m_key
ThreeVectorBranch m_TGC_rdo_globalPos
SG::ReadCondHandleKey< Muon::TgcCablingMap > m_tgcCablingKey
VectorBranch< float > & m_TGC_rdo_localPosX
bool declare_keys() override final
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...
TGCRDOVariables(MuonTesterTree &tree, const std::string &container_name, const std::string &cabling, MSG::Level msglvl)
VectorBranch< float > & m_TGC_rdo_localPosY
ScalarBranch< unsigned int > & m_TGC_nRDO
TgcIdentifierBranch m_TGC_rdo_id
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
TTree * tree() override final
Returns the underlying TTree object.
An unit object of TGC ROD output.
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
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
std::string toString(CscStripStatus cstat)
Return a string description of a CSC cluster status flag.
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.