test
CMS 3D CMS Logo

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

#include <EcalRegressionData.h>

Public Types

enum  SubClusNr { SubClusNr::C1 =0, SubClusNr::C2 =1, SubClusNr::C3 =2 }
 

Public Member Functions

void clear ()
 
float e2nd () const
 
float e2ndOverSCRawEnergy () const
 
float e3x3 () const
 
float eBottom () const
 
 EcalRegressionData ()
 
float eLeft () const
 
float eMax () const
 
float eMaxOverSCRawEnergy () const
 
float eRight () const
 
float eTop () const
 
void fill (const reco::SuperCluster &superClus, const EcalRecHitCollection *ebRecHits, const EcalRecHitCollection *eeRecHits, const CaloGeometry *geom, const CaloTopology *topology, const reco::VertexCollection *vertices)
 
void fill (const reco::SuperCluster &superClus, const EcalRecHitCollection *ebRecHits, const EcalRecHitCollection *eeRecHits, const CaloGeometry *geom, const CaloTopology *topology, int nrVertices)
 
void fillVec (std::vector< float > &inputVec) const
 
bool isEB () const
 
float maxSubClusDR () const
 
float maxSubClusDRDEta () const
 
float maxSubClusDRDPhi () const
 
float maxSubClusDRRawEnergy () const
 
float maxSubClusDRRawEnergyOverSCRawEnergy () const
 
int nrVtx () const
 
float scCalibEnergy () const
 
float scEta () const
 
float scEtaWidth () const
 
int scNrAdditionalClusters () const
 
float scPhi () const
 
float scPhiWidth () const
 
float scPreShowerEnergy () const
 
float scPreShowerEnergyOverSCRawEnergy () const
 
float scRawEnergy () const
 
float scSeedR9 () const
 
float seedClusEnergy () const
 
float seedClusEnergyOverSCRawEnergy () const
 
float seedCrysEtaOrX () const
 
float seedCrysIEtaOrIX () const
 
float seedCrysIPhiOrIY () const
 
float seedCrysPhiOrY () const
 
float seedLeftRightAsym () const
 
float seedTopBottomAsym () const
 
float sigmaIEtaIEta () const
 
float sigmaIEtaIPhi () const
 
float sigmaIPhiIPhi () const
 
const std::vector< float > & subClusDEta () const
 
float subClusDEta (size_t clusNr) const
 
float subClusDEta (SubClusNr clusNr) const
 
const std::vector< float > & subClusDPhi () const
 
float subClusDPhi (size_t clusNr) const
 
float subClusDPhi (SubClusNr clusNr) const
 
const std::vector< float > & subClusRawEnergy () const
 
float subClusRawEnergy (size_t clusNr) const
 
float subClusRawEnergy (SubClusNr clusNr) const
 
float subClusRawEnergyOverSCRawEnergy (size_t clusNr) const
 
float subClusRawEnergyOverSCRawEnergy (SubClusNr clusNr) const
 

Private Member Functions

float divideBySCRawEnergy_ (float numer) const
 
void fillVecEB_ (std::vector< float > &inputVec) const
 
void fillVecEE_ (std::vector< float > &inputVec) const
 

Private Attributes

float e2nd_
 
float e3x3_
 
float eBottom_
 
float eLeft_
 
float eMax_
 
float eRight_
 
float eTop_
 
bool isEB_
 
float maxSubClusDR2_
 
float maxSubClusDRDEta_
 
float maxSubClusDRDPhi_
 
float maxSubClusDRRawEnergy_
 
int nrVtx_
 
float scCalibEnergy_
 
float scEta_
 
float scEtaWidth_
 
int scNrAdditionalClusters_
 
float scPhi_
 
float scPhiWidth_
 
float scPreShowerEnergy_
 
float scRawEnergy_
 
float seedClusEnergy_
 
float seedCrysEtaOrX_
 
int seedCrysIEtaOrIX_
 
int seedCrysIPhiOrIY_
 
float seedCrysPhiOrY_
 
float sigmaIEtaIEta_
 
float sigmaIEtaIPhi_
 
float sigmaIPhiIPhi_
 
std::vector< float > subClusDEta_
 
std::vector< float > subClusDPhi_
 
std::vector< float > subClusRawEnergy_
 

Detailed Description

Definition at line 16 of file EcalRegressionData.h.

Member Enumeration Documentation

Enumerator
C1 
C2 
C3 

Definition at line 23 of file EcalRegressionData.h.

23  {
24  C1=0,
25  C2=1,
26  C3=2
27  };

Constructor & Destructor Documentation

EcalRegressionData::EcalRegressionData ( )
inline

Definition at line 18 of file EcalRegressionData.h.

References clear().

Member Function Documentation

void EcalRegressionData::clear ( void  )

Definition at line 113 of file EcalRegressionData.cc.

References e2nd_, e3x3_, eBottom_, eLeft_, eMax_, eRight_, eTop_, isEB_, maxSubClusDR2_, maxSubClusDRDEta_, maxSubClusDRDPhi_, maxSubClusDRRawEnergy_, nrVtx_, scCalibEnergy_, scEta_, scEtaWidth_, scNrAdditionalClusters_, scPhi_, scPhiWidth_, scPreShowerEnergy_, scRawEnergy_, seedClusEnergy_, seedCrysEtaOrX_, seedCrysIEtaOrIX_, seedCrysIPhiOrIY_, seedCrysPhiOrY_, sigmaIEtaIEta_, sigmaIEtaIPhi_, sigmaIPhiIPhi_, subClusDEta_, subClusDPhi_, and subClusRawEnergy_.

Referenced by EcalRegressionData(), and fill().

