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.

Referenced by EcalRegressionData().

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

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

Definition at line 69 of file EcalRegressionData.h.

References divideBySCRawEnergy_(), and e2nd().

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

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

Definition at line 44 of file EcalRegressionData.h.

References eBottom_.

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

Definition at line 45 of file EcalRegressionData.h.

References eLeft_.

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

Definition at line 40 of file EcalRegressionData.h.

References eMax_.

Referenced by eMaxOverSCRawEnergy().

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

Definition at line 68 of file EcalRegressionData.h.

References divideBySCRawEnergy_(), and eMax().

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

Definition at line 46 of file EcalRegressionData.h.

References eRight_.

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

Definition at line 43 of file EcalRegressionData.h.

References eTop_.

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

void EcalRegressionData::fillVec ( std::vector< float > &  inputVec) const

Definition at line 155 of file EcalRegressionData.cc.

Referenced by BaselinePFSCRegression::set().

void EcalRegressionData::fillVecEB_ ( std::vector< float > &  inputVec) const
private

Definition at line 161 of file EcalRegressionData.cc.

void EcalRegressionData::fillVecEE_ ( std::vector< float > &  inputVec) const
private

Definition at line 201 of file EcalRegressionData.cc.

bool EcalRegressionData::isEB ( ) const
inline

Definition at line 30 of file EcalRegressionData.h.

References isEB_.

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

Definition at line 55 of file EcalRegressionData.h.

References maxSubClusDR2_, and mathSSE::sqrt().

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

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

Definition at line 56 of file EcalRegressionData.h.

References maxSubClusDRDPhi_.

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

Definition at line 58 of file EcalRegressionData.h.

References maxSubClusDRRawEnergy_.

Referenced by maxSubClusDRRawEnergyOverSCRawEnergy().

float EcalRegressionData::maxSubClusDRRawEnergyOverSCRawEnergy ( ) const
inline

Definition at line 72 of file EcalRegressionData.h.

References divideBySCRawEnergy_(), and maxSubClusDRRawEnergy().

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

Definition at line 62 of file EcalRegressionData.h.

References nrVtx_.

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

Definition at line 32 of file EcalRegressionData.h.

References scCalibEnergy_.

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

Definition at line 34 of file EcalRegressionData.h.

References scEta_.

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

Definition at line 36 of file EcalRegressionData.h.

References scEtaWidth_.

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

Definition at line 38 of file EcalRegressionData.h.

References scNrAdditionalClusters_.

float EcalRegressionData::scPhi ( ) const
inline

Definition at line 35 of file EcalRegressionData.h.

References scPhi_.

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

Definition at line 37 of file EcalRegressionData.h.

References scPhiWidth_.

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

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

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

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

Definition at line 52 of file EcalRegressionData.h.

References seedCrysEtaOrX_.

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

Definition at line 53 of file EcalRegressionData.h.

References seedCrysIEtaOrIX_.

float EcalRegressionData::seedCrysIPhiOrIY ( ) const
inline

Definition at line 54 of file EcalRegressionData.h.

References seedCrysIPhiOrIY_.

float EcalRegressionData::seedCrysPhiOrY ( ) const
inline

Definition at line 51 of file EcalRegressionData.h.

References seedCrysPhiOrY_.

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

Definition at line 13 of file EcalRegressionData.cc.

float EcalRegressionData::seedTopBottomAsym ( ) const

Definition at line 20 of file EcalRegressionData.cc.

float EcalRegressionData::sigmaIEtaIEta ( ) const
inline

Definition at line 47 of file EcalRegressionData.h.

References sigmaIEtaIEta_.

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

Definition at line 48 of file EcalRegressionData.h.

References sigmaIEtaIPhi_.

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

Definition at line 49 of file EcalRegressionData.h.

References sigmaIPhiIPhi_.

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

Definition at line 61 of file EcalRegressionData.h.

References subClusDEta_.

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

Definition at line 33 of file EcalRegressionData.cc.

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

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

Definition at line 39 of file EcalRegressionData.cc.

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

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

Definition at line 27 of file EcalRegressionData.cc.

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

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

float EcalRegressionData::e3x3_
private

Definition at line 122 of file EcalRegressionData.h.

Referenced by e3x3().

float EcalRegressionData::eBottom_
private

