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
L1GctHtMiss
Persistable copy of missing Et measured at Level-1.
Definition: L1GctHtMiss.h:16
l1extra::L1EtMissParticle::gctEtTotal
const L1GctEtTotal * gctEtTotal() const
Definition: L1EtMissParticle.h:81
l1extra::L1EtMissParticle::bx
int bx() const
Definition: L1EtMissParticle.h:91
l1extra::L1EtMissParticle::etMiss
double etMiss() const
Definition: L1EtMissParticle.h:60
L1GctCollections.h
l1extra::L1EtMissParticle::etHadRef_
edm::Ref< L1GctEtHadCollection > etHadRef_
Definition: L1EtMissParticle.h:113
l1extra::L1EtMissParticle::etTot_
double etTot_
Definition: L1EtMissParticle.h:108
l1extra::L1EtMissParticle::type_
EtMissType type_
Definition: L1EtMissParticle.h:106
edm::Ref::get
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
l1extra::L1EtMissParticle::setBx
void setBx(int bx)
Definition: L1EtMissParticle.h:98
l1extra::L1EtMissParticle::EtMissType
EtMissType
Definition: L1EtMissParticle.h:29
l1extra::L1EtMissParticle
Definition: L1EtMissParticle.h:27
l1extra::L1EtMissParticle::gctHtMissRef
const edm::Ref< L1GctHtMissCollection > & gctHtMissRef() const
Definition: L1EtMissParticle.h:72
edm::Ref< L1GctEtMissCollection >
l1extra::L1EtMissParticle::kNumTypes
Definition: L1EtMissParticle.h:29
l1extra::L1EtMissParticle::gctHtMiss
const L1GctHtMiss * gctHtMiss() const
Definition: L1EtMissParticle.h:84
L1GctEtMiss
Persistable copy of missing Et measured at Level-1.
Definition: L1GctEtMiss.h:17
l1extra::L1EtMissParticle::gctEtMiss
const L1GctEtMiss * gctEtMiss() const
Definition: L1EtMissParticle.h:78
reco::LeafCandidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
l1extra::L1EtMissParticle::gctEtHad
const L1GctEtHad * gctEtHad() const
Definition: L1EtMissParticle.h:87
l1extra::L1EtMissParticle::kMET
Definition: L1EtMissParticle.h:29
LeafCandidate.h
L1GctEtTotal
Persistable copy of total Et measured at Level-1.
Definition: L1GctEtTotal.h:17
l1extra::L1EtMissParticle::setEtTotal
void setEtTotal(const double &etTotal)
Definition: L1EtMissParticle.h:96
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
l1extra::L1EtMissParticle::htMissRef_
edm::Ref< L1GctHtMissCollection > htMissRef_
Definition: L1EtMissParticle.h:112
l1extra::L1EtMissParticle::type
EtMissType type() const
Definition: L1EtMissParticle.h:57
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:114
l1extra::L1EtMissParticle::gctEtMissRef
const edm::Ref< L1GctEtMissCollection > & gctEtMissRef() const
Definition: L1EtMissParticle.h:66
l1extra::L1EtMissParticle::L1EtMissParticle
L1EtMissParticle()
Definition: L1EtMissParticle.cc:31
l1extra::L1EtMissParticle::~L1EtMissParticle
~L1EtMissParticle() override
Definition: L1EtMissParticle.h:53
l1extra::L1EtMissParticle::bx_
int bx_
Definition: L1EtMissParticle.h:115
reco::LeafCandidate::et
double et() const final
transverse energy
Definition: LeafCandidate.h:127
L1GctEtHad
Persistable copy of total Ht measured at Level-1.
Definition: L1GctEtHad.h:17
Ref.h
l1extra::L1EtMissParticle::etTotRef_
edm::Ref< L1GctEtTotalCollection > etTotRef_
Definition: L1EtMissParticle.h:111
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition: HLTMuonMatchAndPlot.h:49
l1extra::L1EtMissParticle::gctEtHadRef
const edm::Ref< L1GctEtHadCollection > & gctEtHadRef() const
Definition: L1EtMissParticle.h:75
l1extra::L1EtMissParticle::kMHT
Definition: L1EtMissParticle.h:29
l1extra::L1EtMissParticle::clone
L1EtMissParticle * clone() const override
returns a clone of the Candidate object
Definition: L1EtMissParticle.h:89
reco::LeafCandidate
Definition: LeafCandidate.h:16
l1extra
Definition: L1EmParticle.h:26
l1extra::L1EtMissParticle::etMissRef_
edm::Ref< L1GctEtMissCollection > etMissRef_
Definition: L1EtMissParticle.h:110
l1extra::L1EtMissParticle::etTotal
const double & etTotal() const
Definition: L1EtMissParticle.h:63
l1extra::L1EtMissParticle::gctEtTotalRef
const edm::Ref< L1GctEtTotalCollection > & gctEtTotalRef() const
Definition: L1EtMissParticle.h:69