CMS 3D CMS Logo

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 hitfit::clear().

Member Function Documentation

void EcalRegressionData::clear ( void  )

Definition at line 120 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 fill().

121 {
122  isEB_=false;
123  scRawEnergy_=0.;
124  scCalibEnergy_=0.;
126  scEta_=0.;
127  scPhi_=0.;
128  scEtaWidth_=0.;
129  scPhiWidth_=0.;
131 
132  seedClusEnergy_=0.;
133  eMax_=0.;
134  e2nd_=0.;
135  e3x3_=0.;
136  eTop_=0.;
137  eBottom_=0.;
138  eLeft_=0.;
139  eRight_=0.;
140  sigmaIEtaIEta_=0.;
141  sigmaIEtaIPhi_=0.;
142  sigmaIPhiIPhi_=0.;
143 
144  seedCrysPhiOrY_=0.;
145  seedCrysEtaOrX_=0.;
148 
149  maxSubClusDR2_=998001.;
150  maxSubClusDRDPhi_=999.;
151  maxSubClusDRDEta_=999;
153 
154  subClusRawEnergy_.clear();
155  subClusDPhi_.clear();
156  subClusDEta_.clear();
157 
158  nrVtx_=0;
159 
160 }
std::vector< float > subClusDPhi_
std::vector< float > subClusRawEnergy_
std::vector< float > subClusDEta_
float EcalRegressionData::divideBySCRawEnergy_ ( float  numer) const
inlineprivate

Definition at line 101 of file EcalRegressionData.h.

101 {return scRawEnergy()!=0 ? numer/scRawEnergy() : 0.;}
float scRawEnergy() const
float EcalRegressionData::e2nd ( ) const
inline

Definition at line 41 of file EcalRegressionData.h.

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

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

Definition at line 69 of file EcalRegressionData.h.

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.

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

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

Definition at line 44 of file EcalRegressionData.h.

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

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

Definition at line 45 of file EcalRegressionData.h.

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

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

Definition at line 40 of file EcalRegressionData.h.

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

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

Definition at line 68 of file EcalRegressionData.h.

References photonPostprocessing_cfi::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.

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

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

Definition at line 43 of file EcalRegressionData.h.

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.

References hitfit::clear(), lumiContext::fill, relativeConstraints::geom, and ecaldqm::topology().

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 47 of file EcalRegressionData.cc.

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

