Fork me on GitHub

Ignore:
Timestamp:
Nov 17, 2008, 11:07:45 PM (16 years ago)
Author:
Xavier Rouby
Message:

first attemp towers CMS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/Fastjet/plugins/CDFCones/interface/Centroid.hh

    r11 r35  
    1111{
    1212 public:
    13 
    1413  double Et,eta,phi;
    1514
     
    1716  Centroid(double centroidEt, double centroidEta, double centroidPhi): Et(centroidEt), eta(centroidEta), phi(centroidPhi) {}
    1817  Centroid(const Centroid& c): Et(c.Et), eta(c.eta), phi(c.phi) {}
    19   void add(Centroid c)
     18  void add(const Centroid& c)
    2019  {
    2120    double newEt = Et + c.Et;
     
    3332    Et = newEt;
    3433  }
    35   void subtract(Centroid c)
     34  void subtract(const Centroid& c)
    3635  {
    3736    double newEt = Et - c.Et;
     
    4948    Et = newEt;
    5049  }
    51   bool isEqual(Centroid c)
     50  bool isEqual(const Centroid& c)
    5251  {
    5352    return Et == c.Et && eta == c.eta && phi == c.phi;
Note: See TracChangeset for help on using the changeset viewer.