CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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  {
30 
31  public:
32  enum JetType
33  {
39  } ;
40 
41  L1JetParticle();
42 
45  int bx = 0 ) ;
46 
49  int bx = 0 ) ;
50 
51  // Creates null Ref.
54  int bx = 0 ) ;
55 
58  int bx = 0 ) ;
59 
60  virtual ~L1JetParticle() {}
61 
62  // ---------- const member functions ---------------------
63  JetType type() const
64  { return type_ ; }
65 
67  { return ref_ ; }
68 
69  const L1GctJetCand* gctJetCand() const
70  { return ref_.get() ; }
71 
72  virtual L1JetParticle* clone() const
73  { return new L1JetParticle( *this ) ; }
74 
75  int bx() const
76  { return bx_ ; }
77 
78  // ---------- static member functions --------------------
79 
80  // ---------- member functions ---------------------------
82  { type_ = type ; }
83 
84  void setBx( int bx )
85  { bx_ = bx ; }
86 
87  private:
88  // L1JetParticle(const L1JetParticle&); // stop default
89 
90  // const L1JetParticle& operator=(const L1JetParticle&); // stop default
91 
92  // ---------- member data --------------------------------
95  int bx_ ;
96  };
97 }
98 
99 #endif
type
Definition: HCALResponse.h:21
void setType(JetType type)
Definition: L1JetParticle.h:81
virtual L1JetParticle * clone() const
returns a clone of the Candidate object
Definition: L1JetParticle.h:72
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
math::XYZTLorentzVector LorentzVector
Level-1 Trigger jet candidate.
Definition: L1GctJetCand.h:18
JetType type() const
Definition: L1JetParticle.h:63
edm::Ref< L1GctJetCandCollection > ref_
Definition: L1JetParticle.h:94
const L1GctJetCand * gctJetCand() const
Definition: L1JetParticle.h:69
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:244
const edm::Ref< L1GctJetCandCollection > & gctJetCandRef() const
Definition: L1JetParticle.h:66
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
Definition: LeafCandidate.h:99