CMS 3D CMS Logo

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

#include <EcalClusterLazyTools.h>

Public Member Functions

float BasicClusterSeedTime (const reco::BasicCluster &cluster)
 
float BasicClusterTime (const reco::BasicCluster &cluster, const edm::Event &ev)
 
std::vector< float > covariances (const reco::BasicCluster &cluster, float w0=4.7)
 
std::vector< float > covariances (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv, float w0=4.7)
 
float e1x3 (const reco::BasicCluster &cluster)
 
float e1x3 (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e1x5 (const reco::BasicCluster &cluster)
 
float e1x5 (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e2nd (const reco::BasicCluster &cluster)
 
float e2nd (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e2x2 (const reco::BasicCluster &cluster)
 
float e2x2 (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e2x5Bottom (const reco::BasicCluster &cluster)
 
float e2x5Bottom (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e2x5Left (const reco::BasicCluster &cluster)
 
float e2x5Left (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e2x5Max (const reco::BasicCluster &cluster)
 
float e2x5Max (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e2x5Right (const reco::BasicCluster &cluster)
 
float e2x5Right (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e2x5Top (const reco::BasicCluster &cluster)
 
float e2x5Top (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e3x1 (const reco::BasicCluster &cluster)
 
float e3x1 (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e3x2 (const reco::BasicCluster &cluster)
 
float e3x2 (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e3x3 (const reco::BasicCluster &cluster)
 
float e3x3 (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e4x4 (const reco::BasicCluster &cluster)
 
float e4x4 (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e5x1 (const reco::BasicCluster &cluster)
 
float e5x1 (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float e5x5 (const reco::BasicCluster &cluster)
 
float e5x5 (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float eBottom (const reco::BasicCluster &cluster)
 
float eBottom (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
 EcalClusterLazyTools (const edm::Event &ev, const edm::EventSetup &es, const edm::InputTag &redEBRecHits, const edm::InputTag &redEERecHits, const edm::ParameterSet &config)
 
 EcalClusterLazyTools (const edm::Event &ev, const edm::EventSetup &es, const edm::InputTag &redEBRecHits, const edm::InputTag &redEERecHits)
 
 EcalClusterLazyTools (const edm::Event &ev, const edm::EventSetup &es, const edm::InputTag &redEBRecHits, const edm::InputTag &redEERecHits, const edm::InputTag &redESRecHits)
 
float eLeft (const reco::BasicCluster &cluster)
 
float eLeft (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float eMax (const reco::BasicCluster &cluster)
 
float eMax (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
std::vector< float > energyBasketFractionEta (const reco::BasicCluster &cluster)
 
std::vector< float > energyBasketFractionEta (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
std::vector< float > energyBasketFractionPhi (const reco::BasicCluster &cluster)
 
std::vector< float > energyBasketFractionPhi (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float eRight (const reco::BasicCluster &cluster)
 
float eRight (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
float eseffsirir (const reco::SuperCluster &cluster)
 
float eseffsixix (const reco::SuperCluster &cluster)
 
float eseffsiyiy (const reco::SuperCluster &cluster)
 
float eTop (const reco::BasicCluster &cluster)
 
float eTop (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
std::vector< float > getESHits (double X, double Y, double Z, 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)
 
std::pair< DetId, float > getMaximum (const reco::BasicCluster &cluster)
 
std::pair< DetId, float > getMaximum (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
std::vector< float > lat (const reco::BasicCluster &cluster, bool logW=true, float w0=4.7)
 
std::vector< float > lat (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv, bool logW=true, float w0=4.7)
 
std::vector< float > localCovariances (const reco::BasicCluster &cluster, float w0=4.7)
 
std::vector< float > localCovariances (const reco::BasicCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv, 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)
 
float matrixEnergy (const reco::BasicCluster &cluster, DetId id, int ixMin, int ixMax, int iyMin, int iyMax, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv)
 
std::vector< float > scLocalCovariances (const reco::SuperCluster &cluster, float w0=4.7)
 
std::vector< float > scLocalCovariances (const reco::SuperCluster &cluster, const std::vector< int > &flagsexcl, const std::vector< int > &severitiesexcl, const EcalSeverityLevelAlgo *sevLv, float w0=4.7)
 
float SuperClusterSeedTime (const reco::SuperCluster &cluster)
 
float SuperClusterTime (const reco::SuperCluster &cluster, const edm::Event &ev)
 
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 ()
 

Public Attributes

std::map< DetId, EcalRecHitrechits_map_
 

Private Member Functions

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

Private Attributes

edm::ESHandle
< EcalADCToGeVConstant
agc
 
const EcalRecHitCollectionebRecHits_
 
const EcalRecHitCollectioneeRecHits_
 
const EcalRecHitCollectionesRecHits_
 
const CaloGeometrygeometry_
 
edm::ESHandle
< EcalIntercalibConstants
ical
 
EcalIntercalibConstantMap icalMap
 
edm::ESHandle< EcalLaserDbServicelaser
 
const CaloTopologytopology_
 

Detailed Description

various cluster tools (e.g. cluster shapes)

Author
Federico Ferri
Version
$Id:

Definition at line 33 of file EcalClusterLazyTools.h.

Constructor & Destructor Documentation

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

Definition at line 61 of file EcalClusterLazyTools.cc.

References getADCToGeV(), getEBRecHits(), getEERecHits(), getGeometry(), getIntercalibConstants(), getLaserDbService(), and getTopology().

62 {
63  getGeometry( es );
64  getTopology( es );
65  getEBRecHits( ev, redEBRecHits );
66  getEERecHits( ev, redEERecHits );
68  getADCToGeV ( es );
69  getLaserDbService ( es );
70 
71 // edm::ESHandle<EcalSeverityLevelAlgo> sevLv;
72 // es.get<EcalSeverityLevelAlgoRcd>().get(sevLv);
73 
74 }
void getEBRecHits(const edm::Event &ev, const edm::InputTag &redEBRecHits)
void getEERecHits(const edm::Event &ev, const edm::InputTag &redEERecHits)
void getLaserDbService(const edm::EventSetup &es)
void getIntercalibConstants(const edm::EventSetup &es)
void getADCToGeV(const edm::EventSetup &es)
void getGeometry(const edm::EventSetup &es)
void getTopology(const edm::EventSetup &es)
EcalClusterLazyTools::EcalClusterLazyTools ( const edm::Event ev,
const edm::EventSetup es,
const edm::InputTag redEBRecHits,
const edm::InputTag redEERecHits 
)

Definition at line 26 of file EcalClusterLazyTools.cc.

References getADCToGeV(), getEBRecHits(), getEERecHits(), getGeometry(), getIntercalibConstants(), getLaserDbService(), and getTopology().

27 {
28  getGeometry( es );
29  getTopology( es );
30  getEBRecHits( ev, redEBRecHits );
31  getEERecHits( ev, redEERecHits );
33  getADCToGeV ( es );
34  getLaserDbService ( es );
35 
36  //AA
37  //Flags and Severities to be excluded from photon calculations
38 /*
39  const std::vector<std::string> flagnames =
40  config.getParameter<std::vector<std::string> >("RecHitFlagToBeExcluded");
41 
42  flagsexcl_=
43  StringToEnumValue<EcalRecHit::Flags>(flagnames);
44 
45  const std::vector<std::string> severitynames =
46  config.getParameter<std::vector<std::string> >("RecHitSeverityToBeExcluded");
47 
48  severitiesexcl_=
49  StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynames);
50  //AA
51 
52  //AA
53 */
54  //Get the severity level object
55 // edm::ESHandle<EcalSeverityLevelAlgo> sevLv;
56 // es.get<EcalSeverityLevelAlgoRcd>().get(sevLv);
57  //
58 
59 }
void getEBRecHits(const edm::Event &ev, const edm::InputTag &redEBRecHits)
void getEERecHits(const edm::Event &ev, const edm::InputTag &redEERecHits)
void getLaserDbService(const edm::EventSetup &es)
void getIntercalibConstants(const edm::EventSetup &es)
void getADCToGeV(const edm::EventSetup &es)
void getGeometry(const edm::EventSetup &es)
void getTopology(const edm::EventSetup &es)
EcalClusterLazyTools::EcalClusterLazyTools ( const edm::Event ev,
const edm::EventSetup es,
const edm::InputTag redEBRecHits,
const edm::InputTag redEERecHits,
const edm::InputTag redESRecHits 
)

Definition at line 76 of file EcalClusterLazyTools.cc.

References getADCToGeV(), getEBRecHits(), getEERecHits(), getESRecHits(), getGeometry(), getIntercalibConstants(), getLaserDbService(), and getTopology().

77 {
78  getGeometry( es );
79  getTopology( es );
80  getEBRecHits( ev, redEBRecHits );
81  getEERecHits( ev, redEERecHits );
82  getESRecHits( ev, redESRecHits );
84  getADCToGeV ( es );
85  getLaserDbService ( es );
86 
87 }
void getEBRecHits(const edm::Event &ev, const edm::InputTag &redEBRecHits)
void getEERecHits(const edm::Event &ev, const edm::InputTag &redEERecHits)
void getLaserDbService(const edm::EventSetup &es)
void getIntercalibConstants(const edm::EventSetup &es)
void getADCToGeV(const edm::EventSetup &es)
void getGeometry(const edm::EventSetup &es)
void getESRecHits(const edm::Event &ev, const edm::InputTag &redESRecHits)
void getTopology(const edm::EventSetup &es)
EcalClusterLazyTools::~EcalClusterLazyTools ( )

Definition at line 89 of file EcalClusterLazyTools.cc.

90 {
91 }

Member Function Documentation

float EcalClusterLazyTools::BasicClusterSeedTime ( const reco::BasicCluster cluster)

Definition at line 519 of file EcalClusterLazyTools.cc.

References edm::SortedCollection< T, SORT >::find(), and getEcalRecHitCollection().

Referenced by SuperClusterSeedTime().

520 {
521 
522  const EcalRecHitCollection *recHits = getEcalRecHitCollection( cluster );
523 
524  DetId id = cluster.seed();
525  EcalRecHitCollection::const_iterator theSeedHit = recHits->find (id);
526  // std::cout << "the seed of the BC has time: "
527  //<< (*theSeedHit).time()
528  //<< "and energy: " << (*theSeedHit).energy() << " collection size: " << recHits->size()
529  //<< "\n" <<std::endl; // GF debug
530 
531  return (*theSeedHit).time();
532 }
std::vector< EcalRecHit >::const_iterator const_iterator
Definition: DetId.h:20
iterator find(key_type k)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::BasicClusterTime ( const reco::BasicCluster cluster,
const edm::Event ev 
)

Definition at line 536 of file EcalClusterLazyTools.cc.

References ecalMGPA::adc(), agc, EcalBarrel, EcalEndcap, EcalCondObjectContainer< T >::end(), EcalCondObjectContainer< T >::find(), edm::SortedCollection< T, SORT >::find(), first, getEcalRecHitCollection(), icalMap, laser, mathSSE::sqrt(), and edm::EventBase::time().

Referenced by SuperClusterTime().

537 {
538 
539  std::vector<std::pair<DetId, float> > clusterComponents = (cluster).hitsAndFractions() ;
540  //std::cout << "BC has this many components: " << clusterComponents.size() << std::endl; // GF debug
541 
542  const EcalRecHitCollection *recHits = getEcalRecHitCollection( cluster );
543  //std::cout << "BasicClusterClusterTime - rechits are this many: " << recHits->size() << std::endl; // GF debug
544 
545 
546  float weightedTsum = 0;
547  float sumOfWeights = 0;
548 
549  for (std::vector<std::pair<DetId, float> >::const_iterator detitr = clusterComponents.begin(); detitr != clusterComponents.end(); detitr++ )
550  {
551  // EcalRecHitCollection::const_iterator theSeedHit = recHits->find (id); // trash this
552  EcalRecHitCollection::const_iterator oneHit = recHits->find( (detitr -> first) ) ;
553 
554  // in order to get back the ADC counts from the recHit energy, three ingredients are necessary:
555  // 1) get laser correction coefficient
556  float lasercalib = 1.;
557  lasercalib = laser->getLaserCorrection( detitr->first, ev.time());
558  // 2) get intercalibration
560  EcalIntercalibConstant icalconst = 1.;
561  if( icalit!=icalMap.end() ) {
562  icalconst = (*icalit);
563  // std::cout << "icalconst set to: " << icalconst << std::endl;
564  } else {
565  edm::LogError("EcalClusterLazyTools") << "No intercalib const found for xtal " << (detitr->first).rawId() << "bailing out";
566  assert(0);
567  }
568  // 3) get adc2GeV
569  float adcToGeV = 1.;
570  if ( (detitr -> first).subdetId() == EcalBarrel ) adcToGeV = float(agc->getEBValue());
571  else if ( (detitr -> first).subdetId() == EcalEndcap ) adcToGeV = float(agc->getEEValue());
572  float adc = 2.;
573  if (icalconst>0 && lasercalib>0 && adcToGeV>0) adc= (*oneHit).energy()/(icalconst*lasercalib*adcToGeV);
574 
575  // don't consider recHits with too little amplitude; take sigma_noise_total into account
576  if( (detitr -> first).subdetId() == EcalBarrel && adc< (1.1*20) ) continue;
577  if( (detitr -> first).subdetId() == EcalEndcap && adc< (2.2*20) ) continue;
578 
579  // count only on rechits whose error is trusted by the method (ratio)
580  if(! (*oneHit).isTimeErrorValid()) continue;
581 
582  float timeError = (*oneHit).timeError();
583  // the constant used to build timeError is largely over-estimated ; remove in quadrature 0.6 and add 0.15 back.
584  // could be prettier if value of constant term was changed at recHit production level
585  if (timeError>0.6) timeError = sqrt( timeError*timeError - 0.6*0.6 + 0.15*0.15);
586  else timeError = sqrt( timeError*timeError + 0.15*0.15);
587 
588  // do the error weighting
589  weightedTsum += (*oneHit).time() / (timeError*timeError);
590  sumOfWeights += 1. / (timeError*timeError);
591 
592  }
593 
594  // what if no crytal is available for weighted average?
595  if ( sumOfWeights ==0 ) return -999;
596  else return ( weightedTsum / sumOfWeights);
597 
598 }
int adc(sample_type sample)
get the ADC sample (12 bits)
edm::ESHandle< EcalADCToGeVConstant > agc
std::vector< EcalRecHit >::const_iterator const_iterator
edm::ESHandle< EcalLaserDbService > laser
T sqrt(T t)
Definition: SSEVec.h:48
bool first
Definition: L1TdeRCT.cc:94
std::vector< Item >::const_iterator const_iterator
iterator find(key_type k)
EcalIntercalibConstantMap icalMap
const_iterator find(uint32_t rawId) const
const_iterator end() const
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
edm::Timestamp time() const
Definition: EventBase.h:57
float EcalIntercalibConstant
std::vector< float > EcalClusterLazyTools::covariances ( const reco::BasicCluster cluster,
float  w0 = 4.7 
)

Definition at line 461 of file EcalClusterLazyTools.cc.

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

Referenced by EgammaHLTClusterShapeProducer::produce().

462 {
464 }
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)
std::vector< float > EcalClusterLazyTools::covariances ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv,
float  w0 = 4.7 
)

Definition at line 466 of file EcalClusterLazyTools.cc.

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

467 {
468  return EcalClusterTools::covariances( cluster, getEcalRecHitCollection(cluster), topology_, geometry_, flagsexcl, severitiesexcl, sevLv, w0 );
469 }
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 195 of file EcalClusterLazyTools.cc.

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

196 {
197  return EcalClusterTools::e1x3( cluster, getEcalRecHitCollection(cluster), topology_ );
198 }
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::e1x3 ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 201 of file EcalClusterLazyTools.cc.

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

202 {
203  return EcalClusterTools::e1x3( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
204 }
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 219 of file EcalClusterLazyTools.cc.

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

220 {
221  return EcalClusterTools::e1x5( cluster, getEcalRecHitCollection(cluster), topology_ );
222 }
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::e1x5 ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 224 of file EcalClusterLazyTools.cc.

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

225 {
226  return EcalClusterTools::e1x5( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
227 }
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 407 of file EcalClusterLazyTools.cc.

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

Referenced by EGEnergyCorrector::CorrectedEnergyWithError().

408 {
409  return EcalClusterTools::e2nd( cluster, getEcalRecHitCollection(cluster) );
410 }
static float e2nd(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::e2nd ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 412 of file EcalClusterLazyTools.cc.

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

413 {
414  return EcalClusterTools::e2nd( cluster, getEcalRecHitCollection(cluster), flagsexcl, severitiesexcl, sevLv );
415 }
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 242 of file EcalClusterLazyTools.cc.

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

243 {
244  return EcalClusterTools::e2x2( cluster, getEcalRecHitCollection(cluster), topology_ );
245 }
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::e2x2 ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 247 of file EcalClusterLazyTools.cc.

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

248 {
249  return EcalClusterTools::e2x2( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
250 }
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 330 of file EcalClusterLazyTools.cc.

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

331 {
333 }
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::e2x5Bottom ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 335 of file EcalClusterLazyTools.cc.

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

336 {
337  return EcalClusterTools::e2x5Bottom( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
338 }
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 308 of file EcalClusterLazyTools.cc.

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

309 {
310  return EcalClusterTools::e2x5Left( cluster, getEcalRecHitCollection(cluster), topology_ );
311 }
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::e2x5Left ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 313 of file EcalClusterLazyTools.cc.

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

314 {
315  return EcalClusterTools::e2x5Left( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
316 }
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 341 of file EcalClusterLazyTools.cc.

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

342 {
343  return EcalClusterTools::e2x5Max( cluster, getEcalRecHitCollection(cluster), topology_ );
344 }
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::e2x5Max ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 346 of file EcalClusterLazyTools.cc.

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

347 {
348  return EcalClusterTools::e2x5Max( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
349 }
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 297 of file EcalClusterLazyTools.cc.

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

298 {
300 }
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::e2x5Right ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 302 of file EcalClusterLazyTools.cc.

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

303 {
304  return EcalClusterTools::e2x5Right( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
305 }
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 319 of file EcalClusterLazyTools.cc.

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

320 {
321  return EcalClusterTools::e2x5Top( cluster, getEcalRecHitCollection(cluster), topology_ );
322 }
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::e2x5Top ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 324 of file EcalClusterLazyTools.cc.

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

325 {
326  return EcalClusterTools::e2x5Top( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
327 }
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 208 of file EcalClusterLazyTools.cc.

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

209 {
210  return EcalClusterTools::e3x1( cluster, getEcalRecHitCollection(cluster), topology_ );
211 }
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::e3x1 ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 213 of file EcalClusterLazyTools.cc.

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

214 {
215  return EcalClusterTools::e3x1( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
216 }
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 253 of file EcalClusterLazyTools.cc.

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

254 {
255  return EcalClusterTools::e3x2( cluster, getEcalRecHitCollection(cluster), topology_ );
256 }
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::e3x2 ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 258 of file EcalClusterLazyTools.cc.

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

259 {
260  return EcalClusterTools::e3x2( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
261 }
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 264 of file EcalClusterLazyTools.cc.

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

Referenced by EgammaSuperClusters::analyze(), EGEnergyCorrector::CorrectedEnergyWithError(), EgammaHLTR9Producer::produce(), EgammaHLTR9IDProducer::produce(), pat::PATElectronProducer::produce(), PTDRElectronID::result(), and FourVectorHLTOffline::selectElectrons().

265 {
266  return EcalClusterTools::e3x3( cluster, getEcalRecHitCollection(cluster), topology_ );
267 }
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::e3x3 ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 269 of file EcalClusterLazyTools.cc.

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

270 {
271  return EcalClusterTools::e3x3( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
272 }
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 275 of file EcalClusterLazyTools.cc.

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

276 {
277  return EcalClusterTools::e4x4( cluster, getEcalRecHitCollection(cluster), topology_ );
278 }
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::e4x4 ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 280 of file EcalClusterLazyTools.cc.

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

281 {
282  return EcalClusterTools::e4x4( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
283 }
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::e5x1 ( const reco::BasicCluster cluster)

Definition at line 231 of file EcalClusterLazyTools.cc.

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

232 {
233  return EcalClusterTools::e5x1( cluster, getEcalRecHitCollection(cluster), topology_ );
234  }
static float e5x1(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits, const CaloTopology *topology)
const CaloTopology * topology_
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::e5x1 ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 236 of file EcalClusterLazyTools.cc.

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

237 {
238  return EcalClusterTools::e5x1( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
239  }
static float e5x1(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 286 of file EcalClusterLazyTools.cc.

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

Referenced by EgammaSuperClusters::analyze(), EGEnergyCorrector::CorrectedEnergyWithError(), and PTDRElectronID::result().

287 {
288  return EcalClusterTools::e5x5( cluster, getEcalRecHitCollection(cluster), topology_ );
289 }
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::e5x5 ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 291 of file EcalClusterLazyTools.cc.

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

292 {
293  return EcalClusterTools::e5x5( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
294 }
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 385 of file EcalClusterLazyTools.cc.

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

Referenced by EGEnergyCorrector::CorrectedEnergyWithError().

386 {
387  return EcalClusterTools::eBottom( cluster, getEcalRecHitCollection(cluster), topology_ );
388 }
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::eBottom ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 390 of file EcalClusterLazyTools.cc.

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

391 {
392  return EcalClusterTools::eBottom( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
393 }
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 352 of file EcalClusterLazyTools.cc.

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

Referenced by EGEnergyCorrector::CorrectedEnergyWithError().

353 {
354  return EcalClusterTools::eLeft( cluster, getEcalRecHitCollection(cluster), topology_ );
355 }
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::eLeft ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 357 of file EcalClusterLazyTools.cc.

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

358 {
359  return EcalClusterTools::eLeft( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
360 }
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 396 of file EcalClusterLazyTools.cc.

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

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

397 {
398  return EcalClusterTools::eMax( cluster, getEcalRecHitCollection(cluster) );
399 }
static float eMax(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
float EcalClusterLazyTools::eMax ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 401 of file EcalClusterLazyTools.cc.

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

402 {
403  return EcalClusterTools::eMax( cluster, getEcalRecHitCollection(cluster), flagsexcl, severitiesexcl, sevLv );
404 }
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 428 of file EcalClusterLazyTools.cc.

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

429 {
431 }
static std::vector< float > energyBasketFractionEta(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
std::vector< float > EcalClusterLazyTools::energyBasketFractionEta ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 433 of file EcalClusterLazyTools.cc.

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

434 {
435  return EcalClusterTools::energyBasketFractionEta( cluster, getEcalRecHitCollection(cluster), flagsexcl, severitiesexcl, sevLv );
436 }
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 439 of file EcalClusterLazyTools.cc.

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

440 {
442 }
static std::vector< float > energyBasketFractionPhi(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
std::vector< float > EcalClusterLazyTools::energyBasketFractionPhi ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 444 of file EcalClusterLazyTools.cc.

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

445 {
446  return EcalClusterTools::energyBasketFractionPhi( cluster, getEcalRecHitCollection(cluster), flagsexcl, severitiesexcl, sevLv );
447 }
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 363 of file EcalClusterLazyTools.cc.

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

Referenced by EGEnergyCorrector::CorrectedEnergyWithError().

364 {
365  return EcalClusterTools::eRight( cluster, getEcalRecHitCollection(cluster), topology_ );
366 }
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::eRight ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 368 of file EcalClusterLazyTools.cc.

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

369 {
370  return EcalClusterTools::eRight( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
371 }
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::eseffsirir ( const reco::SuperCluster cluster)

Definition at line 618 of file EcalClusterLazyTools.cc.

References DetId::Ecal, EcalPreshower, reco::CaloCluster::eta(), geometry_, getESHits(), getESShape(), CaloGeometry::getSubdetectorGeometry(), rechits_map_, mathSSE::sqrt(), reco::CaloCluster::x(), reco::CaloCluster::y(), and reco::CaloCluster::z().

619 {
620  if (!(fabs(cluster.eta()) > 1.6 && fabs(cluster.eta()) < 3.)) return 0.;
621 
623  CaloSubdetectorTopology *topology_p = 0;
624  if (geometryES) topology_p = new EcalPreshowerTopology(geometry_);
625 
626  std::vector<float> phoESHitsIXIX = getESHits(cluster.x(), cluster.y(), cluster.z(), rechits_map_, geometry_, topology_p, 0, 1);
627  std::vector<float> phoESHitsIYIY = getESHits(cluster.x(), cluster.y(), cluster.z(), rechits_map_, geometry_, topology_p, 0, 2);
628  float phoESShapeIXIX = getESShape(phoESHitsIXIX);
629  float phoESShapeIYIY = getESShape(phoESHitsIYIY);
630 
631  return sqrt(phoESShapeIXIX*phoESShapeIXIX + phoESShapeIYIY*phoESShapeIYIY);
632 }
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:43
std::map< DetId, EcalRecHit > rechits_map_
const CaloGeometry * geometry_
float getESShape(const std::vector< float > &ESHits0)
double z() const
z coordinate of cluster centroid
Definition: CaloCluster.h:157
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:160
T sqrt(T t)
Definition: SSEVec.h:48
double x() const
x coordinate of cluster centroid
Definition: CaloCluster.h:151
std::vector< float > getESHits(double X, double Y, double Z, std::map< DetId, EcalRecHit > rechits_map, const CaloGeometry *geometry, CaloSubdetectorTopology *topology_p, int row=0, int plane=1)
double y() const
y coordinate of cluster centroid
Definition: CaloCluster.h:154
float EcalClusterLazyTools::eseffsixix ( const reco::SuperCluster cluster)

Definition at line 635 of file EcalClusterLazyTools.cc.

References DetId::Ecal, EcalPreshower, reco::CaloCluster::eta(), geometry_, getESHits(), getESShape(), CaloGeometry::getSubdetectorGeometry(), rechits_map_, reco::CaloCluster::x(), reco::CaloCluster::y(), and reco::CaloCluster::z().

636 {
637  if (!(fabs(cluster.eta()) > 1.6 && fabs(cluster.eta()) < 3.)) return 0.;
638 
640  CaloSubdetectorTopology *topology_p = 0;
641  if (geometryES) topology_p = new EcalPreshowerTopology(geometry_);
642 
643  std::vector<float> phoESHitsIXIX = getESHits(cluster.x(), cluster.y(), cluster.z(), rechits_map_, geometry_, topology_p, 0, 1);
644  float phoESShapeIXIX = getESShape(phoESHitsIXIX);
645 
646  return phoESShapeIXIX;
647 }
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:43
std::map< DetId, EcalRecHit > rechits_map_
const CaloGeometry * geometry_
float getESShape(const std::vector< float > &ESHits0)
double z() const
z coordinate of cluster centroid
Definition: CaloCluster.h:157
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:160
double x() const
x coordinate of cluster centroid
Definition: CaloCluster.h:151
std::vector< float > getESHits(double X, double Y, double Z, std::map< DetId, EcalRecHit > rechits_map, const CaloGeometry *geometry, CaloSubdetectorTopology *topology_p, int row=0, int plane=1)
double y() const
y coordinate of cluster centroid
Definition: CaloCluster.h:154
float EcalClusterLazyTools::eseffsiyiy ( const reco::SuperCluster cluster)

Definition at line 650 of file EcalClusterLazyTools.cc.

References DetId::Ecal, EcalPreshower, reco::CaloCluster::eta(), geometry_, getESHits(), getESShape(), CaloGeometry::getSubdetectorGeometry(), rechits_map_, reco::CaloCluster::x(), reco::CaloCluster::y(), and reco::CaloCluster::z().

651 {
652  if (!(fabs(cluster.eta()) > 1.6 && fabs(cluster.eta()) < 3.)) return 0.;
653 
655  CaloSubdetectorTopology *topology_p = 0;
656  if (geometryES) topology_p = new EcalPreshowerTopology(geometry_);
657 
658  std::vector<float> phoESHitsIYIY = getESHits(cluster.x(), cluster.y(), cluster.z(), rechits_map_, geometry_, topology_p, 0, 2);
659  float phoESShapeIYIY = getESShape(phoESHitsIYIY);
660 
661  return phoESShapeIYIY;
662 }
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:43
std::map< DetId, EcalRecHit > rechits_map_
const CaloGeometry * geometry_
float getESShape(const std::vector< float > &ESHits0)
double z() const
z coordinate of cluster centroid
Definition: CaloCluster.h:157
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:160
double x() const
x coordinate of cluster centroid
Definition: CaloCluster.h:151
std::vector< float > getESHits(double X, double Y, double Z, std::map< DetId, EcalRecHit > rechits_map, const CaloGeometry *geometry, CaloSubdetectorTopology *topology_p, int row=0, int plane=1)
double y() const
y coordinate of cluster centroid
Definition: CaloCluster.h:154
float EcalClusterLazyTools::eTop ( const reco::BasicCluster cluster)

Definition at line 374 of file EcalClusterLazyTools.cc.

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

Referenced by EGEnergyCorrector::CorrectedEnergyWithError().

375 {
376  return EcalClusterTools::eTop( cluster, getEcalRecHitCollection(cluster), topology_ );
377 }
static float eTop(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,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 379 of file EcalClusterLazyTools.cc.

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

380 {
381  return EcalClusterTools::eTop( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv );
382 }
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::getADCToGeV ( const edm::EventSetup es)
private

Definition at line 162 of file EcalClusterLazyTools.cc.

References agc, and edm::EventSetup::get().

Referenced by EcalClusterLazyTools().

163 {
164  // get ADCtoGeV
165  es.get<EcalADCToGeVConstantRcd>().get(agc);
166 }
edm::ESHandle< EcalADCToGeVConstant > agc
const T & get() const
Definition: EventSetup.h:55
void EcalClusterLazyTools::getEBRecHits ( const edm::Event ev,
const edm::InputTag redEBRecHits 
)
private

Definition at line 113 of file EcalClusterLazyTools.cc.

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

Referenced by EcalClusterLazyTools().

114 {
116  ev.getByLabel( redEBRecHits, pEBRecHits );
117  ebRecHits_ = pEBRecHits.product();
118 }
const EcalRecHitCollection * ebRecHits_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
T const * product() const
Definition: Handle.h:74
const EcalRecHitCollection * EcalClusterLazyTools::getEcalRecHitCollection ( const reco::BasicCluster cluster)
private

Definition at line 176 of file EcalClusterLazyTools.cc.

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

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

177 {
178  if ( cluster.size() == 0 ) {
179  throw cms::Exception("InvalidCluster") << "The cluster has no crystals!";
180  }
181  DetId id = (cluster.hitsAndFractions()[0]).first; // size is by definition > 0 -- FIXME??
182  const EcalRecHitCollection *recHits = 0;
183  if ( id.subdetId() == EcalBarrel ) {
184  recHits = ebRecHits_;
185  } else if ( id.subdetId() == EcalEndcap ) {
186  recHits = eeRecHits_;
187  } else {
188  throw cms::Exception("InvalidSubdetector") << "The subdetId() " << id.subdetId() << " does not correspond to EcalBarrel neither EcalEndcap";
189  }
190  return recHits;
191 }
const EcalRecHitCollection * ebRecHits_
const EcalRecHitCollection * eeRecHits_
bool first
Definition: L1TdeRCT.cc:94
Definition: DetId.h:20
void EcalClusterLazyTools::getEERecHits ( const edm::Event ev,
const edm::InputTag redEERecHits 
)
private

Definition at line 122 of file EcalClusterLazyTools.cc.

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

Referenced by EcalClusterLazyTools().

123 {
125  ev.getByLabel( redEERecHits, pEERecHits );
126  eeRecHits_ = pEERecHits.product();
127 }
const EcalRecHitCollection * eeRecHits_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
T const * product() const
Definition: Handle.h:74
std::vector< float > EcalClusterLazyTools::getESHits ( double  X,
double  Y,
double  Z,
std::map< DetId, EcalRecHit rechits_map,
const CaloGeometry geometry,
CaloSubdetectorTopology topology_p,
int  row = 0,
int  plane = 1 
)

Definition at line 665 of file EcalClusterLazyTools.cc.

References DetId::Ecal, EcalPreshower, CaloGeometry::getSubdetectorGeometry(), i, j, and point.

Referenced by eseffsirir(), eseffsixix(), and eseffsiyiy().

666 {
667  std::vector<float> esHits;
668 
669  const GlobalPoint point(X,Y,Z);
670 
671  const CaloSubdetectorGeometry *geometry_p ;
672  geometry_p = geometry->getSubdetectorGeometry (DetId::Ecal,EcalPreshower) ;
673 
674  DetId esId = (dynamic_cast<const EcalPreshowerGeometry*>(geometry_p))->getClosestCellInPlane(point, plane);
675  ESDetId esDetId = (esId == DetId(0)) ? ESDetId(0) : ESDetId(esId);
676 
677  std::map<DetId, EcalRecHit>::iterator it;
678  ESDetId next;
679  ESDetId strip;
680  strip = esDetId;
681 
682  EcalPreshowerNavigator theESNav(strip, topology_p);
683  theESNav.setHome(strip);
684 
685  if (row == 1) {
686  if (plane==1 && strip != ESDetId(0)) strip = theESNav.north();
687  if (plane==2 && strip != ESDetId(0)) strip = theESNav.east();
688  } else if (row == -1) {
689  if (plane==1 && strip != ESDetId(0)) strip = theESNav.south();
690  if (plane==2 && strip != ESDetId(0)) strip = theESNav.west();
691  }
692 
693 
694  if (strip == ESDetId(0)) {
695  for (int i=0; i<31; ++i) esHits.push_back(0);
696  } else {
697  it = rechits_map.find(strip);
698  if (it->second.energy() > 1.0e-10 && it != rechits_map.end()) esHits.push_back(it->second.energy());
699  else esHits.push_back(0);
700  //cout<<"center : "<<strip<<" "<<it->second.energy()<<endl;
701 
702  // Front Plane
703  if (plane==1) {
704  // east road
705  for (int i=0; i<15; ++i) {
706  next = theESNav.east();
707  if (next != ESDetId(0)) {
708  it = rechits_map.find(next);
709  if (it->second.energy() > 1.0e-10 && it != rechits_map.end()) esHits.push_back(it->second.energy());
710  else esHits.push_back(0);
711  //cout<<"east "<<i<<" : "<<next<<" "<<it->second.energy()<<endl;
712  } else {
713  for (int j=i; j<15; j++) esHits.push_back(0);
714  break;
715  //cout<<"east "<<i<<" : "<<next<<" "<<0<<endl;
716  }
717  }
718 
719  // west road
720  theESNav.setHome(strip);
721  theESNav.home();
722  for (int i=0; i<15; ++i) {
723  next = theESNav.west();
724  if (next != ESDetId(0)) {
725  it = rechits_map.find(next);
726  if (it->second.energy() > 1.0e-10 && it != rechits_map.end()) esHits.push_back(it->second.energy());
727  else esHits.push_back(0);
728  //cout<<"west "<<i<<" : "<<next<<" "<<it->second.energy()<<endl;
729  } else {
730  for (int j=i; j<15; j++) esHits.push_back(0);
731  break;
732  //cout<<"west "<<i<<" : "<<next<<" "<<0<<endl;
733  }
734  }
735  } // End of Front Plane
736 
737  // Rear Plane
738  if (plane==2) {
739  // north road
740  for (int i=0; i<15; ++i) {
741  next = theESNav.north();
742  if (next != ESDetId(0)) {
743  it = rechits_map.find(next);
744  if (it->second.energy() > 1.0e-10 && it != rechits_map.end()) esHits.push_back(it->second.energy());
745  else esHits.push_back(0);
746  //cout<<"north "<<i<<" : "<<next<<" "<<it->second.energy()<<endl;
747  } else {
748  for (int j=i; j<15; j++) esHits.push_back(0);
749  break;
750  //cout<<"north "<<i<<" : "<<next<<" "<<0<<endl;
751  }
752  }
753 
754  // south road
755  theESNav.setHome(strip);
756  theESNav.home();
757  for (int i=0; i<15; ++i) {
758  next = theESNav.south();
759  if (next != ESDetId(0)) {
760  it = rechits_map.find(next);
761  if (it->second.energy() > 1.0e-10 && it != rechits_map.end()) esHits.push_back(it->second.energy());
762  else esHits.push_back(0);
763  //cout<<"south "<<i<<" : "<<next<<" "<<it->second.energy()<<endl;
764  } else {
765  for (int j=i; j<15; j++) esHits.push_back(0);
766  break;
767  //cout<<"south "<<i<<" : "<<next<<" "<<0<<endl;
768  }
769  }
770  } // End of Rear Plane
771  } // Fill ES RecHits
772 
773  return esHits;
774 }
const double Z[kNumberCalorimeter]
CaloNavigator< ESDetId > EcalPreshowerNavigator
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:43
int i
Definition: DBlmapReader.cc:9
#define X(str)
Definition: MuonsGrabber.cc:49
int j
Definition: DBlmapReader.cc:9
Definition: DetId.h:20
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
void EcalClusterLazyTools::getESRecHits ( const edm::Event ev,
const edm::InputTag redESRecHits 
)
private

Definition at line 131 of file EcalClusterLazyTools.cc.

References esRecHits_, edm::Event::getByLabel(), edm::HandleBase::isValid(), edm::Handle< T >::product(), and rechits_map_.

Referenced by EcalClusterLazyTools().

132 {
134  ev.getByLabel( redESRecHits, pESRecHits );
135  esRecHits_ = pESRecHits.product();
136 
137  // make the map of rechits
138  rechits_map_.clear();
139  if (pESRecHits.isValid()) {
141  for (it = pESRecHits->begin(); it != pESRecHits->end(); ++it) {
142  // remove bad ES rechits
143  if (it->recoFlag()==1 || it->recoFlag()==14 || (it->recoFlag()<=10 && it->recoFlag()>=5)) continue;
144  //Make the map of DetID, EcalRecHit pairs
145  rechits_map_.insert(std::make_pair(it->id(), *it));
146  }
147  }
148 
149 }
const EcalRecHitCollection * esRecHits_
std::map< DetId, EcalRecHit > rechits_map_
std::vector< EcalRecHit >::const_iterator const_iterator
bool isValid() const
Definition: HandleBase.h:76
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
T const * product() const
Definition: Handle.h:74
float EcalClusterLazyTools::getESShape ( const std::vector< float > &  ESHits0)

Definition at line 778 of file EcalClusterLazyTools.cc.

References customizeTrackingMonitorSeedNumber::idx, and mathSSE::sqrt().

Referenced by eseffsirir(), eseffsixix(), and eseffsiyiy().

779 {
780  const int nBIN = 21;
781  float esRH[nBIN];
782  for (int idx=0; idx<nBIN; idx++) {
783  esRH[idx] = 0.;
784  }
785 
786  for(int ibin=0; ibin<((nBIN+1)/2); ibin++) {
787  if (ibin==0) {
788  esRH[(nBIN-1)/2] = ESHits0[ibin];
789  } else {
790  esRH[(nBIN-1)/2+ibin] = ESHits0[ibin];
791  esRH[(nBIN-1)/2-ibin] = ESHits0[ibin+15];
792  }
793  }
794 
795  // ---- Effective Energy Deposit Width ---- //
796  double EffWidthSigmaISIS = 0.;
797  double totalEnergyISIS = 0.;
798  double EffStatsISIS = 0.;
799  for (int id_X=0; id_X<21; id_X++) {
800  totalEnergyISIS += esRH[id_X];
801  EffStatsISIS += esRH[id_X]*(id_X-10)*(id_X-10);
802  }
803  EffWidthSigmaISIS = (totalEnergyISIS>0.) ? sqrt(fabs(EffStatsISIS / totalEnergyISIS)) : 0.;
804 
805  return EffWidthSigmaISIS;
806 }
T sqrt(T t)
Definition: SSEVec.h:48
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
void EcalClusterLazyTools::getGeometry ( const edm::EventSetup es)
private

Definition at line 95 of file EcalClusterLazyTools.cc.

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

Referenced by EcalClusterLazyTools().

96 {
98  es.get<CaloGeometryRecord>().get(pGeometry);
99  geometry_ = pGeometry.product();
100 }
const CaloGeometry * geometry_
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
void EcalClusterLazyTools::getIntercalibConstants ( const edm::EventSetup es)
private

Definition at line 153 of file EcalClusterLazyTools.cc.

References edm::EventSetup::get(), ical, and icalMap.

Referenced by EcalClusterLazyTools().

154 {
155  // get IC's
157  icalMap = ical->getMap();
158 }
const T & get() const
Definition: EventSetup.h:55
edm::ESHandle< EcalIntercalibConstants > ical
EcalIntercalibConstantMap icalMap
void EcalClusterLazyTools::getLaserDbService ( const edm::EventSetup es)
private

Definition at line 170 of file EcalClusterLazyTools.cc.

References edm::EventSetup::get(), and laser.

Referenced by EcalClusterLazyTools().

170  {
171  // transp corrections
172  es.get<EcalLaserDbRecord>().get(laser);
173 }
edm::ESHandle< EcalLaserDbService > laser
const T & get() const
Definition: EventSetup.h:55
std::pair< DetId, float > EcalClusterLazyTools::getMaximum ( const reco::BasicCluster cluster)

Definition at line 417 of file EcalClusterLazyTools.cc.

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

Referenced by EcalDigiSelector::produce(), HiSpikeCleaner::produce(), and pat::PATElectronProducer::produce().

418 {
419  return EcalClusterTools::getMaximum( cluster, getEcalRecHitCollection(cluster) );
420 }
static std::pair< DetId, float > getMaximum(const reco::BasicCluster &cluster, const EcalRecHitCollection *recHits)
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster)
std::pair< DetId, float > EcalClusterLazyTools::getMaximum ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 422 of file EcalClusterLazyTools.cc.

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

423 {
424  return EcalClusterTools::getMaximum( cluster, getEcalRecHitCollection(cluster), flagsexcl, severitiesexcl, sevLv );
425 }
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 104 of file EcalClusterLazyTools.cc.

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

Referenced by EcalClusterLazyTools().

105 {
106  edm::ESHandle<CaloTopology> pTopology;
107  es.get<CaloTopologyRecord>().get(pTopology);
108  topology_ = pTopology.product();
109 }
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 450 of file EcalClusterLazyTools.cc.

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

451 {
452  return EcalClusterTools::lat( cluster, getEcalRecHitCollection(cluster), geometry_, logW, w0 );
453 }
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::lat ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv,
bool  logW = true,
float  w0 = 4.7 
)
std::vector< float > EcalClusterLazyTools::localCovariances ( const reco::BasicCluster cluster,
float  w0 = 4.7 
)

Definition at line 471 of file EcalClusterLazyTools.cc.

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

Referenced by EGEnergyCorrector::CorrectedEnergyWithError(), ElectronLikelihood::getInputVar(), HLTEgamma::MakeL1IsolatedElectrons(), HLTEgamma::MakeL1IsolatedPhotons(), HLTEgamma::MakeL1NonIsolatedElectrons(), HLTEgamma::MakeL1NonIsolatedPhotons(), EgammaHLTClusterShapeProducer::produce(), pat::PATElectronProducer::produce(), and PTDRElectronID::result().

472 {
474 }
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< float > EcalClusterLazyTools::localCovariances ( const reco::BasicCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv,
float  w0 = 4.7 
)

Definition at line 476 of file EcalClusterLazyTools.cc.

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

477 {
478  return EcalClusterTools::localCovariances( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv, w0 );
479 }
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 502 of file EcalClusterLazyTools.cc.

References EcalClusterTools::matrixDetId(), and topology_.

Referenced by EcalDigiSelector::produce().

503 {
504  return EcalClusterTools::matrixDetId( topology_, id, ixMin, ixMax, iyMin, iyMax );
505 }
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 507 of file EcalClusterLazyTools.cc.

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

508 {
509  return EcalClusterTools::matrixEnergy( cluster, getEcalRecHitCollection(cluster), topology_, id, ixMin, ixMax, iyMin, iyMax );
510 }
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)
float EcalClusterLazyTools::matrixEnergy ( const reco::BasicCluster cluster,
DetId  id,
int  ixMin,
int  ixMax,
int  iyMin,
int  iyMax,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv 
)

Definition at line 512 of file EcalClusterLazyTools.cc.

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

513 {
514  return EcalClusterTools::matrixEnergy( cluster, getEcalRecHitCollection(cluster), topology_, id, ixMin, ixMax, iyMin, iyMax, flagsexcl, severitiesexcl, sevLv );
515 }
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 481 of file EcalClusterLazyTools.cc.

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

482 {
484 }
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)
std::vector< float > EcalClusterLazyTools::scLocalCovariances ( const reco::SuperCluster cluster,
const std::vector< int > &  flagsexcl,
const std::vector< int > &  severitiesexcl,
const EcalSeverityLevelAlgo sevLv,
float  w0 = 4.7 
)

Definition at line 486 of file EcalClusterLazyTools.cc.

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

487 {
488  return EcalClusterTools::scLocalCovariances( cluster, getEcalRecHitCollection(cluster), topology_, flagsexcl, severitiesexcl, sevLv, w0 );
489 }
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)
float EcalClusterLazyTools::SuperClusterSeedTime ( const reco::SuperCluster cluster)

Definition at line 602 of file EcalClusterLazyTools.cc.

References BasicClusterSeedTime(), and reco::SuperCluster::seed().

602  {
603 
604  return BasicClusterSeedTime ( (*cluster.seed()) );
605 
606 }
float BasicClusterSeedTime(const reco::BasicCluster &cluster)
const CaloClusterPtr & seed() const
seed BasicCluster
Definition: SuperCluster.h:68
float EcalClusterLazyTools::SuperClusterTime ( const reco::SuperCluster cluster,
const edm::Event ev 
)

Definition at line 610 of file EcalClusterLazyTools.cc.

References BasicClusterTime(), and reco::SuperCluster::seed().

610  {
611 
612  return BasicClusterTime ( (*cluster.seed()) , ev);
613 
614 }
float BasicClusterTime(const reco::BasicCluster &cluster, const edm::Event &ev)
const CaloClusterPtr & seed() const
seed BasicCluster
Definition: SuperCluster.h:68
double EcalClusterLazyTools::zernike20 ( const reco::BasicCluster cluster,
double  R0 = 6.6,
bool  logW = true,
float  w0 = 4.7 
)

Definition at line 491 of file EcalClusterLazyTools.cc.

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

492 {
493  return EcalClusterTools::zernike20( cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0 );
494 }
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 497 of file EcalClusterLazyTools.cc.

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

498 {
499  return EcalClusterTools::zernike42( cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0 );
500 }
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

edm::ESHandle<EcalADCToGeVConstant> EcalClusterLazyTools::agc
private

Definition at line 196 of file EcalClusterLazyTools.h.

Referenced by BasicClusterTime(), and getADCToGeV().

const EcalRecHitCollection* EcalClusterLazyTools::ebRecHits_
private

Definition at line 189 of file EcalClusterLazyTools.h.

Referenced by getEBRecHits(), and getEcalRecHitCollection().

const EcalRecHitCollection* EcalClusterLazyTools::eeRecHits_
private

Definition at line 190 of file EcalClusterLazyTools.h.

Referenced by getEcalRecHitCollection(), and getEERecHits().

const EcalRecHitCollection* EcalClusterLazyTools::esRecHits_
private

Definition at line 191 of file EcalClusterLazyTools.h.

Referenced by getESRecHits().

const CaloGeometry* EcalClusterLazyTools::geometry_
private
edm::ESHandle<EcalIntercalibConstants> EcalClusterLazyTools::ical
private

Definition at line 194 of file EcalClusterLazyTools.h.

Referenced by getIntercalibConstants().

EcalIntercalibConstantMap EcalClusterLazyTools::icalMap
private

Definition at line 195 of file EcalClusterLazyTools.h.

Referenced by BasicClusterTime(), and getIntercalibConstants().

edm::ESHandle<EcalLaserDbService> EcalClusterLazyTools::laser
private

Definition at line 197 of file EcalClusterLazyTools.h.

Referenced by BasicClusterTime(), and getLaserDbService().

std::map<DetId, EcalRecHit> EcalClusterLazyTools::rechits_map_

Definition at line 165 of file EcalClusterLazyTools.h.

Referenced by eseffsirir(), eseffsixix(), eseffsiyiy(), and getESRecHits().

const CaloTopology* EcalClusterLazyTools::topology_
private