114 {
115  isEB_=false;
116  scRawEnergy_=0.;
117  scCalibEnergy_=0.;
119  scEta_=0.;
120  scPhi_=0.;
121  scEtaWidth_=0.;
122  scPhiWidth_=0.;
124 
125  seedClusEnergy_=0.;
126  eMax_=0.;
127  e2nd_=0.;
128  e3x3_=0.;
129  eTop_=0.;
130  eBottom_=0.;
131  eLeft_=0.;
132  eRight_=0.;
133  sigmaIEtaIEta_=0.;
134  sigmaIEtaIPhi_=0.;
135  sigmaIPhiIPhi_=0.;
136 
137  seedCrysPhiOrY_=0.;
138  seedCrysEtaOrX_=0.;
141 
142  maxSubClusDR2_=998001.;
143  maxSubClusDRDPhi_=999.;
144  maxSubClusDRDEta_=999;
146 
147  subClusRawEnergy_.clear();
148  subClusDPhi_.clear();
149  subClusDEta_.clear();
150 
151  nrVtx_=0;
152 
153 }
std::vector< float > subClusDPhi_
std::vector< float > subClusRawEnergy_
std::vector< float > subClusDEta_
float EcalRegressionData::divideBySCRawEnergy_ ( float  numer) const
inlineprivate
float EcalRegressionData::e2nd ( ) const
inline

Definition at line 41 of file EcalRegressionData.h.

References e2nd_.

Referenced by e2ndOverSCRawEnergy(), and pat::PATPhotonProducer::produce().

41 {return e2nd_;}
float EcalRegressionData::e2ndOverSCRawEnergy ( ) const
inline

Definition at line 69 of file EcalRegressionData.h.

References divideBySCRawEnergy_(), and e2nd().

Referenced by fillVecEB_(), and fillVecEE_().

69 {return divideBySCRawEnergy_(e2nd());}
float divideBySCRawEnergy_(float numer) const
float EcalRegressionData::e3x3 ( ) const
inline

Definition at line 42 of file EcalRegressionData.h.

References e3x3_.

Referenced by pat::PATPhotonProducer::produce(), and scSeedR9().

42 {return e3x3_;}
float EcalRegressionData::eBottom ( ) const
inline

Definition at line 44 of file EcalRegressionData.h.

References eBottom_.

Referenced by pat::PATPhotonProducer::produce(), and seedTopBottomAsym().

44 {return eBottom_;}
float EcalRegressionData::eLeft ( ) const
inline

Definition at line 45 of file EcalRegressionData.h.

References eLeft_.

Referenced by pat::PATPhotonProducer::produce(), and seedLeftRightAsym().

45 {return eLeft_;}
float EcalRegressionData::eMax ( ) const
inline

Definition at line 40 of file EcalRegressionData.h.

References eMax_.

Referenced by eMaxOverSCRawEnergy(), and pat::PATPhotonProducer::produce().

40 {return eMax_;}
float EcalRegressionData::eMaxOverSCRawEnergy ( ) const
inline

Definition at line 68 of file EcalRegressionData.h.

References divideBySCRawEnergy_(), and eMax().

Referenced by fillVecEB_(), and fillVecEE_().

68 {return divideBySCRawEnergy_(eMax());}
float divideBySCRawEnergy_(float numer) const
float EcalRegressionData::eRight ( ) const
inline

Definition at line 46 of file EcalRegressionData.h.

References eRight_.

Referenced by pat::PATPhotonProducer::produce(), and seedLeftRightAsym().

46 {return eRight_;}
float EcalRegressionData::eTop ( ) const
inline

Definition at line 43 of file EcalRegressionData.h.

References eTop_.

Referenced by pat::PATPhotonProducer::produce(), and seedTopBottomAsym().

43 {return eTop_;}
void EcalRegressionData::fill ( const reco::SuperCluster superClus,
const EcalRecHitCollection ebRecHits,
const EcalRecHitCollection eeRecHits,
const CaloGeometry geom,
const CaloTopology topology,
const reco::VertexCollection vertices 
)
inline

Definition at line 84 of file EcalRegressionData.h.

Referenced by RegressionHelper::getEcalRegression(), pat::PATPhotonProducer::produce(), and BaselinePFSCRegression::set().

87  {
88  fill(superClus,ebRecHits,eeRecHits,geom,topology,vertices->size());
89  }
void fill(const reco::SuperCluster &superClus, const EcalRecHitCollection *ebRecHits, const EcalRecHitCollection *eeRecHits, const CaloGeometry *geom, const CaloTopology *topology, const reco::VertexCollection *vertices)
void EcalRegressionData::fill ( const reco::SuperCluster superClus,
const EcalRecHitCollection ebRecHits,
const EcalRecHitCollection eeRecHits,
const CaloGeometry geom,
const CaloTopology topology,
int  nrVertices 
)

Definition at line 45 of file EcalRegressionData.cc.

References clear(), reco::SuperCluster::clustersBegin(), reco::SuperCluster::clustersEnd(), reco::SuperCluster::clustersSize(), reco::CaloCluster::correctedEnergy(), reco::deltaPhi(), dPhi(), e2nd_, e3x3_, eBottom_, EcalBarrel, eLeft_, eMax_, eRight_, reco::CaloCluster::eta(), reco::SuperCluster::etaWidth(), eTop_, relativeConstraints::geom, isEB(), isEB_, edm::detail::isnan(), EcalClusterLocal::localCoordsEB(), EcalClusterLocal::localCoordsEE(), maxSubClusDR2_, maxSubClusDRDEta_, maxSubClusDRDPhi_, maxSubClusDRRawEnergy_, nrVtx_, reco::CaloCluster::phi(), reco::SuperCluster::phiWidth(), reco::SuperCluster::preshowerEnergy(), reco::SuperCluster::rawEnergy(), HLT_25ns10e33_v2_cff::recHits, scCalibEnergy_, scEta_, scEtaWidth_, scNrAdditionalClusters_, scPhi_, scPhiWidth_, scPreShowerEnergy_, scRawEnergy_, reco::SuperCluster::seed(), seedClusEnergy_, seedCrysEtaOrX_, seedCrysIEtaOrIX_, seedCrysIPhiOrIY_, seedCrysPhiOrY_, sigmaIEtaIEta_, sigmaIEtaIPhi_, sigmaIPhiIPhi_, mathSSE::sqrt(), subClusDEta_, subClusDPhi_, subClusRawEnergy_, ecaldqm::topology(), and fireworks::void.

