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, 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)
 
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:18
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:79
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(), and EGEnergyCorrector::CorrectedEnergyWithErrorV3().

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

Referenced by EGEnergyCorrector::CorrectedEnergyWithErrorV3().

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

Referenced by EGEnergyCorrector::CorrectedEnergyWithErrorV3().

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

Referenced by EGEnergyCorrector::CorrectedEnergyWithErrorV3().

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

Referenced by EGEnergyCorrector::CorrectedEnergyWithErrorV3().

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

Referenced by EGEnergyCorrector::CorrectedEnergyWithErrorV3().

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)
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(), EGEnergyCorrector::CorrectedEnergyWithErrorV3(), 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(), and EGEnergyCorrector::CorrectedEnergyWithErrorV3().

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(), and EGEnergyCorrector::CorrectedEnergyWithErrorV3().

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(), EGEnergyCorrector::CorrectedEnergyWithErrorV3(), 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(), and EGEnergyCorrector::CorrectedEnergyWithErrorV3().

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:158
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:161
T sqrt(T t)
Definition: SSEVec.h:48
double x() const
x coordinate of cluster centroid
Definition: CaloCluster.h:152
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)
double y() const
y coordinate of cluster centroid
Definition: CaloCluster.h:155
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:158
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:161
double x() const
x coordinate of cluster centroid
Definition: CaloCluster.h:152
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)
double y() const
y coordinate of cluster centroid
Definition: CaloCluster.h:155
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:158
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:161
double x() const
x coordinate of cluster centroid
Definition: CaloCluster.h:152
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)
double y() const
y coordinate of cluster centroid
Definition: CaloCluster.h:155
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(), and EGEnergyCorrector::CorrectedEnergyWithErrorV3().

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:390
T const * product() const
Definition: Handle.h:81
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:79
Definition: DetId.h:18
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:390
T const * product() const
Definition: Handle.h:81
std::vector< float > EcalClusterLazyTools::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 
)

Definition at line 665 of file EcalClusterLazyTools.cc.

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

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

