src
DataFormats
L1Trigger
interface
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
//
16
17
// system include files
18
19
// user include files
20
#include "
DataFormats/Candidate/interface/LeafCandidate.h
"
21
#include "
DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTExtendedCand.h
"
22
23
// forward declarations
24
25
namespace
l1extra
{
26
27
class
L1MuonParticle
:
public
reco::LeafCandidate
{
28
public
:
29
L1MuonParticle
();
30
31
// Eventually, all L1MuGMTCands will be L1MuGMTExtendedCands,
32
// as soon as dictionaries for them exist in
33
// L1Trigger/GlobalMuonTrigger.
34
35
L1MuonParticle
(
Charge
q
,
const
LorentzVector
&
p4
,
const
L1MuGMTExtendedCand
& aCand,
int
bx
= 0);
36
37
L1MuonParticle
(
Charge
q
,
const
PolarLorentzVector
&
p4
,
const
L1MuGMTExtendedCand
& aCand,
int
bx
= 0);
38
39
// Creates null Ref.
40
L1MuonParticle
(
Charge
q
,
41
const
LorentzVector
&
p4
,
42
bool
isolated =
false
,
43
bool
mip =
false
,
44
bool
forward =
false
,
45
bool
rpc
=
false
,
46
unsigned
int
detector
= 0,
47
int
bx
= 0);
48
49
L1MuonParticle
(
Charge
q
,
50
const
PolarLorentzVector
&
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
58
~L1MuonParticle
()
override
{}
59
60
// ---------- const member functions ---------------------
61
bool
isIsolated
()
const
{
return
isolated_
; }
62
63
bool
isMip
()
const
{
return
mip_
; }
64
65
bool
isForward
()
const
{
return
forward_
; }
66
67
bool
isRPC
()
const
{
return
rpc_
; }
68
69
const
L1MuGMTExtendedCand
&
gmtMuonCand
()
const
{
return
cand_
; }
70
71
L1MuonParticle
*
clone
()
const override
{
return
new
L1MuonParticle
(*
this
); }
72
73
int
bx
()
const
{
return
bx_
; }
74
75
// ---------- static member functions --------------------
76
77
// ---------- member functions ---------------------------
78
void
setIsolated
(
bool
isIso) {
isolated_
= isIso; }
79
80
void
setMip
(
bool
isMip
) {
mip_
=
isMip
; }
81
82
void
setForward
(
bool
isForward
) {
forward_
=
isForward
; }
83
84
void
setRPC
(
bool
isRPC
) {
rpc_
=
isRPC
; }
85
86
void
setBx
(
int
bx
) {
bx_
=
bx
; }
87
88
private
:
89
// L1MuonParticle(const L1MuonParticle&); // stop default
90
91
// const L1MuonParticle& operator=(const L1MuonParticle&); // stop default
92
93
// ---------- member data --------------------------------
94
bool
isolated_
;
95
bool
mip_
;
96
bool
forward_
;
97
bool
rpc_
;
98
L1MuGMTExtendedCand
cand_
;
99
int
bx_
;
100
};
101
}
// namespace l1extra
102
103
#endif
reco::LeafCandidate
Definition:
LeafCandidate.h:16
reco::Candidate::Charge
int Charge
electric charge type
Definition:
Candidate.h:34
l1extra::L1MuonParticle::isRPC
bool isRPC() const
Definition:
L1MuonParticle.h:67
l1extra::L1MuonParticle::mip_
bool mip_
Definition:
L1MuonParticle.h:95
l1extra
Definition:
L1EmParticle.h:26
LeafCandidate.h
omtf::DataWord64::rpc
Definition:
OmtfDataWord64.h:16
l1extra::L1MuonParticle::isolated_
bool isolated_
Definition:
L1MuonParticle.h:94
l1extra::L1MuonParticle::setMip
void setMip(bool isMip)
Definition:
L1MuonParticle.h:80
l1extra::L1MuonParticle::setBx
void setBx(int bx)
Definition:
L1MuonParticle.h:86
l1extra::L1MuonParticle
Definition:
L1MuonParticle.h:27
l1extra::L1MuonParticle::rpc_
bool rpc_
Definition:
L1MuonParticle.h:97
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition:
LeafCandidate.h:114
l1extra::L1MuonParticle::~L1MuonParticle
~L1MuonParticle() override
Definition:
L1MuonParticle.h:58
L1MuGMTExtendedCand
Definition:
L1MuGMTExtendedCand.h:46
l1extra::L1MuonParticle::cand_
L1MuGMTExtendedCand cand_
Definition:
L1MuonParticle.h:98
l1extra::L1MuonParticle::bx
int bx() const
Definition:
L1MuonParticle.h:73
L1MuGMTExtendedCand.h
l1extra::L1MuonParticle::isMip
bool isMip() const
Definition:
L1MuonParticle.h:63
l1extra::L1MuonParticle::gmtMuonCand
const L1MuGMTExtendedCand & gmtMuonCand() const
Definition:
L1MuonParticle.h:69
submitPVResolutionJobs.q
q
Definition:
submitPVResolutionJobs.py:84
l1extra::L1MuonParticle::bx_
int bx_
Definition:
L1MuonParticle.h:99
l1extra::L1MuonParticle::clone
L1MuonParticle * clone() const override
returns a clone of the Candidate object
Definition:
L1MuonParticle.h:71
hgcalTestNeighbor_cfi.detector
detector
Definition:
hgcalTestNeighbor_cfi.py:6
l1extra::L1MuonParticle::L1MuonParticle
L1MuonParticle()
Definition:
L1MuonParticle.cc:31
l1extra::L1MuonParticle::isForward
bool isForward() const
Definition:
L1MuonParticle.h:65
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:36
l1extra::L1MuonParticle::setRPC
void setRPC(bool isRPC)
Definition:
L1MuonParticle.h:84
l1extra::L1MuonParticle::setIsolated
void setIsolated(bool isIso)
Definition:
L1MuonParticle.h:78
l1extra::L1MuonParticle::setForward
void setForward(bool isForward)
Definition:
L1MuonParticle.h:82
l1extra::L1MuonParticle::isIsolated
bool isIsolated() const
Definition:
L1MuonParticle.h:61
l1extra::L1MuonParticle::forward_
bool forward_
Definition:
L1MuonParticle.h:96
reco::Candidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
Candidate.h:38
Generated for CMSSW Reference Manual by
1.8.14