CMS 3D CMS Logo

CastorJet.h
Go to the documentation of this file.
1 #ifndef CastorReco_CastorJet_h
2 #define CastorReco_CastorJet_h
3 
11 #include <vector>
14 
15 namespace reco {
16 
17  class CastorJet : public CastorCluster {
18  public:
20  CastorJet() : energycal_(0.) {}
21 
23  CastorJet(const double energycal, const CastorClusterRef& usedCluster);
24 
26  ~CastorJet() 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 CastorJet& rhs) const { return (energycal_ >= rhs.energycal_); }
42 
44  bool operator>(const CastorJet& rhs) const { return (energycal_ > rhs.energycal_); }
45 
47  bool operator<=(const CastorJet& rhs) const { return (energycal_ <= rhs.energycal_); }
48 
50  bool operator<(const CastorJet& 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 CastorJetCollection
97  typedef std::vector<CastorJet> CastorJetCollection;
98 
99 } // namespace reco
100 
101 #endif
bool operator>(const CastorJet &rhs) const
comparison > operator
Definition: CastorJet.h:44
double fhot() const
Jet hotcell/tot ratio.
Definition: CastorJet.h:68
double phi() const
azimuthal angle of Jet centroid
Definition: CastorJet.h:77
bool operator>=(const CastorJet &rhs) const
comparison >= operator
Definition: CastorJet.h:41
double eta() const
pseudorapidity of Jet centroid
Definition: CastorJet.h:74
double x() const
x of Jet centroid
Definition: CastorJet.h:80
double depth() const
Jet depth in z.
Definition: CastorJet.h:65
double energycal() const
Jet energycal.
Definition: CastorJet.h:32
~CastorJet() override
destructor
Definition: CastorJet.cc:8
CastorClusterRef usedCluster_
used CastorClusters
Definition: CastorJet.h:93
bool operator<(const CastorJet &rhs) const
comparison <= operator
Definition: CastorJet.h:50
double hadEnergy() const
Jet had energy.
Definition: CastorJet.h:56
std::vector< CastorJet > CastorJetCollection
Definition: CastorJet.h:97
double y() const
y of Jet centroid
Definition: CastorJet.h:83
ROOT::Math::XYZPoint position() const
Jet centroid position.
Definition: CastorJet.h:35
double energy() const
Jet energy.
Definition: CastorJet.h:29
double width() const
Jet width in phi.
Definition: CastorJet.h:62
double fem() const
Jet em/tot ratio.
Definition: CastorJet.h:59
CastorClusterRef getUsedCluster() const
vector of used Clusters
Definition: CastorJet.h:38
double energycal_
Jet energycal.
Definition: CastorJet.h:90
fixed size matrix
bool operator<=(const CastorJet &rhs) const
comparison <= operator
Definition: CastorJet.h:47
Transform3DPJ::Point XYZPoint
double rho() const
rho of Jet centroid
Definition: CastorJet.h:86
CastorJet()
default constructor. Sets energy to zero
Definition: CastorJet.h:20
double emEnergy() const
Jet em energy.
Definition: CastorJet.h:53
double sigmaz() const
Jet sigma z.
Definition: CastorJet.h:71