CMS 3D CMS Logo

BasicCluster.cc

Go to the documentation of this file.
00001 #include "DataFormats/EgammaReco/interface/BasicCluster.h"
00002 
00003 using namespace reco;
00004 
00005 BasicCluster::BasicCluster( double energy, const Point& position, double chi2, const std::vector<DetId> usedHits, AlgoId algoID) :
00006    CaloCluster(energy,position), chi2_(chi2)
00007 {
00008   usedHits_ = usedHits;
00009   algoId_ = algoID;
00010 }
00011 
00012 
00013 bool BasicCluster::operator<(const reco::BasicCluster &otherCluster) const
00014 {
00015   return energy() < otherCluster.energy();
00016 }
00017 
00018 bool BasicCluster::operator==(const BasicCluster& rhs) const  
00019 {
00020   
00021   float Ediff = fabs(rhs.energy() - energy());
00022   if (Ediff < 0.00000001) return true;
00023   else return false;
00024 
00025 }

Generated on Tue Jun 9 17:30:43 2009 for CMSSW by  doxygen 1.5.4