49 {
50  clear();
51 
52  isEB_ = superClus.seed()->hitsAndFractions().at(0).first.subdetId()==EcalBarrel;
53  const EcalRecHitCollection* recHits = isEB_ ? ebRecHits : eeRecHits;
54 
55  scRawEnergy_ = superClus.rawEnergy();
56  scCalibEnergy_ = superClus.correctedEnergy();
57  scPreShowerEnergy_ = superClus.preshowerEnergy();
58  scEta_ = superClus.eta();
59  scPhi_ = superClus.phi();
60  scEtaWidth_ = superClus.etaWidth();
61  scPhiWidth_ = superClus.phiWidth();
62  scNrAdditionalClusters_ = superClus.clustersSize()-1;
63 
64  seedClusEnergy_ = superClus.seed()->energy();
65  eMax_ = EcalClusterTools::eMax(*superClus.seed(),recHits);
66  e2nd_ = EcalClusterTools::e2nd(*superClus.seed(),recHits);
67  e3x3_ = EcalClusterTools::e3x3(*superClus.seed(),recHits,topology);
68  eTop_ = EcalClusterTools::eTop(*superClus.seed(),recHits,topology);
69  eBottom_ = EcalClusterTools::eBottom(*superClus.seed(),recHits,topology);
70  eLeft_ = EcalClusterTools::eLeft(*superClus.seed(),recHits,topology);
71  eRight_ = EcalClusterTools::eRight(*superClus.seed(),recHits,topology);
72  std::vector<float> localCovs = EcalClusterTools::localCovariances(*superClus.seed(),recHits,topology);
73  sigmaIEtaIEta_ = std::isnan(localCovs[0]) ? 0. : std::sqrt(localCovs[0]);
74  sigmaIPhiIPhi_ = std::isnan(localCovs[2]) ? 0. : std::sqrt(localCovs[2]);
75 
76  if(sigmaIEtaIEta_*sigmaIPhiIPhi_>0) sigmaIEtaIPhi_ = localCovs[1]/(sigmaIEtaIEta_*sigmaIPhiIPhi_);
77  else if(localCovs[1]>0) sigmaIEtaIPhi_ = 1.;
78  else sigmaIEtaIPhi_ = -1.;
79 
80 
81  EcalClusterLocal ecalClusterLocal; //not clear why this doesnt use static functions
82  float thetaTilt=0,phiTilt=0; //dummy variables that are not used but are required by below function
83  void (EcalClusterLocal::*localCoordFunc)(const reco::CaloCluster &, const CaloGeometry &,
84  float &, float &, int &, int &,
85  float &, float &)const;
86  localCoordFunc = &EcalClusterLocal::localCoordsEB;
87  if(!isEB()) localCoordFunc = &EcalClusterLocal::localCoordsEE;
88  (ecalClusterLocal.*localCoordFunc)(*superClus.seed(),*geom,
91  thetaTilt,phiTilt);
92 
93  for( auto clus = superClus.clustersBegin()+1;clus != superClus.clustersEnd(); ++clus ) {
94  const float dEta = (*clus)->eta() - superClus.seed()->eta();
95  const float dPhi = reco::deltaPhi((*clus)->phi(),superClus.seed()->phi());
96  const float dR2 = dEta*dEta+dPhi*dPhi;
97  if(dR2 > maxSubClusDR2_ || maxSubClusDR2_ == 998001.) {
98  maxSubClusDR2_ = dR2;
99  maxSubClusDRDEta_ = dEta;
101  maxSubClusDRRawEnergy_ = (*clus)->energy();
102  }
103  subClusRawEnergy_.push_back((*clus)->energy());
104  subClusDEta_.push_back(dEta);
105  subClusDPhi_.push_back(dPhi);
106 
107  }
108 
109  nrVtx_ = nrVertices;
110 
111 }
double correctedEnergy() const
Definition: CaloCluster.h:122
CaloTopology const * topology(0)
double phiWidth() const
obtain phi and eta width of the Super Cluster
Definition: SuperCluster.h:55
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:163
std::vector< float > subClusDPhi_
double etaWidth() const
Definition: SuperCluster.h:56
double dPhi(double phi1, double phi2)
Definition: JetUtil.h:30
bool isnan(float x)
Definition: math.h:13
T sqrt(T t)
Definition: SSEVec.h:18
std::vector< float > subClusRawEnergy_
double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:22
double rawEnergy() const
raw uncorrected energy (sum of energies of component BasicClusters)
Definition: SuperCluster.h:47
std::vector< float > subClusDEta_
size_t clustersSize() const
number of BasicCluster constituents
Definition: SuperCluster.h:87
void localCoordsEB(const reco::CaloCluster &bclus, const edm::EventSetup &es, float &etacry, float &phicry, int &ieta, int &iphi, float &thetatilt, float &phitilt) const
CaloCluster_iterator clustersBegin() const
fist iterator over BasicCluster constituents
Definition: SuperCluster.h:75
const CaloClusterPtr & seed() const
seed BasicCluster
Definition: SuperCluster.h:66
double preshowerEnergy() const
energy deposited in preshower
Definition: SuperCluster.h:50
double phi() const
azimuthal angle of cluster centroid
Definition: CaloCluster.h:166
void localCoordsEE(const reco::CaloCluster &bclus, const edm::EventSetup &es, float &xcry, float &ycry, int &ix, int &iy, float &thetatilt, float &phitilt) const
CaloCluster_iterator clustersEnd() const
last iterator over BasicCluster constituents
Definition: SuperCluster.h:78
void EcalRegressionData::fillVec ( std::vector< float > &  inputVec) const