Definition at line 124 of file EcalRegressionData.h.

Referenced by eBottom().

float EcalRegressionData::eLeft_
private

Definition at line 125 of file EcalRegressionData.h.

Referenced by eLeft().

float EcalRegressionData::eMax_
private

Definition at line 120 of file EcalRegressionData.h.

Referenced by eMax().

float EcalRegressionData::eRight_
private

Definition at line 126 of file EcalRegressionData.h.

Referenced by eRight().

float EcalRegressionData::eTop_
private

Definition at line 123 of file EcalRegressionData.h.

Referenced by eTop().

bool EcalRegressionData::isEB_
private

Definition at line 106 of file EcalRegressionData.h.

Referenced by isEB().

float EcalRegressionData::maxSubClusDR2_
private

Definition at line 138 of file EcalRegressionData.h.

Referenced by maxSubClusDR().

float EcalRegressionData::maxSubClusDRDEta_
private

Definition at line 140 of file EcalRegressionData.h.

Referenced by maxSubClusDRDEta().

float EcalRegressionData::maxSubClusDRDPhi_
private

Definition at line 139 of file EcalRegressionData.h.

Referenced by maxSubClusDRDPhi().

float EcalRegressionData::maxSubClusDRRawEnergy_
private

Definition at line 141 of file EcalRegressionData.h.

Referenced by maxSubClusDRRawEnergy().

int EcalRegressionData::nrVtx_
private

Definition at line 147 of file EcalRegressionData.h.

Referenced by nrVtx().

float EcalRegressionData::scCalibEnergy_
private

Definition at line 110 of file EcalRegressionData.h.

Referenced by scCalibEnergy().

float EcalRegressionData::scEta_
private

Definition at line 112 of file EcalRegressionData.h.

Referenced by scEta().

float EcalRegressionData::scEtaWidth_
private

Definition at line 114 of file EcalRegressionData.h.

Referenced by scEtaWidth().

int EcalRegressionData::scNrAdditionalClusters_
private

Definition at line 116 of file EcalRegressionData.h.

Referenced by scNrAdditionalClusters().

float EcalRegressionData::scPhi_
private

Definition at line 113 of file EcalRegressionData.h.

Referenced by scPhi().

float EcalRegressionData::scPhiWidth_
private

Definition at line 115 of file EcalRegressionData.h.

Referenced by scPhiWidth().

float EcalRegressionData::scPreShowerEnergy_
private

Definition at line 111 of file EcalRegressionData.h.

Referenced by scPreShowerEnergy().

float EcalRegressionData::scRawEnergy_
private

Definition at line 109 of file EcalRegressionData.h.

Referenced by scRawEnergy().

float EcalRegressionData::seedClusEnergy_
private

Definition at line 119 of file EcalRegressionData.h.

Referenced by seedClusEnergy().

float EcalRegressionData::seedCrysEtaOrX_
private

Definition at line 133 of file EcalRegressionData.h.

Referenced by seedCrysEtaOrX().

int EcalRegressionData::seedCrysIEtaOrIX_
private

Definition at line 134 of file EcalRegressionData.h.

Referenced by seedCrysIEtaOrIX().

int EcalRegressionData::seedCrysIPhiOrIY_
private

Definition at line 135 of file EcalRegressionData.h.

Referenced by seedCrysIPhiOrIY().

float EcalRegressionData::seedCrysPhiOrY_
private

Definition at line 132 of file EcalRegressionData.h.

Referenced by seedCrysPhiOrY().

float EcalRegressionData::sigmaIEtaIEta_
private

Definition at line 127 of file EcalRegressionData.h.

Referenced by sigmaIEtaIEta().

float EcalRegressionData::sigmaIEtaIPhi_
private

Definition at line 128 of file EcalRegressionData.h.

Referenced by sigmaIEtaIPhi().

float EcalRegressionData::sigmaIPhiIPhi_
private

Definition at line 129 of file EcalRegressionData.h.

Referenced by sigmaIPhiIPhi().

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

Definition at line 144 of file EcalRegressionData.h.

Referenced by subClusDEta().

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

Definition at line 143 of file EcalRegressionData.h.

Referenced by subClusDPhi().

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

Definition at line 142 of file EcalRegressionData.h.

Referenced by subClusRawEnergy().