CMS 3D CMS Logo

LongDeps.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_EgammaTools_LongDeps_h
2 #define RecoEgamma_EgammaTools_LongDeps_h
3 #include <vector>
4 #include <set>
5 
6 /*
7  * Stores information about the HGCal EM MultiCluster computed
8  * using EGammaPCAHelper, including in particular hits restricted to
9  * a cylinder along the shower axis with some given radius
10  */
11 
12 namespace hgcal {
13 
14  class LongDeps{
15  public:
16  LongDeps(float radius, const std::vector<float>& energyPerLayer, float energyEE,float energyFH,float energyBH,const std::set<int>& layers);
17  ~LongDeps() {}
18  // to check the radius used
19  inline float radius() const {return radius_;};
20  inline float energyEE() const {return energyEE_;}
21  inline float energyFH() const {return energyFH_;}
22  inline float energyBH() const {return energyBH_;}
23  inline const std::vector<float>& energyPerLayer() const {return energyPerLayer_;}
24  inline const std::set<int> & layers() const {return layers_;}
25  inline unsigned nLayers() const { return layers_.size();}
26  inline int firstLayer() const { return (nLayers()>0 ? *layers_.begin() : -1 );}
27  inline int lastLayer() const { return (nLayers()>0 ? *layers_.rbegin() : -1) ;}
28  inline int layerEfrac10() const {return lay_Efrac10_ ; }
29  inline int layerEfrac90() const {return lay_Efrac90_ ; }
30  inline float e4oEtot () const {return e4oEtot_ ;}
31 
32  private:
33  std::vector<float> energyPerLayer_;
34  float radius_;
35  float energyEE_;
36  float energyFH_;
37  float energyBH_;
38  std::set<int> layers_;
41  float e4oEtot_;
42  };
43 
44 }
45 
46 #endif
int lay_Efrac90_
Definition: LongDeps.h:40
unsigned nLayers() const
Definition: LongDeps.h:25
float energyEE() const
Definition: LongDeps.h:20
float energyEE_
Definition: LongDeps.h:35
int firstLayer() const
Definition: LongDeps.h:26
LongDeps(float radius, const std::vector< float > &energyPerLayer, float energyEE, float energyFH, float energyBH, const std::set< int > &layers)
Definition: LongDeps.cc:5
float energyFH() const
Definition: LongDeps.h:21
float radius() const
Definition: LongDeps.h:19
float energyFH_
Definition: LongDeps.h:36
int lay_Efrac10_
Definition: LongDeps.h:39
int layerEfrac10() const
Definition: LongDeps.h:28
std::set< int > layers_
Definition: LongDeps.h:38
int lastLayer() const
Definition: LongDeps.h:27
float e4oEtot() const
Definition: LongDeps.h:30
std::vector< float > energyPerLayer_
Definition: LongDeps.h:33
float radius_
Definition: LongDeps.h:34
const std::set< int > & layers() const
Definition: LongDeps.h:24
float e4oEtot_
Definition: LongDeps.h:41
float energyBH() const
Definition: LongDeps.h:22
const std::vector< float > & energyPerLayer() const
Definition: LongDeps.h:23
float energyBH_
Definition: LongDeps.h:37
int layerEfrac90() const
Definition: LongDeps.h:29