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)
 
 EcalClusterLazyToolsT (const edm::Event &ev, const edm::EventSetup &es, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2, edm::EDGetTokenT< EcalRecHitCollection > token3)
 
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)
 
 EcalClusterLazyToolsBase (const edm::Event &ev, const edm::EventSetup &es, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2, edm::EDGetTokenT< EcalRecHitCollection > token3)
 
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 96 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 99 of file EcalClusterLazyTools.h.

99  :
100  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 ( const edm::Event ev,
const edm::EventSetup es,
edm::EDGetTokenT< EcalRecHitCollection token1,
edm::EDGetTokenT< EcalRecHitCollection token2,
edm::EDGetTokenT< EcalRecHitCollection token3 
)
inline

Definition at line 102 of file EcalClusterLazyTools.h.

102  :
103  EcalClusterLazyToolsBase(ev,es,token1,token2,token3) {}
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 104 of file EcalClusterLazyTools.h.

104 {}

Member Function Documentation

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

Definition at line 341 of file EcalClusterLazyTools.h.

342 {
343  return EcalClusterToolsImpl::covariances( cluster, getEcalRecHitCollection(cluster), topology_, geometry_, w0 );
344 }
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 195 of file EcalClusterLazyTools.h.

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

Definition at line 208 of file EcalClusterLazyTools.h.

Referenced by pat::PATPhotonSlimmer::produce(), and ElectronIDValueMapProducer::produce().

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

Definition at line 311 of file EcalClusterLazyTools.h.

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

Definition at line 221 of file EcalClusterLazyTools.h.

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

Definition at line 269 of file EcalClusterLazyTools.h.

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

Definition at line 257 of file EcalClusterLazyTools.h.

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

Definition at line 275 of file EcalClusterLazyTools.h.

Referenced by ElectronIDValueMapProducer::produce().

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

Definition at line 251 of file EcalClusterLazyTools.h.

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

Definition at line 263 of file EcalClusterLazyTools.h.

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

Definition at line 202 of file EcalClusterLazyTools.h.

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

Definition at line 227 of file EcalClusterLazyTools.h.

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

Definition at line 233 of file EcalClusterLazyTools.h.

Referenced by pat::PATPhotonSlimmer::produce(), ElectronIDValueMapProducer::produce(), and EgammaHLTR9IDProducer::produce().

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

Definition at line 239 of file EcalClusterLazyTools.h.

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

Definition at line 215 of file EcalClusterLazyTools.h.

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

Definition at line 245 of file EcalClusterLazyTools.h.

Referenced by pat::PATPhotonSlimmer::produce(), and ElectronIDValueMapProducer::produce().

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

Definition at line 299 of file EcalClusterLazyTools.h.

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

Definition at line 281 of file EcalClusterLazyTools.h.

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

Definition at line 305 of file EcalClusterLazyTools.h.

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

Definition at line 323 of file EcalClusterLazyTools.h.

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

Definition at line 329 of file EcalClusterLazyTools.h.

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

Definition at line 287 of file EcalClusterLazyTools.h.

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

Definition at line 293 of file EcalClusterLazyTools.h.

294 {
295  return EcalClusterToolsImpl::eTop( cluster, getEcalRecHitCollection(cluster), topology_ );
296 }
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 317 of file EcalClusterLazyTools.h.

318 {
319  return EcalClusterToolsImpl::getMaximum( cluster, getEcalRecHitCollection(cluster) );
320 }
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 335 of file EcalClusterLazyTools.h.

336 {
337  return EcalClusterToolsImpl::lat( cluster, getEcalRecHitCollection(cluster), geometry_, logW, w0 );
338 }
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 347 of file EcalClusterLazyTools.h.

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

348 {
349  return EcalClusterToolsImpl::localCovariances( cluster, getEcalRecHitCollection(cluster), topology_, w0 );
350 }
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 372 of file EcalClusterLazyTools.h.

373 {
374  return EcalClusterToolsImpl::matrixDetId( topology_, id, ixMin, ixMax, iyMin, iyMax );
375 }
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 378 of file EcalClusterLazyTools.h.

379 {
380  return EcalClusterToolsImpl::matrixEnergy( cluster, getEcalRecHitCollection(cluster), topology_, id, ixMin, ixMax, iyMin, iyMax );
381 }
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 353 of file EcalClusterLazyTools.h.

354 {
355  return EcalClusterToolsImpl::scLocalCovariances( cluster, getEcalRecHitCollection(cluster), topology_, w0 );
356 }
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 359 of file EcalClusterLazyTools.h.

360 {
361  return EcalClusterToolsImpl::zernike20( cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0 );
362 }
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 366 of file EcalClusterLazyTools.h.

367 {
368  return EcalClusterToolsImpl::zernike42( cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0 );
369 }
const CaloGeometry * geometry_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)