CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
EcalClusterLazyToolsT< EcalClusterToolsImpl > Class Template Reference

#include <EcalClusterLazyTools.h>

Inheritance diagram for EcalClusterLazyToolsT< EcalClusterToolsImpl >:
EcalClusterLazyToolsBase

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 e5x1 (const reco::BasicCluster &cluster)
 
float e5x5 (const reco::BasicCluster &cluster)
 
float eBottom (const reco::BasicCluster &cluster)
 
 EcalClusterLazyToolsT (const edm::Event &ev, const edm::EventSetup &es, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2)
 
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)
 
 ~EcalClusterLazyToolsT ()
 
- Public Member Functions inherited from EcalClusterLazyToolsBase
float BasicClusterSeedTime (const reco::BasicCluster &cluster)
 
float BasicClusterTime (const reco::BasicCluster &cluster, const edm::Event &ev)
 
 EcalClusterLazyToolsBase (const edm::Event &ev, const edm::EventSetup &es, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2)
 
float eseffsirir (const reco::SuperCluster &cluster)
 
float eseffsixix (const reco::SuperCluster &cluster)
 
float eseffsiyiy (const reco::SuperCluster &cluster)
 
std::vector< float > getESHits (double X, double Y, double Z, const std::map< DetId, EcalRecHit > &rechits_map, const CaloGeometry *geometry, CaloSubdetectorTopology *topology_p, int row=0, int plane=1)
 
float getESShape (const std::vector< float > &ESHits0)
 
float SuperClusterSeedTime (const reco::SuperCluster &cluster)
 
float SuperClusterTime (const reco::SuperCluster &cluster, const edm::Event &ev)
 
 ~EcalClusterLazyToolsBase ()
 

Additional Inherited Members

- Public Attributes inherited from EcalClusterLazyToolsBase
std::map< DetId, EcalRecHitrechits_map_
 
- Protected Member Functions inherited from EcalClusterLazyToolsBase
void getADCToGeV (const edm::EventSetup &es)
 
void getEBRecHits (const edm::Event &ev)
 
const EcalRecHitCollectiongetEcalRecHitCollection (const reco::BasicCluster &cluster)
 
void getEERecHits (const edm::Event &ev)
 
void getESRecHits (const edm::Event &ev)
 
void getGeometry (const edm::EventSetup &es)
 
void getIntercalibConstants (const edm::EventSetup &es)
 
void getLaserDbService (const edm::EventSetup &es)
 
void getTopology (const edm::EventSetup &es)
 
- Protected Attributes inherited from EcalClusterLazyToolsBase
edm::ESHandle
< EcalADCToGeVConstant
agc
 
const EcalRecHitCollectionebRecHits_
 
edm::EDGetTokenT
< EcalRecHitCollection
ebRHToken_
 
const EcalRecHitCollectioneeRecHits_
 
edm::EDGetTokenT
< EcalRecHitCollection
eeRHToken_
 
const EcalRecHitCollectionesRecHits_
 
edm::EDGetTokenT
< EcalRecHitCollection
esRHToken_
 
const CaloGeometrygeometry_
 
edm::ESHandle
< EcalIntercalibConstants
ical
 
EcalIntercalibConstantMap icalMap
 
edm::ESHandle< EcalLaserDbServicelaser
 
const CaloTopologytopology_
 

Detailed Description

template<class EcalClusterToolsImpl>
class EcalClusterLazyToolsT< EcalClusterToolsImpl >

Definition at line 95 of file EcalClusterLazyTools.h.

Constructor & Destructor Documentation

template<class EcalClusterToolsImpl >
EcalClusterLazyToolsT< EcalClusterToolsImpl >::EcalClusterLazyToolsT ( const edm::Event ev,
const edm::EventSetup es,
edm::EDGetTokenT< EcalRecHitCollection token1,
edm::EDGetTokenT< EcalRecHitCollection token2 
)
inline

Definition at line 97 of file EcalClusterLazyTools.h.

97  :
98  EcalClusterLazyToolsBase(ev,es,token1,token2) {}
EcalClusterLazyToolsBase(const edm::Event &ev, const edm::EventSetup &es, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2)
template<class EcalClusterToolsImpl >
EcalClusterLazyToolsT< EcalClusterToolsImpl >::~EcalClusterLazyToolsT ( )
inline

Definition at line 99 of file EcalClusterLazyTools.h.

99 {}

Member Function Documentation

template<class EcalClusterToolsImpl >
std::vector< float > EcalClusterLazyToolsT< EcalClusterToolsImpl >::covariances ( const reco::BasicCluster cluster,
float  w0 = 4.7 
)

Definition at line 336 of file EcalClusterLazyTools.h.

337 {
338  return EcalClusterToolsImpl::covariances( cluster, getEcalRecHitCollection(cluster), topology_, geometry_, w0 );
339 }
const CaloGeometry * geometry_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e1x3 ( const reco::BasicCluster cluster)

