|
ATLAS Offline Software
|
#include <MMPRDVariables.h>
Definition at line 15 of file MMPRDVariables.h.
◆ DataDependency
◆ MMPRDVariables()
MuonPRDTest::MMPRDVariables::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 MicroMegaPrds can be retrieved The message level.
Definition at line 11 of file MMPRDVariables.cxx.
◆ ~MMPRDVariables()
MuonPRDTest::MMPRDVariables::~MMPRDVariables |
( |
| ) |
|
|
default |
◆ addToTree()
template<class T >
bool MuonVal::MuonTesterBranch::addToTree |
( |
T & |
variable | ) |
|
|
protectedinherited |
Connects the Memory buffer with the TTree.
◆ data_dependencies()
|
finaloverridevirtualinherited |
◆ declare_dependency()
template<class Key >
bool MuonVal::MuonTesterBranch::declare_dependency |
( |
Key & |
key | ) |
|
|
protectedinherited |
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
◆ declare_keys()
bool MuonPRDTest::MMPRDVariables::declare_keys |
( |
| ) |
|
|
finaloverridevirtual |
◆ dump()
Definition at line 56 of file MMPRDVariables.cxx.
74 <<
", ex=" << std::setw(6) << std::setprecision(2) <<
cov(0,0));
◆ dumpAllHitsInChamber()
Adds all hits in this particular chamber to the output n-tuple.
Definition at line 51 of file MMPRDVariables.cxx.
◆ enableSeededDump()
void MuonPRDTest::MMPRDVariables::enableSeededDump |
( |
| ) |
|
Dumps only hits which are marked by the dumpAllHitsInChamber method.
Definition at line 48 of file MMPRDVariables.cxx.
◆ eraseWhiteSpaces()
std::string MuonVal::MuonTesterBranch::eraseWhiteSpaces |
( |
const std::string & |
In | ) |
|
|
staticinherited |
◆ fill()
bool MuonPRDTest::MMPRDVariables::fill |
( |
const EventContext & |
ctx | ) |
|
|
finaloverridevirtual |
The fill method checks if enough information is provided such that the branch is cleared from the information of the prevoius event and in cases of that updates did no happen befure a default value is provided.
--> returns false if no update is called or the dummy value has not been defined
Implements MuonVal::IMuonTesterBranch.
Definition at line 16 of file MMPRDVariables.cxx.
20 if (!mmprdContainer.isValid()) {
24 ATH_MSG_DEBUG(
"retrieved MM PRD Container with size " << mmprdContainer->size());
27 unsigned int n_PRD{0};
◆ getDetMgr()
◆ idHelperSvc()
◆ init()
bool MuonPRDTest::PrdTesterModule::init |
( |
| ) |
|
|
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 24 of file PrdTesterModule.cxx.
◆ initialized()
bool MuonVal::MuonTesterBranch::initialized |
( |
| ) |
const |
|
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.
◆ initMessaging()
void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ msg() [1/2]
MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
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 164 of file AthMessaging.h.
◆ msg() [2/2]
MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
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 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ name()
std::string MuonVal::MuonTesterBranch::name |
( |
| ) |
const |
|
finaloverridevirtualinherited |
◆ parent()
◆ push_back()
Adds a prd to the output tree.
Returns the index in the vector where the PRD is saved for output. Internal checks ensure that the same Prd is nver pushed twice.
Definition at line 44 of file MMPRDVariables.cxx.
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ tree() [1/2]
const TTree * MuonVal::MuonTesterBranch::tree |
( |
| ) |
const |
|
finaloverridevirtualinherited |
◆ tree() [2/2]
TTree * MuonVal::MuonTesterBranch::tree |
( |
| ) |
|
|
finaloverridevirtualinherited |
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_applyFilter
bool MuonPRDTest::MMPRDVariables::m_applyFilter {false} |
|
private |
◆ m_dependencies
std::vector<DataDependency> MuonVal::MuonTesterBranch::m_dependencies {} |
|
privateinherited |
◆ m_detMgrKey
◆ m_externalPush
bool MuonPRDTest::MMPRDVariables::m_externalPush {false} |
|
private |
Flag telling whether an external prd has been pushed.
Definition at line 64 of file MMPRDVariables.h.
◆ m_filteredChamb
std::unordered_set<Identifier> MuonPRDTest::MMPRDVariables::m_filteredChamb {} |
|
private |
◆ m_filteredPRDs
std::unordered_map<Identifier, unsigned int> MuonPRDTest::MMPRDVariables::m_filteredPRDs {} |
|
private |
◆ m_idHelperSvc
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_init
bool MuonVal::MuonTesterBranch::m_init {false} |
|
privateinherited |
◆ m_key
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_name
std::string MuonVal::MuonTesterBranch::m_name {} |
|
privateinherited |
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_NSWMM_nPRD
ScalarBranch<unsigned int>& MuonPRDTest::MMPRDVariables::m_NSWMM_nPRD {parent().newScalar<unsigned int>("N_PRD_MM")} |
|
private |
◆ m_NSWMM_PRD_author
VectorBranch<short>& MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_author {parent().newVector<short>("PRD_MM_author")} |
|
private |
◆ m_NSWMM_PRD_covMatrix_1_1
VectorBranch<float>& MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_covMatrix_1_1 {parent().newVector<float>("PRD_MM_covMatrix_1_1")} |
|
private |
◆ m_NSWMM_PRD_globalPos
◆ m_NSWMM_PRD_id
◆ m_NSWMM_PRD_localPos
◆ m_NSWMM_PRD_nStrips
VectorBranch<int>& MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_nStrips {parent().newVector<int>("PRD_MM_nStrips")} |
|
private |
◆ m_NSWMM_PRD_quality
VectorBranch<uint8_t>& MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_quality {parent().newVector<uint8_t>("PRD_MM_quality")} |
|
private |
◆ m_NSWMM_PRD_stripCharges
MatrixBranch<int>& MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_stripCharges {parent().newMatrix<int>("PRD_MM_stripCharges")} |
|
private |
◆ m_NSWMM_PRD_stripNumbers
MatrixBranch<short unsigned>& MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_stripNumbers {parent().newMatrix<short unsigned>("PRD_MM_stripNumbers")} |
|
private |
◆ m_NSWMM_PRD_stripTimes
MatrixBranch<short int>& MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_stripTimes {parent().newMatrix<short int>("PRD_MM_stripTimes")} |
|
private |
◆ m_NSWMM_PRD_time
VectorBranch<int>& MuonPRDTest::MMPRDVariables::m_NSWMM_PRD_time {parent().newVector<int>("PRD_MM_time")} |
|
private |
◆ m_parent
◆ m_tree
TTree* MuonVal::MuonTesterBranch::m_tree {nullptr} |
|
privateinherited |
The documentation for this class was generated from the following files:
std::atomic< MSG::Level > m_lvl
Current logging level.
MatrixBranch< short unsigned > & m_NSWMM_PRD_stripNumbers
Class to represent MM measurements.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
virtual const Amg::Vector3D & globalPosition() const override final
Returns the global position.
VectorBranch< short > & m_NSWMM_PRD_author
Eigen::Matrix< double, 2, 1 > Vector2D
const Amg::MatrixX & localCovariance() const
return const ref to the error matrix
std::vector< DataDependency > m_dependencies
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
void push_back(const Identifier &id) override final
unsigned int dump(const Muon::MMPrepData &prd)
std::unordered_set< Identifier > m_filteredChamb
Set of chambers to be dumped.
#define ATH_MSG_VERBOSE(x)
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
IMessageSvc * getMessageSvc(bool quiet=false)
TTree * tree() override final
Returns the underlying TTree object.
MuonTesterTree * m_parent
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
std::unordered_map< Identifier, unsigned int > m_filteredPRDs
Set of particular chambers to be dumped.
void push_back(const Amg::Vector3D &vec)
interface using the Amg::Vector3D
void push_back(size_t i, const T &value)
const std::vector< int > & stripCharges() const
returns the list of charges
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
virtual const MuonGM::MMReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD.
void push_back(const Amg::Vector2D &vec)
interface using the Amg::Vector3D
ThreeVectorBranch m_NSWMM_PRD_globalPos
SG::ReadHandleKey< Muon::MMPrepDataContainer > m_key
MatrixBranch< int > & m_NSWMM_PRD_stripCharges
bool m_applyFilter
Apply a filter to dump the prds.
const std::vector< uint16_t > & stripNumbers() const
returns the list of strip numbers
Template to hold collections of MuonPrepRawData objects.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
MsgStream & msg() const
The standard message stream.
std::string name() const override final
Returns the name of the branch.
const std::vector< short int > & stripTimes() const
returns the list of times
void push_back(const T &value)
Adds a new element at the end of the vector.
VectorBranch< uint8_t > & m_NSWMM_PRD_quality
Identifier identify() const
return the identifier
ScalarBranch< unsigned int > & m_NSWMM_nPRD
MatrixBranch< short int > & m_NSWMM_PRD_stripTimes
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
virtual bool declare_keys()=0
short int time() const
Returns the time (in ns)
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detMgrKey
Eigen::Matrix< double, 3, 1 > Vector3D
MmIdentifierBranch m_NSWMM_PRD_id
VectorBranch< int > & m_NSWMM_PRD_nStrips
TwoVectorBranch m_NSWMM_PRD_localPos
#define ATH_MSG_WARNING(x)
VectorBranch< float > & m_NSWMM_PRD_covMatrix_1_1
std::string m_nm
Message source name.
bool m_externalPush
Flag telling whether an external prd has been pushed.
Identifier identify() const override final
Returns the ATLAS Identifier of the MuonReadOutElement.
const Muon::IMuonIdHelperSvc * idHelperSvc() const
An MMReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station con...
void initMessaging() const
Initialize our message level and MessageSvc.
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
VectorBranch< int > & m_NSWMM_PRD_time