|
ATLAS Offline Software
|
Go to the documentation of this file.
18 if (!MuonDetMgr) {
return false; }
20 if (!stgcprdContainer.isValid()) {
25 ATH_MSG_DEBUG(
"retrieved sTGC PRD Container with size " << stgcprdContainer->size());
27 if (stgcprdContainer->size() == 0)
ATH_MSG_DEBUG(
" sTGC PRD Container empty ");
28 unsigned int n_PRD{0};
50 ATH_MSG_DEBUG(
"sTgc PRD local pos.: x=" << std::setw(6) << std::setprecision(2) << loc_pos[0]
51 <<
", ex=" << std::setw(6) << std::setprecision(2) << err_x
52 <<
", y=" << std::setw(6) << std::setprecision(2) << loc_pos[1]
53 <<
", ey=" << std::setw(6) << std::setprecision(2) << err_y );
114 ATH_MSG_DEBUG(
"sTgc PRD local pos.: x=" << std::setw(6) << std::setprecision(2) << loc_pos[0]
115 <<
", ex=" << std::setw(6) << std::setprecision(2) << err_x
116 <<
", y=" << std::setw(6) << std::setprecision(2) << loc_pos[1]
117 <<
", ey=" << std::setw(6) << std::setprecision(2) << err_y );
128 short int prdTime = prd.
time();
129 if(
idHelperSvc()->stgcIdHelper().channelType(Id) == sTgcIdHelper::sTgcChannelTypes::Strip) {
130 int maxCharge{-SHRT_MAX};
132 for (
int i = 0; i < static_cast<int>(stripCharges.size()); ++
i) {
133 if (stripCharges.at(
i) > maxCharge) {
134 maxCharge = stripCharges.at(
i);
VectorBranch< double > & m_NSWsTGC_PRD_covMatrix_1_1
bool declare_keys() override final
void dumpAllHitsInChamber(const MuonGM::sTgcReadoutElement &detEle)
Adds all hits in this particular chamber to the output n-tuple.
MatrixBranch< int > & m_NSWsTGC_PRD_stripCharge
Eigen::Matrix< double, 2, 1 > Vector2D
std::unordered_map< Identifier, unsigned int > m_filteredPRDs
Set of particular chambers to be dumped.
bool m_externalPush
Flag telling whether an external prd has been pushed.
const Amg::MatrixX & localCovariance() const
return const ref to the error matrix
const MuonGM::MuonDetectorManager * getDetMgr(const EventContext &ctx) const
VectorBranch< double > & m_NSWsTGC_PRD_covMatrix_2_2
void push_back(const Identifier &id) override final
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
VectorBranch< double > & m_NSWsTGC_PRD_localPosY
VectorBranch< int > & m_NSWsTGC_PRD_charge
#define ATH_MSG_VERBOSE(x)
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< double > & m_NSWsTGC_PRD_localPosX
MatrixBranch< uint16_t > & m_NSWsTGC_PRD_stripChannel
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
void push_back(const Amg::Vector3D &vec)
interface using the Amg::Vector3D
const std::vector< uint16_t > & stripNumbers() const
returns the list of strip numbers
const std::vector< int > & stripCharges() const
returns the list of charges
VectorBranch< short > & m_NSWsTGC_PRD_time
void push_back(size_t i, const T &value)
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
virtual const Amg::Vector3D & globalPosition() const override final
Returns the global position.
An sTgcReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station c...
VectorBranch< int > & m_NSWsTGC_PRD_nStrips
bool m_applyFilter
Apply a filter to dump the prds.
Template to hold collections of MuonPrepRawData objects.
void push_back(const T &value)
Adds a new element at the end of the vector.
Identifier identify() const
return the identifier
unsigned int push_back(const Muon::sTgcPrepData &prd)
Adds a prd to the output tree.
Eigen::Matrix< double, 3, 1 > Vector3D
virtual const MuonGM::sTgcReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD.
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
std::unordered_set< Identifier > m_filteredChamb
Set of chambers to be dumped.
Identifier identify() const override final
Returns the ATLAS Identifier of the MuonReadOutElement.
const Muon::IMuonIdHelperSvc * idHelperSvc() const
MatrixBranch< short > & m_NSWsTGC_PRD_stripTime
unsigned int dump(const Muon::sTgcPrepData &prd)
VectorBranch< uint8_t > & m_stgcQuality
sTGCPRDVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
Standard constructor taking the MuonTesterTree as parent The container name under which the MicroMega...
sTgcIdentifierBranch m_NSWsTGC_PRD_id
SG::ReadHandleKey< Muon::sTgcPrepDataContainer > m_key
Class to represent sTgc measurements.
ThreeVectorBranch m_NSWsTGC_PRD_globalPos
int charge() const
Returns the bcBitMap of this PRD bit2 for Previous BC, bit1 for Current BC, bit0 for Next BC.
ScalarBranch< unsigned int > & m_NSWsTGC_nPRD
const std::vector< short int > & stripTimes() const
returns the list of times
VectorBranch< uint8_t > & m_stgcAuthor
void enableSeededDump()
Dumps only hits which are marked by the dumpAllHitsInChamber method.