9 const std::string& inContainer,
54 return fillHit(Gaudi::Hive::currentContext(), hit);
60 if (!insertItr.second) {
61 return insertItr.first->second;
91 return insertItr.first->second;
const boost::regex re(r_e)
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
Handle class for reading from StoreGate.
bool msgLvl(const MSG::Level lvl) const
Test the output level.
This is a "hash" representation of an Identifier.
const MuonReadoutElement * getReadoutElement(const Identifier &id) const
Returns a generic Muon readout element.
The MuonReadoutElement is an abstract class representing the geometry representing the muon detector.
unsigned push_back(const xAOD::MuonSimHit &hit)
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.
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_key
Key of the SimHit container in the StoreGate.
VectorBranch< float > & m_kinE
Kinetic energy of the traversing particle.
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...
ThreeVectorBranch m_globDir
Global direction of the traversing particle generating the hit.
unsigned int fillHit(const EventContext &ctx, const xAOD::MuonSimHit &hit)
VectorBranch< float > & m_beta
Velocity of the simHit expressed in terms of beta.
VectorBranch< float > & m_mass
Mass of the traversing particle.
ThreeVectorBranch m_locPos
Local position of the produced simHit.
VectorBranch< float > & m_globTime
Global time when the simHit was produced.
ThreeVectorBranch m_locDir
Local direction of the traversing particle generating the hit.
ThreeVectorBranch m_globPos
Global position of the SimHits.
VectorBranch< int > & m_pdgId
PdgId of the particle generating the hit.
bool declare_keys() override final
VectorBranch< float > & m_energyDep
Energy deposited in the volume.
SimHitTester(MuonTesterTree &tree, const std::string &inContainer, const ActsTrk::DetectorType detType, MSG::Level msgLvl=MSG::Level::INFO)
std::shared_ptr< MuonIdentifierBranch > m_identifier
Pointer to the Identifier branch.
const Muon::IMuonIdHelperSvc * idHelperSvc() const
TesterModuleBase(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl=MSG::Level::INFO)
const MuonGMR4::MuonDetectorManager * getDetMgr() const
const ActsTrk::GeometryContext & getGeoCtx(const EventContext &ctx) const
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
TTree * tree() override final
Returns the underlying TTree object.
bool addBranch(std::shared_ptr< IMuonTesterBranch > branch)
Branch is added to the tree without transferring the ownership.
virtual bool isMdt(const Identifier &id) const =0
returns whether this is a MDT Identifier or not
bool isPresent() const
Is the referenced object present in SG?
ConstVectorMap< 3 > localDirection() const
Returns the local direction of the traversing particle.
int pdgId() const
Returns the pdgID of the traversing particle.
float beta() const
returns beta (fraction of speed of light)
float mass() const
Returns the rest-mass of the traversing particle.
Identifier identify() const
Returns the global ATLAS identifier of the SimHit.
float energyDeposit() const
Returns the energy deposited by the traversing particle inside the gas volume.
ConstVectorMap< 3 > localPosition() const
Returns the local postion of the traversing particle.
float kineticEnergy() const
Returns the kinetic energy of the traversing particle.
float globalTime() const
Returns the time ellapsed since the collision of the traversing particle.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
std::string to_string(const DetectorType &type)
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
@ Mm
Maybe not needed in the migration.
@ Tgc
Resitive Plate Chambers.
@ Rpc
Monitored Drift Tubes.
Eigen::Affine3d Transform3D
Eigen::Matrix< double, 3, 1 > Vector3D
std::string toString(const Parameters &pars)
Dumps the parameters into a string with labels in front of each number.
std::string to_string(const SectorProjector proj)
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
MuonSimHit_v1 MuonSimHit
Defined the version of the MuonSimHit.