|
ATLAS Offline Software
|
Go to the documentation of this file.
10 const std::string& inContainer,
12 const std::string& collName):
24 if (!inContainer.isPresent()) {
35 const Identifier id{
re->measurementId(dc->measurementHash())};
62 if (insert_itr.second) {
65 return insert_itr.first->second;
void push_back(const Identifier &id) override final
int16_t tdc() const
Returns the TDC (typically range is 0 to 2500)
unsigned int push_back(const xAOD::MdtTwinDriftCircle &dc)
Push back the drift circle measurement to the output.
float posAlongWire() const
Returns the coordinate along the wire.
std::unordered_set< Identifier > m_filteredChamb
Set of chambers to be dumped.
VectorBranch< uint16_t > & m_tdcCounts
tdc counts of the measurement
MdtIdentifierBranch m_id
Identifier of the Mdt.
IdentifierHash measurementHash() const
Returns the hash of the measurement channel (tube (x) layer)
VectorBranch< uint16_t > & m_twinTdcCounts
Tdc counts of the twin measurement.
#define ATH_MSG_VERBOSE(x)
void enableSeededDump()
Activates the seeded dump of the branch.
SG::ReadHandleKey< xAOD::MdtTwinDriftCircleContainer > m_key
TTree * tree() override final
Returns the underlying TTree object.
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 MuonGMR4::MdtReadoutElement * readoutElement() const
Retrieve the associated MdtReadoutElement.
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
VectorBranch< uint16_t > & m_adcCounts
Adc counts of the measurement.
uint8_t twinLayer() const
Returns the layer number of the associated twin channel (1-4)
MdtTwinDriftCircleVariables(MuonTesterTree &tree, const std::string &inContainer, MSG::Level msgLvl=MSG::Level::INFO, const std::string &collName="MdtTwinPrd")
const ActsGeometryContext & getGeoCtx(const EventContext &ctx) const
void push_back(const Amg::Vector3D &vec)
interface using the Amg::Vector3D
float driftRadius() const
Returns the drift radius.
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
bool msgLvl(const MSG::Level lvl) const
Test the output level.
VectorBranch< float > & m_driftRadiusUncert
Uncertainty on the drift radius measurement.
VectorBranch< float > & m_twinUncertLocZ
Uncertainty on the local z measurement along the wire.
std::vector< const xAOD::MdtTwinDriftCircle * > m_dumpedPRDS
Vector of PRDs parsed via the external mechanism. These measurements are parsed first.
int16_t twinTdc() const
Returns the TDC (typically range is 0 to 2500)
VectorBranch< uint16_t > & m_twinAdcCounts
Adc counts of the twin measurement.
const Muon::IMuonIdHelperSvc * idHelperSvc() const
ThreeVectorBranch m_globPos
Position of the Mdt drift circle in the global frame.
Include the GeoPrimitives which need to be put first.
void push_back(const T &value)
Adds a new element at the end of the vector.
uint16_t twinTube() const
Returns the tube number of the associated twin channel (1-120)
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
int16_t adc() const
Returns the ADC (typically range is 0 to 250)
int16_t twinAdc() const
Returns the ADC (typically range is 0 to 250)
VectorBranch< float > & m_driftRadius
Dirft radius of the associated drit circle.
Eigen::Matrix< double, 3, 1 > Vector3D
void dump(const ActsGeometryContext &gctx, const xAOD::MdtTwinDriftCircle &dc)
float posAlongWireUncert() const
Returns the uncertainty on the coordinate along the wire.
const boost::regex re(r_e)
VectorBranch< uint8_t > & m_twinLayer
Tube layer of the twin.
bool declare_keys() override final
VectorBranch< uint16_t > & m_twinTube
Tube number of the twin.
Handle class for reading from StoreGate.
std::unordered_map< Identifier, unsigned int > m_idOutIdxMap
Map of Identifiers to the position index inside the vector.
VectorBranch< float > & m_twinLocZ
Local z coordinate along the drift tube.
void dumpAllHitsInChamber(const Identifier &chamberId)
All hits from this particular chamber identifier are dumped to the output including the ones from the...
bool m_applyFilter
Apply a filter to dump the prds.
float driftRadiusUncert() const
Returns the uncertainty on the drift radius.