CMS 3D CMS Logo

Jet.cc
Go to the documentation of this file.
2 using namespace l1t;
3 
5  towerIEta_ = 0;
6  towerIPhi_ = 0;
7  rawEt_ = 0;
8  seedEt_ = 0;
9  puEt_ = 0;
10  puDonutEt_[0] = puDonutEt_[1] = puDonutEt_[2] = puDonutEt_[3] = 0;
11 }
12 
13 Jet::Jet( const LorentzVector& p4,
14  int pt,
15  int eta,
16  int phi,
17  int qual )
18  : L1Candidate(p4, pt, eta, phi, qual, 0)
19 {
20  clear_extended();
21 }
22 
24  int pt,
25  int eta,
26  int phi,
27  int qual )
28  : L1Candidate(p4, pt, eta, phi, qual, 0)
29 {
30  clear_extended();
31 }
32 
33 Jet::~Jet()
34 {
35 
36 }
37 
38 void Jet::setTowerIEta(short int ieta) {
39  towerIEta_ = ieta;
40 }
41 
42 void Jet::setTowerIPhi(short int iphi) {
43  towerIPhi_ = iphi;
44 }
45 
46 void Jet::setSeedEt(short int et) {
47  seedEt_ = et;
48 }
49 
50 void Jet::setRawEt(short int et) {
51  rawEt_ = et;
52 }
53 
54 void Jet::setPUEt(short int et) {
55  puEt_ = et;
56 }
57 
58 void Jet::setPUDonutEt(unsigned int i, short int et) {
59  if (i<4) puDonutEt_[i] = et;
60 }
61 
62 short int Jet::towerIEta() const {
63  return towerIEta_;
64 }
65 
66 short int Jet::towerIPhi() const {
67  return towerIPhi_;
68 }
69 
70 short int Jet::seedEt() const {
71  return seedEt_;
72 }
73 
74 short int Jet::rawEt() const {
75  return rawEt_;
76 }
77 
78 short int Jet::puEt() const {
79  return puEt_;
80 }
81 
82 short int Jet::puDonutEt(int i) const {
83  if (i>=0 && i<4) return puDonutEt_[i];
84  else return 0;
85 }
virtual double pt() const final
transverse momentum
short int seedEt_
Definition: Jet.h:55
virtual double eta() const final
momentum pseudorapidity
short int puDonutEt_[4]
Definition: Jet.h:57
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
math::XYZTLorentzVector LorentzVector
virtual ~Jet()
Destructor.
Definition: Jet.h:41
delete x;
Definition: CaloConfig.h:22
short int puEt_
Definition: Jet.h:56
virtual double phi() const final
momentum azimuthal angle
virtual double et() const final
transverse energy
void clear_extended()
Jet()
Definition: Jet.h:19
Jet()
Default constructor.
Definition: Jet.h:36
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
short int towerIPhi_
Definition: Jet.h:53
short int rawEt_
Definition: Jet.h:54
short int towerIEta_
Definition: Jet.h:52