|
ATLAS Offline Software
|
Go to the documentation of this file.
17 if (!stgcSdoContainer.isValid()) {
22 if (!MuonDetMgr) {
return false; }
23 unsigned int n_sdo{0};
24 for (
const auto& coll : *stgcSdoContainer) {
34 std::vector<MuonSimData::Deposit> deposits;
41 int barcode = deposits[0].first.barcode();
42 double MuonMCdata_firstentry = deposits[0].second.firstEntry();
43 double MuonMCdata_secondentry = deposits[0].second.secondEntry();
46 ATH_MSG_DEBUG(
"sTGC SDO energy=" << std::setw(9) << std::setprecision(2) << MuonMCdata_firstentry
47 <<
", tof=" << std::setw(9) << std::setprecision(2) << MuonMCdata_secondentry);
63 ATH_MSG_DEBUG(
"sTGC SDO local position X=" << std::setw(9) << std::setprecision(2) << loc_pos[0]
64 <<
", local position Y=" << std::setw(9) << std::setprecision(2) << loc_pos[1]);
virtual bool globalToLocal(const Amg::Vector3D &glob, const Amg::Vector3D &mom, Amg::Vector2D &loc) const override final
Specified for PlaneSurface: GlobalToLocal method without dynamic memory allocation - boolean checks i...
VectorBranch< float > & m_NSWsTGC_sdo_localPosY
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_NSWsTGC_sdo_tof
Eigen::Matrix< double, 2, 1 > Vector2D
sTgcSDOVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
const MuonGM::MuonDetectorManager * getDetMgr(const EventContext &ctx) const
void push_back(const Identifier &id) override final
virtual const Trk::PlaneSurface & surface() const override
access to chamber surface (phi orientation), uses the first gas gap
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
bool declare_keys() override final
void push_back(const Amg::Vector3D &vec)
interface using the Amg::Vector3D
VectorBranch< float > & m_NSWsTGC_sdo_globaltime
void deposits(std::vector< Deposit > &deposits) const
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
ScalarBranch< unsigned int > & m_NSWsTGC_nsdo
VectorBranch< int > & m_NSWsTGC_sdo_word
An sTgcReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station c...
VectorBranch< float > & m_NSWsTGC_sdo_localPosX
void push_back(const T &value)
Adds a new element at the end of the vector.
sTgcIdentifierBranch m_NSWsTGC_sdo_id
VectorBranch< float > & m_NSWsTGC_sdo_E
Eigen::Matrix< double, 3, 1 > Vector3D
VectorBranch< int > & m_NSWsTGC_sdo_barcode
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
const Muon::IMuonIdHelperSvc * idHelperSvc() const
SG::ReadHandleKey< MuonSimDataCollection > m_key
const sTgcReadoutElement * getsTgcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
ThreeVectorBranch m_NSWsTGC_dig_globalPos
const Amg::Vector3D globalPosition() const