|
ATLAS Offline Software
|
Go to the documentation of this file.
19 if (!rpcContainer.isValid()) {
24 if (!MuonDetMgr) {
return false; }
25 unsigned int n_hits{0};
28 if (!rpcContainer->size())
ATH_MSG_DEBUG(
"RPC sdo container is empty");
29 for (
const RPCSimHit& hit : *rpcContainer) {
30 HitID hitid = hit.RPCid();
50 << stname <<
", eta=" << steta <<
", phi=" << stphi <<
", doubletR=" <<
dbr <<
", doubletZ=" << dbz
51 <<
", doubletPhi=" << dbp <<
", gasGap=" << gg <<
", measuresPhi=" << mfi <<
"; skipping...");
57 ATH_MSG_ERROR(
"RPCSimHitVariables::fillVariables() - Failed to retrieve RpcReadoutElement for "
82 pdgId = genP->pdg_id();
86 << stname <<
" (eta=" << steta <<
", phi=" << stphi <<
", doubletR=" <<
dbr <<
", doubletZ=" << dbz
87 <<
", doubletPhi=" << dbp <<
", gasgaplayer=" << gg <<
", measuresPhi=" << mfi <<
")");
93 <<
"HepMcParticleLink with barcode=" <<
barcode <<
" is not valid for hit in " << stname <<
" (eta=" << steta
94 <<
", phi=" << stphi <<
", doubletR=" <<
dbr <<
", doubletZ=" << dbz <<
", doubletPhi=" << dbp
95 <<
", gasgaplayer=" << gg <<
", measuresPhi=" << mfi <<
")" <<
endmsg;
const RpcReadoutElement * getRpcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
std::string GetStationName(const int &hid) const
static const RpcHitIdHelper * GetHelper(unsigned int nGasGaps=2)
RPCSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
int GetDoubletPhi(const int &hid) const
VectorBranch< float > & m_RPC_kineticEnergy
int GetMeasuresPhi(const int &hid) const
VectorBranch< int > & m_RPC_particleEncoding
bool declare_keys() override final
const MuonGM::MuonDetectorManager * getDetMgr(const EventContext &ctx) const
int GetDoubletZ(const int &hid) const
void push_back(const Identifier &id) override final
An RpcReadoutElement corresponds to a single RPC module; therefore typicaly a barrel muon station con...
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
int barcode() const
Return the barcode of the target particle.
Identifier channelID(int stationName, int stationEta, int stationPhi, int doubletR, int doubletZ, int doubletPhi, int gasGap, int measuresPhi, int strip) const
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
void push_back(const Amg::Vector3D &vec)
interface using the Amg::Vector3D
HepMC::ConstGenParticlePtr cptr() const
Dereference.
a link optimized in size for a GenParticle in a McEventCollection
Amg::Vector3D localToGlobalCoords(const Amg::Vector3D &x, const Identifier &id) const
Attention: these transformations do not represent the tracking transformations as obtained by the tra...
int GetPhiSector(const int &hid) const
ScalarBranch< unsigned int > & m_RPC_nSimHits
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
bool msgLvl(const MSG::Level lvl) const
Test the output level.
VectorBranch< int > & m_RPC_truthEl
RpcIdentifierBranch m_rpc_Id
VectorBranch< float > & m_RPC_hitLocalPositionY
bool isValid() const
Validity check.
const Amg::Vector3D globalPosition() const
MsgStream & msg() const
The standard message stream.
int GetGasGapLayer(const int &hid) const
void push_back(const T &value)
Adds a new element at the end of the vector.
const GenParticle * ConstGenParticlePtr
VectorBranch< int > & m_RPC_trackId
Eigen::Matrix< double, 3, 1 > Vector3D
int GetDoubletR(const int &hid) const
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
#define ATH_MSG_WARNING(x)
const Muon::IMuonIdHelperSvc * idHelperSvc() const
VectorBranch< float > & m_RPC_globalTime
SG::ReadHandleKey< RPCSimHitCollection > m_key
ThreeVectorBranch m_RPC_detector_globalPosition
ThreeVectorBranch m_RPC_hitGlobalPosition
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...
VectorBranch< float > & m_RPC_StepLength
VectorBranch< float > & m_RPC_hitLocalPositionX
int GetZSector(const int &hid) const
VectorBranch< float > & m_RPC_depositEnergy
virtual const RpcIdHelper & rpcIdHelper() const =0
access to RpcIdHelper