CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/DataFormats/EgammaReco/src/HFEMClusterShape.cc

Go to the documentation of this file.
00001 #include "DataFormats/EgammaReco/interface/HFEMClusterShape.h"
00002 
00003 reco::HFEMClusterShape::HFEMClusterShape(double eLong1x1,
00004                                          double eShort1x1,
00005                                          double eLong3x3,double eShort3x3,
00006                                          double eLong5x5,
00007                                          double eShort5x5,double eLongCore,
00008                                          double CellEta,double CellPhi,
00009                                          DetId seed):
00010   eLong1x1_(eLong1x1),
00011   eShort1x1_(eShort1x1),
00012   eLong3x3_(eLong3x3), 
00013   eShort3x3_(eShort3x3),  
00014   eLong5x5_(eLong5x5), 
00015   eShort5x5_(eShort5x5), 
00016   eLongCore_(eLongCore),
00017   CellEta_(CellEta), 
00018   CellPhi_(CellPhi),
00019   seed_(seed)
00020 {
00021 }
00022 
00023 
00024 double reco::HFEMClusterShape::e1x1() const {
00025   return eLong1x1_+eShort1x1_;
00026 }
00027 double reco::HFEMClusterShape::e3x3() const {
00028   return eLong3x3_+eShort3x3_;
00029 }
00030 double reco::HFEMClusterShape::e5x5() const {
00031   return eLong5x5_+eShort5x5_;
00032 }
00033 
00034 double reco::HFEMClusterShape::eSeL() const{
00035   return eShort3x3()/eLong3x3();
00036 }
00037 double reco::HFEMClusterShape::eCOREe9() const{
00038   return eCore()/eLong3x3();
00039 }
00040 double reco::HFEMClusterShape::e9e25() const{
00041   return (eLong3x3()+eShort3x3())/(eLong5x5()+eShort5x5());
00042 }