65 {
66
68
70
71 double etot=0.;
72 if (evtStore()->
retrieve(hitVec,
"TileHitVec") == StatusCode::SUCCESS) {
73 for (const TileHit& hit : *hitVec) {
74
75 Identifier pmt_id = hit.identify();
76 Identifier cell_id =
m_tileID->cell_id(pmt_id);
77
78 const CaloDetDescrElement *ddElement =
m_tileMgr->get_cell_element(cell_id);
79 if(ddElement)
80 {
81 double eta = ddElement->
eta();
82 double phi = ddElement->
phi();
84 double z = ddElement->
z();
85
87 if (pmt>0)
phi += ddElement->
dphi()/2.;
88
89
91
92 for (
int i=0;
i<hit.size();++
i) {
97 }
99
106 }
107 }
108 }
109
112 (evtStore()->
retrieve(hitVec_fast,
"TileHitVec_Fast")).isSuccess())
113 {
114 ATH_MSG_DEBUG (
"Retrieve FastCaloSim container TileHitVec_Fast." );
115 for (const TileHit& hit : *hitVec_fast)
116 {
117 Identifier pmt_id=hit.identify();
118 Identifier cell_id=
m_tileID->cell_id(pmt_id);
119 const CaloDetDescrElement *ddElement=
m_tileMgr->get_cell_element(cell_id);
120 if(ddElement)
121 {
122 double eta=ddElement->
eta();
123 double phi=ddElement->
phi();
125 double z=ddElement->
z();
126
128 if(pmt>0)
phi+=ddElement->
dphi()/2.;
130 for(
int i=0;
i<hit.size();++
i)
131 {
136 }
138
145 }
146 }
147 }
148
150 if (evtStore()->
retrieve(hitVec,
"MBTSHits") == StatusCode::SUCCESS) {
151 for (const TileHit& hit : *hitVec) {
152 Identifier mbts_id = hit.identify();
160 }
161 }
162 }
164
165
166
167 return StatusCode::SUCCESS;
168}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
AtlasHitsVector< TileHit > TileHitVector
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