#include <RecEmcCluster.h>
◆ RecEmcCluster() [1/2]
RecEmcCluster::RecEmcCluster |
( |
| ) |
|
◆ ~RecEmcCluster() [1/2]
RecEmcCluster::~RecEmcCluster |
( |
| ) |
|
◆ RecEmcCluster() [2/2]
RecEmcCluster::RecEmcCluster |
( |
| ) |
|
◆ ~RecEmcCluster() [2/2]
RecEmcCluster::~RecEmcCluster |
( |
| ) |
|
◆ Begin() [1/2]
RecEmcHitMap::const_iterator RecEmcCluster::Begin |
( |
| ) |
const |
◆ Begin() [2/2]
RecEmcHitMap::const_iterator RecEmcCluster::Begin |
( |
| ) |
const |
◆ BeginSeed() [1/2]
RecEmcHitMap::const_iterator RecEmcCluster::BeginSeed |
( |
| ) |
const |
◆ BeginSeed() [2/2]
RecEmcHitMap::const_iterator RecEmcCluster::BeginSeed |
( |
| ) |
const |
◆ classID() [1/2]
static const CLID & RecEmcCluster::classID |
( |
| ) |
|
|
inlinestatic |
◆ classID() [2/2]
static const CLID & RecEmcCluster::classID |
( |
| ) |
|
|
inlinestatic |
◆ Clear() [1/2]
void RecEmcCluster::Clear |
( |
| ) |
|
◆ Clear() [2/2]
void RecEmcCluster::Clear |
( |
| ) |
|
◆ clID() [1/2]
virtual const CLID & RecEmcCluster::clID |
( |
| ) |
const |
|
inlinevirtual |
◆ clID() [2/2]
virtual const CLID & RecEmcCluster::clID |
( |
| ) |
const |
|
inlinevirtual |
◆ ClusterId() [1/2]
void RecEmcCluster::ClusterId |
( |
const RecEmcID |
id | ) |
|
◆ ClusterId() [2/2]
void RecEmcCluster::ClusterId |
( |
const RecEmcID |
id | ) |
|
◆ Dump() [1/2]
void RecEmcCluster::Dump |
( |
| ) |
const |
Definition at line 288 of file RecEmcCluster.cxx.
289{
290 RecEmcHitMap::const_iterator pHitMap;
291
292 cout<<"EMC Cluster: ";
293
294 cout<<"Cluster Id= ";
296
299 pHitMap++)
300 {
301 pHitMap->second.Dump();
302 }
303}
◆ Dump() [2/2]
void RecEmcCluster::Dump |
( |
| ) |
const |
◆ End() [1/2]
RecEmcHitMap::const_iterator RecEmcCluster::End |
( |
| ) |
const |
◆ End() [2/2]
RecEmcHitMap::const_iterator RecEmcCluster::End |
( |
| ) |
const |
◆ EndSeed() [1/2]
RecEmcHitMap::const_iterator RecEmcCluster::EndSeed |
( |
| ) |
const |
◆ EndSeed() [2/2]
RecEmcHitMap::const_iterator RecEmcCluster::EndSeed |
( |
| ) |
const |
◆ Erase() [1/2]
void RecEmcCluster::Erase |
( |
const RecEmcHit & |
aHit | ) |
|
Definition at line 139 of file RecEmcCluster.cxx.
140{
141 RecEmcHitMap::const_iterator pHitMap;
143
144
146 {
147 return;
148 }
149
150
152 {
153 return;
154 }
155
156
158 {
160
162 {
164 return;
165 }
166
167 else
168 {
170 return;
171 }
172 }
173}
RecEmcHitMap::const_iterator End() const
RecEmcID getCellId() const
◆ Erase() [2/2]
void RecEmcCluster::Erase |
( |
const RecEmcHit & |
aHit | ) |
|
◆ Find() [1/2]
RecEmcHitMap::const_iterator RecEmcCluster::Find |
( |
const RecEmcID & |
CellId | ) |
const |
◆ Find() [2/2]
RecEmcHitMap::const_iterator RecEmcCluster::Find |
( |
const RecEmcID & |
CellId | ) |
const |
◆ FindSeed() [1/2]
RecEmcHitMap::const_iterator RecEmcCluster::FindSeed |
( |
const RecEmcID & |
CellId | ) |
const |
◆ FindSeed() [2/2]
RecEmcHitMap::const_iterator RecEmcCluster::FindSeed |
( |
const RecEmcID & |
CellId | ) |
const |
◆ getClusterId() [1/2]
RecEmcID RecEmcCluster::getClusterId |
( |
| ) |
const |
|
inline |
◆ getClusterId() [2/2]
RecEmcID RecEmcCluster::getClusterId |
( |
| ) |
const |
|
inline |
◆ getEnergy() [1/2]
◆ getEnergy() [2/2]
◆ getPosition() [1/2]
Definition at line 230 of file RecEmcCluster.cxx.
231{
233 ISvcLocator* svcLocator = Gaudi::svcLocator();
234 StatusCode sc = svcLocator->service("EmcRecGeoSvc",iGeoSvc);
235 if(sc!=StatusCode::SUCCESS) {
236 cout<<"Error: Can't get EmcRecGeoSvc"<<endl;
237 }
238
239 RecEmcHitMap::const_iterator pHitMap;
243
246 pHitMap++) {
247 etot+=pHitMap->second.getEnergy();
249 possum+=pos*pHitMap->second.getEnergy();
250 }
251
254 }
255 return possum;
256}
virtual HepPoint3D GetCFrontCenter(const Identifier &id) const =0
Referenced by EmcRecFastCluster2Shower::Convert(), and getSecondMoment().
◆ getPosition() [2/2]
◆ getSecondMoment() [1/2]
double RecEmcCluster::getSecondMoment |
( |
| ) |
const |
Definition at line 259 of file RecEmcCluster.cxx.
260{
262 ISvcLocator* svcLocator = Gaudi::svcLocator();
263 StatusCode sc = svcLocator->service("EmcRecGeoSvc",iGeoSvc);
264 if(sc!=StatusCode::SUCCESS) {
265 cout<<"Error: Can't get EmcRecGeoSvc"<<endl;
266 }
267
269 double sum=0;
271 RecEmcHitMap::const_iterator pHitMap;
272
275 pHitMap++) {
276 HepPoint3D pos(pHitMap->second.getFrontCenter());
277 etot+=pHitMap->second.getEnergy();
278 sum+=pHitMap->second.getEnergy()*pos.distance2(center);
279 }
280
283 }
284 return sum;
285}
HepPoint3D getPosition() const
Referenced by EmcRec::execute(), and EmcRecSplitWeighted::Split().
◆ getSecondMoment() [2/2]
double RecEmcCluster::getSecondMoment |
( |
| ) |
const |
◆ getSeedSize() [1/2]
int RecEmcCluster::getSeedSize |
( |
| ) |
const |
◆ getSeedSize() [2/2]
int RecEmcCluster::getSeedSize |
( |
| ) |
const |
◆ getShowerIdVec() [1/2]
vector< RecEmcID > RecEmcCluster::getShowerIdVec |
( |
| ) |
const |
|
inline |
◆ getShowerIdVec() [2/2]
vector< RecEmcID > RecEmcCluster::getShowerIdVec |
( |
| ) |
const |
|
inline |
◆ getShowerSize() [1/2]
int RecEmcCluster::getShowerSize |
( |
| ) |
const |
◆ getShowerSize() [2/2]
int RecEmcCluster::getShowerSize |
( |
| ) |
const |
◆ Insert() [1/2]
void RecEmcCluster::Insert |
( |
const RecEmcHit & |
aHit | ) |
|
◆ Insert() [2/2]
void RecEmcCluster::Insert |
( |
const RecEmcHit & |
aHit | ) |
|
◆ InsertSeed() [1/2]
void RecEmcCluster::InsertSeed |
( |
const RecEmcHit & |
aSeed | ) |
|
◆ InsertSeed() [2/2]
void RecEmcCluster::InsertSeed |
( |
const RecEmcHit & |
aSeed | ) |
|
◆ InsertShowerId() [1/2]
void RecEmcCluster::InsertShowerId |
( |
const RecEmcID |
id | ) |
|
◆ InsertShowerId() [2/2]
void RecEmcCluster::InsertShowerId |
( |
const RecEmcID |
id | ) |
|
◆ ShowerIdVec() [1/2]
void RecEmcCluster::ShowerIdVec |
( |
const vector< RecEmcID > & |
showerIdVec | ) |
|
|
inline |
◆ ShowerIdVec() [2/2]
void RecEmcCluster::ShowerIdVec |
( |
const vector< RecEmcID > & |
showerIdVec | ) |
|
|
inline |
◆ fClusterId
◆ fHitMap
◆ fSeedMap
◆ fShowerIdVec
vector< RecEmcID > RecEmcCluster::fShowerIdVec |
|
protected |
The documentation for this class was generated from the following files: