#include <DataFormats/EgammaReco/interface/BasicCluster.h>
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< DetId > | getHitsByDetId () 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< DetId > | usedHits_ |
used hits by detId |
Definition at line 24 of file BasicCluster.h.
Definition at line 27 of file BasicCluster.h.
reco::BasicCluster::BasicCluster | ( | ) | [inline] |
default constructor
Definition at line 30 of file BasicCluster.h.
00030 : CaloCluster(0., Point(0.,0.,0.)), chi2_(-1.) { }
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().
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(); }
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] |
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().