Definition at line 155 of file EcalRegressionData.cc.

References fillVecEB_(), fillVecEE_(), and isEB().

Referenced by RegressionHelper::getEcalRegression(), and BaselinePFSCRegression::set().

156 {
157  if(isEB()) fillVecEB_(inputVec);
158  else fillVecEE_(inputVec);
159 }
void fillVecEB_(std::vector< float > &inputVec) const
void fillVecEE_(std::vector< float > &inputVec) const
void EcalRegressionData::fillVecEB_ ( std::vector< float > &  inputVec) const
private

Definition at line 161 of file EcalRegressionData.cc.

References C1, C2, C3, e2ndOverSCRawEnergy(), eMaxOverSCRawEnergy(), maxSubClusDR(), maxSubClusDRDEta(), maxSubClusDRDPhi(), maxSubClusDRRawEnergyOverSCRawEnergy(), nrVtx(), scCalibEnergy(), scEta(), scEtaWidth(), scNrAdditionalClusters(), scPhi(), scPhiWidth(), scSeedR9(), seedClusEnergyOverSCRawEnergy(), seedCrysEtaOrX(), seedCrysIEtaOrIX(), seedCrysIPhiOrIY(), seedCrysPhiOrY(), seedLeftRightAsym(), seedTopBottomAsym(), sigmaIEtaIEta(), sigmaIEtaIPhi(), sigmaIPhiIPhi(), subClusDEta(), subClusDPhi(), and subClusRawEnergyOverSCRawEnergy().

Referenced by fillVec().

162 {
163  inputVec.clear();
164  inputVec.resize(33);
165  inputVec[0] = nrVtx(); //nVtx
166  inputVec[1] = scEta(); //scEta
167  inputVec[2] = scPhi(); //scPhi
168  inputVec[3] = scEtaWidth(); //scEtaWidth
169  inputVec[4] = scPhiWidth(); //scPhiWidth
170  inputVec[5] = scSeedR9(); //scSeedR9
171  inputVec[6] = seedClusEnergyOverSCRawEnergy(); //scSeedRawEnergy/scRawEnergy
172  inputVec[7] = eMaxOverSCRawEnergy(); //scSeedEmax/scRawEnergy
173  inputVec[8] = e2ndOverSCRawEnergy(); //scSeedE2nd/scRawEnergy
174  inputVec[9] = seedLeftRightAsym();//scSeedLeftRightAsym
175  inputVec[10] = seedTopBottomAsym();//scSeedTopBottomAsym
176  inputVec[11] = sigmaIEtaIEta(); //scSeedSigmaIetaIeta
177  inputVec[12] = sigmaIEtaIPhi(); //scSeedSigmaIetaIphi
178  inputVec[13] = sigmaIPhiIPhi(); //scSeedSigmaIphiIphi
179  inputVec[14] = scNrAdditionalClusters(); //N_ECALClusters
180  inputVec[15] = maxSubClusDR(); //clusterMaxDR
181  inputVec[16] = maxSubClusDRDPhi(); //clusterMaxDRDPhi
182  inputVec[17] = maxSubClusDRDEta(); //clusterMaxDRDEta
183  inputVec[18] = maxSubClusDRRawEnergyOverSCRawEnergy(); //clusMaxDRRawEnergy/scRawEnergy
184  inputVec[19] = subClusRawEnergyOverSCRawEnergy(SubClusNr::C1); //clusterRawEnergy[0]/scRawEnergy
185  inputVec[20] = subClusRawEnergyOverSCRawEnergy(SubClusNr::C2); //clusterRawEnergy[1]/scRawEnergy float scPreShowerEnergy()const{return scPreShowerEnergy_;}
186 
187  inputVec[21] = subClusRawEnergyOverSCRawEnergy(SubClusNr::C3); //clusterRawEnergy[2]/scRawEnergy
188  inputVec[22] = subClusDPhi(SubClusNr::C1); //clusterDPhiToSeed[0]
189  inputVec[23] = subClusDPhi(SubClusNr::C2); //clusterDPhiToSeed[1]
190  inputVec[24] = subClusDPhi(SubClusNr::C3); //clusterDPhiToSeed[2]
191  inputVec[25] = subClusDEta(SubClusNr::C1); //clusterDEtaToSeed[0]
192  inputVec[26] = subClusDEta(SubClusNr::C2); //clusterDEtaToSeed[1]
193  inputVec[27] = subClusDEta(SubClusNr::C3); //clusterDEtaToSeed[2]
194  inputVec[28] = seedCrysEtaOrX(); //scSeedCryEta
195  inputVec[29] = seedCrysPhiOrY(); //scSeedCryPhi
196  inputVec[30] = seedCrysIEtaOrIX(); //scSeedCryIeta
197  inputVec[31] = seedCrysIPhiOrIY(); //scSeedCryIphi
198  inputVec[32] = scCalibEnergy(); //scCalibratedEnergy
199 }
float sigmaIPhiIPhi() const
float e2ndOverSCRawEnergy() const
float maxSubClusDRDEta() const
float scEtaWidth() const
int scNrAdditionalClusters() const
float seedCrysPhiOrY() const
float sigmaIEtaIEta() const
float sigmaIEtaIPhi() const
float scSeedR9() const
float subClusRawEnergyOverSCRawEnergy(size_t clusNr) const
float seedClusEnergyOverSCRawEnergy() const
float scPhi() const
float seedCrysIPhiOrIY() const
float maxSubClusDR() const
float seedCrysIEtaOrIX() const
float maxSubClusDRDPhi() const
float scPhiWidth() const
float seedCrysEtaOrX() const
float seedLeftRightAsym() const
float eMaxOverSCRawEnergy() const
float maxSubClusDRRawEnergyOverSCRawEnergy() const
const std::vector< float > & subClusDEta() const
float scEta() const
const std::vector< float > & subClusDPhi() const
float seedTopBottomAsym() const
float scCalibEnergy() const
void EcalRegressionData::fillVecEE_ ( std::vector< float > &  inputVec) const
private

Definition at line 201 of file EcalRegressionData.cc.

References C1, C2, C3, e2ndOverSCRawEnergy(), eMaxOverSCRawEnergy(), maxSubClusDR(), maxSubClusDRDEta(), maxSubClusDRDPhi(), maxSubClusDRRawEnergyOverSCRawEnergy(), nrVtx(), scCalibEnergy(), scEta(), scEtaWidth(), scNrAdditionalClusters(), scPhi(), scPhiWidth(), scPreShowerEnergyOverSCRawEnergy(), scSeedR9(), seedClusEnergyOverSCRawEnergy(), seedLeftRightAsym(), seedTopBottomAsym(), sigmaIEtaIEta(), sigmaIEtaIPhi(), sigmaIPhiIPhi(), subClusDEta(), subClusDPhi(), and subClusRawEnergyOverSCRawEnergy().

Referenced by fillVec().

202 {
203  inputVec.clear();
204  inputVec.resize(33); //this emulates the old behaviour of RegressionHelper, even if past 29 we dont use elements
205  inputVec[0] = nrVtx(); //nVtx
206  inputVec[1] = scEta(); //scEta
207  inputVec[2] = scPhi(); //scPhi
208  inputVec[3] = scEtaWidth(); //scEtaWidth
209  inputVec[4] = scPhiWidth(); //scPhiWidth
210  inputVec[5] = scSeedR9(); //scSeedR9
211  inputVec[6] = seedClusEnergyOverSCRawEnergy(); //scSeedRawEnergy/scRawEnergy
212  inputVec[7] = eMaxOverSCRawEnergy(); //scSeedEmax/scRawEnergy
213  inputVec[8] = e2ndOverSCRawEnergy(); //scSeedE2nd/scRawEnergy
214  inputVec[9] = seedLeftRightAsym();//scSeedLeftRightAsym
215  inputVec[10] = seedTopBottomAsym();//scSeedTopBottomAsym
216  inputVec[11] = sigmaIEtaIEta(); //scSeedSigmaIetaIeta
217  inputVec[12] = sigmaIEtaIPhi(); //scSeedSigmaIetaIphi
218  inputVec[13] = sigmaIPhiIPhi(); //scSeedSigmaIphiIphi
219  inputVec[14] = scNrAdditionalClusters(); //N_ECALClusters
220  inputVec[15] = maxSubClusDR(); //clusterMaxDR
221  inputVec[16] = maxSubClusDRDPhi(); //clusterMaxDRDPhi
222  inputVec[17] = maxSubClusDRDEta(); //clusterMaxDRDEta
223  inputVec[18] = maxSubClusDRRawEnergyOverSCRawEnergy(); //clusMaxDRRawEnergy/scRawEnergy
224  inputVec[19] = subClusRawEnergyOverSCRawEnergy(SubClusNr::C1); //clusterRawEnergy[0]/scRawEnergy
225  inputVec[20] = subClusRawEnergyOverSCRawEnergy(SubClusNr::C2); //clusterRawEnergy[1]/scRawEnergy
226  inputVec[21] = subClusRawEnergyOverSCRawEnergy(SubClusNr::C3); //clusterRawEnergy[2]/scRawEnergy
227  inputVec[22] = subClusDPhi(SubClusNr::C1); //clusterDPhiToSeed[0]
228  inputVec[23] = subClusDPhi(SubClusNr::C2); //clusterDPhiToSeed[1]
229  inputVec[24] = subClusDPhi(SubClusNr::C3); //clusterDPhiToSeed[2]
230  inputVec[25] = subClusDEta(SubClusNr::C1); //clusterDEtaToSeed[0]
231  inputVec[26] = subClusDEta(SubClusNr::C2); //clusterDEtaToSeed[1]
232  inputVec[27] = subClusDEta(SubClusNr::C3); //clusterDEtaToSeed[2]
233  inputVec[28] = scPreShowerEnergyOverSCRawEnergy();
234  inputVec[29] = scCalibEnergy(); //scCalibratedEnergy
235 }
float sigmaIPhiIPhi() const
float e2ndOverSCRawEnergy() const
float maxSubClusDRDEta() const
float scEtaWidth() const
int scNrAdditionalClusters() const
float sigmaIEtaIEta() const
float sigmaIEtaIPhi() const
float scSeedR9() const
float subClusRawEnergyOverSCRawEnergy(size_t clusNr) const
float seedClusEnergyOverSCRawEnergy() const
float scPhi() const
float maxSubClusDR() const
float maxSubClusDRDPhi() const
float scPhiWidth() const
float scPreShowerEnergyOverSCRawEnergy() const
float seedLeftRightAsym() const
float eMaxOverSCRawEnergy() const
float maxSubClusDRRawEnergyOverSCRawEnergy() const
const std::vector< float > & subClusDEta() const
float scEta() const
const std::vector< float > & subClusDPhi() const
float seedTopBottomAsym() const
float scCalibEnergy() const
bool EcalRegressionData::isEB ( ) const
inline

Definition at line 30 of file EcalRegressionData.h.

References isEB_.

Referenced by Electron.Electron::absIsoWithFSR(), fill(), and fillVec().

30 {return isEB_;}
float EcalRegressionData::maxSubClusDR ( ) const
inline

