Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SimHitTester.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef PRDTESTERR4_SIMHITEST_H
6 #define PRDTESTERR4_SIMHITEST_H
10 namespace MuonValR4{
12  public:
14  const std::string& inContainer,
15  const ActsTrk::DetectorType detType,
17 
18  bool declare_keys() override final;
19 
20  bool fill(const EventContext& ctx) override final;
21 
22  unsigned push_back(const xAOD::MuonSimHit& hit);
23 
24  private:
25  unsigned int fillHit(const EventContext& ctx,
26  const xAOD::MuonSimHit& hit);
30  std::string m_collName{};
48  VectorBranch<float>& m_kinE{parent().newVector<float>(m_collName+"KinericEnergy")};
52  std::shared_ptr<MuonIdentifierBranch> m_identifier{};
53 
55  std::unordered_map<const xAOD::MuonSimHit*, unsigned int> m_idxLookUp{};
56 
57  };
58 }
59 #endif
MuonValR4::SimHitTester::m_globDir
ThreeVectorBranch m_globDir
Global direction of the traversing particle generating the hit.
Definition: SimHitTester.h:34
TesterModuleBase.h
xAOD::MuonSimHit_v1
Definition: MuonSimHit_v1.h:18
MuonValR4::SimHitTester::m_kinE
VectorBranch< float > & m_kinE
Kinetic energy of the traversing particle.
Definition: SimHitTester.h:48
ActsTrk::DetectorType
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
Definition: GeometryDefs.h:17
MuonValR4::SimHitTester::fillHit
unsigned int fillHit(const EventContext &ctx, const xAOD::MuonSimHit &hit)
Definition: SimHitTester.cxx:56
MuonValR4::SimHitTester
Definition: SimHitTester.h:11
MuonValR4::SimHitTester::m_energyDep
VectorBranch< float > & m_energyDep
Energy deposited in the volume.
Definition: SimHitTester.h:46
MuonValR4::SimHitTester::m_identifier
std::shared_ptr< MuonIdentifierBranch > m_identifier
Pointer to the Identifier branch.
Definition: SimHitTester.h:52
MuonValR4::SimHitTester::push_back
unsigned push_back(const xAOD::MuonSimHit &hit)
Definition: SimHitTester.cxx:53
MuonVal::VectorBranch< float >
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
MuonValR4::SimHitTester::m_mass
VectorBranch< float > & m_mass
Mass of the traversing particle.
Definition: SimHitTester.h:50
MuonValR4::SimHitTester::m_locDir
ThreeVectorBranch m_locDir
Local direction of the traversing particle generating the hit.
Definition: SimHitTester.h:38
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonValR4::SimHitTester::fill
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...
Definition: SimHitTester.cxx:39
MuonValR4::SimHitTester::m_idxLookUp
std::unordered_map< const xAOD::MuonSimHit *, unsigned int > m_idxLookUp
look up table of alrady dumped sim hits
Definition: SimHitTester.h:55
MuonValR4::SimHitTester::m_collName
std::string m_collName
Name of the SimHit collection in the output tree.
Definition: SimHitTester.h:30
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
AthMessaging::msgLvl
bool msgLvl(const MSG::Level lvl) const
Test the output level.
Definition: AthMessaging.h:151
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
IdentifierBranch.h
MuonValR4::SimHitTester::SimHitTester
SimHitTester(MuonTesterTree &tree, const std::string &inContainer, const ActsTrk::DetectorType detType, MSG::Level msgLvl=MSG::Level::INFO)
Definition: SimHitTester.cxx:8
MuonValR4::SimHitTester::m_beta
VectorBranch< float > & m_beta
Velocity of the simHit expressed in terms of beta.
Definition: SimHitTester.h:42
MuonSimHitContainer.h
MuonValR4::SimHitTester::declare_keys
bool declare_keys() override final
Definition: SimHitTester.cxx:36
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
MuonValR4::TesterModuleBase
Definition: TesterModuleBase.h:15
MuonValR4
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
Definition: IPatternVisualizationTool.h:23
MuonValR4::SimHitTester::m_locPos
ThreeVectorBranch m_locPos
Local position of the produced simHit.
Definition: SimHitTester.h:36
MuonValR4::SimHitTester::m_globPos
ThreeVectorBranch m_globPos
Global position of the SimHits.
Definition: SimHitTester.h:32
MuonValR4::SimHitTester::m_pdgId
VectorBranch< int > & m_pdgId
PdgId of the particle generating the hit.
Definition: SimHitTester.h:44
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
python.Constants.INFO
int INFO
Definition: Control/AthenaCommon/python/Constants.py:15
MuonValR4::SimHitTester::m_globTime
VectorBranch< float > & m_globTime
Global time when the simHit was produced.
Definition: SimHitTester.h:40
MuonValR4::SimHitTester::m_key
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_key
Key of the SimHit container in the StoreGate.
Definition: SimHitTester.h:28