|
ATLAS Offline Software
|
#include <SimHitTester.h>
|
| SimHitTester (MuonTesterTree &tree, const std::string &inContainer, const ActsTrk::DetectorType detType, MSG::Level msgLvl=MSG::Level::INFO) |
|
bool | declare_keys () override final |
|
bool | fill (const EventContext &ctx) override final |
| 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. More...
|
|
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. More...
|
|
std::string | name () const override final |
| Returns the name of the branch. More...
|
|
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. More...
|
|
TTree * | tree () override final |
| Returns the underlying TTree object. More...
|
|
const TTree * | tree () const override final |
|
std::vector< DataDependency > | data_dependencies () override final |
| Returns the data dependencies needed by the MuonTesterBranch. More...
|
|
bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. More...
|
|
MsgStream & | msg () const |
| The standard message stream. More...
|
|
MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. More...
|
|
void | setLevel (MSG::Level lvl) |
| Change the current logging level. More...
|
|
Definition at line 11 of file SimHitTester.h.
◆ DataDependency
◆ SimHitTester()
◆ 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 MuonValR4::SimHitTester::declare_keys |
( |
| ) |
|
|
finaloverridevirtual |
◆ eraseWhiteSpaces()
std::string MuonVal::MuonTesterBranch::eraseWhiteSpaces |
( |
const std::string & |
In | ) |
|
|
staticinherited |
◆ fill()
bool MuonValR4::SimHitTester::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 39 of file SimHitTester.cxx.
43 if (!inContainer.isPresent()) {
58 const Amg::Vector3D locPos{xAOD::toEigen(simHit->localPosition())};
◆ getDetMgr()
◆ getGeoCtx()
◆ idHelperSvc()
◆ init()
bool MuonValR4::TesterModuleBase::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 30 of file TesterModuleBase.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()
◆ 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_beta
◆ m_collName
std::string MuonValR4::SimHitTester::m_collName {} |
|
private |
◆ m_dependencies
std::vector<DataDependency> MuonVal::MuonTesterBranch::m_dependencies {} |
|
privateinherited |
◆ m_detMgr
◆ m_energyDep
◆ m_geoCtxKey
◆ m_globDir
◆ m_globPos
◆ m_globTime
◆ m_identifier
◆ m_idHelperSvc
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_init
bool MuonVal::MuonTesterBranch::m_init {false} |
|
privateinherited |
◆ m_key
◆ m_kinE
◆ m_locDir
◆ m_locPos
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_mass
◆ 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_parent
◆ m_pdgId
◆ 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.
ThreeVectorBranch m_globDir
VectorBranch< float > & m_kinE
std::vector< DataDependency > m_dependencies
VectorBranch< float > & m_energyDep
std::shared_ptr< MuonIdentifierBranch > m_identifier
@ Tgc
Resitive Plate Chambers.
The MuonReadoutElement is an abstract class representing the geometry representing the muon detector.
#define ATH_MSG_VERBOSE(x)
#define THROW_EXCEPTION(MSG)
TesterModuleBase(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl=MSG::Level::INFO)
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
VectorBranch< float > & m_mass
ThreeVectorBranch m_locDir
IMessageSvc * getMessageSvc(bool quiet=false)
const MuonGMR4::MuonDetectorManager * m_detMgr
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.
const ActsGeometryContext & getGeoCtx(const EventContext &ctx) const
void push_back(const Amg::Vector3D &vec)
interface using the Amg::Vector3D
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
bool msgLvl(const MSG::Level lvl) const
Test the output level.
@ Mm
Maybe not needed in the migration.
VectorBranch< float > & m_beta
Eigen::Affine3d Transform3D
const Muon::IMuonIdHelperSvc * idHelperSvc() const
MsgStream & msg() const
The standard message stream.
Include the GeoPrimitives which need to be put first.
std::string name() const override final
Returns the name of the branch.
void push_back(const T &value)
Adds a new element at the end of the vector.
virtual bool isMdt(const Identifier &id) const =0
returns whether this is a MDT Identifier or not
ThreeVectorBranch m_locPos
std::string to_string(const DetectorType &type)
ThreeVectorBranch m_globPos
VectorBranch< int > & m_pdgId
Eigen::Matrix< double, 3, 1 > Vector3D
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
const MuonGMR4::MuonDetectorManager * getDetMgr() const
#define ATH_MSG_WARNING(x)
std::string m_nm
Message source name.
const boost::regex re(r_e)
virtual bool declare_keys()=0
@ Rpc
Monitored Drift Tubes.
void initMessaging() const
Initialize our message level and MessageSvc.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
VectorBranch< float > & m_globTime
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_key
bool addBranch(std::shared_ptr< IMuonTesterBranch > branch)
Branch is added to the tree without transferring the ownership.
const MuonReadoutElement * getReadoutElement(const Identifier &id) const
Returns a generic Muon readout element.