|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "Identifier/Identifier.h"
21 #include "CLHEP/Vector/LorentzVector.h"
23 #include "GaudiKernel/NTuple.h"
24 #include "GaudiKernel/SmartDataPtr.h"
25 #include "GaudiKernel/IDataProviderSvc.h"
26 #include "GaudiKernel/ITHistSvc.h"
27 #include "GaudiKernel/INTupleSvc.h"
51 Identifier offid = m_pMdtIdHelper->channelID(mdt_stname, mdt_steta, mdt_stphi,mdt_ml,mdt_tl,mdt_tube);
56 ATH_MSG_VERBOSE(
" MDT: Offline Id "<<m_pMdtIdHelper->show_to_string(offid));
62 if (descriptor == NULL) {
63 ATH_MSG_FATAL(
"MDT readout element not found for Id = " << m_pMdtIdHelper->show_to_string(offid));
64 return StatusCode::FAILURE;
70 double mdt_tube_phi = mdt_gPos.phi();
71 if (mdt_tube_phi < 0.) mdt_tube_phi += 2.*
M_PI;
79 return StatusCode::SUCCESS;
83 CHECK(executeCheckEventInfo());
104 if (evtStore()->
retrieve(p_collection,
"MDT_Hits") == StatusCode::SUCCESS) {
105 for (
const MDTSimHit& hit : *p_collection) {
110 CHECK(checkIdentifier(offid));
120 CHECK(executeFillHistos(
u));
125 return StatusCode::SUCCESS;
132 m_pMdtIdHelper = m_pMuonMgr->mdtIdHelper();
133 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
int GetMultiLayer(const int &hid) const
Ensure that the Athena extensions are properly loaded.
int GetZSector(const int &hid) const
#define ATH_MSG_VERBOSE(x)
static const MdtHitIdHelper * GetHelper(unsigned int nTubes=78)
@ u
Enums for curvilinear frames.
int GetPhiSector(const int &hid) const
std::string GetStationName(const int &hid) const
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
int GetLayer(const int &hid) const
Eigen::Matrix< double, 3, 1 > Vector3D
Amg::Vector3D tubePos(const Identifier &id) const
Returns the global position of the given tube.
int GetTube(const int &hid) const
Amg::Vector3D getGlobalPosition() const