10 #include "CaloDetDescr/CaloDetDescrElement.h"
20 m_lar_eta(0), m_lar_phi(0),
21 m_lar_zr(0), m_lar_etaphi(0),
25 m_time(0), m_edep(0), m_log_edep(0),
27 m_eta_cut1(0),m_phi_cut1(0),
28 m_zr_cut1(0),m_etaphi_cut1(0),
29 m_time_cut1(0),m_edep_cut1(0),
32 m_edep_eta(0), m_edep_phi(0),
33 m_edep_z(0), m_edep_r(0),
34 m_etot_eta(0), m_etot_phi(0)
37 declareProperty(
"DetectorName",
m_detname=
"EMB");
75 _SET_TITLE(
m_log_edep,
"logarithm of energy deposits",
"log(edep [MeV])",
"dN/dlog(E) [1/log(MeV)]");
99 _SET_TITLE(
m_etot,
"distribution total energy deposit per event",
"E_tot [MeV]",
"1/dE");
109 _SET_TITLE(
m_etot_eta,
"tot energy deposited per Event vs generator truth",
"eta",
"1/N dE/deta [MeV]");
111 _SET_TITLE(
m_etot_phi,
"tot energy deposited per Event vs generator truth",
"phi",
"1/N dE/dphi [MeV]");
113 return StatusCode::SUCCESS;
126 for(
const LArHit* larHit : *hitContainer) {
129 double eta = ddElement->
eta();
130 double phi = ddElement->
phi();
131 double radius = ddElement->
r();
132 double z = ddElement->
z();
134 double energy = larHit->energy();
164 m_time_cut1->Fill( larHit->time(), larHit->energy());
177 const std::string lArkey_fast=
"LArHit"+
m_detname+
"_Fast";
181 (evtStore()->retrieve(iter_fast,lArkey_fast)).isSuccess())
183 ATH_MSG_DEBUG (
"Read hit info from FastCaloSim Container" );
184 for(hi_fast=(*iter_fast).begin();hi_fast!=(*iter_fast).end();++hi_fast)
186 const LArHit* larHit = *hi_fast;
188 double eta=ddElement->
eta();
189 double phi=ddElement->
phi();
191 double z=ddElement->
z();
222 m_time_cut1->Fill((*hi_fast)->time(),(*hi_fast)->energy());
238 return StatusCode::SUCCESS;