Definition at line 190 of file EcalClusterLazyTools.h.

191 {
192  return EcalClusterToolsImpl::e1x3( cluster, getEcalRecHitCollection(cluster), topology_ );
193 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e1x5 ( const reco::BasicCluster cluster)

Definition at line 203 of file EcalClusterLazyTools.h.

Referenced by pat::PATPhotonSlimmer::produce().

204 {
205  return EcalClusterToolsImpl::e1x5( cluster, getEcalRecHitCollection(cluster), topology_ );
206 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e2nd ( const reco::BasicCluster cluster)

Definition at line 306 of file EcalClusterLazyTools.h.

307 {
308  return EcalClusterToolsImpl::e2nd( cluster, getEcalRecHitCollection(cluster) );
309 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e2x2 ( const reco::BasicCluster cluster)

Definition at line 216 of file EcalClusterLazyTools.h.

217 {
218  return EcalClusterToolsImpl::e2x2( cluster, getEcalRecHitCollection(cluster), topology_ );
219 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e2x5Bottom ( const reco::BasicCluster cluster)

Definition at line 264 of file EcalClusterLazyTools.h.

265 {
266  return EcalClusterToolsImpl::e2x5Bottom( cluster, getEcalRecHitCollection(cluster), topology_ );
267 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e2x5Left ( const reco::BasicCluster cluster)

Definition at line 252 of file EcalClusterLazyTools.h.

253 {
254  return EcalClusterToolsImpl::e2x5Left( cluster, getEcalRecHitCollection(cluster), topology_ );
255 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e2x5Max ( const reco::BasicCluster cluster)

Definition at line 270 of file EcalClusterLazyTools.h.

271 {
272  return EcalClusterToolsImpl::e2x5Max( cluster, getEcalRecHitCollection(cluster), topology_ );
273 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e2x5Right ( const reco::BasicCluster cluster)

Definition at line 246 of file EcalClusterLazyTools.h.

247 {
248  return EcalClusterToolsImpl::e2x5Right( cluster, getEcalRecHitCollection(cluster), topology_ );
249 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e2x5Top ( const reco::BasicCluster cluster)

Definition at line 258 of file EcalClusterLazyTools.h.

259 {
260  return EcalClusterToolsImpl::e2x5Top( cluster, getEcalRecHitCollection(cluster), topology_ );
261 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e3x1 ( const reco::BasicCluster cluster)

Definition at line 197 of file EcalClusterLazyTools.h.

198 {
199  return EcalClusterToolsImpl::e3x1( cluster, getEcalRecHitCollection(cluster), topology_ );
200 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e3x2 ( const reco::BasicCluster cluster)

Definition at line 222 of file EcalClusterLazyTools.h.

223 {
224  return EcalClusterToolsImpl::e3x2( cluster, getEcalRecHitCollection(cluster), topology_ );
225 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e3x3 ( const reco::BasicCluster cluster)

Definition at line 228 of file EcalClusterLazyTools.h.

Referenced by pat::PATPhotonSlimmer::produce().

229 {
230  return EcalClusterToolsImpl::e3x3( cluster, getEcalRecHitCollection(cluster), topology_ );
231 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e4x4 ( const reco::BasicCluster cluster)

Definition at line 234 of file EcalClusterLazyTools.h.

235 {
236  return EcalClusterToolsImpl::e4x4( cluster, getEcalRecHitCollection(cluster), topology_ );
237 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e5x1 ( const reco::BasicCluster cluster)

Definition at line 210 of file EcalClusterLazyTools.h.

211 {
212  return EcalClusterToolsImpl::e5x1( cluster, getEcalRecHitCollection(cluster), topology_ );
213 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::e5x5 ( const reco::BasicCluster cluster)

Definition at line 240 of file EcalClusterLazyTools.h.

Referenced by pat::PATPhotonSlimmer::produce().

241 {
242  return EcalClusterToolsImpl::e5x5( cluster, getEcalRecHitCollection(cluster), topology_ );
243 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::eBottom ( const reco::BasicCluster cluster)

Definition at line 294 of file EcalClusterLazyTools.h.

295 {
296  return EcalClusterToolsImpl::eBottom( cluster, getEcalRecHitCollection(cluster), topology_ );
297 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::eLeft ( const reco::BasicCluster cluster)

Definition at line 276 of file EcalClusterLazyTools.h.

277 {
278  return EcalClusterToolsImpl::eLeft( cluster, getEcalRecHitCollection(cluster), topology_ );
279 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::eMax ( const reco::BasicCluster cluster)

Definition at line 300 of file EcalClusterLazyTools.h.

301 {
302  return EcalClusterToolsImpl::eMax( cluster, getEcalRecHitCollection(cluster) );
303 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
template<class EcalClusterToolsImpl >
std::vector< float > EcalClusterLazyToolsT< EcalClusterToolsImpl >::energyBasketFractionEta ( const reco::BasicCluster cluster)

Definition at line 318 of file EcalClusterLazyTools.h.

319 {
320  return EcalClusterToolsImpl::energyBasketFractionEta( cluster, getEcalRecHitCollection(cluster) );
321 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
template<class EcalClusterToolsImpl >
std::vector< float > EcalClusterLazyToolsT< EcalClusterToolsImpl >::energyBasketFractionPhi ( const reco::BasicCluster cluster)

Definition at line 324 of file EcalClusterLazyTools.h.

325 {
326  return EcalClusterToolsImpl::energyBasketFractionPhi( cluster, getEcalRecHitCollection(cluster) );
327 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::eRight ( const reco::BasicCluster cluster)

Definition at line 282 of file EcalClusterLazyTools.h.

283 {
284  return EcalClusterToolsImpl::eRight( cluster, getEcalRecHitCollection(cluster), topology_ );
285 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::eTop ( const reco::BasicCluster cluster)

Definition at line 288 of file EcalClusterLazyTools.h.

289 {
290  return EcalClusterToolsImpl::eTop( cluster, getEcalRecHitCollection(cluster), topology_ );
291 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
std::pair< DetId, float > EcalClusterLazyToolsT< EcalClusterToolsImpl >::getMaximum ( const reco::BasicCluster cluster)

Definition at line 312 of file EcalClusterLazyTools.h.

313 {
314  return EcalClusterToolsImpl::getMaximum( cluster, getEcalRecHitCollection(cluster) );
315 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
template<class EcalClusterToolsImpl >
std::vector< float > EcalClusterLazyToolsT< EcalClusterToolsImpl >::lat ( const reco::BasicCluster cluster,
bool  logW = true,
float  w0 = 4.7 
)

Definition at line 330 of file EcalClusterLazyTools.h.

331 {
332  return EcalClusterToolsImpl::lat( cluster, getEcalRecHitCollection(cluster), geometry_, logW, w0 );
333 }
const CaloGeometry * geometry_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
template<class EcalClusterToolsImpl >
std::vector< float > EcalClusterLazyToolsT< EcalClusterToolsImpl >::localCovariances ( const reco::BasicCluster cluster,
float  w0 = 4.7 
)

Definition at line 342 of file EcalClusterLazyTools.h.

Referenced by pat::PATElectronSlimmer::produce(), pat::PATPhotonSlimmer::produce(), and EgammaHLTClusterShapeProducer::produce().

343 {
344  return EcalClusterToolsImpl::localCovariances( cluster, getEcalRecHitCollection(cluster), topology_, w0 );
345 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
std::vector< DetId > EcalClusterLazyToolsT< EcalClusterToolsImpl >::matrixDetId ( DetId  id,
int  ixMin,
int  ixMax,
int  iyMin,
int  iyMax 
)

Definition at line 367 of file EcalClusterLazyTools.h.

368 {
369  return EcalClusterToolsImpl::matrixDetId( topology_, id, ixMin, ixMax, iyMin, iyMax );
370 }
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
float EcalClusterLazyToolsT< EcalClusterToolsImpl >::matrixEnergy ( const reco::BasicCluster cluster,
DetId  id,
int  ixMin,
int  ixMax,
int  iyMin,
int  iyMax 
)

Definition at line 373 of file EcalClusterLazyTools.h.

374 {
375  return EcalClusterToolsImpl::matrixEnergy( cluster, getEcalRecHitCollection(cluster), topology_, id, ixMin, ixMax, iyMin, iyMax );
376 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
std::vector< float > EcalClusterLazyToolsT< EcalClusterToolsImpl >::scLocalCovariances ( const reco::SuperCluster cluster,
float  w0 = 4.7 
)

Definition at line 348 of file EcalClusterLazyTools.h.

349 {
350  return EcalClusterToolsImpl::scLocalCovariances( cluster, getEcalRecHitCollection(cluster), topology_, w0 );
351 }
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
const CaloTopology * topology_
template<class EcalClusterToolsImpl >
double EcalClusterLazyToolsT< EcalClusterToolsImpl >::zernike20 ( const reco::BasicCluster cluster,
double  R0 = 6.6,
bool  logW = true,
float  w0 = 4.7 
)

Definition at line 354 of file EcalClusterLazyTools.h.

355 {
356  return EcalClusterToolsImpl::zernike20( cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0 );
357 }
const CaloGeometry * geometry_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
template<class EcalClusterToolsImpl >
double EcalClusterLazyToolsT< EcalClusterToolsImpl >::zernike42 ( const reco::BasicCluster cluster,
double  R0 = 6.6,
bool  logW = true,
float  w0 = 4.7 
)

Definition at line 361 of file EcalClusterLazyTools.h.

362 {
363  return EcalClusterToolsImpl::zernike42( cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0 );
364 }
const CaloGeometry * geometry_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)