Definition at line 55 of file EcalRegressionData.h.

References maxSubClusDR2_, and mathSSE::sqrt().

Referenced by fillVecEB_(), fillVecEE_(), and pat::PATPhotonProducer::produce().

55 {return std::sqrt(maxSubClusDR2_);}
T sqrt(T t)
Definition: SSEVec.h:18
float EcalRegressionData::maxSubClusDRDEta ( ) const
inline

Definition at line 57 of file EcalRegressionData.h.

References maxSubClusDRDEta_.

Referenced by fillVecEB_(), fillVecEE_(), and pat::PATPhotonProducer::produce().

57 {return maxSubClusDRDEta_;}
float EcalRegressionData::maxSubClusDRDPhi ( ) const
inline

Definition at line 56 of file EcalRegressionData.h.

References maxSubClusDRDPhi_.

Referenced by fillVecEB_(), fillVecEE_(), and pat::PATPhotonProducer::produce().

56 {return maxSubClusDRDPhi_;}
float EcalRegressionData::maxSubClusDRRawEnergy ( ) const
inline
float EcalRegressionData::maxSubClusDRRawEnergyOverSCRawEnergy ( ) const
inline

Definition at line 72 of file EcalRegressionData.h.

References divideBySCRawEnergy_(), and maxSubClusDRRawEnergy().

Referenced by fillVecEB_(), and fillVecEE_().

float divideBySCRawEnergy_(float numer) const
float maxSubClusDRRawEnergy() const
int EcalRegressionData::nrVtx ( ) const
inline

Definition at line 62 of file EcalRegressionData.h.

References nrVtx_.

Referenced by fillVecEB_(), and fillVecEE_().

62 {return nrVtx_;}
float EcalRegressionData::scCalibEnergy ( ) const
inline

Definition at line 32 of file EcalRegressionData.h.

References scCalibEnergy_.

Referenced by fillVecEB_(), and fillVecEE_().

32 {return scCalibEnergy_;}
float EcalRegressionData::scEta ( ) const
inline

Definition at line 34 of file EcalRegressionData.h.

References scEta_.

Referenced by fillVecEB_(), and fillVecEE_().

34 {return scEta_;}
float EcalRegressionData::scEtaWidth ( ) const
inline

Definition at line 36 of file EcalRegressionData.h.

References scEtaWidth_.

Referenced by fillVecEB_(), and fillVecEE_().

36 {return scEtaWidth_;}
int EcalRegressionData::scNrAdditionalClusters ( ) const
inline

Definition at line 38 of file EcalRegressionData.h.

References scNrAdditionalClusters_.

Referenced by fillVecEB_(), and fillVecEE_().

float EcalRegressionData::scPhi ( ) const
inline

Definition at line 35 of file EcalRegressionData.h.

References scPhi_.

Referenced by fillVecEB_(), and fillVecEE_().

35 {return scPhi_;}
float EcalRegressionData::scPhiWidth ( ) const
inline

Definition at line 37 of file EcalRegressionData.h.

References scPhiWidth_.

Referenced by fillVecEB_(), and fillVecEE_().

37 {return scPhiWidth_;}
float EcalRegressionData::scPreShowerEnergy ( ) const
inline

Definition at line 33 of file EcalRegressionData.h.

References scPreShowerEnergy_.

Referenced by scPreShowerEnergyOverSCRawEnergy().

float EcalRegressionData::scPreShowerEnergyOverSCRawEnergy ( ) const
inline

Definition at line 65 of file EcalRegressionData.h.

References divideBySCRawEnergy_(), and scPreShowerEnergy().

Referenced by fillVecEE_().

float divideBySCRawEnergy_(float numer) const
float scPreShowerEnergy() const
float EcalRegressionData::scRawEnergy ( ) const
inline

Definition at line 31 of file EcalRegressionData.h.

References scRawEnergy_.

Referenced by divideBySCRawEnergy_().

31 {return scRawEnergy_;}
float EcalRegressionData::scSeedR9 ( ) const
inline

Definition at line 66 of file EcalRegressionData.h.

References divideBySCRawEnergy_(), and e3x3().

Referenced by fillVecEB_(), and fillVecEE_().

66 {return divideBySCRawEnergy_(e3x3());}
float divideBySCRawEnergy_(float numer) const
float EcalRegressionData::seedClusEnergy ( ) const
inline

Definition at line 39 of file EcalRegressionData.h.

References seedClusEnergy_.

Referenced by seedClusEnergyOverSCRawEnergy().

39 {return seedClusEnergy_;}
float EcalRegressionData::seedClusEnergyOverSCRawEnergy ( ) const
inline

Definition at line 67 of file EcalRegressionData.h.

References divideBySCRawEnergy_(), and seedClusEnergy().

Referenced by fillVecEB_(), and fillVecEE_().

float divideBySCRawEnergy_(float numer) const
float seedClusEnergy() const
float EcalRegressionData::seedCrysEtaOrX ( ) const
inline

Definition at line 52 of file EcalRegressionData.h.

References seedCrysEtaOrX_.

Referenced by fillVecEB_(), and pat::PATPhotonProducer::produce().

52 {return seedCrysEtaOrX_;}
float EcalRegressionData::seedCrysIEtaOrIX ( ) const
inline

Definition at line 53 of file EcalRegressionData.h.

References seedCrysIEtaOrIX_.

Referenced by fillVecEB_(), and pat::PATPhotonProducer::produce().

float EcalRegressionData::seedCrysIPhiOrIY ( ) const
inline

Definition at line 54 of file EcalRegressionData.h.

References seedCrysIPhiOrIY_.

Referenced by fillVecEB_(), and pat::PATPhotonProducer::produce().

float EcalRegressionData::seedCrysPhiOrY ( ) const
inline

Definition at line 51 of file EcalRegressionData.h.

