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 
12 #include <vector>
15 
16 namespace reco {
17 
18  class CastorJet : public CastorCluster {
19  public:
20 
22  CastorJet() : energycal_(0.) { }
23 
25  CastorJet(const double energycal, const CastorClusterRef& usedCluster);
26 
28  virtual ~CastorJet();
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 CastorJet& rhs) const { return (energycal_>=rhs.energycal_); }
44 
46  bool operator > (const CastorJet& rhs) const { return (energycal_> rhs.energycal_); }
47 
49  bool operator <=(const CastorJet& rhs) const { return (energycal_<=rhs.energycal_); }
50 
52  bool operator < (const CastorJet& 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 CastorJetCollection
100  typedef std::vector<CastorJet> CastorJetCollection;
101 
102 }
103 
104 #endif
double depth() const
Jet depth in z.
Definition: CastorJet.h:67
bool operator<(const CastorJet &rhs) const
comparison &lt;= operator
Definition: CastorJet.h:52
double width() const
Jet width in phi.
Definition: CastorJet.h:64
CastorClusterRef getUsedCluster() const
vector of used Clusters
Definition: CastorJet.h:40
double emEnergy() const
Jet em energy.
Definition: CastorJet.h:55
double x() const
x of Jet centroid
Definition: CastorJet.h:82
bool operator>(const CastorJet &rhs) const
comparison &gt; operator
Definition: CastorJet.h:46
double fhot() const
Jet hotcell/tot ratio.
Definition: CastorJet.h:70
double energy() const
Jet energy.
Definition: CastorJet.h:31
CastorClusterRef usedCluster_
used CastorClusters
Definition: CastorJet.h:96
double sigmaz() const
Jet sigma z.
Definition: CastorJet.h:73
bool operator<=(const CastorJet &rhs) const
comparison &lt;= operator
Definition: CastorJet.h:49
ROOT::Math::XYZPoint position() const
Jet centroid position.
Definition: CastorJet.h:37
std::vector< CastorJet > CastorJetCollection
Definition: CastorJet.h:100
double hadEnergy() const
Jet had energy.
Definition: CastorJet.h:58
double energycal() const
Jet energycal.
Definition: CastorJet.h:34
bool operator>=(const CastorJet &rhs) const
comparison &gt;= operator
Definition: CastorJet.h:43
double rho() const
rho of Jet centroid
Definition: CastorJet.h:88
double energycal_
Jet energycal.
Definition: CastorJet.h:93
Transform3DPJ::Point XYZPoint
double phi() const
azimuthal angle of Jet centroid
Definition: CastorJet.h:79
virtual ~CastorJet()
destructor
Definition: CastorJet.cc:8
double fem() const
Jet em/tot ratio.
Definition: CastorJet.h:61
double y() const
y of Jet centroid
Definition: CastorJet.h:85
CastorJet()
default constructor. Sets energy to zero
Definition: CastorJet.h:22
double eta() const
pseudorapidity of Jet centroid
Definition: CastorJet.h:76