Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 const std::string& inContainer,
17 m_identifier = std::make_shared<MdtIdentifierBranch>(
tree, m_collName);
20 m_identifier = std::make_shared<RpcIdentifierBranch>(
tree, m_collName);
23 m_identifier = std::make_shared<TgcIdentifierBranch>(
tree, m_collName);
26 m_identifier = std::make_shared<sTgcIdentifierBranch>(
tree, m_collName);
29 m_identifier = std::make_shared<MmIdentifierBranch>(
tree, m_collName);
42 if (!inContainer.isPresent()) {
54 return fillHit(Gaudi::Hive::currentContext(), hit);
60 if (!insertItr.second) {
61 return insertItr.first->second;
91 return insertItr.first->second;
ThreeVectorBranch m_globDir
Global direction of the traversing particle generating the hit.
VectorBranch< float > & m_kinE
Kinetic energy of the traversing particle.
Identifier identify() const
Returns the global ATLAS identifier of the SimHit.
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.
@ Tgc
Resitive Plate Chambers.
float globalTime() const
Returns the time ellapsed since the collision of the traversing particle.
The MuonReadoutElement is an abstract class representing the geometry representing the muon detector.
unsigned push_back(const xAOD::MuonSimHit &hit)
#define ATH_MSG_VERBOSE(x)
int pdgId() const
Returns the pdgID of the traversing particle.
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
float beta() const
returns beta (fraction of speed of light)
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
float kineticEnergy() const
Returns the kinetic energy of the traversing particle.
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.
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.
Eigen::Affine3d Transform3D
const Muon::IMuonIdHelperSvc * idHelperSvc() const
ConstVectorMap< 3 > localDirection() const
Returns the local direction of the traversing particle.
bool declare_keys() override final
Include the GeoPrimitives which need to be put first.
void push_back(const T &value)
Adds a new element at the end of the vector.
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
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
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
const MuonGMR4::MuonDetectorManager * getDetMgr() const
#define ATH_MSG_WARNING(x)
const boost::regex re(r_e)
ConstVectorMap< 3 > localPosition() const
Returns the local postion of the traversing particle.
@ Rpc
Monitored Drift Tubes.
float energyDeposit() const
Returns the energy deposited by the traversing particle inside the gas volume.
Handle class for reading from StoreGate.
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.
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_key
Key of the SimHit container in the StoreGate.
float mass() const
Returns the rest-mass of the traversing particle.
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.