CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:
19 
21  CastorJet() : energycal_(0.) { }
22 
24  CastorJet(const double energycal, const CastorClusterRef& usedCluster);
25 
27  virtual ~CastorJet();
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 CastorJet& rhs) const { return (energycal_>=rhs.energycal_); }
43 
45  bool operator > (const CastorJet& rhs) const { return (energycal_> rhs.energycal_); }
46 
48  bool operator <=(const CastorJet& rhs) const { return (energycal_<=rhs.energycal_); }
49 
51  bool operator < (const CastorJet& 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 CastorJetCollection
99  typedef std::vector<CastorJet> CastorJetCollection;
100 
101 }
102 
103 #endif
double depth() const
Jet depth in z.
Definition: CastorJet.h:66
bool operator<(const CastorJet &rhs) const
comparison &lt;= operator
Definition: CastorJet.h:51
double width() const
Jet width in phi.
Definition: CastorJet.h:63
CastorClusterRef getUsedCluster() const
vector of used Clusters
Definition: CastorJet.h:39
double emEnergy() const
Jet em energy.
Definition: CastorJet.h:54
double x() const
x of Jet centroid
Definition: CastorJet.h:81
bool operator>(const CastorJet &rhs) const
comparison &gt; operator
Definition: CastorJet.h:45
double fhot() const
Jet hotcell/tot ratio.
Definition: CastorJet.h:69
double energy() const
Jet energy.
Definition: CastorJet.h:30
CastorClusterRef usedCluster_
used CastorClusters
Definition: CastorJet.h:95
double sigmaz() const
Jet sigma z.
Definition: CastorJet.h:72
bool operator<=(const CastorJet &rhs) const
comparison &lt;= operator
Definition: CastorJet.h:48
ROOT::Math::XYZPoint position() const
Jet centroid position.
Definition: CastorJet.h:36
std::vector< CastorJet > CastorJetCollection
Definition: CastorJet.h:99
double hadEnergy() const
Jet had energy.
Definition: CastorJet.h:57
double energycal() const
Jet energycal.
Definition: CastorJet.h:33
bool operator>=(const CastorJet &rhs) const
comparison &gt;= operator
Definition: CastorJet.h:42
double rho() const
rho of Jet centroid
Definition: CastorJet.h:87
double energycal_
Jet energycal.
Definition: CastorJet.h:92
Transform3DPJ::Point XYZPoint
double phi() const
azimuthal angle of Jet centroid
Definition: CastorJet.h:78
virtual ~CastorJet()
destructor
Definition: CastorJet.cc:8
double fem() const
Jet em/tot ratio.
Definition: CastorJet.h:60
double y() const
y of Jet centroid
Definition: CastorJet.h:84
CastorJet()
default constructor. Sets energy to zero
Definition: CastorJet.h:21
double eta() const
pseudorapidity of Jet centroid
Definition: CastorJet.h:75