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  {
29  public:
31 
33 
34  // Default Refs are null. For type = kET, only the first two are
35  // filled; for type = kHT, only the second two are filled.
37  const LorentzVector& p4,
39  const double& etTotal,
40  const edm::Ref< L1GctEtMissCollection >& aEtMissRef = edm::Ref<
42  const edm::Ref< L1GctEtTotalCollection >& aEtTotalRef = edm::Ref<
44  const edm::Ref< L1GctHtMissCollection >& aHtMissRef = edm::Ref<
46  const edm::Ref< L1GctEtHadCollection >& aEtHadRef = edm::Ref<
48  int bx = 0 ) ;
49 
51  const PolarLorentzVector& p4,
52  EtMissType type,
53  const double& etTotal,
54  const edm::Ref< L1GctEtMissCollection >& aEtMissRef = edm::Ref<
56  const edm::Ref< L1GctEtTotalCollection >& aEtTotalRef = edm::Ref<
58  const edm::Ref< L1GctHtMissCollection >& aHtMissRef = edm::Ref<
60  const edm::Ref< L1GctEtHadCollection >& aEtHadRef = edm::Ref<
62  int bx = 0 ) ;
63 
64  virtual ~L1EtMissParticle() {}
65 
66  // ---------- const member functions ---------------------
67 
68  EtMissType type() const { return type_ ; } // kET or kHT
69 
70  // For type = kET, this is |MET|; for type = kHT, this is |MHT|
71  double etMiss() const
72  { return et() ; }
73 
74  // For type = kET, this is total ET; for type = kHT, this is total HT
75  const double& etTotal() const
76  { return etTot_ ; }
77 
78  // This is filled only for type = kET
80  { return etMissRef_ ; }
81 
82  // This is filled only for type = kET
84  { return etTotRef_ ; }
85 
86  // This is filled only for type = kHT
88  { return htMissRef_ ; }
89 
90  // This is filled only for type = kHT
92  { return etHadRef_ ; }
93 
94  // This is filled only for type = kET
95  const L1GctEtMiss* gctEtMiss() const
96  { return etMissRef_.get() ; }
97 
98  // This is filled only for type = kET
99  const L1GctEtTotal* gctEtTotal() const
100  { return etTotRef_.get() ; }
101 
102  // This is filled only for type = kHT
103  const L1GctHtMiss* gctHtMiss() const
104  { return htMissRef_.get() ; }
105 
106  // This is filled only for type = kHT
107  const L1GctEtHad* gctEtHad() const
108  { return etHadRef_.get() ; }
109 
110  virtual L1EtMissParticle* clone() const
111  { return new L1EtMissParticle( *this ) ; }
112 
113  int bx() const
114  { return bx_ ; }
115 
116  // ---------- static member functions --------------------
117 
118  // ---------- member functions ---------------------------
119  void setEtTotal( const double& etTotal )
120  { etTot_ = etTotal ; }
121 
122  void setBx( int bx )
123  { bx_ = bx ; }
124 
125  private:
126  // L1EtMissParticle(const L1EtMissParticle&); // stop default
127 
128  // const L1EtMissParticle& operator=(const L1EtMissParticle&); // stop default
129 
130  // ---------- member data --------------------------------
132 
133  double etTot_ ;
134 
139 
140  int bx_ ;
141  };
142 }
143 
144 #endif
type
Definition: HCALResponse.h:21
std::vector< L1GctEtMiss > L1GctEtMissCollection
edm::Ref< L1GctHtMissCollection > htMissRef_
std::vector< L1GctEtHad > L1GctEtHadCollection
Persistable copy of missing Et measured at Level-1.
Definition: L1GctEtMiss.h:18
EtMissType type() const
std::vector< L1GctEtTotal > L1GctEtTotalCollection
edm::Ref< L1GctEtTotalCollection > etTotRef_
virtual double et() const final
transverse energy
const edm::Ref< L1GctEtMissCollection > & gctEtMissRef() const
const L1GctEtMiss * gctEtMiss() const
Persistable copy of total Et measured at Level-1.
Definition: L1GctEtTotal.h:18
const edm::Ref< L1GctEtTotalCollection > & gctEtTotalRef() const
virtual L1EtMissParticle * clone() const
returns a clone of the Candidate object
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:244
Persistable copy of total Ht measured at Level-1.
Definition: L1GctEtHad.h:18
void setEtTotal(const double &etTotal)
std::vector< L1GctHtMiss > L1GctHtMissCollection
Persistable copy of missing Et measured at Level-1.
Definition: L1GctHtMiss.h:16
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
const edm::Ref< L1GctEtHadCollection > & gctEtHadRef() const
edm::Ref< L1GctEtHadCollection > etHadRef_
const double & etTotal() const
const L1GctHtMiss * gctHtMiss() const
edm::Ref< L1GctEtMissCollection > etMissRef_
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
const L1GctEtHad * gctEtHad() const
const L1GctEtTotal * gctEtTotal() const
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39
const edm::Ref< L1GctHtMissCollection > & gctHtMissRef() const