CMS 3D CMS Logo

CastorEgamma.h
Go to the documentation of this file.
1 #ifndef CastorReco_CastorEgamma_h
2 #define CastorReco_CastorEgamma_h
3 
11 #include <vector>
14 
15 namespace reco {
16 
17  class CastorEgamma : public CastorCluster {
18  public:
21 
23  CastorEgamma(const double energycal, const CastorClusterRef& usedCluster);
24 
26  ~CastorEgamma() override;
27 
29  double energy() const { return (*usedCluster_).energy(); }
30 
32  double energycal() const { return energycal_; }
33 
35  ROOT::Math::XYZPoint position() const { return (*usedCluster_).position(); }
36 
39 
41  bool operator>=(const CastorEgamma& rhs) const { return (energycal_ >= rhs.energycal_); }
42 
44  bool operator>(const CastorEgamma& rhs) const { return (energycal_ > rhs.energycal_); }
45 
47  bool operator<=(const CastorEgamma& rhs) const { return (energycal_ <= rhs.energycal_); }
48 
50  bool operator<(const CastorEgamma& rhs) const { return (energycal_ < rhs.energycal_); }
51 
53  double emEnergy() const { return (*usedCluster_).emEnergy(); }
54 
56  double hadEnergy() const { return (*usedCluster_).hadEnergy(); }
57 
59  double fem() const { return (*usedCluster_).fem(); }
60 
62  double width() const { return (*usedCluster_).width(); }
63 
65  double depth() const { return (*usedCluster_).depth(); }
66 
68  double fhot() const { return (*usedCluster_).fhot(); }
69 
71  double sigmaz() const { return (*usedCluster_).sigmaz(); }
72 
74  double eta() const { return (*usedCluster_).eta(); }
75 
77  double phi() const { return (*usedCluster_).phi(); }
78 
80  double x() const { return (*usedCluster_).x(); }
81 
83  double y() const { return (*usedCluster_).y(); }
84 
86  double rho() const { return (*usedCluster_).rho(); }
87 
88  private:
90  double energycal_;
91 
94  };
95 
96  // define CastorEgammaCollection
97  typedef std::vector<CastorEgamma> CastorEgammaCollection;
98 
99 } // namespace reco
100 
101 #endif
double eta() const
pseudorapidity of Egamma centroid
Definition: CastorEgamma.h:74
double sigmaz() const
Egamma sigma z.
Definition: CastorEgamma.h:71
std::vector< CastorEgamma > CastorEgammaCollection
Definition: CastorEgamma.h:97
double fem() const
Egamma em/tot ratio.
Definition: CastorEgamma.h:59
CastorEgamma()
default constructor. Sets energy to zero
Definition: CastorEgamma.h:20
double energy() const
Egamma energy.
Definition: CastorEgamma.h:29
bool operator>=(const CastorEgamma &rhs) const
comparison >= operator
Definition: CastorEgamma.h:41
bool operator>(const CastorEgamma &rhs) const
comparison > operator
Definition: CastorEgamma.h:44
double fhot() const
Egamma hotcell/tot ratio.
Definition: CastorEgamma.h:68
double hadEnergy() const
Egamma had energy.
Definition: CastorEgamma.h:56
double width() const
Egamma width in phi.
Definition: CastorEgamma.h:62
CastorClusterRef usedCluster_
used CastorClusters
Definition: CastorEgamma.h:93
double emEnergy() const
Egamma em energy.
Definition: CastorEgamma.h:53
double depth() const
Egamma depth in z.
Definition: CastorEgamma.h:65
bool operator<(const CastorEgamma &rhs) const
comparison <= operator
Definition: CastorEgamma.h:50
double rho() const
rho of Egamma centroid
Definition: CastorEgamma.h:86
double x() const
x of Egamma centroid
Definition: CastorEgamma.h:80
ROOT::Math::XYZPoint position() const
Egamma centroid position.
Definition: CastorEgamma.h:35
double energycal() const
Egamma energycal.
Definition: CastorEgamma.h:32
double phi() const
azimuthal angle of Egamma centroid
Definition: CastorEgamma.h:77
fixed size matrix
Transform3DPJ::Point XYZPoint
~CastorEgamma() override
destructor
Definition: CastorEgamma.cc:8
bool operator<=(const CastorEgamma &rhs) const
comparison <= operator
Definition: CastorEgamma.h:47
CastorClusterRef getUsedCluster() const
vector of used Clusters
Definition: CastorEgamma.h:38
double energycal_
Egamma energycal.
Definition: CastorEgamma.h:90
double y() const
y of Egamma centroid
Definition: CastorEgamma.h:83