17 if (!MuonDetMgr) {
return false; }
19 if (!tgcprdContainer.
isValid()) {
24 ATH_MSG_DEBUG(
"retrieved TGC PRD Container with size " << tgcprdContainer->size());
26 unsigned int n_PRD{0};
32 ATH_MSG_ERROR(
"The TGC hit "<<
idHelperSvc()->toString(Id)<<
" does not have a detector element attached. That should actually never happen");
39 det->surface(Id).globalToLocal(pos, Amg::Vector3D::Zero(), loc_pos);
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...
const MuonGM::MuonDetectorManager * getDetMgr(const EventContext &ctx) const
const Muon::IMuonIdHelperSvc * idHelperSvc() const
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
ThreeVectorBranch m_TGC_PRD_globalPos
TwoVectorBranch m_TGC_PRD_localPos
VectorBranch< float > & m_TGC_PRD_error
bool declare_keys() override final
ScalarBranch< unsigned int > & m_TGC_nPRD
TGCPRDVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
SG::ReadHandleKey< Muon::TgcPrepDataContainer > m_key
TgcIdentifierBranch m_TGC_PRD_id
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< uint8_t > & m_TGC_PRD_bcId
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
TTree * tree() override final
Returns the underlying TTree object.
Class to represent TGC measurements.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
Eigen::Matrix< double, 2, 1 > Vector2D
Eigen::Matrix< double, 3, 1 > Vector3D
MuonPrepDataCollection< TgcPrepData > TgcPrepDataCollection