Changeset 35 in svn for trunk/Utilities/Fastjet/plugins/CDFCones/interface/Centroid.hh
- Timestamp:
- Nov 17, 2008, 11:07:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/Fastjet/plugins/CDFCones/interface/Centroid.hh
r11 r35 11 11 { 12 12 public: 13 14 13 double Et,eta,phi; 15 14 … … 17 16 Centroid(double centroidEt, double centroidEta, double centroidPhi): Et(centroidEt), eta(centroidEta), phi(centroidPhi) {} 18 17 Centroid(const Centroid& c): Et(c.Et), eta(c.eta), phi(c.phi) {} 19 void add( Centroidc)18 void add(const Centroid& c) 20 19 { 21 20 double newEt = Et + c.Et; … … 33 32 Et = newEt; 34 33 } 35 void subtract( Centroidc)34 void subtract(const Centroid& c) 36 35 { 37 36 double newEt = Et - c.Et; … … 49 48 Et = newEt; 50 49 } 51 bool isEqual( Centroidc)50 bool isEqual(const Centroid& c) 52 51 { 53 52 return Et == c.Et && eta == c.eta && phi == c.phi;
Note:
See TracChangeset
for help on using the changeset viewer.