31 |
|
void AddTower(const CaloTower *t) { fCaloTowers.Add(t); } |
32 |
|
const BasicCluster *Cluster(UInt_t i) const { return fClusters.At(i); } |
33 |
|
UInt_t ClusterSize() const { return fClusters.Entries(); } |
34 |
+ |
UInt_t NHits() const; |
35 |
|
Int_t Compare(const TObject *o) const; |
36 |
|
Double_t Energy() const { return fEnergy; } |
37 |
|
Double_t Et() const; |
87 |
|
} |
88 |
|
|
89 |
|
//-------------------------------------------------------------------------------------------------- |
90 |
+ |
inline UInt_t mithep::SuperCluster::NHits() const |
91 |
+ |
{ |
92 |
+ |
// Return transverse energy. |
93 |
+ |
|
94 |
+ |
UInt_t nhits = 0; |
95 |
+ |
for (UInt_t i=0; i<fClusters.GetEntries(); ++i) { |
96 |
+ |
nhits += fClusters.At(i)->NHits(); |
97 |
+ |
} |
98 |
+ |
return nhits; |
99 |
+ |
} |
100 |
+ |
|
101 |
+ |
|
102 |
+ |
//-------------------------------------------------------------------------------------------------- |
103 |
|
inline Double_t mithep::SuperCluster::Et() const |
104 |
|
{ |
105 |
|
// Return transverse energy. |