CMS 3D CMS Logo

TkEtMiss.h
Go to the documentation of this file.
1 #ifndef DataFormatsL1TCorrelator_TkEtMiss_h
2 #define DataFormatsL1TCorrelator_TkEtMiss_h
3 
7 
8 namespace l1t {
9  class TkEtMiss : public L1Candidate {
10  public:
12  TkEtMiss();
13  TkEtMiss(const LorentzVector& p4,
15  const double& etTotal,
16  const double& etMissPU,
17  const double& etTotalPU,
19  int bx = 0);
20 
21  TkEtMiss(const LorentzVector& p4,
23  const double& etTotal,
24  const double& etMissPU,
25  const double& etTotalPU,
26  int bx = 0);
27 
28  TkEtMiss(const LorentzVector& p4, EtMissType type, const double& EtPhi, const int& NumTracks, int bx = 0);
29 
30  // ---------- const member functions ---------------------
31  EtMissType type() const { return type_; } // kMET or kMHT
32  // For type = kMET, this is |MET|; for type = kMHT, this is |MHT|
33  double etMiss() const { return et(); }
34  // For type = kMET, this is total ET; for type = kMHT, this is total HT
35  double etTotal() const { return etTot_; }
36  // EtMiss and EtTot from PU vertices
37  double etMissPU() const { return etMissPU_; }
38  double etTotalPU() const { return etTotalPU_; }
39  int bx() const { return bx_; }
41 
42  double etPhi() const { return etPhi_; }
43  int etQual() const { return etQual_; }
44 
45  // ---------- member functions ---------------------------
46  void setEtTotal(const double& etTotal) { etTot_ = etTotal; }
47  void setBx(int bx) { bx_ = bx; }
48 
49  private:
50  // ---------- member data --------------------------------
52  double etTot_;
53  double etMissPU_;
54  double etTotalPU_;
56 
57  double etMiss_;
58  double etPhi_;
59  int etQual_;
60 
61  int bx_;
62  };
63 } // namespace l1t
64 
65 #endif
double etMissPU() const
Definition: TkEtMiss.h:37
double etTot_
Definition: TkEtMiss.h:52
edm::Ref< l1t::VertexWordCollection > vtxRef_
Definition: TkEtMiss.h:55
double etPhi() const
Definition: TkEtMiss.h:42
double etTotalPU_
Definition: TkEtMiss.h:54
delete x;
Definition: CaloConfig.h:22
double etTotalPU() const
Definition: TkEtMiss.h:38
const LorentzVector & p4() const final
four-momentum Lorentz vector
int etQual() const
Definition: TkEtMiss.h:43
double etMiss_
Definition: TkEtMiss.h:57
math::XYZTLorentzVector LorentzVector
double etPhi_
Definition: TkEtMiss.h:58
double etTotal() const
Definition: TkEtMiss.h:35
EtMissType type_
Definition: TkEtMiss.h:51
EtMissType type() const
Definition: TkEtMiss.h:31
void setEtTotal(const double &etTotal)
Definition: TkEtMiss.h:46
int bx() const
Definition: TkEtMiss.h:39
void setBx(int bx)
Definition: TkEtMiss.h:47
double et() const final
transverse energy
const edm::Ref< l1t::VertexWordCollection > & vtxRef() const
Definition: TkEtMiss.h:40
double etMissPU_
Definition: TkEtMiss.h:53
double etMiss() const
Definition: TkEtMiss.h:33