|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "CaloDetDescr/CaloDetDescrElement.h"
37 , m_ntupleFileName(
"/CaloHitAnalysis/")
38 ,
m_path(
"/CaloHitAnalysis/")
39 , m_thistSvc(
"THistSvc",
name)
75 m_h_xy =
new TH2F(
"h_Calo_xy",
"xy", 100,-4000,4000,100, -4000, 4000);
79 m_h_zr =
new TH2D(
"h_Calo_zr",
"zr", 100,-7000.,7000.,100, 0., 6000.);
83 m_h_etaphi =
new TH2D(
"h_Calo_etaphi",
"eta_phi", 50,-5.,5.,50, -3.1416, 3.1416);
88 m_h_time_e =
new TH2D(
"h_Calo_time_e",
"energy vs time", 100, 0,50, 100,0,500);
91 m_h_eta_e =
new TH2D(
"h_Calo_eta_e",
"energy vs eta", 50, -5,5, 100,0,500);
94 m_h_phi_e =
new TH2D(
"h_Calo_phi_e",
"energy vs phi", 50, -3.1416,3.1416, 100,0,500);
97 m_h_r_e =
new TH2D(
"h_Calo_r_e",
"energy vs radius", 100, 0,6000, 100,0,500);
114 m_h_calib_rz =
new TH2D(
"h_calib_rz",
"calib. hits r vs z", 100,-7000,7000,1000, 0,6000);
117 m_h_calib_etaphi =
new TH2D(
"h_calib_etaphi",
"calib. hits eta vs phi",50,-5.,5., 50,-3.1416,3.1416);
152 m_tree =
new TTree(
"Calo",
"Calo");
180 return StatusCode::SUCCESS;
210 std::string lArKey [4] = {
"LArHitEMB",
"LArHitEMEC",
"LArHitFCAL",
"LArHitHEC"};
211 for (
unsigned int i=0;
i<4;
i++) {
214 for (
auto hi : *iter ) {
216 double energy = hi->energy();
217 double time = hi->time();
218 double eta = hitElement->
eta();
219 double phi = hitElement->
phi();
220 double radius = hitElement->
r();
221 float x = hitElement->
x();
222 float y = hitElement->
y();
223 double z = hitElement->
z();
253 for (
const auto& i_hit : *hitVec) {
259 double tot_time = 0.;
260 for (
int t=0;
t<(i_hit).
size(); ++
t) tot_e += (i_hit).energy(
t);
261 for (
int t=0;
t<(i_hit).
size(); ++
t) tot_time += (i_hit).time(
t);
283 m_time->push_back(tot_time);
289 std::string LArCalibKey [3] = {
"LArCalibrationHitActive",
"LArCalibrationHitInactive",
"LArCalibrationHitDeadMaterial"};
290 for (
unsigned int j=0; j<3; j++) {
297 if (!geoHit)
continue;
299 double eta = Element->
eta();
300 double phi = Element->
phi();
302 double z = Element->
z();
303 double emEnergy = geoHit.
energyEM();
308 double particleID = (*hit_i).particleID();
337 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
bool is_tile_aux(const Identifier &id) const
std::string m_ntupleFileName
TH1 * m_h_calib_eTotpartID
std::vector< float > * m_calib_z
Adaptor for CaloCalibHits.
double energyEscaped() const
std::vector< float > * m_calib_partID
Scalar phi() const
phi method
virtual StatusCode initialize() override
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
std::vector< float > * m_calib_phi
std::vector< float > * m_cell_y
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
std::vector< float > * m_cell_radius
std::vector< float > * m_time
std::vector< float > * m_calib_radius
double energyNonEM() const
std::vector< float > * m_calib_eTot
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
ServiceHandle< ITHistSvc > m_thistSvc
Definition of CaloDetDescrManager.
std::vector< float > * m_calib_eEsc
const CaloDetDescrElement * getDetDescrElement() const
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
const TileDetDescrManager * m_tileMgr
std::vector< float > * m_calib_eInv
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
double energyInvisible() const
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< float > * m_calib_eNonEM
TH1 * m_h_cell_eta
Simple variables by Ketevi.
std::string m_path
the path being used
#define CHECK(...)
Evaluate an expression and check for errors.
std::vector< float > * m_cell_z
CaloDetDescrElement * get_cell_element(unsigned int cell_hash) const
std::vector< float > * m_calib_eEM
std::vector< float > * m_cell_e
StatusCode initialize(bool used=true)
This class provides the client interface for accessing the detector description information common to...
def time(flags, cells_name, *args, **kw)
virtual StatusCode execute() override
double energyTotal() const
float eta() const
cell eta
std::vector< float > * m_cell_eta
CaloHitAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
float phi() const
cell phi
std::vector< float > * m_calib_eta
Identifier cell_id(const Identifier &any_id) const
std::vector< float > * m_cell_phi
std::vector< float > * m_cell_x