11#include "CaloDetDescr/CaloDetDescrElement.h"
37 std::string detName(
"Tile");
59 _TH1D(
m_etot,(detName+
"_etot").c_str(),100,0.,500.);
61 return StatusCode::SUCCESS;
72 if (evtStore()->retrieve(hitVec,
"TileHitVec") == StatusCode::SUCCESS) {
73 for (
const TileHit& hit : *hitVec) {
81 double eta = ddElement->
eta();
82 double phi = ddElement->
phi();
83 double radius = ddElement->
r();
84 double z = ddElement->
z();
87 if (pmt>0)
phi += ddElement->
dphi()/2.;
92 for (
int i=0; i<hit.size();++i) {
93 energy+=hit.energy(i);
112 (evtStore()->retrieve(hitVec_fast,
"TileHitVec_Fast")).isSuccess())
114 ATH_MSG_DEBUG (
"Retrieve FastCaloSim container TileHitVec_Fast." );
115 for (
const TileHit& hit : *hitVec_fast)
122 double eta=ddElement->
eta();
123 double phi=ddElement->
phi();
124 double radius=ddElement->
r();
125 double z=ddElement->
z();
128 if(pmt>0)
phi+=ddElement->
dphi()/2.;
130 for(
int i=0;i<hit.size();++i)
132 energy+=hit.energy(i);
150 if (evtStore()->retrieve(hitVec,
"MBTSHits") == StatusCode::SUCCESS) {
151 for (
const TileHit& hit : *hitVec) {
167 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define CHECK(...)
Evaluate an expression and check for errors.
#define _TH2D(var, name, nbinx, xmin, xmax, nbiny, ymin, ymax)
#define _TH1D(var, name, nbin, xmin, xmax)
#define _SET_TITLE(var, title, xaxis, yaxis)
AtlasHitsVector< TileHit > TileHitVector
This class groups all DetDescr information related to a CaloCell.
float dphi() const
cell dphi
float eta() const
cell eta
float phi() const
cell phi
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring