12#include "CLHEP/Vector/LorentzVector.h"
29 m_h_hits_x =
new TH1D(
"h_hits_mdt_x",
"hits_x", 100,-25000, 25000);
33 m_h_hits_y =
new TH1D(
"h_hits_mdt_y",
"hits_y", 100,-25000,25000);
37 m_h_hits_z =
new TH1D(
"h_hits_mdt_z",
"hits_z", 100,-45000,45000);
41 m_h_hits_r =
new TH1D(
"h_hits_mdt_r",
"hits_r", 100,4000,26000);
45 m_h_xy =
new TH2D(
"h_mdt_xy",
"xy", 100,-25000.,25000.,100, -25000., 25000.);
49 m_h_zr =
new TH2D(
"h_mdt_zr",
"zr", 100,-45000.,45000.,100, 4000., 26000.);
53 m_h_hits_eta =
new TH1D(
"h_hits_mdt_eta",
"hits_eta", 100,-3.0,3.0);
57 m_h_hits_phi =
new TH1D(
"h_hits_mdt_phi",
"hits_phi", 100,-3.2,3.2);
61 m_h_hits_lx =
new TH1D(
"h_hits_mdt_lx",
"hits_lx", 100,-20, 20);
65 m_h_hits_ly =
new TH1D(
"h_hits_mdt_ly",
"hits_ly", 100,-20,20);
69 m_h_hits_lz =
new TH1D(
"h_hits_mdt_lz",
"hits_lz", 100,-2000,2000);
73 m_h_hits_driftR =
new TH1D(
"h_hits_mdt_driftR",
"hits_driftR", 100,0,15);
77 m_h_hits_time =
new TH1D(
"h_hits_mdt_time",
"hits_time", 100,0, 150);
81 m_h_hits_edep =
new TH1D(
"h_hits_mdt_edep",
"hits_edep", 100,0,0.2);
85 m_h_hits_kine =
new TH1D(
"h_hits_mdt_kine",
"hits_kine", 100,0,20000);
89 m_h_hits_step =
new TH1D(
"h_hits_mdt_step",
"hits_step", 100,0,100);
94 return StatusCode::SUCCESS;
101 const EventContext& ctx{Gaudi::Hive::currentContext()};
115 m_h_xy->Fill(p.x(), p.y());
116 m_h_zr->Fill(p.z(),p.perp());
130 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
AtlasHitsVector< MDTSimHit > MDTSimHitCollection
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
CONT::const_iterator const_iterator
const_iterator begin() const
const_iterator end() const
Amg::Vector3D getGlobalPosition() const
Gaudi::Property< std::string > m_path
virtual StatusCode execute() override final
virtual StatusCode initialize() override final
TH1 * m_h_hits_x
Some variables.
SG::ReadHandleKey< MDTSimHitCollection > m_readKey
Eigen::Matrix< double, 3, 1 > Vector3D
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.