CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuonParticle.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1MuonParticle_h
2 #define L1Trigger_L1MuonParticle_h
3 // -*- C++ -*-
4 //
5 // Package: L1Trigger
6 // Class : L1MuonParticle
7 //
12 //
13 // Original Author: Werner Sun
14 // Created: Sat Jul 15 12:41:07 EDT 2006
15 // $Id: L1MuonParticle.h,v 1.13 2007/11/13 17:27:23 wsun Exp $
16 //
17 
18 // system include files
19 
20 // user include files
23 
24 // forward declarations
25 
26 namespace l1extra {
27 
29  {
30 
31  public:
33 
34  // Eventually, all L1MuGMTCands will be L1MuGMTExtendedCands,
35  // as soon as dictionaries for them exist in
36  // L1Trigger/GlobalMuonTrigger.
37 
39  const LorentzVector& p4,
40  const L1MuGMTExtendedCand& aCand,
41  int bx = 0 ) ;
42 
44  const PolarLorentzVector& p4,
45  const L1MuGMTExtendedCand& aCand,
46  int bx = 0 ) ;
47 
48  // Creates null Ref.
50  const LorentzVector& p4,
51  bool isolated = false,
52  bool mip = false,
53  bool forward = false,
54  bool rpc = false,
55  unsigned int detector = 0,
56  int bx = 0 ) ;
57 
59  const PolarLorentzVector& p4,
60  bool isolated = false,
61  bool mip = false,
62  bool forward = false,
63  bool rpc = false,
64  unsigned int detector = 0,
65  int bx = 0 ) ;
66 
67  virtual ~L1MuonParticle() {}
68 
69  // ---------- const member functions ---------------------
70  bool isIsolated() const
71  { return isolated_ ; }
72 
73  bool isMip() const
74  { return mip_ ; }
75 
76  bool isForward() const
77  { return forward_ ; }
78 
79  bool isRPC() const
80  { return rpc_ ; }
81 
83  { return cand_ ; }
84 
85  virtual L1MuonParticle* clone() const
86  { return new L1MuonParticle( *this ) ; }
87 
88  int bx() const
89  { return bx_ ; }
90 
91  // ---------- static member functions --------------------
92 
93  // ---------- member functions ---------------------------
94  void setIsolated( bool isIso )
95  { isolated_ = isIso ; }
96 
97  void setMip( bool isMip )
98  { mip_ = isMip ; }
99 
100  void setForward( bool isForward )
101  { forward_ = isForward ; }
102 
103  void setRPC( bool isRPC )
104  { rpc_ = isRPC ; }
105 
106  void setBx( int bx )
107  { bx_ = bx ; }
108 
109  private:
110  // L1MuonParticle(const L1MuonParticle&); // stop default
111 
112  // const L1MuonParticle& operator=(const L1MuonParticle&); // stop default
113 
114  // ---------- member data --------------------------------
115  bool isolated_ ;
116  bool mip_ ;
117  bool forward_ ;
118  bool rpc_ ;
120  int bx_ ;
121  };
122 }
123 
124 #endif
int Charge
electric charge type
Definition: Candidate.h:37
void setMip(bool isMip)
bool isIsolated() const
L1MuGMTExtendedCand cand_
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:39
const L1MuGMTExtendedCand & gmtMuonCand() const
void setRPC(bool isRPC)
void setIsolated(bool isIso)
void setForward(bool isForward)
virtual L1MuonParticle * clone() const
returns a clone of the Candidate object
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:41