17 if (!MuonDetMgr) {
return false; }
19 if (!cscprdContainer.
isValid()) {
24 ATH_MSG_DEBUG(
"retrieved CSC PRD Container with size " << cscprdContainer->size());
26 if (cscprdContainer->size() == 0)
ATH_MSG_DEBUG(
" CSC PRD Container empty ");
27 unsigned int n_PRD{0};
28 for(
auto it : *cscprdContainer ) {
30 for (
auto prd: *coll) {
35 ATH_MSG_ERROR(
"The CSC hit "<<
idHelperSvc()->toString(Id)<<
" does not have a detector element attached. That should actually never happen");
46 det->surface(Id).globalToLocal(pos,
Amg::Vector3D(0., 0., 0.), loc_pos);
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
const CscReadoutElement * getCscReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
VectorBranch< int > & m_CSC_PRD_time
SG::ReadHandleKey< Muon::CscPrepDataContainer > m_key
CSCPRDVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
VectorBranch< float > & m_CSC_PRD_localPosY
ScalarBranch< unsigned int > & m_CSC_nPRD
bool declare_keys() override final
ThreeVectorBranch m_CSC_PRD_globalPos
VectorBranch< int > & m_CSC_PRD_charge
CscIdentifierBranch m_CSC_PRD_id
VectorBranch< float > & m_CSC_PRD_localPosX
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...
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?
Eigen::Matrix< double, 2, 1 > Vector2D
Eigen::Matrix< double, 3, 1 > Vector3D
MuonPrepDataCollection< CscPrepData > CscPrepDataCollection