 |
ATLAS Offline Software
|
Go to the documentation of this file.
21 m_h_TRT_x =
new TH1D(
"h_TRT_x",
"hits_x", 100,-1100, 1100);
25 m_h_TRT_y =
new TH1D(
"h_TRT_y",
"hits_y", 100,-1100,1100);
29 m_h_TRT_z =
new TH1D(
"h_TRT_z",
"hits_z", 100,-3000,3000);
33 m_h_TRT_r =
new TH1D(
"h_TRT_r",
"hits_r", 100,500,1100);
37 m_h_TRT_xy =
new TH2D(
"h_TRT_xy",
"xy", 100,-1100.,1100.,100, -1100., 1100.);
41 m_h_TRT_zr =
new TH2D(
"h_TRT_zr",
"zr", 100,-3000,3000,100,500.,1100.);
69 m_h_TRT_barcode =
new TH1D(
"h_TRT_barcode",
"hits_barcode", 100,-500,300000);
74 m_tree =
new TTree(
"TRT",
"TRT");
92 return StatusCode::SUCCESS;
111 const EventContext& ctx{Gaudi::Hive::currentContext()};
132 int particleId(i_hit->GetParticleEncoding());
133 if(particleId == 22 ||
static_cast<int>(std::abs(particleId)/100000)==41 ||
static_cast<int>(std::abs(particleId)/10000000)==1) {
153 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
std::vector< float > * m_TRT_z
std::vector< float > * m_TRT_time_nonphotons
HepGeom::Point3D< double > getGlobalPosition(const InDetDD::TRT_DetectorManager *mgr) const
TH1 * m_h_TRT_kine_photons
Gaudi::Property< std::string > m_path
TH1 * m_h_TRT_time_nonphotons
std::vector< float > * m_TRT_kine_nonphotons
std::vector< float > * m_TRT_x
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
std::vector< float > * m_TRT_barcode
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< float > * m_TRT_y
AtlasHitsVector< TRTUncompressedHit >::const_iterator TRTUncompressedHitConstIter
virtual StatusCode initialize() override
TH1 * m_h_TRT_edep_nonphotons
SG::ReadHandleKey< TRTUncompressedHitCollection > m_readKey
std::vector< float > * m_TRT_kine_photons
const InDetDD::TRT_DetectorManager * m_detMgr
virtual StatusCode execute() override
std::vector< float > * m_TRT_edep_nonphotons
This adaptor class allows TRT_UncompressedHits to behave as if they knew which detector they were in.
TH1 * m_h_TRT_kine_nonphotons
TH1 * m_h_TRT_edep_photons
TH1 * m_h_TRT_time_photons
std::vector< float > * m_TRT_r
Handle class for reading from StoreGate.
Gaudi::Property< std::string > m_ntupleFileName
constexpr int pow(int base, int exp) noexcept
std::vector< float > * m_TRT_edep_photons
std::vector< float > * m_TRT_time_photons
TH1 * m_h_TRT_y
Some variables.