CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1EmParticle.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1EmParticle_h
2 #define L1Trigger_L1EmParticle_h
3 // -*- C++ -*-
4 //
5 // Package: L1Trigger
6 // Class : L1EmParticle
7 //
12 //
13 // Original Author: Werner Sun
14 // Created: Sat Jul 15 12:41:07 EDT 2006
15 // $Id: L1EmParticle.h,v 1.12 2008/04/03 03:37:20 wsun Exp $
16 //
17 
18 // system include files
19 
20 // user include files
24 
25 // forward declarations
26 
27 namespace l1extra {
28 
30  {
31 
32  public:
33  enum EmType
34  {
39  } ;
40 
41  L1EmParticle();
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 ~L1EmParticle() {}
61 
62  // ---------- const member functions ---------------------
63  EmType type() const
64  { return type_ ; }
65 
67  { return ref_ ; }
68 
69  const L1GctEmCand* gctEmCand() const
70  { return ref_.get() ; }
71 
72  virtual L1EmParticle* clone() const
73  { return new L1EmParticle( *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  // L1EmParticle(const L1EmParticle&); // stop default
89 
90  // const L1EmParticle& operator=(const L1EmParticle&); // stop default
91 
92  // ---------- member data --------------------------------
95  int bx_ ;
96  };
97 }
98 
99 #endif
type
Definition: HCALResponse.h:22
const edm::Ref< L1GctEmCandCollection > & gctEmCandRef() const
Definition: L1EmParticle.h:66
virtual L1EmParticle * clone() const
returns a clone of the Candidate object
Definition: L1EmParticle.h:72
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:27
math::XYZTLorentzVector LorentzVector
const L1GctEmCand * gctEmCand() const
Definition: L1EmParticle.h:69
EmType type() const
Definition: L1EmParticle.h:63
void setBx(int bx)
Definition: L1EmParticle.h:84
Level-1 Trigger EM candidate at output of GCT.
Definition: L1GctEmCand.h:22
edm::Ref< L1GctEmCandCollection > ref_
Definition: L1EmParticle.h:94
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:242
void setType(EmType type)
Definition: L1EmParticle.h:81
virtual const LorentzVector & p4() const
four-momentum Lorentz vector