10#include "CaloDetDescr/CaloDetDescrElement.h"
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();
145 m_time->Fill( larHit->time(),energy);
147 m_log_edep->Fill( energy > 0 ? log(energy) : -1 );
149 m_zr->Fill(
z,radius);
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();
190 double radius=ddElement->
r();
191 double z=ddElement->
z();
192 double energy=larHit->
energy();
202 m_time->Fill((*hi_fast)->time(),energy);
206 m_zr->Fill(
z,radius);
222 m_time_cut1->Fill((*hi_fast)->time(),(*hi_fast)->energy());
233 m_etot_eta->Fill(primary->momentum().eta(),etot);
234 m_etot_phi->Fill(primary->momentum().phi(),etot);
238 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition of CaloDetDescrManager.
#define _TH2D_WEIGHTED(var, name, nbinx, xmin, xmax, nbiny, ymin, ymax)
#define _TH1D_WEIGHTED(var, name, nbin, xmin, xmax)
#define _TH2D(var, name, nbinx, xmin, xmax, nbiny, ymin, ymax)
#define _TH1D(var, name, nbin, xmin, xmax)
#define _SET_TITLE(var, title, xaxis, yaxis)
#define _TPROFILE(var, name, nbin, xmin, xmax)
boost::transform_iterator< make_const, typename CONT::const_iterator > const_iterator
This class groups all DetDescr information related to a CaloCell.
float eta() const
cell eta
float phi() const
cell phi
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
This class provides the client interface for accessing the detector description information common to...
Class to store hit energy and time in LAr cell from G4 simulation.
Identifier cellID() const
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring