DataFormats
L1Trigger
src
L1JetParticle.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: L1Trigger
4
// Class : L1JetParticle
5
//
8
//
9
// Original Author: Werner Sun
10
// Created: Tue Jul 25 17:51:21 EDT 2006
11
//
12
13
// system include files
14
15
// user include files
16
#include "
DataFormats/L1Trigger/interface/L1JetParticle.h
"
17
18
using namespace
l1extra
;
19
20
//
21
// constants, enums and typedefs
22
//
23
24
//
25
// static data member definitions
26
//
27
28
//
29
// constructors and destructor
30
//
31
L1JetParticle::L1JetParticle
() {}
32
33
L1JetParticle::L1JetParticle
(
const
LorentzVector
&
p4
,
const
edm::Ref<L1GctJetCandCollection>
& aRef,
int
bx
)
34
: LeafCandidate((char)0,
p4
), ref_(aRef), bx_(
bx
) {
35
if
(
ref_
.
isNonnull
()) {
36
type_
=
gctJetCand
()->
isTau
() ?
kTau
: (
gctJetCand
()->
isForward
() ?
kForward
:
kCentral
);
37
}
38
}
39
40
L1JetParticle::L1JetParticle
(
const
PolarLorentzVector
&
p4
,
const
edm::Ref<L1GctJetCandCollection>
& aRef,
int
bx
)
41
: LeafCandidate((char)0,
p4
), ref_(aRef), bx_(
bx
) {
42
if
(
ref_
.
isNonnull
()) {
43
type_
=
gctJetCand
()->
isTau
() ?
kTau
: (
gctJetCand
()->
isForward
() ?
kForward
:
kCentral
);
44
}
45
}
46
47
L1JetParticle::L1JetParticle
(
const
LorentzVector
&
p4
,
JetType
type
,
int
bx
)
48
: LeafCandidate((char)0,
p4
), type_(
type
), ref_(
edm
::
Ref
<
L1GctJetCandCollection
>()), bx_(
bx
) {}
49
50
L1JetParticle::L1JetParticle
(
const
PolarLorentzVector
&
p4
,
JetType
type
,
int
bx
)
51
: LeafCandidate((char)0,
p4
), type_(
type
), ref_(
edm
::
Ref
<
L1GctJetCandCollection
>()), bx_(
bx
) {}
52
53
// L1JetParticle::L1JetParticle(const L1JetParticle& rhs)
54
// {
55
// // do actual copying here;
56
// }
57
58
// L1JetParticle::~L1JetParticle()
59
// {
60
// }
61
62
//
63
// assignment operators
64
//
65
// const L1JetParticle& L1JetParticle::operator=(const L1JetParticle& rhs)
66
// {
67
// //An exception safe implementation is
68
// L1JetParticle temp(rhs);
69
// swap(rhs);
70
//
71
// return *this;
72
// }
73
74
//
75
// member functions
76
//
77
78
//
79
// const member functions
80
//
81
82
//
83
// static member functions
84
//
l1extra::L1JetParticle::kCentral
Definition:
L1JetParticle.h:30
L1GctJetCand::isForward
bool isForward() const
check if this is a forward jet
Definition:
L1GctJetCand.h:71
edm
HLT enums.
Definition:
AlignableModifier.h:19
L1GctJetCandCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
Definition:
L1GctCollections.h:31
reco::Candidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
Candidate.h:38
l1GtPatternGenerator_cfi.bx
bx
Definition:
l1GtPatternGenerator_cfi.py:18
l1extra::L1JetParticle::type_
JetType type_
Definition:
L1JetParticle.h:69
edm::Ref< L1GctJetCandCollection >
l1extra::L1JetParticle::kForward
Definition:
L1JetParticle.h:30
l1extra::L1JetParticle::L1JetParticle
L1JetParticle()
Definition:
L1JetParticle.cc:31
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:39
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition:
Ref.h:238
p4
double p4[4]
Definition:
TauolaWrapper.h:92
l1extra::L1JetParticle::gctJetCand
const L1GctJetCand * gctJetCand() const
Definition:
L1JetParticle.h:50
reco::JetExtendedAssociation::Ref
edm::Ref< Container > Ref
Definition:
JetExtendedAssociation.h:32
l1extra::L1JetParticle::JetType
JetType
Definition:
L1JetParticle.h:30
L1GctJetCand::isTau
bool isTau() const
check if this is a tau
Definition:
L1GctJetCand.h:68
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:36
l1extra
Definition:
L1EmParticle.h:26
L1JetParticle.h
l1extra::L1JetParticle::ref_
edm::Ref< L1GctJetCandCollection > ref_
Definition:
L1JetParticle.h:70
l1extra::L1JetParticle::kTau
Definition:
L1JetParticle.h:30
Generated for CMSSW Reference Manual by
1.8.16