ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/SuperCluster.h
(Generate patch)

Comparing UserCode/MitAna/DataTree/interface/SuperCluster.h (file contents):
Revision 1.22 by fabstoec, Fri Jul 15 17:23:50 2011 UTC vs.
Revision 1.23 by bendavid, Wed Jul 27 15:15:07 2011 UTC

# Line 31 | Line 31 | namespace mithep
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;
# Line 86 | Line 87 | namespace mithep
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.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines