CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: L1EtMissParticle.h,v 1.15 2009/03/22 16:11:30 wsun Exp $
16 //
17 
18 // system include files
19 
20 // user include files
24 
25 // forward declarations
26 
27 namespace l1extra {
29  {
30  public:
32 
34 
35  // Default Refs are null. For type = kET, only the first two are
36  // filled; for type = kHT, only the second two are filled.
38  const LorentzVector& p4,
40  const double& etTotal,
41  const edm::Ref< L1GctEtMissCollection >& aEtMissRef = edm::Ref<
43  const edm::Ref< L1GctEtTotalCollection >& aEtTotalRef = edm::Ref<
45  const edm::Ref< L1GctHtMissCollection >& aHtMissRef = edm::Ref<
47  const edm::Ref< L1GctEtHadCollection >& aEtHadRef = edm::Ref<
49  int bx = 0 ) ;
50 
52  const PolarLorentzVector& p4,
53  EtMissType type,
54  const double& etTotal,
55  const edm::Ref< L1GctEtMissCollection >& aEtMissRef = edm::Ref<
57  const edm::Ref< L1GctEtTotalCollection >& aEtTotalRef = edm::Ref<
59  const edm::Ref< L1GctHtMissCollection >& aHtMissRef = edm::Ref<
61  const edm::Ref< L1GctEtHadCollection >& aEtHadRef = edm::Ref<
63  int bx = 0 ) ;
64 
65  virtual ~L1EtMissParticle() {}
66 
67  // ---------- const member functions ---------------------
68 
69  EtMissType type() const { return type_ ; } // kET or kHT
70 
71  // For type = kET, this is |MET|; for type = kHT, this is |MHT|
72  double etMiss() const
73  { return et() ; }
74 
75  // For type = kET, this is total ET; for type = kHT, this is total HT
76  const double& etTotal() const
77  { return etTot_ ; }
78 
79  // This is filled only for type = kET
81  { return etMissRef_ ; }
82 
83  // This is filled only for type = kET
85  { return etTotRef_ ; }
86 
87  // This is filled only for type = kHT
89  { return htMissRef_ ; }
90 
91  // This is filled only for type = kHT
93  { return etHadRef_ ; }
94 
95  // This is filled only for type = kET
96  const L1GctEtMiss* gctEtMiss() const
97  { return etMissRef_.get() ; }
98 
99  // This is filled only for type = kET
100  const L1GctEtTotal* gctEtTotal() const
101  { return etTotRef_.get() ; }
102 
103  // This is filled only for type = kHT
104  const L1GctHtMiss* gctHtMiss() const
105  { return htMissRef_.get() ; }
106 
107  // This is filled only for type = kHT
108  const L1GctEtHad* gctEtHad() const
109  { return etHadRef_.get() ; }
110 
111  virtual L1EtMissParticle* clone() const
112  { return new L1EtMissParticle( *this ) ; }
113 
114  int bx() const
115  { return bx_ ; }
116 
117  // ---------- static member functions --------------------
118 
119  // ---------- member functions ---------------------------
120  void setEtTotal( const double& etTotal )
121  { etTot_ = etTotal ; }
122 
123  void setBx( int bx )
124  { bx_ = bx ; }
125 
126  private:
127  // L1EtMissParticle(const L1EtMissParticle&); // stop default
128 
129  // const L1EtMissParticle& operator=(const L1EtMissParticle&); // stop default
130 
131  // ---------- member data --------------------------------
133 
134  double etTot_ ;
135 
140 
141  int bx_ ;
142  };
143 }
144 
145 #endif
type
Definition: HCALResponse.h:21
virtual double et() const GCC11_FINAL
transverse energy
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
std::vector< L1GctEtMiss > L1GctEtMissCollection
edm::Ref< L1GctHtMissCollection > htMissRef_
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:28
std::vector< L1GctEtHad > L1GctEtHadCollection
math::XYZTLorentzVector LorentzVector
Persistable copy of missing Et measured at Level-1.
Definition: L1GctEtMiss.h:18
EtMissType type() const
std::vector< L1GctEtTotal > L1GctEtTotalCollection
edm::Ref< L1GctEtTotalCollection > etTotRef_
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
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
const edm::Ref< L1GctEtHadCollection > & gctEtHadRef() const
edm::Ref< L1GctEtHadCollection > etHadRef_
const double & etTotal() const
const L1GctHtMiss * gctHtMiss() const
edm::Ref< L1GctEtMissCollection > etMissRef_
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:242
const L1GctEtHad * gctEtHad() const
const L1GctEtTotal * gctEtTotal() const
const edm::Ref< L1GctHtMissCollection > & gctHtMissRef() const