 |
ATLAS Offline Software
|
#include <SimHitTester.h>
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.
42 if (!inContainer.isPresent()) {
◆ fillHit()
Definition at line 56 of file SimHitTester.cxx.
60 if (!insertItr.second) {
61 return insertItr.first->second;
75 const Amg::Vector3D locPos{xAOD::toEigen(simHit.localPosition())};
91 return insertItr.first->second;
◆ 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()
◆ push_back()
◆ 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
Velocity of the simHit expressed in terms of beta.
Definition at line 42 of file SimHitTester.h.
◆ m_collName
std::string MuonValR4::SimHitTester::m_collName {} |
|
private |
Name of the SimHit collection in the output tree.
Definition at line 30 of file SimHitTester.h.
◆ m_dependencies
std::vector<DataDependency> MuonVal::MuonTesterBranch::m_dependencies {} |
|
privateinherited |
◆ m_detMgr
◆ m_energyDep
◆ m_geoCtxKey
◆ m_globDir
Global direction of the traversing particle generating the hit.
Definition at line 34 of file SimHitTester.h.
◆ m_globPos
◆ m_globTime
Global time when the simHit was produced.
Definition at line 40 of file SimHitTester.h.
◆ m_identifier
◆ m_idHelperSvc
◆ m_idxLookUp
look up table of alrady dumped sim hits
Definition at line 55 of file SimHitTester.h.
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_init
bool MuonVal::MuonTesterBranch::m_init {false} |
|
privateinherited |
◆ m_key
Key of the SimHit container in the StoreGate.
Definition at line 28 of file SimHitTester.h.
◆ m_kinE
Kinetic energy of the traversing particle.
Definition at line 48 of file SimHitTester.h.
◆ m_locDir
Local direction of the traversing particle generating the hit.
Definition at line 38 of file SimHitTester.h.
◆ m_locPos
Local position of the produced simHit.
Definition at line 36 of file SimHitTester.h.
◆ 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
PdgId of the particle generating the hit.
Definition at line 44 of file SimHitTester.h.
◆ 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
Global direction of the traversing particle generating the hit.
VectorBranch< float > & m_kinE
Kinetic energy of the traversing particle.
unsigned int fillHit(const EventContext &ctx, const xAOD::MuonSimHit &hit)
std::vector< DataDependency > m_dependencies
VectorBranch< float > & m_energyDep
Energy deposited in the volume.
std::shared_ptr< MuonIdentifierBranch > m_identifier
Pointer to the Identifier branch.
@ Tgc
Resitive Plate Chambers.
The MuonReadoutElement is an abstract class representing the geometry representing the muon detector.
#define ATH_MSG_VERBOSE(x)
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
Mass of the traversing particle.
ThreeVectorBranch m_locDir
Local direction of the traversing particle generating the hit.
IMessageSvc * getMessageSvc(bool quiet=false)
const MuonGMR4::MuonDetectorManager * m_detMgr
TTree * tree() override final
Returns the underlying TTree object.
MuonTesterTree * m_parent
std::unordered_map< const xAOD::MuonSimHit *, unsigned int > m_idxLookUp
look up table of alrady dumped sim hits
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
std::string m_collName
Name of the SimHit collection in the output tree.
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
Velocity of the simHit expressed in terms of 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
Local position of the produced simHit.
std::string to_string(const DetectorType &type)
ThreeVectorBranch m_globPos
Global position of the SimHits.
VectorBranch< int > & m_pdgId
PdgId of the particle generating the hit.
Eigen::Matrix< double, 3, 1 > Vector3D
#define THROW_EXCEPTION(MESSAGE)
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
Global time when the simHit was produced.
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
Key of the SimHit container in the StoreGate.
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.