51 {
52  clear();
53 
54  const DetId& seedid = superClus.seed()->hitsAndFractions().at(0).first;
55  isEB_ = ( seedid.subdetId()==EcalBarrel );
56 
57  // skip HGCal
58  if( seedid.det() == DetId::Forward ) return;
59 
60  const EcalRecHitCollection* recHits = isEB_ ? ebRecHits : eeRecHits;
61 
62  scRawEnergy_ = superClus.rawEnergy();
63  scCalibEnergy_ = superClus.correctedEnergy();
64  scPreShowerEnergy_ = superClus.preshowerEnergy();
65  scEta_ = superClus.eta();
66  scPhi_ = superClus.phi();
67  scEtaWidth_ = superClus.etaWidth();
68  scPhiWidth_ = superClus.phiWidth();
69  scNrAdditionalClusters_ = superClus.clustersSize()-1;
70 
71  seedClusEnergy_ = superClus.seed()->energy();
72  eMax_ = EcalClusterTools::eMax(*superClus.seed(),recHits);
73  e2nd_ = EcalClusterTools::e2nd(*superClus.seed(),recHits);
74  e3x3_ = EcalClusterTools::e3x3(*superClus.seed(),recHits,topology);
75  eTop_ = EcalClusterTools::eTop(*superClus.seed(),recHits,topology);
76  eBottom_ = EcalClusterTools::eBottom(*superClus.seed(),recHits,topology);
77  eLeft_ = EcalClusterTools::eLeft(*superClus.seed(),recHits,topology);
78  eRight_ = EcalClusterTools::eRight(*superClus.seed(),recHits,topology);
79  std::vector<float> localCovs = EcalClusterTools::localCovariances(*superClus.seed(),recHits,topology);
80  sigmaIEtaIEta_ = edm::isNotFinite(localCovs[0]) ? 0. : std::sqrt(localCovs[0]);
81  sigmaIPhiIPhi_ = edm::isNotFinite(localCovs[2]) ? 0. : std::sqrt(localCovs[2]);
82 
83  if(sigmaIEtaIEta_*sigmaIPhiIPhi_>0) sigmaIEtaIPhi_ = localCovs[1]/(sigmaIEtaIEta_*sigmaIPhiIPhi_);
84  else if(localCovs[1]>0) sigmaIEtaIPhi_ = 1.;
85  else sigmaIEtaIPhi_ = -1.;
86 
87 
88  EcalClusterLocal ecalClusterLocal; //not clear why this doesnt use static functions
89  float thetaTilt=0,phiTilt=0; //dummy variables that are not used but are required by below function
90  void (EcalClusterLocal::*localCoordFunc)(const reco::CaloCluster &, const CaloGeometry &,
91  float &, float &, int &, int &,
92  float &, float &)const;
93  localCoordFunc = &EcalClusterLocal::localCoordsEB;
94  if(!isEB()) localCoordFunc = &EcalClusterLocal::localCoordsEE;
95  (ecalClusterLocal.*localCoordFunc)(*superClus.seed(),*geom,
98  thetaTilt,phiTilt);
99 
100  for( auto clus = superClus.clustersBegin()+1;clus != superClus.clustersEnd(); ++clus ) {
101  const float dEta = (*clus)->eta() - superClus.seed()->eta();
102  const float dPhi = reco::deltaPhi((*clus)->phi(),superClus.seed()->phi());
103  const float dR2 = dEta*dEta+dPhi*dPhi;
104  if(dR2 > maxSubClusDR2_ || maxSubClusDR2_ == 998001.) {
105  maxSubClusDR2_ = dR2;
106  maxSubClusDRDEta_ = dEta;
107  maxSubClusDRDPhi_ = dPhi;
108  maxSubClusDRRawEnergy_ = (*clus)->energy();
109  }
110  subClusRawEnergy_.push_back((*clus)->energy());
111  subClusDEta_.push_back(dEta);
112  subClusDPhi_.push_back(dPhi);
113 
114  }
115 
116  nrVtx_ = nrVertices;
117 
118 }
double correctedEnergy() const
Definition: CaloCluster.h:125
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:166
std::vector< float > subClusDPhi_
bool isNotFinite(T x)
Definition: isFinite.h:10
double etaWidth() const
Definition: SuperCluster.h:56
T sqrt(T t)
Definition: SSEVec.h:18
std::vector< float > subClusRawEnergy_
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:38
double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:22
Definition: DetId.h:18
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:169
void localCoordsEE(const reco::CaloCluster &bclus, const edm::EventSetup &es, float &xcry, float &ycry, int &ix, int &iy, float &thetatilt, float &phitilt) const
Detector det() const
get the detector field from this detid
Definition: DetId.h:36
CaloCluster_iterator clustersEnd() const
last iterator over BasicCluster constituents
Definition: SuperCluster.h:78
void EcalRegressionData::fillVec ( std::vector< float > &  inputVec) const

Definition at line 162 of file EcalRegressionData.cc.

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

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

163 {
164  if(isEB()) fillVecEB_(inputVec);
165  else fillVecEE_(inputVec);
166 }
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 168 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().

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

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

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

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

float EcalRegressionData::maxSubClusDRDPhi ( ) const
inline

Definition at line 56 of file EcalRegressionData.h.

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

float EcalRegressionData::maxSubClusDRRawEnergy ( ) const
inline

Definition at line 58 of file EcalRegressionData.h.

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

float EcalRegressionData::maxSubClusDRRawEnergyOverSCRawEnergy ( ) const
inline

Definition at line 72 of file EcalRegressionData.h.

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.

Referenced by fillVecEB_(), and fillVecEE_().

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

Definition at line 32 of file EcalRegressionData.h.

Referenced by fillVecEB_(), and fillVecEE_().

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

Definition at line 34 of file EcalRegressionData.h.

Referenced by fillVecEB_(), and fillVecEE_().

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

Definition at line 36 of file EcalRegressionData.h.

Referenced by fillVecEB_(), and fillVecEE_().

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

Definition at line 38 of file EcalRegressionData.h.

Referenced by fillVecEB_(), and fillVecEE_().

float EcalRegressionData::scPhi ( ) const
inline

Definition at line 35 of file EcalRegressionData.h.

Referenced by fillVecEB_(), and fillVecEE_().

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

Definition at line 37 of file EcalRegressionData.h.

Referenced by fillVecEB_(), and fillVecEE_().

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