References seedCrysPhiOrY_.

Referenced by fillVecEB_(), and pat::PATPhotonProducer::produce().

51 {return seedCrysPhiOrY_;}
float EcalRegressionData::seedLeftRightAsym ( ) const

Definition at line 13 of file EcalRegressionData.cc.

References eLeft(), and eRight().

Referenced by fillVecEB_(), and fillVecEE_().

14 {
15  float eLeftRightSum = eLeft()+eRight();
16  float eLeftRightDiff = eLeft()-eRight();
17  return eLeftRightSum !=0 ? eLeftRightDiff/eLeftRightSum : 0.;
18 }
float eLeft() const
float eRight() const
float EcalRegressionData::seedTopBottomAsym ( ) const

Definition at line 20 of file EcalRegressionData.cc.

References eBottom(), and eTop().

Referenced by fillVecEB_(), and fillVecEE_().

21 {
22  float eTopBottomSum = eTop()+eBottom();
23  float eTopBottomDiff = eTop()-eBottom();
24  return eTopBottomSum !=0 ? eTopBottomDiff/eTopBottomSum : 0.;
25 }
float eBottom() const
float EcalRegressionData::sigmaIEtaIEta ( ) const
inline

Definition at line 47 of file EcalRegressionData.h.

References sigmaIEtaIEta_.

Referenced by fillVecEB_(), fillVecEE_(), and pat::PATPhotonProducer::produce().

47 {return sigmaIEtaIEta_;}
float EcalRegressionData::sigmaIEtaIPhi ( ) const
inline

Definition at line 48 of file EcalRegressionData.h.

References sigmaIEtaIPhi_.

Referenced by fillVecEB_(), fillVecEE_(), and pat::PATPhotonProducer::produce().

48 {return sigmaIEtaIPhi_;}
float EcalRegressionData::sigmaIPhiIPhi ( ) const
inline

Definition at line 49 of file EcalRegressionData.h.

References sigmaIPhiIPhi_.

Referenced by fillVecEB_(), fillVecEE_(), and pat::PATPhotonProducer::produce().

49 {return sigmaIPhiIPhi_;}
const std::vector<float>& EcalRegressionData::subClusDEta ( ) const
inline

Definition at line 61 of file EcalRegressionData.h.

References subClusDEta_.

Referenced by fillVecEB_(), fillVecEE_(), and pat::PATPhotonProducer::produce().

61 {return subClusDEta_;}
std::vector< float > subClusDEta_
float EcalRegressionData::subClusDEta ( size_t  clusNr) const

Definition at line 33 of file EcalRegressionData.cc.

References subClusDEta_.

34 {
35  if(clusNr<subClusDEta_.size()) return subClusDEta_[clusNr];
36  else return 0.;
37 }
std::vector< float > subClusDEta_
float EcalRegressionData::subClusDEta ( SubClusNr  clusNr) const
inline

Definition at line 80 of file EcalRegressionData.h.

References subClusDEta().

Referenced by subClusDEta().

80 {return subClusDEta(static_cast<int>(clusNr));}
const std::vector< float > & subClusDEta() const
const std::vector<float>& EcalRegressionData::subClusDPhi ( ) const
inline

Definition at line 60 of file EcalRegressionData.h.

References subClusDPhi_.

Referenced by fillVecEB_(), fillVecEE_(), and pat::PATPhotonProducer::produce().

60 {return subClusDPhi_;}
std::vector< float > subClusDPhi_
float EcalRegressionData::subClusDPhi ( size_t  clusNr) const

Definition at line 39 of file EcalRegressionData.cc.

References subClusDPhi_.

40 {
41  if(clusNr<subClusDPhi_.size()) return subClusDPhi_[clusNr];
42  else return 0.;
43 }
std::vector< float > subClusDPhi_
float EcalRegressionData::subClusDPhi ( SubClusNr  clusNr) const
inline

Definition at line 79 of file EcalRegressionData.h.

References subClusDPhi().

Referenced by subClusDPhi().

79 {return subClusDPhi(static_cast<int>(clusNr));}
const std::vector< float > & subClusDPhi() const
const std::vector<float>& EcalRegressionData::subClusRawEnergy ( ) const
inline

Definition at line 59 of file EcalRegressionData.h.

References subClusRawEnergy_.

Referenced by pat::PATPhotonProducer::produce(), and subClusRawEnergyOverSCRawEnergy().

59 {return subClusRawEnergy_;}
std::vector< float > subClusRawEnergy_
float EcalRegressionData::subClusRawEnergy ( size_t  clusNr) const

Definition at line 27 of file EcalRegressionData.cc.

References subClusRawEnergy_.

28 {
29  if(clusNr<subClusRawEnergy_.size()) return subClusRawEnergy_[clusNr];
30  else return 0.;
31 }
std::vector< float > subClusRawEnergy_
float EcalRegressionData::subClusRawEnergy ( SubClusNr  clusNr) const
inline

Definition at line 78 of file EcalRegressionData.h.

References subClusRawEnergy().

Referenced by subClusRawEnergy().

78 {return subClusRawEnergy(static_cast<int>(clusNr));}
const std::vector< float > & subClusRawEnergy() const
float EcalRegressionData::subClusRawEnergyOverSCRawEnergy ( size_t  clusNr) const
inline

Definition at line 73 of file EcalRegressionData.h.

References divideBySCRawEnergy_(), and subClusRawEnergy().

Referenced by fillVecEB_(), and fillVecEE_().

73 {return divideBySCRawEnergy_(subClusRawEnergy(clusNr));}
const std::vector< float > & subClusRawEnergy() const
float divideBySCRawEnergy_(float numer) const
float EcalRegressionData::subClusRawEnergyOverSCRawEnergy ( SubClusNr  clusNr) const
inline

Definition at line 77 of file EcalRegressionData.h.

