test
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 //
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 EmType
33  {
38  } ;
39 
40  L1EmParticle();
41 
44  int bx = 0 ) ;
45 
48  int bx = 0 ) ;
49 
50  // Creates null Ref.
53  int bx = 0 ) ;
54 
57  int bx = 0 ) ;
58 
59  virtual ~L1EmParticle() {}
60 
61  // ---------- const member functions ---------------------
62  EmType type() const
63  { return type_ ; }
64 
66  { return ref_ ; }
67 
68  const L1GctEmCand* gctEmCand() const
69  { return ref_.get() ; }
70 
71  virtual L1EmParticle* clone() const
72  { return new L1EmParticle( *this ) ; }
73 
74  int bx() const
75  { return bx_ ; }
76 
77  // ---------- static member functions --------------------
78 
79  // ---------- member functions ---------------------------
81  { type_ = type ; }
82 
83  void setBx( int bx )
84  { bx_ = bx ; }
85 
86  private:
87  // L1EmParticle(const L1EmParticle&); // stop default
88 
89  // const L1EmParticle& operator=(const L1EmParticle&); // stop default
90 
91  // ---------- member data --------------------------------
94  int bx_ ;
95  };
96 }
97 
98 #endif
type
Definition: HCALResponse.h:21
const edm::Ref< L1GctEmCandCollection > & gctEmCandRef() const
Definition: L1EmParticle.h:65
virtual L1EmParticle * clone() const
returns a clone of the Candidate object
Definition: L1EmParticle.h:71
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
math::XYZTLorentzVector LorentzVector
const L1GctEmCand * gctEmCand() const
Definition: L1EmParticle.h:68
EmType type() const
Definition: L1EmParticle.h:62
void setBx(int bx)
Definition: L1EmParticle.h:83
Level-1 Trigger EM candidate at output of GCT.
Definition: L1GctEmCand.h:22
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:244
edm::Ref< L1GctEmCandCollection > ref_
Definition: L1EmParticle.h:93
void setType(EmType type)
Definition: L1EmParticle.h:80
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99