CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
EcalClusterLazyTools Class Reference

#include <EcalClusterLazyTools.h>

Public Member Functions

std::vector< float > covariances (const reco::BasicCluster &cluster, float w0=4.7)
 
float e1x3 (const reco::BasicCluster &cluster)
 
float e1x5 (const reco::BasicCluster &cluster)
 
float e2nd (const reco::BasicCluster &cluster)
 
float e2x2 (const reco::BasicCluster &cluster)
 
float e2x5Bottom (const reco::BasicCluster &cluster)
 
float e2x5Left (const reco::BasicCluster &cluster)
 
float e2x5Max (const reco::BasicCluster &cluster)
 
float e2x5Right (const reco::BasicCluster &cluster)
 
float e2x5Top (const reco::BasicCluster &cluster)
 
float e3x1 (const reco::BasicCluster &cluster)
 
float e3x2 (const reco::BasicCluster &cluster)
 
float e3x3 (const reco::BasicCluster &cluster)
 
float e4x4 (const reco::BasicCluster &cluster)
 
float e5x5 (const reco::BasicCluster &cluster)
 
float eBottom (const reco::BasicCluster &cluster)
 
 EcalClusterLazyTools (const edm::Event &ev, const edm::EventSetup &es, edm::InputTag redEBRecHits, edm::InputTag redEERecHits)
 
float eLeft (const reco::BasicCluster &cluster)
 
float eMax (const reco::BasicCluster &cluster)
 
std::vector< float > energyBasketFractionEta (const reco::BasicCluster &cluster)
 
std::vector< float > energyBasketFractionPhi (const reco::BasicCluster &cluster)
 
float eRight (const reco::BasicCluster &cluster)
 
float eTop (const reco::BasicCluster &cluster)
 
std::pair< DetId, float > getMaximum (const reco::BasicCluster &cluster)
 
std::vector< float > lat (const reco::BasicCluster &cluster, bool logW=true, float w0=4.7)
 
std::vector< float > localCovariances (const reco::BasicCluster &cluster, float w0=4.7)
 
std::vector< DetIdmatrixDetId (DetId id, int ixMin, int ixMax, int iyMin, int iyMax)
 
float matrixEnergy (const reco::BasicCluster &cluster, DetId id, int ixMin, int ixMax, int iyMin, int iyMax)
 
std::vector< float > scLocalCovariances (const reco::SuperCluster &cluster, float w0=4.7)
 
double zernike20 (const reco::BasicCluster &cluster, double R0=6.6, bool logW=true, float w0=4.7)
 
double zernike42 (const reco::BasicCluster &cluster, double R0=6.6, bool logW=true, float w0=4.7)
 
 ~EcalClusterLazyTools ()
 

Private Member Functions

void getEBRecHits (const edm::Event &ev, edm::InputTag redEBRecHits)
 
const EcalRecHitCollectiongetEcalRecHitCollection (const reco::BasicCluster &cluster)
 
void getEERecHits (const edm::Event &ev, edm::InputTag redEERecHits)
 
void getGeometry (const edm::EventSetup &es)
 
void getTopology (const edm::EventSetup &es)
 

Private Attributes

const EcalRecHitCollectionebRecHits_
 
const EcalRecHitCollectioneeRecHits_
 
const CaloGeometrygeometry_
 
const CaloTopologytopology_
 

Detailed Description

various cluster tools (e.g. cluster shapes)

Author
Federico Ferri
Version
$Id:

Definition at line 23 of file EcalClusterLazyTools.h.

Constructor & Destructor Documentation

EcalClusterLazyTools::EcalClusterLazyTools ( const edm::Event ev,
const edm::EventSetup es,
edm::InputTag  redEBRecHits,
edm::InputTag  redEERecHits 
)

Definition at line 14 of file EcalClusterLazyTools.cc.

References getEBRecHits(), getEERecHits(), getGeometry(), and getTopology().

15 {
16  getGeometry( es );
17  getTopology( es );
18  getEBRecHits( ev, redEBRecHits );
19  getEERecHits( ev, redEERecHits );
20 }
void getEBRecHits(const edm::Event &ev, edm::InputTag redEBRecHits)
void getEERecHits(const edm::Event &ev, edm::InputTag redEERecHits)
void getGeometry(const edm::EventSetup &es)
void getTopology(const edm::EventSetup &es)
EcalClusterLazyTools::~EcalClusterLazyTools ( )

