CMS 3D CMS Logo

L1EtMissParticle.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1EtMissParticle_h
2 #define L1Trigger_L1EtMissParticle_h
3 // -*- C++ -*-
4 //
5 // Package: L1Trigger
6 // Class : L1EtMissParticle
7 //
12 //
13 // Original Author: Werner Sun
14 // Created: Sat Jul 15 12:41:07 EDT 2006
15 //
16 
17 // system include files
18 
19 // user include files
23 
24 // forward declarations
25 
26 namespace l1extra {
28  public:
30 
32 
33  // Default Refs are null. For type = kET, only the first two are
34  // filled; for type = kHT, only the second two are filled.
37  const double& etTotal,
42  int bx = 0);
43 
46  const double& etTotal,
51  int bx = 0);
52 
53  ~L1EtMissParticle() override {}
54 
55  // ---------- const member functions ---------------------
56 
57  EtMissType type() const { return type_; } // kET or kHT
58 
59  // For type = kET, this is |MET|; for type = kHT, this is |MHT|
60  double etMiss() const { return et(); }
61 
62  // For type = kET, this is total ET; for type = kHT, this is total HT
63  const double& etTotal() const { return etTot_; }
64 
65  // This is filled only for type = kET
67 
68  // This is filled only for type = kET
70 
71  // This is filled only for type = kHT
73 
74  // This is filled only for type = kHT
76 
77  // This is filled only for type = kET
78  const L1GctEtMiss* gctEtMiss() const { return etMissRef_.get(); }
79 
80  // This is filled only for type = kET
81  const L1GctEtTotal* gctEtTotal() const { return etTotRef_.get(); }
82 
83  // This is filled only for type = kHT
84  const L1GctHtMiss* gctHtMiss() const { return htMissRef_.get(); }
85 
86  // This is filled only for type = kHT
87  const L1GctEtHad* gctEtHad() const { return etHadRef_.get(); }
88 
89  L1EtMissParticle* clone() const override { return new L1EtMissParticle(*this); }
90 
91  int bx() const { return bx_; }
92 
93  // ---------- static member functions --------------------
94 
95  // ---------- member functions ---------------------------
96  void setEtTotal(const double& etTotal) { etTot_ = etTotal; }
97 
98  void setBx(int bx) { bx_ = bx; }
99 
100  private:
101  // L1EtMissParticle(const L1EtMissParticle&); // stop default
102 
103  // const L1EtMissParticle& operator=(const L1EtMissParticle&); // stop default
104 
105  // ---------- member data --------------------------------
107 
108  double etTot_;
109 
114 
115  int bx_;
116  };
117 } // namespace l1extra
118 
119 #endif
const edm::Ref< L1GctEtHadCollection > & gctEtHadRef() const
const L1GctEtTotal * gctEtTotal() const
const L1GctHtMiss * gctHtMiss() const
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
edm::Ref< L1GctHtMissCollection > htMissRef_
Persistable copy of missing Et measured at Level-1.
Definition: L1GctEtMiss.h:17
const L1GctEtHad * gctEtHad() const
L1EtMissParticle * clone() const override
returns a clone of the Candidate object
const LorentzVector & p4() const final
four-momentum Lorentz vector
edm::Ref< L1GctEtTotalCollection > etTotRef_
const edm::Ref< L1GctHtMissCollection > & gctHtMissRef() const
edm::Ref< L1GctEtMissCollection > etMissRef_
Persistable copy of total Et measured at Level-1.
Definition: L1GctEtTotal.h:17
math::XYZTLorentzVector LorentzVector
const edm::Ref< L1GctEtTotalCollection > & gctEtTotalRef() const
Persistable copy of total Ht measured at Level-1.
Definition: L1GctEtHad.h:17
void setEtTotal(const double &etTotal)
const double & etTotal() const
Persistable copy of missing Et measured at Level-1.
Definition: L1GctHtMiss.h:16
const L1GctEtMiss * gctEtMiss() const
edm::Ref< L1GctEtHadCollection > etHadRef_
double et() const final
transverse energy
EtMissType type() const
const edm::Ref< L1GctEtMissCollection > & gctEtMissRef() const
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232