![]() |
ATLAS Offline Software
|
One tester module reading all three Phase-II sTGC PRD collections. More...
#include <StgcPrdVariables.h>
Public Types | |
| using | DataDependency = SG::VarHandleKey* |
Public Member Functions | |
| StgcPrdVariables (MuonVal::MuonTesterTree &tree, const std::string &stripKey, const std::string &wireKey, const std::string &padKey, bool writeStripNumbers=true, bool writeStripCharges=true, bool writeStripTimes=true, MSG::Level msgLvl=MSG::INFO) | |
| bool | declare_keys () override final |
| Declare dependencies on the configured strip, wire, and pad containers. | |
| bool | fill (const EventContext &ctx) override final |
| Read the sTGC containers and append selected measurements to the tree. | |
| unsigned int | push_back (const xAOD::sTgcStripCluster &prd) |
| Select a strip cluster for output. | |
| unsigned int | push_back (const xAOD::sTgcWireHit &prd) |
| Select a wire hit for output. | |
| unsigned int | push_back (const xAOD::sTgcPadHit &prd) |
| Select a pad hit for output. | |
| void | enableSeededDump () |
| Enable selection-based output. | |
| void | dumpAllHitsInChamber (const Identifier &chamberId) |
| Include all sTGC measurements from the specified chamber in the output. | |
| bool | init () override final |
| The init method checks whether the branch name has already registered to the MuonTree and tries then to add the branch to the tree --> return false if the branch has already been defined or the inclusion of the branch to the tree failed or the name of the branch is empty. | |
| std::string | name () const override final |
| Returns the name of the branch. | |
| bool | initialized () const |
| Returns whether the object has been initialized or not The outcome of the variable is bound to a successful call of the addToTree method. | |
| TTree * | tree () override final |
| Returns the underlying TTree object. | |
| const TTree * | tree () const override final |
| std::vector< DataDependency > | data_dependencies () override final |
| Returns the data dependencies needed by the MuonTesterBranch. | |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
Static Public Member Functions | |
| static std::string | eraseWhiteSpaces (const std::string &In) |
Protected Member Functions | |
| const Muon::IMuonIdHelperSvc * | idHelperSvc () const |
| const MuonGMR4::MuonDetectorManager * | getDetMgr () const |
| const ActsTrk::GeometryContext & | getGeoCtx (const EventContext &ctx) const |
| template<class T> | |
| bool | addToTree (T &variable) |
| Connects the Memory buffer with the TTree. | |
| template<class Key> | |
| bool | declare_dependency (Key &key) |
| Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm. | |
| MuonTesterTree & | parent () |
| Returns the reference to the MuonTesterTree parent. | |
Private Member Functions | |
| void | dumpStrip (const ActsTrk::GeometryContext &gctx, const xAOD::sTgcStripCluster &prd) |
| Append a strip cluster's identifier and measurement data to the tree. | |
| void | dumpWire (const ActsTrk::GeometryContext &gctx, const xAOD::sTgcWireHit &prd) |
| Append a wire hit's identifier and measurement data to the tree. | |
| void | dumpPad (const ActsTrk::GeometryContext &gctx, const xAOD::sTgcPadHit &prd) |
| Append a pad hit's identifier and measurement data to the tree. | |
| void | clearEventSelection () |
| Clear the per-event measurement and chamber selections. | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| SG::ReadHandleKey< xAOD::sTgcStripContainer > | m_stripKey {} |
| StoreGate key for the sTGC strip-cluster container. | |
| SG::ReadHandleKey< xAOD::sTgcWireContainer > | m_wireKey {} |
| StoreGate key for the sTGC wire-hit container. | |
| SG::ReadHandleKey< xAOD::sTgcPadContainer > | m_padKey {} |
| StoreGate key for the sTGC pad-hit container. | |
| MuonVal::sTgcIdentifierBranch | m_stripId {parent(), "StgcStrip"} |
| Identifier branch for sTGC strip clusters. | |
| MuonVal::ThreeVectorBranch | m_stripGlobal {parent(), "StgcStrip_globalPos"} |
| Global-frame position of each sTGC strip cluster. | |
| MuonVal::VectorBranch< float > & | m_stripLocal {parent().newVector<float>("StgcStrip_localPos")} |
| Measured local position of each sTGC strip cluster. | |
| MuonVal::VectorBranch< float > & | m_stripCov {parent().newVector<float>("StgcStrip_localCov")} |
| Local measurement variance of each sTGC strip cluster. | |
| MuonVal::VectorBranch< short > & | m_stripTime {parent().newVector<short>("StgcStrip_time")} |
| Time recorded for each sTGC strip cluster. | |
| MuonVal::VectorBranch< int > & | m_stripCharge {parent().newVector<int>("StgcStrip_charge")} |
| Charge recorded for each sTGC strip cluster. | |
| MuonVal::VectorBranch< uint8_t > & | m_stripAuthor {parent().newVector<uint8_t>("StgcStrip_author")} |
| Reconstruction author code for each sTGC strip cluster. | |
| MuonVal::sTgcIdentifierBranch | m_wireId {parent(), "StgcWire"} |
| Identifier branch for sTGC wire hits. | |
| MuonVal::ThreeVectorBranch | m_wireGlobal {parent(), "StgcWire_globalPos"} |
| Global-frame position of each sTGC wire hit. | |
| MuonVal::VectorBranch< float > & | m_wireLocal {parent().newVector<float>("StgcWire_localPos")} |
| Measured local position of each wire hit, along local Y. | |
| MuonVal::VectorBranch< float > & | m_wireCov {parent().newVector<float>("StgcWire_localCov")} |
| Local measurement variance of each sTGC wire hit. | |
| MuonVal::VectorBranch< short > & | m_wireTime {parent().newVector<short>("StgcWire_time")} |
| Time recorded for each sTGC wire hit. | |
| MuonVal::VectorBranch< int > & | m_wireCharge {parent().newVector<int>("StgcWire_charge")} |
| Charge recorded for each sTGC wire hit. | |
| MuonVal::VectorBranch< uint8_t > & | m_wireAuthor {parent().newVector<uint8_t>("StgcWire_author")} |
| Reconstruction author code for each sTGC wire hit. | |
| MuonVal::sTgcIdentifierBranch | m_padId {parent(), "StgcPad"} |
| Identifier branch for sTGC pad hits. | |
| MuonVal::ThreeVectorBranch | m_padGlobal {parent(), "StgcPad_globalPos"} |
| Global-frame position of each sTGC pad hit. | |
| MuonVal::VectorBranch< float > & | m_padLocalX {parent().newVector<float>("StgcPad_localPosX")} |
| Local X coordinate of each sTGC pad hit. | |
| MuonVal::VectorBranch< float > & | m_padLocalY {parent().newVector<float>("StgcPad_localPosY")} |
| Local Y coordinate of each sTGC pad hit. | |
| MuonVal::VectorBranch< float > & | m_padCovXX {parent().newVector<float>("StgcPad_covXX")} |
| Local XX covariance component of each sTGC pad hit. | |
| MuonVal::VectorBranch< float > & | m_padCovXY {parent().newVector<float>("StgcPad_covXY")} |
| Local XY covariance component of each sTGC pad hit. | |
| MuonVal::VectorBranch< float > & | m_padCovYY {parent().newVector<float>("StgcPad_covYY")} |
| Local YY covariance component of each sTGC pad hit. | |
| MuonVal::VectorBranch< short > & | m_padTime {parent().newVector<short>("StgcPad_time")} |
| Time recorded for each sTGC pad hit. | |
| MuonVal::VectorBranch< int > & | m_padCharge {parent().newVector<int>("StgcPad_charge")} |
| Charge recorded for each sTGC pad hit. | |
| MuonVal::VectorBranch< uint8_t > & | m_padAuthor {parent().newVector<uint8_t>("StgcPad_author")} |
| Reconstruction author code for each sTGC pad hit. | |
| MuonVal::MatrixBranch< uint16_t > * | m_stripNumbers {nullptr} |
| Optional per-cluster lists of constituent strip numbers; null when not booked. | |
| MuonVal::MatrixBranch< int > * | m_stripCharges {nullptr} |
| Optional per-cluster lists of constituent strip charges; null when not booked. | |
| MuonVal::MatrixBranch< short > * | m_stripTimes {nullptr} |
| Optional per-cluster lists of constituent strip times; null when not booked. | |
| std::unordered_set< Identifier > | m_filteredChamb {} |
| Chamber identifiers whose measurements are included by the chamber filter. | |
| std::unordered_map< Identifier, unsigned int > | m_stripIdx {} |
| Map from strip-cluster identifier to its output index. | |
| std::unordered_map< Identifier, unsigned int > | m_wireIdx {} |
| Map from wire-hit identifier to its output index. | |
| std::unordered_map< Identifier, unsigned int > | m_padIdx {} |
| Map from pad-hit identifier to its output index. | |
| std::vector< const xAOD::sTgcStripCluster * > | m_seedStrips {} |
| Strip clusters explicitly selected for output in the current event. | |
| std::vector< const xAOD::sTgcWireHit * > | m_seedWires {} |
| Wire hits explicitly selected for output in the current event. | |
| std::vector< const xAOD::sTgcPadHit * > | m_seedPads {} |
| Pad hits explicitly selected for output in the current event. | |
| bool | m_applyFilter {false} |
| Whether output is restricted to selected measurements and chambers. | |
| const MuonGMR4::MuonDetectorManager * | m_detMgr {} |
| ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {"Muon::MuonIdHelperSvc/MuonIdHelperSvc", name()} |
| ActsTrk::GeoContextReadKey_t | m_geoCtxKey {"ActsAlignment"} |
| TTree * | m_tree {nullptr} |
| MuonTesterTree * | m_parent {nullptr} |
| std::string | m_name {} |
| bool | m_init {false} |
| std::vector< DataDependency > | m_dependencies {} |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels). | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging). | |
One tester module reading all three Phase-II sTGC PRD collections.
ROOT output is separated into StgcStrip_*, StgcWire_*, StgcPad_*. The constituent strip branches are booked only when selected.
Definition at line 25 of file StgcPrdVariables.h.
|
inherited |
Definition at line 39 of file IMuonTesterBranch.h.
| MuonValR4::StgcPrdVariables::StgcPrdVariables | ( | MuonVal::MuonTesterTree & | tree, |
| const std::string & | stripKey, | ||
| const std::string & | wireKey, | ||
| const std::string & | padKey, | ||
| bool | writeStripNumbers = true, | ||
| bool | writeStripCharges = true, | ||
| bool | writeStripTimes = true, | ||
| MSG::Level | msgLvl = MSG::INFO ) |
| tree | Tester tree that receives the output branches. |
| stripKey | StoreGate key for the sTGC strip-cluster container. |
| wireKey | StoreGate key for the sTGC wire-hit container. |
| padKey | StoreGate key for the sTGC pad-hit container. |
| writeStripNumbers | Whether to write the per-cluster strip numbers. |
| writeStripCharges | Whether to write the per-strip charges. |
| writeStripTimes | Whether to write the per-strip times. |
| msgLvl | Message level used by the tester module. |
Definition at line 64 of file StgcPrdVariables.cxx.
|
protectedinherited |
Connects the Memory buffer with the TTree.
|
private |
Clear the per-event measurement and chamber selections.
Definition at line 53 of file StgcPrdVariables.cxx.
|
finaloverridevirtualinherited |
Returns the data dependencies needed by the MuonTesterBranch.
Implements MuonVal::IMuonTesterBranch.
Definition at line 61 of file MuonTesterBranch.cxx.
|
protectedinherited |
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
|
finaloverridevirtual |
Declare dependencies on the configured strip, wire, and pad containers.
Implements MuonValR4::TesterModuleBase.
Definition at line 90 of file StgcPrdVariables.cxx.
| void MuonValR4::StgcPrdVariables::dumpAllHitsInChamber | ( | const Identifier & | chamberId | ) |
Include all sTGC measurements from the specified chamber in the output.
| chamberId | Identifier of the chamber to include. |
Definition at line 15 of file StgcPrdVariables.cxx.
|
private |
Append a pad hit's identifier and measurement data to the tree.
| gctx | Geometry context used to calculate the global position. |
| prd | Pad hit to write. |
Definition at line 179 of file StgcPrdVariables.cxx.
|
private |
Append a strip cluster's identifier and measurement data to the tree.
| gctx | Geometry context used to calculate the global position. |
| prd | Strip cluster to write. |
Definition at line 143 of file StgcPrdVariables.cxx.
|
private |
Append a wire hit's identifier and measurement data to the tree.
| gctx | Geometry context used to calculate the global position. |
| prd | Wire hit to write. |
Definition at line 163 of file StgcPrdVariables.cxx.
| void MuonValR4::StgcPrdVariables::enableSeededDump | ( | ) |
Enable selection-based output.
Only explicitly selected measurements and measurements from chambers * passed to dumpAllHitsInChamber() are written.
Definition at line 11 of file StgcPrdVariables.cxx.
|
staticinherited |
Definition at line 56 of file MuonTesterBranch.cxx.
|
finaloverridevirtual |
Read the sTGC containers and append selected measurements to the tree.
| ctx | Event context used to retrieve the containers and geometry. |
Implements MuonVal::IMuonTesterBranch.
Definition at line 96 of file StgcPrdVariables.cxx.
|
protectedinherited |
Definition at line 20 of file TesterModuleBase.cxx.
|
protectedinherited |
Definition at line 23 of file TesterModuleBase.cxx.
|
protectedinherited |
Definition at line 19 of file TesterModuleBase.cxx.
|
finaloverridevirtualinherited |
The init method checks whether the branch name has already registered to the MuonTree and tries then to add the branch to the tree --> return false if the branch has already been defined or the inclusion of the branch to the tree failed or the name of the branch is empty.
Implements MuonVal::IMuonTesterBranch.
Definition at line 31 of file TesterModuleBase.cxx.
|
inherited |
Returns whether the object has been initialized or not The outcome of the variable is bound to a successful call of the addToTree method.
Definition at line 52 of file MuonTesterBranch.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 167 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 182 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
finaloverridevirtualinherited |
Returns the name of the branch.
Implements MuonVal::IMuonTesterBranch.
Definition at line 51 of file MuonTesterBranch.cxx.
|
protectedinherited |
Returns the reference to the MuonTesterTree parent.
Definition at line 38 of file MuonTesterBranch.cxx.
| unsigned int MuonValR4::StgcPrdVariables::push_back | ( | const xAOD::sTgcPadHit & | prd | ) |
Select a pad hit for output.
| prd | Pad hit to select. |
Definition at line 42 of file StgcPrdVariables.cxx.
| unsigned int MuonValR4::StgcPrdVariables::push_back | ( | const xAOD::sTgcStripCluster & | prd | ) |
Select a strip cluster for output.
| prd | Strip cluster to select. |
Definition at line 20 of file StgcPrdVariables.cxx.
| unsigned int MuonValR4::StgcPrdVariables::push_back | ( | const xAOD::sTgcWireHit & | prd | ) |
Select a wire hit for output.
| prd | Wire hit to select. |
Definition at line 31 of file StgcPrdVariables.cxx.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
finaloverridevirtualinherited |
|
finaloverridevirtualinherited |
Returns the underlying TTree object.
Implements MuonVal::IMuonTesterBranch.
Definition at line 53 of file MuonTesterBranch.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging).
Definition at line 141 of file AthMessaging.h.
|
private |
Whether output is restricted to selected measurements and chambers.
Definition at line 191 of file StgcPrdVariables.h.
|
privateinherited |
Definition at line 62 of file MuonTesterBranch.h.
|
privateinherited |
Definition at line 32 of file TesterModuleBase.h.
|
private |
Chamber identifiers whose measurements are included by the chamber filter.
Definition at line 174 of file StgcPrdVariables.h.
|
privateinherited |
Definition at line 34 of file TesterModuleBase.h.
|
privateinherited |
Definition at line 33 of file TesterModuleBase.h.
|
mutableprivateinherited |
|
privateinherited |
Definition at line 61 of file MuonTesterBranch.h.
|
mutableprivateinherited |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels).
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Definition at line 60 of file MuonTesterBranch.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Reconstruction author code for each sTGC pad hit.
Definition at line 163 of file StgcPrdVariables.h.
|
private |
Charge recorded for each sTGC pad hit.
Definition at line 161 of file StgcPrdVariables.h.
|
private |
Local XX covariance component of each sTGC pad hit.
Definition at line 153 of file StgcPrdVariables.h.
|
private |
Local XY covariance component of each sTGC pad hit.
Definition at line 155 of file StgcPrdVariables.h.
|
private |
Local YY covariance component of each sTGC pad hit.
Definition at line 157 of file StgcPrdVariables.h.
|
private |
|
private |
|
private |
Map from pad-hit identifier to its output index.
Definition at line 181 of file StgcPrdVariables.h.
|
private |
StoreGate key for the sTGC pad-hit container.
Definition at line 110 of file StgcPrdVariables.h.
|
private |
Local X coordinate of each sTGC pad hit.
Definition at line 149 of file StgcPrdVariables.h.
|
private |
Local Y coordinate of each sTGC pad hit.
Definition at line 151 of file StgcPrdVariables.h.
|
private |
Time recorded for each sTGC pad hit.
Definition at line 159 of file StgcPrdVariables.h.
|
privateinherited |
Definition at line 59 of file MuonTesterBranch.h.
|
private |
Pad hits explicitly selected for output in the current event.
Definition at line 188 of file StgcPrdVariables.h.
|
private |
Strip clusters explicitly selected for output in the current event.
Definition at line 184 of file StgcPrdVariables.h.
|
private |
Wire hits explicitly selected for output in the current event.
Definition at line 186 of file StgcPrdVariables.h.
|
private |
Reconstruction author code for each sTGC strip cluster.
Definition at line 126 of file StgcPrdVariables.h.
|
private |
Charge recorded for each sTGC strip cluster.
Definition at line 124 of file StgcPrdVariables.h.
|
private |
Optional per-cluster lists of constituent strip charges; null when not booked.
Definition at line 168 of file StgcPrdVariables.h.
|
private |
Local measurement variance of each sTGC strip cluster.
Definition at line 120 of file StgcPrdVariables.h.
|
private |
Global-frame position of each sTGC strip cluster.
Definition at line 116 of file StgcPrdVariables.h.
|
private |
|
private |
Map from strip-cluster identifier to its output index.
Definition at line 177 of file StgcPrdVariables.h.
|
private |
StoreGate key for the sTGC strip-cluster container.
Definition at line 106 of file StgcPrdVariables.h.
|
private |
Measured local position of each sTGC strip cluster.
Definition at line 118 of file StgcPrdVariables.h.
|
private |
Optional per-cluster lists of constituent strip numbers; null when not booked.
Definition at line 166 of file StgcPrdVariables.h.
|
private |
Time recorded for each sTGC strip cluster.
Definition at line 122 of file StgcPrdVariables.h.
|
private |
Optional per-cluster lists of constituent strip times; null when not booked.
Definition at line 170 of file StgcPrdVariables.h.
|
privateinherited |
Definition at line 58 of file MuonTesterBranch.h.
|
private |
Reconstruction author code for each sTGC wire hit.
Definition at line 142 of file StgcPrdVariables.h.
|
private |
Charge recorded for each sTGC wire hit.
Definition at line 140 of file StgcPrdVariables.h.
|
private |
Local measurement variance of each sTGC wire hit.
Definition at line 136 of file StgcPrdVariables.h.
|
private |
|
private |
|
private |
Map from wire-hit identifier to its output index.
Definition at line 179 of file StgcPrdVariables.h.
|
private |
StoreGate key for the sTGC wire-hit container.
Definition at line 108 of file StgcPrdVariables.h.
|
private |
Measured local position of each wire hit, along local Y.
Definition at line 134 of file StgcPrdVariables.h.
|
private |
Time recorded for each sTGC wire hit.
Definition at line 138 of file StgcPrdVariables.h.