References subClusRawEnergyOverSCRawEnergy().

Referenced by subClusRawEnergyOverSCRawEnergy().

77 {return subClusRawEnergyOverSCRawEnergy(static_cast<int>(clusNr));}
float subClusRawEnergyOverSCRawEnergy(size_t clusNr) const

Member Data Documentation

float EcalRegressionData::e2nd_
private

Definition at line 121 of file EcalRegressionData.h.

Referenced by clear(), e2nd(), and fill().

float EcalRegressionData::e3x3_
private

Definition at line 122 of file EcalRegressionData.h.

Referenced by clear(), e3x3(), and fill().

float EcalRegressionData::eBottom_
private

Definition at line 124 of file EcalRegressionData.h.

Referenced by clear(), eBottom(), and fill().

float EcalRegressionData::eLeft_
private

Definition at line 125 of file EcalRegressionData.h.

Referenced by clear(), eLeft(), and fill().

float EcalRegressionData::eMax_
private

Definition at line 120 of file EcalRegressionData.h.

Referenced by clear(), eMax(), and fill().

float EcalRegressionData::eRight_
private

Definition at line 126 of file EcalRegressionData.h.

Referenced by clear(), eRight(), and fill().

float EcalRegressionData::eTop_
private

Definition at line 123 of file EcalRegressionData.h.

Referenced by clear(), eTop(), and fill().

bool EcalRegressionData::isEB_
private

Definition at line 106 of file EcalRegressionData.h.

Referenced by clear(), fill(), and isEB().

float EcalRegressionData::maxSubClusDR2_
private

Definition at line 138 of file EcalRegressionData.h.

Referenced by clear(), fill(), and maxSubClusDR().

float EcalRegressionData::maxSubClusDRDEta_
private

Definition at line 140 of file EcalRegressionData.h.

Referenced by clear(), fill(), and maxSubClusDRDEta().

float EcalRegressionData::maxSubClusDRDPhi_
private

Definition at line 139 of file EcalRegressionData.h.

Referenced by clear(), fill(), and maxSubClusDRDPhi().

float EcalRegressionData::maxSubClusDRRawEnergy_
private

Definition at line 141 of file EcalRegressionData.h.

Referenced by clear(), fill(), and maxSubClusDRRawEnergy().

int EcalRegressionData::nrVtx_
private

Definition at line 147 of file EcalRegressionData.h.

Referenced by clear(), fill(), and nrVtx().

float EcalRegressionData::scCalibEnergy_
private

Definition at line 110 of file EcalRegressionData.h.

Referenced by clear(), fill(), and scCalibEnergy().

float EcalRegressionData::scEta_
private

Definition at line 112 of file EcalRegressionData.h.

Referenced by clear(), fill(), and scEta().

float EcalRegressionData::scEtaWidth_
private

Definition at line 114 of file EcalRegressionData.h.

Referenced by clear(), fill(), and scEtaWidth().

int EcalRegressionData::scNrAdditionalClusters_
private

Definition at line 116 of file EcalRegressionData.h.

Referenced by clear(), fill(), and scNrAdditionalClusters().

float EcalRegressionData::scPhi_
private

Definition at line 113 of file EcalRegressionData.h.

Referenced by clear(), fill(), and scPhi().

float EcalRegressionData::scPhiWidth_
private

Definition at line 115 of file EcalRegressionData.h.

Referenced by clear(), fill(), and scPhiWidth().

float EcalRegressionData::scPreShowerEnergy_
private

Definition at line 111 of file EcalRegressionData.h.

Referenced by clear(), fill(), and scPreShowerEnergy().

float EcalRegressionData::scRawEnergy_
private

Definition at line 109 of file EcalRegressionData.h.

Referenced by clear(), fill(), and scRawEnergy().

float EcalRegressionData::seedClusEnergy_
private

Definition at line 119 of file EcalRegressionData.h.

Referenced by clear(), fill(), and seedClusEnergy().

float EcalRegressionData::seedCrysEtaOrX_
private

Definition at line 133 of file EcalRegressionData.h.

Referenced by clear(), fill(), and seedCrysEtaOrX().

int EcalRegressionData::seedCrysIEtaOrIX_
private

Definition at line 134 of file EcalRegressionData.h.

Referenced by clear(), fill(), and seedCrysIEtaOrIX().

int EcalRegressionData::seedCrysIPhiOrIY_
private

Definition at line 135 of file EcalRegressionData.h.

Referenced by clear(), fill(), and seedCrysIPhiOrIY().

float EcalRegressionData::seedCrysPhiOrY_
private

Definition at line 132 of file EcalRegressionData.h.

Referenced by clear(), fill(), and seedCrysPhiOrY().

float EcalRegressionData::sigmaIEtaIEta_
private

Definition at line 127 of file EcalRegressionData.h.

Referenced by clear(), fill(), and sigmaIEtaIEta().

float EcalRegressionData::sigmaIEtaIPhi_
private

Definition at line 128 of file EcalRegressionData.h.

Referenced by clear(), fill(), and sigmaIEtaIPhi().

float EcalRegressionData::sigmaIPhiIPhi_
private

Definition at line 129 of file EcalRegressionData.h.

Referenced by clear(), fill(), and sigmaIPhiIPhi().

std::vector<float> EcalRegressionData::subClusDEta_
private

Definition at line 144 of file EcalRegressionData.h.

Referenced by clear(), fill(), and subClusDEta().

std::vector<float> EcalRegressionData::subClusDPhi_
private

Definition at line 143 of file EcalRegressionData.h.

Referenced by clear(), fill(), and subClusDPhi().

std::vector<float> EcalRegressionData::subClusRawEnergy_
private

Definition at line 142 of file EcalRegressionData.h.

Referenced by clear(), fill(), and subClusRawEnergy().