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:
19 
22 
24  CastorEgamma(const double energycal, const CastorClusterRef& usedCluster);
25 
27  virtual ~CastorEgamma();
28 
30  double energy() const { return (*usedCluster_).energy(); }
31 
33  double energycal() const { return energycal_; }
34 
36  ROOT::Math::XYZPoint position() const { return (*usedCluster_).position(); }
37 
40 
42  bool operator >=(const CastorEgamma& rhs) const { return (energycal_>=rhs.energycal_); }
43 
45  bool operator > (const CastorEgamma& rhs) const { return (energycal_> rhs.energycal_); }
46 
48  bool operator <=(const CastorEgamma& rhs) const { return (energycal_<=rhs.energycal_); }
49 
51  bool operator < (const CastorEgamma& rhs) const { return (energycal_< rhs.energycal_); }
52 
54  double emEnergy() const { return (*usedCluster_).emEnergy(); }
55 
57  double hadEnergy() const { return (*usedCluster_).hadEnergy(); }
58 
60  double fem() const { return (*usedCluster_).fem(); }
61 
63  double width() const { return (*usedCluster_).width(); }
64 
66  double depth() const { return (*usedCluster_).depth(); }
67 
69  double fhot() const { return (*usedCluster_).fhot(); }
70 
72  double sigmaz() const { return (*usedCluster_).sigmaz(); }
73 
75  double eta() const { return (*usedCluster_).eta(); }
76 
78  double phi() const { return (*usedCluster_).phi(); }
79 
81  double x() const { return (*usedCluster_).x(); }
82 
84  double y() const { return (*usedCluster_).y(); }
85 
87  double rho() const { return (*usedCluster_).rho(); }
88 
89  private:
90 
92  double energycal_;
93 
96  };
97 
98  // define CastorEgammaCollection
99  typedef std::vector<CastorEgamma> CastorEgammaCollection;
100 
101 }
102 
103 #endif
double width() const
Egamma width in phi.
Definition: CastorEgamma.h:63
double y() const
y of Egamma centroid
Definition: CastorEgamma.h:84
double eta() const
pseudorapidity of Egamma centroid
Definition: CastorEgamma.h:75
std::vector< CastorEgamma > CastorEgammaCollection
Definition: CastorEgamma.h:99
CastorClusterRef getUsedCluster() const
vector of used Clusters
Definition: CastorEgamma.h:39
double x() const
x of Egamma centroid
Definition: CastorEgamma.h:81
bool operator<(const CastorEgamma &rhs) const
comparison <= operator
Definition: CastorEgamma.h:51
CastorEgamma()
default constructor. Sets energy to zero
Definition: CastorEgamma.h:21
bool operator<=(const CastorEgamma &rhs) const
comparison <= operator
Definition: CastorEgamma.h:48
double energycal() const
Egamma energycal.
Definition: CastorEgamma.h:33
bool operator>(const CastorEgamma &rhs) const
comparison > operator
Definition: CastorEgamma.h:45
double energy() const
Egamma energy.
Definition: CastorEgamma.h:30
double phi() const
azimuthal angle of Egamma centroid
Definition: CastorEgamma.h:78
double rho() const
rho of Egamma centroid
Definition: CastorEgamma.h:87
double fhot() const
Egamma hotcell/tot ratio.
Definition: CastorEgamma.h:69
CastorClusterRef usedCluster_
used CastorClusters
Definition: CastorEgamma.h:95
bool operator>=(const CastorEgamma &rhs) const
comparison >= operator
Definition: CastorEgamma.h:42
double emEnergy() const
Egamma em energy.
Definition: CastorEgamma.h:54
fixed size matrix
Transform3DPJ::Point XYZPoint
ROOT::Math::XYZPoint position() const
Egamma centroid position.
Definition: CastorEgamma.h:36
double sigmaz() const
Egamma sigma z.
Definition: CastorEgamma.h:72
double hadEnergy() const
Egamma had energy.
Definition: CastorEgamma.h:57
double energycal_
Egamma energycal.
Definition: CastorEgamma.h:92
double fem() const
Egamma em/tot ratio.
Definition: CastorEgamma.h:60
virtual ~CastorEgamma()
destructor
Definition: CastorEgamma.cc:8
double depth() const
Egamma depth in z.
Definition: CastorEgamma.h:66