CMS 3D CMS Logo

Jet.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1Trigger_Jet_h
2 #define DataFormats_L1Trigger_Jet_h
3 
4 
8 
9 namespace l1t {
10 
11  class Jet;
15  typedef std::vector< JetRef > JetVectorRef ;
16 
20 
21  class Jet : public L1Candidate {
22 
23  public:
25  Jet( const LorentzVector& p4,
26  int pt=0,
27  int eta=0,
28  int phi=0,
29  int qual=0);
30  Jet( const PolarLorentzVector& p4,
31  int pt=0,
32  int eta=0,
33  int phi=0,
34  int qual=0);
35 
36  ~Jet() override;
37 
38 
39  void setTowerIEta(short int ieta); // ieta of seed tower
40  void setTowerIPhi(short int iphi); // iphi of seed tower
41  void setRawEt(short int et); // raw (uncalibrated) cluster sum
42  void setSeedEt(short int et);
43  void setPUEt(short int et);
44  void setPUDonutEt(unsigned int i, short int et);
45 
46  short int towerIEta() const;
47  short int towerIPhi() const;
48  short int rawEt() const;
49  short int seedEt() const;
50  short int puEt() const ;
51  short int puDonutEt(int i) const;
52 
53  virtual bool operator==(const l1t::Jet& rhs) const;
54  virtual inline bool operator!=(const l1t::Jet& rhs) const { return !(operator==(rhs)); };
55 
56  private:
57 
58  // additional hardware quantities common to L1 global jet
59  void clear_extended();
60  short int towerIEta_;
61  short int towerIPhi_;
62  short int rawEt_;
63  short int seedEt_;
64  short int puEt_;
65  short int puDonutEt_[4];
66 
67  };
68 
69 }
70 
71 #endif
virtual bool operator!=(const l1t::Jet &rhs) const
Definition: Jet.h:54
double eta() const final
momentum pseudorapidity
void setRawEt(short int et)
short int seedEt_
Definition: Jet.h:63
std::vector< JetRef > JetVectorRef
Definition: Jet.h:15
short int puDonutEt_[4]
Definition: Jet.h:65
short int rawEt() const
edm::RefVector< JetBxCollection > JetRefVector
Definition: Jet.h:14
double pt() const final
transverse momentum
~Jet() override
delete x;
Definition: CaloConfig.h:22
ObjectRefPair< Jet > JetRefPair
Definition: Jet.h:18
short int seedEt() const
short int puEt_
Definition: Jet.h:64
void setSeedEt(short int et)
short int towerIEta() const
Definition: Jet.h:21
edm::Ref< JetBxCollection > JetRef
Definition: Jet.h:13
Definition: Jet.py:1
double et() const final
transverse energy
ObjectRefPairBxCollection< Jet > JetRefPairBxCollection
Definition: Jet.h:19
short int puEt() const
virtual bool operator==(const l1t::Jet &rhs) const
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
void clear_extended()
ObjectRefBxCollection< Jet > JetRefBxCollection
Definition: Jet.h:17
std::pair< edm::Ref< BXVector< T >>, edm::Ref< BXVector< T >>> ObjectRefPair
BXVector< Jet > JetBxCollection
Definition: Jet.h:11
void setPUDonutEt(unsigned int i, short int et)
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
void setTowerIEta(short int ieta)
short int towerIPhi() const
Jet()
Definition: Jet.h:24
void setTowerIPhi(short int iphi)
short int puDonutEt(int i) const
void setPUEt(short int et)
short int towerIPhi_
Definition: Jet.h:61
short int rawEt_
Definition: Jet.h:62
double phi() const final
momentum azimuthal angle
short int towerIEta_
Definition: Jet.h:60
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39