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
reco::CastorJet::rho
double rho() const
rho of Jet centroid
Definition: CastorJet.h:86
reco::CastorJet::energycal_
double energycal_
Jet energycal.
Definition: CastorJet.h:90
reco::CastorJet::x
double x() const
x of Jet centroid
Definition: CastorJet.h:80
reco::CastorJet
Definition: CastorJet.h:17
ROOT::Math::XYZPoint
Transform3DPJ::Point XYZPoint
Definition: Transform3DPJ.cc:33
reco::CastorJet::usedCluster_
CastorClusterRef usedCluster_
used CastorClusters
Definition: CastorJet.h:93
reco::CastorJet::emEnergy
double emEnergy() const
Jet em energy.
Definition: CastorJet.h:53
reco::CastorJet::sigmaz
double sigmaz() const
Jet sigma z.
Definition: CastorJet.h:71
CastorCluster.h
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::CastorJet::operator>
bool operator>(const CastorJet &rhs) const
comparison > operator
Definition: CastorJet.h:44
edm::Ref< CastorClusterCollection >
reco::CastorCluster
Definition: CastorCluster.h:24
reco::CastorJet::width
double width() const
Jet width in phi.
Definition: CastorJet.h:62
reco::CastorJet::energycal
double energycal() const
Jet energycal.
Definition: CastorJet.h:32
reco::CastorJet::~CastorJet
~CastorJet() override
destructor
Definition: CastorJet.cc:8
reco::CastorJet::operator<=
bool operator<=(const CastorJet &rhs) const
comparison <= operator
Definition: CastorJet.h:47
reco::CastorJet::hadEnergy
double hadEnergy() const
Jet had energy.
Definition: CastorJet.h:56
reco::CastorJet::fem
double fem() const
Jet em/tot ratio.
Definition: CastorJet.h:59
reco::CastorJetCollection
std::vector< CastorJet > CastorJetCollection
Definition: CastorJet.h:97
reco::CastorJet::operator<
bool operator<(const CastorJet &rhs) const
comparison <= operator
Definition: CastorJet.h:50
reco::CastorJet::y
double y() const
y of Jet centroid
Definition: CastorJet.h:83
reco::CastorJet::fhot
double fhot() const
Jet hotcell/tot ratio.
Definition: CastorJet.h:68
reco::CastorJet::CastorJet
CastorJet()
default constructor. Sets energy to zero
Definition: CastorJet.h:20
Point3D.h
reco::CastorJet::position
ROOT::Math::XYZPoint position() const
Jet centroid position.
Definition: CastorJet.h:35
reco::CastorJet::eta
double eta() const
pseudorapidity of Jet centroid
Definition: CastorJet.h:74
reco::CastorJet::energy
double energy() const
Jet energy.
Definition: CastorJet.h:29
reco::CastorJet::getUsedCluster
CastorClusterRef getUsedCluster() const
vector of used Clusters
Definition: CastorJet.h:38
reco::CastorJet::phi
double phi() const
azimuthal angle of Jet centroid
Definition: CastorJet.h:77
reco::CastorJet::depth
double depth() const
Jet depth in z.
Definition: CastorJet.h:65
reco::CastorJet::operator>=
bool operator>=(const CastorJet &rhs) const
comparison >= operator
Definition: CastorJet.h:41