File indexing completed on 2024-04-06 12:04:07
0001 #include "DataFormats/EgammaReco/interface/HFEMClusterShape.h"
0002
0003 reco::HFEMClusterShape::HFEMClusterShape(double eLong1x1,
0004 double eShort1x1,
0005 double eLong3x3,
0006 double eShort3x3,
0007 double eLong5x5,
0008 double eShort5x5,
0009 double eLongCore,
0010 double CellEta,
0011 double CellPhi,
0012 DetId seed)
0013 : eLong1x1_(eLong1x1),
0014 eShort1x1_(eShort1x1),
0015 eLong3x3_(eLong3x3),
0016 eShort3x3_(eShort3x3),
0017 eLong5x5_(eLong5x5),
0018 eShort5x5_(eShort5x5),
0019 eLongCore_(eLongCore),
0020 CellEta_(CellEta),
0021 CellPhi_(CellPhi),
0022 seed_(seed) {}
0023
0024 double reco::HFEMClusterShape::e1x1() const { return eLong1x1_ + eShort1x1_; }
0025 double reco::HFEMClusterShape::e3x3() const { return eLong3x3_ + eShort3x3_; }
0026 double reco::HFEMClusterShape::e5x5() const { return eLong5x5_ + eShort5x5_; }
0027
0028 double reco::HFEMClusterShape::eSeL() const { return eShort3x3() / eLong3x3(); }
0029 double reco::HFEMClusterShape::eCOREe9() const { return eCore() / eLong3x3(); }
0030 double reco::HFEMClusterShape::e9e25() const { return (eLong3x3() + eShort3x3()) / (eLong5x5() + eShort5x5()); }