Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef PRDTESTERR4_SIMHITEST_H
6 #define PRDTESTERR4_SIMHITEST_H
14 const std::string& inContainer,
20 bool fill(
const EventContext& ctx)
override final;
25 unsigned int fillHit(
const EventContext& ctx,
55 std::unordered_map<const xAOD::MuonSimHit*, unsigned int>
m_idxLookUp{};
ThreeVectorBranch m_globDir
Global direction of the traversing particle generating the hit.
VectorBranch< float > & m_kinE
Kinetic energy of the traversing particle.
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
unsigned int fillHit(const EventContext &ctx, const xAOD::MuonSimHit &hit)
VectorBranch< float > & m_energyDep
Energy deposited in the volume.
std::shared_ptr< MuonIdentifierBranch > m_identifier
Pointer to the Identifier branch.
unsigned push_back(const xAOD::MuonSimHit &hit)
Property holding a SG store/key/clid from which a ReadHandle is made.
VectorBranch< float > & m_mass
Mass of the traversing particle.
ThreeVectorBranch m_locDir
Local direction of the traversing particle generating the hit.
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...
std::unordered_map< const xAOD::MuonSimHit *, unsigned int > m_idxLookUp
look up table of alrady dumped sim hits
std::string m_collName
Name of the SimHit collection in the output tree.
bool msgLvl(const MSG::Level lvl) const
Test the output level.
SimHitTester(MuonTesterTree &tree, const std::string &inContainer, const ActsTrk::DetectorType detType, MSG::Level msgLvl=MSG::Level::INFO)
VectorBranch< float > & m_beta
Velocity of the simHit expressed in terms of beta.
bool declare_keys() override final
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
ThreeVectorBranch m_locPos
Local position of the produced simHit.
ThreeVectorBranch m_globPos
Global position of the SimHits.
VectorBranch< int > & m_pdgId
PdgId of the particle generating the hit.
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
VectorBranch< float > & m_globTime
Global time when the simHit was produced.
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_key
Key of the SimHit container in the StoreGate.