Definition at line 33 of file EcalRegressionData.h.

float EcalRegressionData::scPreShowerEnergyOverSCRawEnergy ( ) const
inline

Definition at line 65 of file EcalRegressionData.h.

Referenced by fillVecEE_().

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

Definition at line 31 of file EcalRegressionData.h.

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

Definition at line 66 of file EcalRegressionData.h.

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.

float EcalRegressionData::seedClusEnergyOverSCRawEnergy ( ) const
inline

Definition at line 67 of file EcalRegressionData.h.

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.

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

float EcalRegressionData::seedCrysIEtaOrIX ( ) const
inline

Definition at line 53 of file EcalRegressionData.h.

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

float EcalRegressionData::seedCrysIPhiOrIY ( ) const
inline

Definition at line 54 of file EcalRegressionData.h.

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

float EcalRegressionData::seedCrysPhiOrY ( ) const
inline

Definition at line 51 of file EcalRegressionData.h.

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

float EcalRegressionData::seedLeftRightAsym ( ) const

Definition at line 15 of file EcalRegressionData.cc.

References eLeft(), and eRight().

Referenced by fillVecEB_(), and fillVecEE_().

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

Definition at line 22 of file EcalRegressionData.cc.

References eBottom(), and eTop().

Referenced by fillVecEB_(), and fillVecEE_().

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

Definition at line 47 of file EcalRegressionData.h.

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

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

Definition at line 48 of file EcalRegressionData.h.

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

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

Definition at line 49 of file EcalRegressionData.h.

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.

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 35 of file EcalRegressionData.cc.

References subClusDEta_.

36 {
37  if(clusNr<subClusDEta_.size()) return subClusDEta_[clusNr];
38  else return 0.;
39 }
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.

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 41 of file EcalRegressionData.cc.

References subClusDPhi_.

42 {
43  if(clusNr<subClusDPhi_.size()) return subClusDPhi_[clusNr];
44  else return 0.;
45 }
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.

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

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

Definition at line 29 of file EcalRegressionData.cc.

References subClusRawEnergy_.

30 {
31  if(clusNr<subClusRawEnergy_.size()) return subClusRawEnergy_[clusNr];
32  else return 0.;
33 }
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.

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(), and fill().

float EcalRegressionData::e3x3_
private

Definition at line 122 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::eBottom_
private

Definition at line 124 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::eLeft_
private

Definition at line 125 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::eMax_
private

Definition at line 120 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::eRight_
private

Definition at line 126 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::eTop_
private

Definition at line 123 of file EcalRegressionData.h.

Referenced by clear(), and fill().

bool EcalRegressionData::isEB_
private

Definition at line 106 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::maxSubClusDR2_
private

Definition at line 138 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::maxSubClusDRDEta_
private

Definition at line 140 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::maxSubClusDRDPhi_
private

Definition at line 139 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::maxSubClusDRRawEnergy_
private

Definition at line 141 of file EcalRegressionData.h.

Referenced by clear(), and fill().

int EcalRegressionData::nrVtx_
private

Definition at line 147 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::scCalibEnergy_
private

Definition at line 110 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::scEta_
private

Definition at line 112 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::scEtaWidth_
private

Definition at line 114 of file EcalRegressionData.h.

Referenced by clear(), and fill().

int EcalRegressionData::scNrAdditionalClusters_
private

Definition at line 116 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::scPhi_
private

Definition at line 113 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::scPhiWidth_
private

Definition at line 115 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::scPreShowerEnergy_
private

Definition at line 111 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::scRawEnergy_
private

Definition at line 109 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::seedClusEnergy_
private

Definition at line 119 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::seedCrysEtaOrX_
private

Definition at line 133 of file EcalRegressionData.h.

Referenced by clear(), and fill().

int EcalRegressionData::seedCrysIEtaOrIX_
private

Definition at line 134 of file EcalRegressionData.h.

Referenced by clear(), and fill().

int EcalRegressionData::seedCrysIPhiOrIY_
private

Definition at line 135 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::seedCrysPhiOrY_
private

Definition at line 132 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::sigmaIEtaIEta_
private

Definition at line 127 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::sigmaIEtaIPhi_
private

Definition at line 128 of file EcalRegressionData.h.

Referenced by clear(), and fill().

float EcalRegressionData::sigmaIPhiIPhi_
private

Definition at line 129 of file EcalRegressionData.h.

Referenced by clear(), and fill().

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().