Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
}
34
35
L1JetParticle::L1JetParticle
(
const
LorentzVector
&
p4
,
36
const
edm::Ref< L1GctJetCandCollection >
& aRef,
37
int
bx )
38
: LeafCandidate( (
char
) 0, p4 ),
39
ref_( aRef ),
40
bx_( bx )
41
{
42
if
(
ref_
.
isNonnull
() )
43
{
44
type_
=
gctJetCand
()->
isTau
() ?
kTau
:
45
(
gctJetCand
()->
isForward
() ?
kForward
:
kCentral
) ;
46
}
47
}
48
49
L1JetParticle::L1JetParticle
(
const
PolarLorentzVector
&
p4
,
50
const
edm::Ref< L1GctJetCandCollection >
& aRef,
51
int
bx )
52
: LeafCandidate( (
char
) 0, p4 ),
53
ref_( aRef ),
54
bx_( bx )
55
{
56
if
(
ref_
.
isNonnull
() )
57
{
58
type_
=
gctJetCand
()->
isTau
() ?
kTau
:
59
(
gctJetCand
()->
isForward
() ?
kForward
:
kCentral
) ;
60
}
61
}
62
63
L1JetParticle::L1JetParticle
(
const
LorentzVector
&
p4
,
64
JetType
type
,
65
int
bx )
66
: LeafCandidate( (
char
) 0, p4 ),
67
type_( type ),
68
ref_( edm::
Ref
<
L1GctJetCandCollection
>() ),
69
bx_( bx )
70
{
71
}
72
73
L1JetParticle::L1JetParticle
(
const
PolarLorentzVector
&
p4
,
74
JetType
type
,
75
int
bx )
76
: LeafCandidate( (
char
) 0, p4 ),
77
type_( type ),
78
ref_( edm::
Ref
<
L1GctJetCandCollection
>() ),
79
bx_( bx )
80
{
81
}
82
83
// L1JetParticle::L1JetParticle(const L1JetParticle& rhs)
84
// {
85
// // do actual copying here;
86
// }
87
88
// L1JetParticle::~L1JetParticle()
89
// {
90
// }
91
92
//
93
// assignment operators
94
//
95
// const L1JetParticle& L1JetParticle::operator=(const L1JetParticle& rhs)
96
// {
97
// //An exception safe implementation is
98
// L1JetParticle temp(rhs);
99
// swap(rhs);
100
//
101
// return *this;
102
// }
103
104
//
105
// member functions
106
//
107
108
//
109
// const member functions
110
//
111
112
//
113
// static member functions
114
//
type
type
Definition:
HCALResponse.h:21
L1GctJetCand::isTau
bool isTau() const
check if this is a tau
Definition:
L1GctJetCand.h:68
reco::JetExtendedAssociation::Ref
edm::Ref< Container > Ref
Definition:
JetExtendedAssociation.h:32
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition:
Ref.h:250
l1extra::L1JetParticle::type_
JetType type_
Definition:
L1JetParticle.h:93
edm::Ref< L1GctJetCandCollection >
hitfit::char
char
Definition:
Lepjets_Event_Jet.cc:254
L1GctJetCand::isForward
bool isForward() const
check if this is a forward jet
Definition:
L1GctJetCand.h:71
l1extra::L1JetParticle::L1JetParticle
L1JetParticle()
Definition:
L1JetParticle.cc:31
l1extra::L1JetParticle::ref_
edm::Ref< L1GctJetCandCollection > ref_
Definition:
L1JetParticle.h:94
L1GctJetCandCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
Definition:
L1GctCollections.h:31
l1extra::L1JetParticle::kCentral
Definition:
L1JetParticle.h:34
L1JetParticle.h
l1extra::L1JetParticle::JetType
JetType
Definition:
L1JetParticle.h:32
l1extra::L1JetParticle::kTau
Definition:
L1JetParticle.h:36
p4
double p4[4]
Definition:
TauolaWrapper.h:92
l1extra::L1JetParticle::gctJetCand
const L1GctJetCand * gctJetCand() const
Definition:
L1JetParticle.h:69
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:41
l1extra::L1JetParticle::kForward
Definition:
L1JetParticle.h:35
reco::Candidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
Candidate.h:43
Generated for CMSSW Reference Manual by
1.8.5