CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ClusterShapeAlgo.h
Go to the documentation of this file.
1 #ifndef RecoEcal_EgammaCoreTools_ClusterShapeAlgo_h
2 #define RecoEcal_EgammaCoreTools_ClusterShapeAlgo_h
3 
13 #include <map>
14 
16 
26 
28 
30 {
32  double r;
33  double phi;
34 };
35 
37 {
38 
39  public:
42  reco::ClusterShape Calculate(const reco::BasicCluster &passedCluster,
43  const EcalRecHitCollection *hits,
46 
47  private:
48  void Calculate_TopEnergy(const reco::BasicCluster &passedCluster,const EcalRecHitCollection *hits);
49  void Calculate_2ndEnergy(const reco::BasicCluster &passedCluster,const EcalRecHitCollection *hits);
51  void Calculate_e2x2();
52  void Calculate_e3x2();
53  void Calculate_e3x3();
54  void Calculate_e4x4();
55  void Calculate_e5x5();
56  void Calculate_e2x5Right();
57  void Calculate_e2x5Left();
58  void Calculate_e2x5Top();
59  void Calculate_e2x5Bottom();
60  void Calculate_Covariances(const reco::BasicCluster &passedCluster,
61  const EcalRecHitCollection* hits,
64  const int EtaPhi,const CaloSubdetectorGeometry * geometry);
65  // defines a energy deposition topology in a reference system centered on the cluster
66  void Calculate_EnergyDepTopology(const reco::BasicCluster &passedCluster,const EcalRecHitCollection *hits, const CaloSubdetectorGeometry * geometry, bool logW=true);
67  void Calculate_Polynomials(double rho);
68  double factorial(int n) const;
69  void Calculate_lat(const reco::BasicCluster &passedCluster);
70  void Calculate_ComplexZernikeMoments(const reco::BasicCluster &passedCluster);
71  // explicit implementation of polynomial part of
72  // Zernike-Functions for n<=5;
73  double f00(double r);
74  double f11(double r);
75  double f20(double r);
76  double f22(double r);
77  double f31(double r);
78  double f33(double r);
79  double f40(double r);
80  double f42(double r);
81  double f44(double r);
82  double f51(double r);
83  double f53(double r);
84  double f55(double r);
85  double absZernikeMoment(const reco::BasicCluster &passedCluster, int n, int m, double R0=6.6);
86  double fast_AbsZernikeMoment(const reco::BasicCluster &passedCluster, int n, int m, double R0);
87  // Calculation of Zernike-Moments for general values of (n,m)
88  double calc_AbsZernikeMoment(const reco::BasicCluster &passedCluster, int n, int m, double R0);
89 
91 
92  std::pair<DetId, double> energyMap_[5][5];
94 
98  double e3x2Ratio_;
99  double lat_;
100  double etaLat_ ;
101  double phiLat_ ;
102  double A20_, A42_;
103  std::vector<double> energyBasketFractionEta_;
104  std::vector<double> energyBasketFractionPhi_;
106  std::vector<EcalClusterEnergyDeposition> energyDistribution_;
107  std::vector<double> fcn_;
108 
109  enum { Eta, Phi };
110 
111 };
112 
113 #endif
double f20(double r)
void Create_Map(const EcalRecHitCollection *hits, const CaloSubdetectorTopology *topology)
double fast_AbsZernikeMoment(const reco::BasicCluster &passedCluster, int n, int m, double R0)
std::vector< double > fcn_
CaloTopology const * topology(0)
std::vector< EcalClusterEnergyDeposition > energyDistribution_
edm::ParameterSet parameterSet_
double f00(double r)
double f44(double r)
void Calculate_BarrelBasketEnergyFraction(const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const int EtaPhi, const CaloSubdetectorGeometry *geometry)
double calc_AbsZernikeMoment(const reco::BasicCluster &passedCluster, int n, int m, double R0)
std::pair< DetId, double > energyMap_[5][5]
double factorial(int n) const
double f31(double r)
double absZernikeMoment(const reco::BasicCluster &passedCluster, int n, int m, double R0=6.6)
double f55(double r)
reco::ClusterShape Calculate(const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology)
void Calculate_Covariances(const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry)
double f42(double r)
void Calculate_EnergyDepTopology(const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, bool logW=true)
double f40(double r)
double f33(double r)
void Calculate_TopEnergy(const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits)
void Calculate_Polynomials(double rho)
double f11(double r)
Definition: DetId.h:18
double f51(double r)
std::vector< double > energyBasketFractionPhi_
void Calculate_ComplexZernikeMoments(const reco::BasicCluster &passedCluster)
double f22(double r)
void Calculate_lat(const reco::BasicCluster &passedCluster)
ESHandle< TrackerGeometry > geometry
std::vector< double > energyBasketFractionEta_
double f53(double r)
void Calculate_2ndEnergy(const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits)