CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
23 Jet::Jet( const PolarLorentzVector& p4,
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(uint 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 }
int i
Definition: DBlmapReader.cc:9
short int seedEt_
Definition: Jet.h:55
short int puDonutEt_[4]
Definition: Jet.h:57
math::XYZTLorentzVector LorentzVector
virtual ~Jet()
Destructor.
Definition: Jet.h:41
short int puEt_
Definition: Jet.h:56
double p4[4]
Definition: TauolaWrapper.h:92
void clear_extended()
Jet()
Definition: Jet.h:19
Jet()
Default constructor.
Definition: Jet.h:36
virtual double et() const final
transverse energy
short int towerIPhi_
Definition: Jet.h:53
short int rawEt_
Definition: Jet.h:54
short int towerIEta_
Definition: Jet.h:52