CMS 3D CMS Logo

reco::BasicCluster Class Reference

A BasicCluster reconstructed in the Electromagnetic Calorimeter contains references to constituent RecHits. More...

#include <DataFormats/EgammaReco/interface/BasicCluster.h>

Inheritance diagram for reco::BasicCluster:

reco::CaloCluster

List of all members.

Public Types

typedef math::XYZPoint Point

Public Member Functions

AlgoId algo () const
 identifier of the algorithm
 BasicCluster (const double energy, const Point &position, const double chi2, const std::vector< DetId > usedHits, AlgoId algoID=hybrid)
 BasicCluster ()
 default constructor
double chi2 () const
 chi-squared
std::vector< DetIdgetHitsByDetId () const
 DetIds of component RecHits.
bool operator< (const reco::BasicCluster &otherCluster) const
 this method is needed to sort the BasicClusters by energy
bool operator== (const BasicCluster &rhs) const
size_t size () const
 Size (in number of crystals).

Private Attributes

AlgoId algoId_
 0 in case of island algorithm, 1 in case of hybrid
Double32_t chi2_
 chi-squared
std::vector< DetIdusedHits_
 used hits by detId


Detailed Description

A BasicCluster reconstructed in the Electromagnetic Calorimeter contains references to constituent RecHits.

Author:
Luca Lista, INFN
Version:
Id
BasicCluster.h,v 1.15 2008/05/22 14:27:32 ferriff Exp

Definition at line 24 of file BasicCluster.h.


Member Typedef Documentation

typedef math::XYZPoint reco::BasicCluster::Point

Definition at line 27 of file BasicCluster.h.


Constructor & Destructor Documentation

reco::BasicCluster::BasicCluster (  )  [inline]

default constructor

Definition at line 30 of file BasicCluster.h.

00030 : CaloCluster(0., Point(0.,0.,0.)), chi2_(-1.) { }

BasicCluster::BasicCluster ( const double  energy,
const Point position,
const double  chi2,
const std::vector< DetId usedHits,
AlgoId  algoID = hybrid 
)

Definition at line 5 of file BasicCluster.cc.

References algoId_, and usedHits_.

00005                                                                                                                              :
00006    CaloCluster(energy,position), chi2_(chi2)
00007 {
00008   usedHits_ = usedHits;
00009   algoId_ = algoID;
00010 }


Member Function Documentation

AlgoId reco::BasicCluster::algo (  )  const [inline]

identifier of the algorithm

Definition at line 44 of file BasicCluster.h.

References algoId_.

Referenced by egammaisolation::EgammaEcalExtractor::deposit(), EgammaEcalIsolation::getEcalEtSum(), and EgammaHLTEcalIsolation::isolPtSum().

00044 { return algoId_; }

double reco::BasicCluster::chi2 ( void   )  const [inline]

chi-squared

Definition at line 41 of file BasicCluster.h.

References chi2_.

Referenced by egammaisolation::EgammaEcalExtractor::deposit(), EgammaEcalIsolation::getEcalEtSum(), and EgammaHLTEcalIsolation::isolPtSum().

00041 { return chi2_; }

std::vector<DetId> reco::BasicCluster::getHitsByDetId (  )  const [inline]

DetIds of component RecHits.

Definition at line 35 of file BasicCluster.h.

References usedHits_.

Referenced by EcalClusterTools::calc_AbsZernikeMoment(), ClusterShapeAlgo::calc_AbsZernikeMoment(), ClusterShapeAlgo::Calculate_2ndEnergy(), ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction(), ClusterShapeAlgo::Calculate_EnergyDepTopology(), ClusterShapeAlgo::Calculate_TopEnergy(), EcalClusterTools::covariances(), EcalClusterTools::e1x3(), EcalClusterTools::e1x5(), EcalClusterTools::e2nd(), EcalClusterTools::e2x2(), EcalClusterTools::e2x5Bottom(), EcalClusterTools::e2x5Left(), EcalClusterTools::e2x5Max(), EcalClusterTools::e2x5Right(), EcalClusterTools::e2x5Top(), EcalClusterTools::e3x1(), EcalClusterTools::e3x2(), EcalClusterTools::e3x3(), EcalClusterTools::e4x4(), EcalClusterTools::e5x5(), EcalClusterTools::eBottom(), EcalClusterTools::eLeft(), EcalClusterTools::eMax(), EcalClusterTools::energyBasketFractionEta(), EcalClusterTools::energyBasketFractionPhi(), EcalClusterTools::eRight(), EcalClusterTools::eTop(), EgHLTOffHelper::fillEgHLTOffEleVec(), EcalClusterLazyTools::getEcalRecHitCollection(), EcalClusterTools::getEnergyDepTopology(), EcalClusterTools::getMaximum(), EcalClusterTools::localCovariances(), and EgammaSCEnergyCorrectionAlgo::nCrystalsGT2Sigma().

00035 { return usedHits_; }

bool BasicCluster::operator< ( const reco::BasicCluster otherCluster  )  const

this method is needed to sort the BasicClusters by energy

Definition at line 13 of file BasicCluster.cc.

References reco::CaloCluster::energy().

00014 {
00015   return energy() < otherCluster.energy();
00016 }

bool BasicCluster::operator== ( const BasicCluster rhs  )  const

Definition at line 18 of file BasicCluster.cc.

References reco::CaloCluster::energy().

00019 {
00020   
00021   float Ediff = fabs(rhs.energy() - energy());
00022   if (Ediff < 0.00000001) return true;
00023   else return false;
00024 
00025 }

size_t reco::BasicCluster::size ( void   )  const [inline]

Size (in number of crystals).

Definition at line 38 of file BasicCluster.h.

References usedHits_.

Referenced by EcalClusterLazyTools::getEcalRecHitCollection().

00038 { return usedHits_.size(); }


Member Data Documentation

AlgoId reco::BasicCluster::algoId_ [private]

0 in case of island algorithm, 1 in case of hybrid

Definition at line 56 of file BasicCluster.h.

Referenced by algo(), and BasicCluster().

Double32_t reco::BasicCluster::chi2_ [private]

chi-squared

Definition at line 53 of file BasicCluster.h.

Referenced by chi2().

std::vector<DetId> reco::BasicCluster::usedHits_ [private]

used hits by detId

Definition at line 59 of file BasicCluster.h.

Referenced by BasicCluster(), getHitsByDetId(), and size().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:50:57 2009 for CMSSW by  doxygen 1.5.4