CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorEgamma.h
Go to the documentation of this file.
1 #ifndef CastorReco_CastorEgamma_h
2 #define CastorReco_CastorEgamma_h
3 
12 #include <vector>
15 
16 namespace reco {
17 
18  class CastorEgamma : public CastorCluster {
19  public:
20 
23 
25  CastorEgamma(const double energycal, const CastorClusterRef& usedCluster);
26 
28  virtual ~CastorEgamma();
29 
31  double energy() const { return (*usedCluster_).energy(); }
32 
34  double energycal() const { return energycal_; }
35 
37  ROOT::Math::XYZPoint position() const { return (*usedCluster_).position(); }
38 
41 
43  bool operator >=(const CastorEgamma& rhs) const { return (energycal_>=rhs.energycal_); }
44 
46  bool operator > (const CastorEgamma& rhs) const { return (energycal_> rhs.energycal_); }
47 
49  bool operator <=(const CastorEgamma& rhs) const { return (energycal_<=rhs.energycal_); }
50 
52  bool operator < (const CastorEgamma& rhs) const { return (energycal_< rhs.energycal_); }
53 
55  double emEnergy() const { return (*usedCluster_).emEnergy(); }
56 
58  double hadEnergy() const { return (*usedCluster_).hadEnergy(); }
59 
61  double fem() const { return (*usedCluster_).fem(); }
62 
64  double width() const { return (*usedCluster_).width(); }
65 
67  double depth() const { return (*usedCluster_).depth(); }
68 
70  double fhot() const { return (*usedCluster_).fhot(); }
71 
73  double sigmaz() const { return (*usedCluster_).sigmaz(); }
74 
76  double eta() const { return (*usedCluster_).eta(); }
77 
79  double phi() const { return (*usedCluster_).phi(); }
80 
82  double x() const { return (*usedCluster_).x(); }
83 
85  double y() const { return (*usedCluster_).y(); }
86 
88  double rho() const { return (*usedCluster_).rho(); }
89 
90  private:
91 
93  double energycal_;
94 
97  };
98 
99  // define CastorEgammaCollection
100  typedef std::vector<CastorEgamma> CastorEgammaCollection;
101 
102 }
103 
104 #endif
double width() const
Egamma width in phi.
Definition: CastorEgamma.h:64
double y() const
y of Egamma centroid
Definition: CastorEgamma.h:85
double eta() const
pseudorapidity of Egamma centroid
Definition: CastorEgamma.h:76
std::vector< CastorEgamma > CastorEgammaCollection
Definition: CastorEgamma.h:100
CastorClusterRef getUsedCluster() const
vector of used Clusters
Definition: CastorEgamma.h:40
double x() const
x of Egamma centroid
Definition: CastorEgamma.h:82
bool operator<(const CastorEgamma &rhs) const
comparison &lt;= operator
Definition: CastorEgamma.h:52
CastorEgamma()
default constructor. Sets energy to zero
Definition: CastorEgamma.h:22
bool operator<=(const CastorEgamma &rhs) const
comparison &lt;= operator
Definition: CastorEgamma.h:49
double energycal() const
Egamma energycal.
Definition: CastorEgamma.h:34
bool operator>(const CastorEgamma &rhs) const
comparison &gt; operator
Definition: CastorEgamma.h:46
double energy() const
Egamma energy.
Definition: CastorEgamma.h:31
double phi() const
azimuthal angle of Egamma centroid
Definition: CastorEgamma.h:79
double rho() const
rho of Egamma centroid
Definition: CastorEgamma.h:88
double fhot() const
Egamma hotcell/tot ratio.
Definition: CastorEgamma.h:70
CastorClusterRef usedCluster_
used CastorClusters
Definition: CastorEgamma.h:96
bool operator>=(const CastorEgamma &rhs) const
comparison &gt;= operator
Definition: CastorEgamma.h:43
double emEnergy() const
Egamma em energy.
Definition: CastorEgamma.h:55
Transform3DPJ::Point XYZPoint
ROOT::Math::XYZPoint position() const
Egamma centroid position.
Definition: CastorEgamma.h:37
double sigmaz() const
Egamma sigma z.
Definition: CastorEgamma.h:73
double hadEnergy() const
Egamma had energy.
Definition: CastorEgamma.h:58
double energycal_
Egamma energycal.
Definition: CastorEgamma.h:93
double fem() const
Egamma em/tot ratio.
Definition: CastorEgamma.h:61
virtual ~CastorEgamma()
destructor
Definition: CastorEgamma.cc:8
double depth() const
Egamma depth in z.
Definition: CastorEgamma.h:67