666 {
667  std::map<DetId, EcalRecHit> rechits_map = _rechits_map;
668  std::vector<float> esHits;
669 
670  const GlobalPoint point(X,Y,Z);
671 
672  const CaloSubdetectorGeometry *geometry_p ;
673  geometry_p = geometry->getSubdetectorGeometry (DetId::Ecal,EcalPreshower) ;
674 
675  DetId esId = (dynamic_cast<const EcalPreshowerGeometry*>(geometry_p))->getClosestCellInPlane(point, plane);
676  ESDetId esDetId = (esId == DetId(0)) ? ESDetId(0) : ESDetId(esId);
677 
678  std::map<DetId, EcalRecHit>::iterator it;
679  ESDetId next;
680  ESDetId strip;
681  strip = esDetId;
682 
683  EcalPreshowerNavigator theESNav(strip, topology_p);
684  theESNav.setHome(strip);
685 
686  if (row == 1) {
687  if (plane==1 && strip != ESDetId(0)) strip = theESNav.north();
688  if (plane==2 && strip != ESDetId(0)) strip = theESNav.east();
689  } else if (row == -1) {
690  if (plane==1 && strip != ESDetId(0)) strip = theESNav.south();
691  if (plane==2 && strip != ESDetId(0)) strip = theESNav.west();
692  }
693 
694 
695  if (strip == ESDetId(0)) {
696  for (int i=0; i<31; ++i) esHits.push_back(0);
697  } else {
698  it = rechits_map.find(strip);
699  if (it->second.energy() > 1.0e-10 && it != rechits_map.end()) esHits.push_back(it->second.energy());
700  else esHits.push_back(0);
701  //cout<<"center : "<<strip<<" "<<it->second.energy()<<endl;
702 
703  // Front Plane
704  if (plane==1) {
705  // east road
706  for (int i=0; i<15; ++i) {
707  next = theESNav.east();
708  if (next != ESDetId(0)) {
709  it = rechits_map.find(next);
710  if (it->second.energy() > 1.0e-10 && it != rechits_map.end()) esHits.push_back(it->second.energy());
711  else esHits.push_back(0);
712  //cout<<"east "<<i<<" : "<<next<<" "<<it->second.energy()<<endl;
713  } else {
714  for (int j=i; j<15; j++) esHits.push_back(0);
715  break;
716  //cout<<"east "<<i<<" : "<<next<<" "<<0<<endl;
717  }
718  }
719 
720  // west road
721  theESNav.setHome(strip);
722  theESNav.home();
723  for (int i=0; i<15; ++i) {
724  next = theESNav.west();
725  if (next != ESDetId(0)) {
726  it = rechits_map.find(next);
727  if (it->second.energy() > 1.0e-10 && it != rechits_map.end()) esHits.push_back(it->second.energy());
728  else esHits.push_back(0);
729  //cout<<"west "<<i<<" : "<<next<<" "<<it->second.energy()<<endl;
730  } else {
731  for (int j=i; j<15; j++) esHits.push_back(0);
732  break;
733  //cout<<"west "<<i<<" : "<<next<<" "<<0<<endl;
734  }
735  }
736  } // End of Front Plane
737 
738  // Rear Plane
739  if (plane==2) {
740  // north road
741  for (int i=0; i<15; ++i) {
742  next = theESNav.north();
743  if (next != ESDetId(0)) {
744  it = rechits_map.find(next);
745  if (it->second.energy() > 1.0e-10 && it != rechits_map.end()) esHits.push_back(it->second.energy());
746  else esHits.push_back(0);
747  //cout<<"north "<<i<<" : "<<next<<" "<<it->second.energy()<<endl;
748  } else {
749  for (int j=i; j<15; j++) esHits.push_back(0);
750  break;
751  //cout<<"north "<<i<<" : "<<next<<" "<<0<<endl;
752  }
753  }
754 
755  // south road
756  theESNav.setHome(strip);
757  theESNav.home();
758  for (int i=0; i<15; ++i) {
759  next = theESNav.south();
760  if (next != ESDetId(0)) {
761  it = rechits_map.find(next);
762  if (it->second.energy() > 1.0e-10 && it != rechits_map.end()) esHits.push_back(it->second.energy());
763  else esHits.push_back(0);
764  //cout<<"south "<<i<<" : "<<next<<" "<<it->second.energy()<<endl;
765  } else {
766  for (int j=i; j<15; j++) esHits.push_back(0);
767  break;
768  //cout<<"south "<<i<<" : "<<next<<" "<<0<<endl;
769  }
770  }
771  } // End of Rear Plane
772  } // Fill ES RecHits
773 
774  return esHits;
775 }
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:48
int j
Definition: DBlmapReader.cc:9
Definition: DetId.h:18
*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:390
T const * product() const
Definition: Handle.h:81
float EcalClusterLazyTools::getESShape ( const std::vector< float > &  ESHits0)

Definition at line 779 of file EcalClusterLazyTools.cc.

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

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

780 {
781  const int nBIN = 21;
782  float esRH[nBIN];
783  for (int idx=0; idx<nBIN; idx++) {
784  esRH[idx] = 0.;
785  }
786 
787  for(int ibin=0; ibin<((nBIN+1)/2); ibin++) {
788  if (ibin==0) {
789  esRH[(nBIN-1)/2] = ESHits0[ibin];
790  } else {
791  esRH[(nBIN-1)/2+ibin] = ESHits0[ibin];
792  esRH[(nBIN-1)/2-ibin] = ESHits0[ibin+15];
793  }
794  }
795 
796  // ---- Effective Energy Deposit Width ---- //
797  double EffWidthSigmaISIS = 0.;
798  double totalEnergyISIS = 0.;
799  double EffStatsISIS = 0.;
800  for (int id_X=0; id_X<21; id_X++) {
801  totalEnergyISIS += esRH[id_X];
802  EffStatsISIS += esRH[id_X]*(id_X-10)*(id_X-10);
803  }
804  EffWidthSigmaISIS = (totalEnergyISIS>0.) ? sqrt(fabs(EffStatsISIS / totalEnergyISIS)) : 0.;
805 
806  return EffWidthSigmaISIS;
807 }
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 pat::PATPhotonProducer::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 
)
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_.

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:66
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:66
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