|
ATLAS Offline Software
|
Go to the documentation of this file.
19 if (!MuonDetMgr) {
return false; }
22 if (!cscContainer.isValid()) {
29 unsigned int numHits{0};
30 for (
const CSCSimHit& hit : *cscContainer) {
31 HitID hitid = hit.CSCid();
43 ATH_MSG_WARNING(
"Cannot build a valid Identifier for CSC stationName=" << stname <<
", eta=" << steta <<
", phi=" << stphi
44 <<
", chamberLayer=" << clayer <<
", wireLayer=" << wlayer
51 ATH_MSG_ERROR(
"CSCSimHitVariables::fillVariables() - Failed to retrieve CscReadoutElement for "
75 pdgId = genP->pdg_id();
78 ATH_MSG_WARNING(
"GenParticle is nullptr for hit in " << stname <<
" (eta=" << steta <<
", phi=" << stphi <<
", chamberlayer=" << clayer
79 <<
", wirelayer=" << wlayer <<
")");
85 <<
"HepMcParticleLink with barcode=" <<
barcode <<
" is not valid for hit in " << stname <<
" (eta=" << steta
86 <<
", phi=" << stphi <<
", chamberlayer=" << clayer <<
", wirelayer=" << wlayer <<
")" <<
endmsg;
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...
void push_back(const Identifier &id) override final
const MuonGM::MuonDetectorManager * getDetMgr(const EventContext &ctx) const
int barcode() const
Return the barcode of the target particle.
CscIdentifierBranch m_CSC_id
int GetChamberLayer(const int &hid) const
VectorBranch< float > & m_CSC_depositEnergy
int GetPhiSector(const int &hid) 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
static const CscHitIdHelper * GetHelper()
SG::ReadHandleKey< CSCSimHitCollection > m_key
VectorBranch< float > & m_CSC_kineticEnergy
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
bool msgLvl(const MSG::Level lvl) const
Test the output level.
bool declare_keys() override final
const CscReadoutElement * getCscReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
int GetWireLayer(const int &hid) const
bool isValid() const
Validity check.
const Amg::Vector3D globalPosition() const
MsgStream & msg() const
The standard message stream.
void push_back(const T &value)
Adds a new element at the end of the vector.
VectorBranch< float > & m_CSC_globalTime
Amg::Vector3D localToGlobalCoords(const Amg::Vector3D &x, const Identifier &id) const
localToGlobalCoords and Transf connect the Gas Gap Frame (defined as a Sensitive Detector) to the Glo...
const GenParticle * ConstGenParticlePtr
Identifier channelID(int stationName, int stationEta, int stationPhi, int chamberLayer, int wireLayer, int measuresPhi, int strip) const
Helpers for checking error return status codes and reporting errors.
Eigen::Matrix< double, 3, 1 > Vector3D
std::string GetStationName(const int &hid) const
ThreeVectorBranch m_CSC_detector_globalPosition
virtual const CscIdHelper & cscIdHelper() const =0
access to CscIdHelper
int GetZSector(const int &hid) const
VectorBranch< int > & m_CSC_trackId
ThreeVectorBranch m_CSC_hitGlobalPosition
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
#define ATH_MSG_WARNING(x)
VectorBranch< int > & m_CSC_truthEl
const Muon::IMuonIdHelperSvc * idHelperSvc() const
CSCSimHitVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
ScalarBranch< unsigned int > & m_CSC_nSimHits