CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1JetParticle.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1JetParticle_h
2 #define L1Trigger_L1JetParticle_h
3 // -*- C++ -*-
4 //
5 // Package: L1Trigger
6 // Class : L1JetParticle
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 {
27 
29  public:
31 
32  L1JetParticle();
33 
35 
37 
38  // Creates null Ref.
40 
42 
43  ~L1JetParticle() override {}
44 
45  // ---------- const member functions ---------------------
46  JetType type() const { return type_; }
47 
49 
50  const L1GctJetCand* gctJetCand() const { return ref_.get(); }
51 
52  L1JetParticle* clone() const override { return new L1JetParticle(*this); }
53 
54  int bx() const { return bx_; }
55 
56  // ---------- static member functions --------------------
57 
58  // ---------- member functions ---------------------------
59  void setType(JetType type) { type_ = type; }
60 
61  void setBx(int bx) { bx_ = bx; }
62 
63  private:
64  // L1JetParticle(const L1JetParticle&); // stop default
65 
66  // const L1JetParticle& operator=(const L1JetParticle&); // stop default
67 
68  // ---------- member data --------------------------------
71  int bx_;
72  };
73 } // namespace l1extra
74 
75 #endif
void setType(JetType type)
Definition: L1JetParticle.h:59
L1JetParticle * clone() const override
returns a clone of the Candidate object
Definition: L1JetParticle.h:52
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
Level-1 Trigger jet candidate.
Definition: L1GctJetCand.h:17
const LorentzVector & p4() const final
four-momentum Lorentz vector
JetType type() const
Definition: L1JetParticle.h:46
edm::Ref< L1GctJetCandCollection > ref_
Definition: L1JetParticle.h:70
math::XYZTLorentzVector LorentzVector
const L1GctJetCand * gctJetCand() const
Definition: L1JetParticle.h:50
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
const edm::Ref< L1GctJetCandCollection > & gctJetCandRef() const
Definition: L1JetParticle.h:48