Definition at line 24 of file EcalClusterLazyTools.cc.

25 {
26 }

Member Function Documentation

std::vector< float > EcalClusterLazyTools::covariances ( const reco::BasicCluster cluster,
float  w0 = 4.7 
)

Definition at line 229 of file EcalClusterLazyTools.cc.

References EcalClusterTools::covariances(), geometry_, getEcalRecHitCollection(), and topology_.

Referenced by ElectronLikelihood::getInputVar(), SoftElectronProducer::produce(), and EgammaHLTClusterShapeProducer::produce().

230 {
232 }
const CaloGeometry * geometry_
static std::vector< float > covariances(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology, const CaloGeometry *geometry, float w0=4.7)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::e1x3 ( const reco::BasicCluster cluster)

Definition at line 85 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e1x3(), getEcalRecHitCollection(), and topology_.

86 {
87  return EcalClusterTools::e1x3( cluster, getEcalRecHitCollection(cluster), topology_ );
88 }
static float e1x3(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::e1x5 ( const reco::BasicCluster cluster)

Definition at line 97 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e1x5(), getEcalRecHitCollection(), and topology_.

98 {
99  return EcalClusterTools::e1x5( cluster, getEcalRecHitCollection(cluster), topology_ );
100 }
static float e1x5(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::e2nd ( const reco::BasicCluster cluster)

Definition at line 199 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e2nd(), and getEcalRecHitCollection().

200 {
201  return EcalClusterTools::e2nd( cluster, getEcalRecHitCollection(cluster) );
202 }
static float e2nd(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::e2x2 ( const reco::BasicCluster cluster)

Definition at line 109 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e2x2(), getEcalRecHitCollection(), and topology_.

Referenced by SoftElectronProducer::produce().

110 {
111  return EcalClusterTools::e2x2( cluster, getEcalRecHitCollection(cluster), topology_ );
112 }
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
static float e2x2(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
float EcalClusterLazyTools::e2x5Bottom ( const reco::BasicCluster cluster)

Definition at line 157 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e2x5Bottom(), getEcalRecHitCollection(), and topology_.

158 {
160 }
static float e2x5Bottom(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::e2x5Left ( const reco::BasicCluster cluster)

Definition at line 145 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e2x5Left(), getEcalRecHitCollection(), and topology_.

146 {
147  return EcalClusterTools::e2x5Left( cluster, getEcalRecHitCollection(cluster), topology_ );
148 }
static float e2x5Left(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::e2x5Max ( const reco::BasicCluster cluster)

Definition at line 163 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e2x5Max(), getEcalRecHitCollection(), and topology_.

164 {
165  return EcalClusterTools::e2x5Max( cluster, getEcalRecHitCollection(cluster), topology_ );
166 }
static float e2x5Max(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::e2x5Right ( const reco::BasicCluster cluster)

Definition at line 139 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e2x5Right(), getEcalRecHitCollection(), and topology_.

140 {
142 }
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
static float e2x5Right(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
float EcalClusterLazyTools::e2x5Top ( const reco::BasicCluster cluster)

Definition at line 151 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e2x5Top(), getEcalRecHitCollection(), and topology_.

152 {
153  return EcalClusterTools::e2x5Top( cluster, getEcalRecHitCollection(cluster), topology_ );
154 }
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
static float e2x5Top(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
float EcalClusterLazyTools::e3x1 ( const reco::BasicCluster cluster)

Definition at line 91 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e3x1(), getEcalRecHitCollection(), and topology_.

92 {
93  return EcalClusterTools::e3x1( cluster, getEcalRecHitCollection(cluster), topology_ );
94 }
static float e3x1(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::e3x2 ( const reco::BasicCluster cluster)

Definition at line 115 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e3x2(), getEcalRecHitCollection(), and topology_.

116 {
117  return EcalClusterTools::e3x2( cluster, getEcalRecHitCollection(cluster), topology_ );
118 }
static float e3x2(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::e3x3 ( const reco::BasicCluster cluster)

Definition at line 121 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e3x3(), getEcalRecHitCollection(), and topology_.

Referenced by EgammaSuperClusters::analyze(), SoftElectronProducer::produce(), EgammaHLTR9Producer::produce(), EgammaHLTR9IDProducer::produce(), PTDRElectronID::result(), and FourVectorHLTOffline::selectElectrons().

122 {
123  return EcalClusterTools::e3x3( cluster, getEcalRecHitCollection(cluster), topology_ );
124 }
static float e3x3(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::e4x4 ( const reco::BasicCluster cluster)

Definition at line 127 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e4x4(), getEcalRecHitCollection(), and topology_.

128 {
129  return EcalClusterTools::e4x4( cluster, getEcalRecHitCollection(cluster), topology_ );
130 }
static float e4x4(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::e5x5 ( const reco::BasicCluster cluster)

Definition at line 133 of file EcalClusterLazyTools.cc.

References EcalClusterTools::e5x5(), getEcalRecHitCollection(), and topology_.

Referenced by EgammaSuperClusters::analyze(), SoftElectronProducer::produce(), and PTDRElectronID::result().

134 {
135  return EcalClusterTools::e5x5( cluster, getEcalRecHitCollection(cluster), topology_ );
136 }
static float e5x5(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::eBottom ( const reco::BasicCluster cluster)

Definition at line 187 of file EcalClusterLazyTools.cc.

References EcalClusterTools::eBottom(), getEcalRecHitCollection(), and topology_.

188 {
189  return EcalClusterTools::eBottom( cluster, getEcalRecHitCollection(cluster), topology_ );
190 }
static float eBottom(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::eLeft ( const reco::BasicCluster cluster)

Definition at line 169 of file EcalClusterLazyTools.cc.

References EcalClusterTools::eLeft(), getEcalRecHitCollection(), and topology_.

170 {
171  return EcalClusterTools::eLeft( cluster, getEcalRecHitCollection(cluster), topology_ );
172 }
const CaloTopology * topology_
static float eLeft(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::eMax ( const reco::BasicCluster cluster)

Definition at line 193 of file EcalClusterLazyTools.cc.

References EcalClusterTools::eMax(), and getEcalRecHitCollection().

Referenced by EgammaSuperClusters::analyze(), SoftElectronProducer::produce(), EgammaHLTR9Producer::produce(), and FourVectorHLTOffline::selectElectrons().

194 {
195  return EcalClusterTools::eMax( cluster, getEcalRecHitCollection(cluster) );
196 }
static float eMax(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
std::vector< float > EcalClusterLazyTools::energyBasketFractionEta ( const reco::BasicCluster cluster)

Definition at line 211 of file EcalClusterLazyTools.cc.

References EcalClusterTools::energyBasketFractionEta(), and getEcalRecHitCollection().

212 {
214 }
static std::vector< float > energyBasketFractionEta(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
std::vector< float > EcalClusterLazyTools::energyBasketFractionPhi ( const reco::BasicCluster cluster)

Definition at line 217 of file EcalClusterLazyTools.cc.

References EcalClusterTools::energyBasketFractionPhi(), and getEcalRecHitCollection().

218 {
220 }
static std::vector< float > energyBasketFractionPhi(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::eRight ( const reco::BasicCluster cluster)

Definition at line 175 of file EcalClusterLazyTools.cc.

References EcalClusterTools::eRight(), getEcalRecHitCollection(), and topology_.

176 {
177  return EcalClusterTools::eRight( cluster, getEcalRecHitCollection(cluster), topology_ );
178 }
static float eRight(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::eTop ( const reco::BasicCluster cluster)

Definition at line 181 of file EcalClusterLazyTools.cc.

References EcalClusterTools::eTop(), getEcalRecHitCollection(), and topology_.

182 {
183  return EcalClusterTools::eTop( cluster, getEcalRecHitCollection(cluster), topology_ );
184 }
static float eTop(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
void EcalClusterLazyTools::getEBRecHits ( const edm::Event ev,
edm::InputTag  redEBRecHits 
)
private

Definition at line 48 of file EcalClusterLazyTools.cc.

References ebRecHits_, edm::Event::getByLabel(), and edm::Handle< T >::product().

Referenced by EcalClusterLazyTools().

49 {
51  ev.getByLabel( redEBRecHits, pEBRecHits );
52  ebRecHits_ = pEBRecHits.product();
53 }
const EcalRecHitCollection * ebRecHits_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:355
T const * product() const
Definition: Handle.h:74
const EcalRecHitCollection * EcalClusterLazyTools::getEcalRecHitCollection ( const reco::BasicCluster cluster)
private

Definition at line 66 of file EcalClusterLazyTools.cc.

References ebRecHits_, EcalBarrel, EcalEndcap, eeRecHits_, edm::hlt::Exception, and first.

Referenced by covariances(), e1x3(), e1x5(), e2nd(), e2x2(), e2x5Bottom(), e2x5Left(), e2x5Max(), e2x5Right(), e2x5Top(), e3x1(), e3x2(), e3x3(), e4x4(), e5x5(), eBottom(), eLeft(), eMax(), energyBasketFractionEta(), energyBasketFractionPhi(), eRight(), eTop(), getMaximum(), lat(), localCovariances(), matrixEnergy(), scLocalCovariances(), zernike20(), and zernike42().

67 {
68  if ( cluster.size() == 0 ) {
69  throw cms::Exception("InvalidCluster") << "The cluster has no crystals!";
70  }
71  DetId id = (cluster.hitsAndFractions()[0]).first; // size is by definition > 0 -- FIXME??
72  const EcalRecHitCollection *recHits = 0;
73  if ( id.subdetId() == EcalBarrel ) {
74  recHits = ebRecHits_;
75  } else if ( id.subdetId() == EcalEndcap ) {
76  recHits = eeRecHits_;
77  } else {
78  throw cms::Exception("InvalidSubdetector") << "The subdetId() " << id.subdetId() << " does not correspond to EcalBarrel neither EcalEndcap";
79  }
80  return recHits;
81 }
const EcalRecHitCollection * ebRecHits_
const EcalRecHitCollection * eeRecHits_
bool first
Definition: L1TdeRCT.cc:79
Definition: DetId.h:20
void EcalClusterLazyTools::getEERecHits ( const edm::Event ev,
edm::InputTag  redEERecHits 
)
private

Definition at line 57 of file EcalClusterLazyTools.cc.

References eeRecHits_, edm::Event::getByLabel(), and edm::Handle< T >::product().

Referenced by EcalClusterLazyTools().

58 {
60  ev.getByLabel( redEERecHits, pEERecHits );
61  eeRecHits_ = pEERecHits.product();
62 }
const EcalRecHitCollection * eeRecHits_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:355
T const * product() const
Definition: Handle.h:74
void EcalClusterLazyTools::getGeometry ( const edm::EventSetup es)
private

Definition at line 30 of file EcalClusterLazyTools.cc.

References geometry_, edm::EventSetup::get(), and edm::ESHandle< class >::product().

Referenced by EcalClusterLazyTools().

31 {
33  es.get<CaloGeometryRecord>().get(pGeometry);
34  geometry_ = pGeometry.product();
35 }
const CaloGeometry * geometry_
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
std::pair< DetId, float > EcalClusterLazyTools::getMaximum ( const reco::BasicCluster cluster)

Definition at line 205 of file EcalClusterLazyTools.cc.

References getEcalRecHitCollection(), and EcalClusterTools::getMaximum().

Referenced by QcdPhotonsDQM::analyze(), EcalDigiSelector::produce(), EgammaHLTR9Producer::produce(), and HiSpikeCleaner::produce().

206 {
207  return EcalClusterTools::getMaximum( cluster, getEcalRecHitCollection(cluster) );
208 }
static std::pair< DetId, float > getMaximum(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
void EcalClusterLazyTools::getTopology ( const edm::EventSetup es)
private

Definition at line 39 of file EcalClusterLazyTools.cc.

References edm::EventSetup::get(), edm::ESHandle< class >::product(), and topology_.

Referenced by EcalClusterLazyTools().

40 {
42  es.get<CaloTopologyRecord>().get(pTopology);
43  topology_ = pTopology.product();
44 }
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
const CaloTopology * topology_
std::vector< float > EcalClusterLazyTools::lat ( const reco::BasicCluster cluster,
bool  logW = true,
float  w0 = 4.7 
)

Definition at line 223 of file EcalClusterLazyTools.cc.

References geometry_, getEcalRecHitCollection(), and EcalClusterTools::lat().

224 {
225  return EcalClusterTools::lat( cluster, getEcalRecHitCollection(cluster), geometry_, logW, w0 );
226 }
const CaloGeometry * geometry_
static std::vector< float > lat(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloGeometry *geometry, bool logW=true, float w0=4.7)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
std::vector< float > EcalClusterLazyTools::localCovariances ( const reco::BasicCluster cluster,
float  w0 = 4.7 
)

Definition at line 234 of file EcalClusterLazyTools.cc.

References getEcalRecHitCollection(), EcalClusterTools::localCovariances(), and topology_.

Referenced by HLTEgamma::MakeL1IsolatedElectrons(), HLTEgamma::MakeL1IsolatedPhotons(), HLTEgamma::MakeL1NonIsolatedElectrons(), HLTEgamma::MakeL1NonIsolatedPhotons(), EgammaHLTClusterShapeProducer::produce(), and PTDRElectronID::result().

235 {
237 }
static std::vector< float > localCovariances(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology, float w0=4.7)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
std::vector< DetId > EcalClusterLazyTools::matrixDetId ( DetId  id,
int  ixMin,
int  ixMax,
int  iyMin,
int  iyMax 
)

Definition at line 255 of file EcalClusterLazyTools.cc.

References EcalClusterTools::matrixDetId(), and topology_.

Referenced by EcalDigiSelector::produce().

256 {
257  return EcalClusterTools::matrixDetId( topology_, id, ixMin, ixMax, iyMin, iyMax );
258 }
static std::vector< DetId > matrixDetId(const CaloTopology *topology, DetId id, int ixMin, int ixMax, int iyMin, int iyMax)
const CaloTopology * topology_
float EcalClusterLazyTools::matrixEnergy ( const reco::BasicCluster cluster,
DetId  id,
int  ixMin,
int  ixMax,
int  iyMin,
int  iyMax 
)

Definition at line 260 of file EcalClusterLazyTools.cc.

References getEcalRecHitCollection(), EcalClusterTools::matrixEnergy(), and topology_.

261 {
262  return EcalClusterTools::matrixEnergy( cluster, getEcalRecHitCollection(cluster), topology_, id, ixMin, ixMax, iyMin, iyMax );
263 }
static float matrixEnergy(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology, DetId id, int ixMin, int ixMax, int iyMin, int iyMax)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
std::vector< float > EcalClusterLazyTools::scLocalCovariances ( const reco::SuperCluster cluster,
float  w0 = 4.7 
)

Definition at line 239 of file EcalClusterLazyTools.cc.

References getEcalRecHitCollection(), EcalClusterTools::scLocalCovariances(), and topology_.

240 {
242 }
static std::vector< float > scLocalCovariances(const reco::SuperCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology, float w0=4.7)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
double EcalClusterLazyTools::zernike20 ( const reco::BasicCluster cluster,
double  R0 = 6.6,
bool  logW = true,
float  w0 = 4.7 
)

Definition at line 244 of file EcalClusterLazyTools.cc.

References geometry_, getEcalRecHitCollection(), and EcalClusterTools::zernike20().

245 {
246  return EcalClusterTools::zernike20( cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0 );
247 }
const CaloGeometry * geometry_
static double zernike20(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloGeometry *geometry, double R0=6.6, bool logW=true, float w0=4.7)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
double EcalClusterLazyTools::zernike42 ( const reco::BasicCluster cluster,
double  R0 = 6.6,
bool  logW = true,
float  w0 = 4.7 
)

Definition at line 250 of file EcalClusterLazyTools.cc.

References geometry_, getEcalRecHitCollection(), and EcalClusterTools::zernike42().

251 {
252  return EcalClusterTools::zernike42( cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0 );
253 }
static double zernike42(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloGeometry *geometry, double R0=6.6, bool logW=true, float w0=4.7)
const CaloGeometry * geometry_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)

Member Data Documentation

const EcalRecHitCollection* EcalClusterLazyTools::ebRecHits_
private

Definition at line 104 of file EcalClusterLazyTools.h.

Referenced by getEBRecHits(), and getEcalRecHitCollection().

const EcalRecHitCollection* EcalClusterLazyTools::eeRecHits_
private

Definition at line 105 of file EcalClusterLazyTools.h.

Referenced by getEcalRecHitCollection(), and getEERecHits().

const CaloGeometry* EcalClusterLazyTools::geometry_
private

Definition at line 102 of file EcalClusterLazyTools.h.

Referenced by covariances(), getGeometry(), lat(), zernike20(), and zernike42().

const CaloTopology* EcalClusterLazyTools::topology_
private