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

120 {
121  isEB_=false;
122  scRawEnergy_=0.;
123  scCalibEnergy_=0.;
125  scEta_=0.;
126  scPhi_=0.;
127  scEtaWidth_=0.;
128  scPhiWidth_=0.;
130 
131  seedClusEnergy_=0.;
132  eMax_=0.;
133  e2nd_=0.;
134  e3x3_=0.;
135  eTop_=0.;
136  eBottom_=0.;
137  eLeft_=0.;
138  eRight_=0.;
139  sigmaIEtaIEta_=0.;
140  sigmaIEtaIPhi_=0.;
141  sigmaIPhiIPhi_=0.;
142 
143  seedCrysPhiOrY_=0.;
144  seedCrysEtaOrX_=0.;
147 
148  maxSubClusDR2_=998001.;
149  maxSubClusDRDPhi_=999.;
150  maxSubClusDRDEta_=999;
152 
153  subClusRawEnergy_.clear();
154  subClusDPhi_.clear();
155  subClusDEta_.clear();
156 
157  nrVtx_=0;
158 
159 }
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 46 of file EcalRegressionData.cc.

References clear(), reco::SuperCluster::clustersBegin(), reco::SuperCluster::clustersEnd(), reco::SuperCluster::clustersSize(), reco::CaloCluster::correctedEnergy(), reco::deltaPhi(), DetId::det(), dPhi(), e2nd_, e3x3_, eBottom_, EcalBarrel, eLeft_, eMax_, eRight_, reco::CaloCluster::eta(), reco::SuperCluster::etaWidth(), eTop_, DetId::Forward, 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_FULL_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_, DetId::subdetId(), ecaldqm::topology(), and fireworks::void.

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

Definition at line 161 of file EcalRegressionData.cc.

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

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

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

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

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

References eLeft(), and eRight().

Referenced by fillVecEB_(), and fillVecEE_().

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

Definition at line 21 of file EcalRegressionData.cc.

References eBottom(), and eTop().

Referenced by fillVecEB_(), and fillVecEE_().

22 {
23  float eTopBottomSum = eTop()+eBottom();
24  float eTopBottomDiff = eTop()-eBottom();
25  return eTopBottomSum !=0 ? eTopBottomDiff/eTopBottomSum : 0.;
26 }
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 34 of file EcalRegressionData.cc.

References subClusDEta_.

35 {
36  if(clusNr<subClusDEta_.size()) return subClusDEta_[clusNr];
37  else return 0.;
38 }
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 40 of file EcalRegressionData.cc.

References subClusDPhi_.

41 {
42  if(clusNr<subClusDPhi_.size()) return subClusDPhi_[clusNr];
43  else return 0.;
44 }
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 28 of file EcalRegressionData.cc.

References subClusRawEnergy_.

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