20 if (!mmprdContainer.
isValid()) {
24 ATH_MSG_DEBUG(
"retrieved MM PRD Container with size " << mmprdContainer->size());
27 unsigned int n_PRD{0};
71 det->surface(Id).globalToLocal(pos, Amg::Vector3D::Zero(), loc_pos);
74 <<
", ex=" << std::setw(6) << std::setprecision(2) << cov(0,0));
#define ATH_MSG_VERBOSE(x)
An MMReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station con...
Identifier identify() const override final
Returns the ATLAS Identifier of the MuonReadOutElement.
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...
MatrixBranch< short unsigned > & m_NSWMM_PRD_stripNumbers
VectorBranch< uint8_t > & m_NSWMM_PRD_quality
void enableSeededDump()
Dumps only hits which are marked by the dumpAllHitsInChamber method.
unsigned int push_back(const Muon::MMPrepData &prd)
Adds a prd to the output tree.
VectorBranch< float > & m_NSWMM_PRD_covMatrix_1_1
MmIdentifierBranch m_NSWMM_PRD_id
std::unordered_set< Identifier > m_filteredChamb
Set of chambers to be dumped.
VectorBranch< int > & m_NSWMM_PRD_nStrips
void dumpAllHitsInChamber(const MuonGM::MMReadoutElement &detEle)
Adds all hits in this particular chamber to the output n-tuple.
SG::ReadHandleKey< Muon::MMPrepDataContainer > m_key
MatrixBranch< short int > & m_NSWMM_PRD_stripTimes
bool m_applyFilter
Apply a filter to dump the prds.
MMPRDVariables(MuonTesterTree &tree, const std::string &prd_container_name, MSG::Level msglvl)
Standard constructor taking the MuonTesterTree as parent The container name under which the MicroMega...
VectorBranch< short > & m_NSWMM_PRD_author
VectorBranch< int > & m_NSWMM_PRD_time
bool declare_keys() override final
unsigned int dump(const Muon::MMPrepData &prd)
ScalarBranch< unsigned int > & m_NSWMM_nPRD
TwoVectorBranch m_NSWMM_PRD_localPos
MatrixBranch< int > & m_NSWMM_PRD_stripCharges
bool m_externalPush
Flag telling whether an external prd has been pushed.
std::unordered_map< Identifier, unsigned int > m_filteredPRDs
Set of particular chambers to be dumped.
ThreeVectorBranch m_NSWMM_PRD_globalPos
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.
Class to represent MM measurements.
const std::vector< uint16_t > & stripNumbers() const
returns the list of strip numbers
const std::vector< short int > & stripTimes() const
returns the list of times
virtual const MuonGM::MMReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD.
short int time() const
Returns the time (in ns)
virtual const Amg::Vector3D & globalPosition() const override final
Returns the global position.
const std::vector< int > & stripCharges() const
returns the list of charges
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Identifier identify() const
return the identifier
const Amg::MatrixX & localCovariance() const
return const ref to the error matrix
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 2, 1 > Vector2D
Eigen::Matrix< double, 3, 1 > Vector3D
MuonPrepDataCollection< MMPrepData > MMPrepDataCollection