![]() |
![]() |
#include <DataFormats/EgammaReco/interface/SuperCluster.h>
Public Types | |
typedef math::XYZPoint | Point |
Public Member Functions | |
void | add (const BasicClusterRef &r) |
add reference to constituent BasicCluster | |
basicCluster_iterator | clustersBegin () const |
fist iterator over BasicCluster constituents | |
basicCluster_iterator | clustersEnd () const |
last iterator over BasicCluster constituents | |
size_t | clustersSize () const |
number of BasicCluster constituents | |
double | etaWidth () const |
std::vector< DetId > | getHitsByDetId () const |
list of used xtals by DetId | |
double | phiWidth () const |
obtain phi and eta width of the Super Cluster | |
double | preshowerEnergy () const |
energy deposited in preshower | |
double | rawEnergy () const |
raw uncorrected energy (sum of energies of component BasicClusters) | |
const BasicClusterRef & | seed () const |
seed BasicCluster | |
void | setEtaWidth (double ew) |
void | setPhiWidth (double pw) |
void | setSeed (const BasicClusterRef &r) |
set reference to seed BasicCluster | |
SuperCluster (double energy, const Point &position, const BasicClusterRef &seed, const BasicClusterRefVector &clusters, double Epreshower=0., double phiWidth=0., double etaWidth=0.) | |
SuperCluster (double energy, const Point &position) | |
constructor defined by CaloCluster - will have to use setSeed and add() separately | |
SuperCluster () | |
default constructor | |
Private Attributes | |
BasicClusterRefVector | clusters_ |
references to BasicCluster constitunets | |
Double32_t | etaWidth_ |
Double32_t | phiWidth_ |
double | preshowerEnergy_ |
double | rawEnergy_ |
BasicClusterRef | seed_ |
reference to BasicCluster seed | |
std::vector< DetId > | usedHits_ |
used hits by detId - retrieved from BC constituents |
Definition at line 21 of file SuperCluster.h.
Definition at line 24 of file SuperCluster.h.
reco::SuperCluster::SuperCluster | ( | ) | [inline] |
default constructor
Definition at line 27 of file SuperCluster.h.
00027 : CaloCluster(0., Point(0.,0.,0.)), rawEnergy_(-1.) {}
reco::SuperCluster::SuperCluster | ( | double | energy, | |
const Point & | position | |||
) |
constructor defined by CaloCluster - will have to use setSeed and add() separately
reco::SuperCluster::SuperCluster | ( | double | energy, | |
const Point & | position, | |||
const BasicClusterRef & | seed, | |||
const BasicClusterRefVector & | clusters, | |||
double | Epreshower = 0. , |
|||
double | phiWidth = 0. , |
|||
double | etaWidth = 0. | |||
) |
void reco::SuperCluster::add | ( | const BasicClusterRef & | r | ) | [inline] |
add reference to constituent BasicCluster
Definition at line 71 of file SuperCluster.h.
References clusters_, edm::RefVector< C, T, F >::push_back(), and r.
basicCluster_iterator reco::SuperCluster::clustersBegin | ( | ) | const [inline] |
fist iterator over BasicCluster constituents
Definition at line 56 of file SuperCluster.h.
References edm::RefVector< C, T, F >::begin(), and clusters_.
Referenced by EgammaSCEnergyCorrectionAlgo::applyCorrection(), egammaisolation::EgammaEcalExtractor::deposit(), EgammaEcalIsolation::getEcalEtSum(), EgammaHLTEcalIsolation::isolPtSum(), HoECalculator::operator()(), ElectronRecalibSuperClusterAssociator::produce(), and rawEnergy().
00056 { return clusters_.begin(); }
basicCluster_iterator reco::SuperCluster::clustersEnd | ( | ) | const [inline] |
last iterator over BasicCluster constituents
Definition at line 59 of file SuperCluster.h.
References clusters_, and edm::RefVector< C, T, F >::end().
Referenced by EgammaSCEnergyCorrectionAlgo::applyCorrection(), egammaisolation::EgammaEcalExtractor::deposit(), EgammaEcalIsolation::getEcalEtSum(), EgammaHLTEcalIsolation::isolPtSum(), HoECalculator::operator()(), ElectronRecalibSuperClusterAssociator::produce(), and rawEnergy().
00059 { return clusters_.end(); }
size_t reco::SuperCluster::clustersSize | ( | ) | const [inline] |
number of BasicCluster constituents
Definition at line 62 of file SuperCluster.h.
References clusters_, and edm::RefVector< C, T, F >::size().
00062 { return clusters_.size(); }
double reco::SuperCluster::etaWidth | ( | ) | const [inline] |
std::vector<DetId> reco::SuperCluster::getHitsByDetId | ( | ) | const [inline] |
list of used xtals by DetId
Definition at line 65 of file SuperCluster.h.
References usedHits_.
Referenced by ElectronCalibrationUniv::analyze(), ElectronCalibration::analyze(), SuperClusterShapeAlgo::Calculate_Covariances(), and AlCaElectronsProducer::produce().
00065 { return usedHits_; }
double reco::SuperCluster::phiWidth | ( | ) | const [inline] |
obtain phi and eta width of the Super Cluster
Definition at line 45 of file SuperCluster.h.
References phiWidth_.
00045 { return phiWidth_; }
double reco::SuperCluster::preshowerEnergy | ( | ) | const [inline] |
energy deposited in preshower
Definition at line 42 of file SuperCluster.h.
References preshowerEnergy_.
Referenced by EgammaSCEnergyCorrectionAlgo::applyCorrection(), and ZeeCalibration::fillEleInfo().
00042 { return preshowerEnergy_; }
double SuperCluster::rawEnergy | ( | ) | const |
raw uncorrected energy (sum of energies of component BasicClusters)
Definition at line 38 of file SuperCluster.cc.
References clustersBegin(), clustersEnd(), and rawEnergy_.
00039 { 00040 if (rawEnergy_<0) { 00041 rawEnergy_ = 0.; 00042 reco::basicCluster_iterator bcItr; 00043 for(bcItr = clustersBegin(); bcItr != clustersEnd(); bcItr++) 00044 { 00045 rawEnergy_ += (*bcItr)->energy(); 00046 } 00047 } 00048 return rawEnergy_; 00049 }
const BasicClusterRef& reco::SuperCluster::seed | ( | ) | const [inline] |
seed BasicCluster
Definition at line 53 of file SuperCluster.h.
References seed_.
Referenced by EgammaSCEnergyCorrectionAlgo::applyCorrection(), PhotonIDAlgo::calculateR9(), GlobalGsfElectronAlgo::calculateTSOS(), GsfElectronAlgo::calculateTSOS(), egammaisolation::EgammaEcalExtractor::deposit(), ZeeCalibration::fillEleInfo(), EgammaEcalIsolation::getEcalEtSum(), EgammaHLTEcalIsolation::isolPtSum(), GlobalGsfElectronAlgo::process(), GsfElectronAlgo::process(), and ElectronRecalibSuperClusterAssociator::produce().
00053 { return seed_; }
void reco::SuperCluster::setEtaWidth | ( | double | ew | ) | [inline] |
void reco::SuperCluster::setPhiWidth | ( | double | pw | ) | [inline] |
void reco::SuperCluster::setSeed | ( | const BasicClusterRef & | r | ) | [inline] |
references to BasicCluster constitunets
Definition at line 79 of file SuperCluster.h.
Referenced by add(), clustersBegin(), clustersEnd(), and clustersSize().
Double32_t reco::SuperCluster::etaWidth_ [private] |
Double32_t reco::SuperCluster::phiWidth_ [private] |
double reco::SuperCluster::preshowerEnergy_ [private] |
double reco::SuperCluster::rawEnergy_ [mutable, private] |
BasicClusterRef reco::SuperCluster::seed_ [private] |
std::vector<DetId> reco::SuperCluster::usedHits_ [private] |
used hits by detId - retrieved from BC constituents
Definition at line 82 of file SuperCluster.h.
Referenced by getHitsByDetId().