CMS 3D CMS Logo

reco::SuperCluster Class Reference

A SuperCluster reconstructed in the Electromagnetic Calorimeter contains references to seed and constituent BasicClusters. More...

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

Inheritance diagram for reco::SuperCluster:

reco::CaloCluster

List of all members.

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< DetIdgetHitsByDetId () 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 BasicClusterRefseed () 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< DetIdusedHits_
 used hits by detId - retrieved from BC constituents


Detailed Description

A SuperCluster reconstructed in the Electromagnetic Calorimeter contains references to seed and constituent BasicClusters.

Author:
Luca Lista, INFN
Version:
Id
SuperCluster.h,v 1.15 2008/04/28 19:46:15 meridian Exp

Definition at line 21 of file SuperCluster.h.


Member Typedef Documentation

typedef math::XYZPoint reco::SuperCluster::Point

Definition at line 24 of file SuperCluster.h.


Constructor & Destructor Documentation

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. 
)


Member Function Documentation

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.

00071 { clusters_.push_back( 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]

Definition at line 46 of file SuperCluster.h.

References etaWidth_.

00046 { return etaWidth_; }

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]

Definition at line 50 of file SuperCluster.h.

References etaWidth_.

00050 { etaWidth_ = ew; }

void reco::SuperCluster::setPhiWidth ( double  pw  )  [inline]

Definition at line 49 of file SuperCluster.h.

References phiWidth_.

00049 { phiWidth_ = pw; }

void reco::SuperCluster::setSeed ( const BasicClusterRef r  )  [inline]

set reference to seed BasicCluster

Definition at line 68 of file SuperCluster.h.

References seed_.

00068 { seed_ = r; }


Member Data Documentation

BasicClusterRefVector reco::SuperCluster::clusters_ [private]

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]

Definition at line 89 of file SuperCluster.h.

Referenced by etaWidth(), and setEtaWidth().

Double32_t reco::SuperCluster::phiWidth_ [private]

Definition at line 88 of file SuperCluster.h.

Referenced by phiWidth(), and setPhiWidth().

double reco::SuperCluster::preshowerEnergy_ [private]

Definition at line 84 of file SuperCluster.h.

Referenced by preshowerEnergy().

double reco::SuperCluster::rawEnergy_ [mutable, private]

Definition at line 86 of file SuperCluster.h.

Referenced by rawEnergy().

BasicClusterRef reco::SuperCluster::seed_ [private]

reference to BasicCluster seed

Definition at line 76 of file SuperCluster.h.

Referenced by seed(), and setSeed().

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().


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