Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
// $Id: L1JetParticle.cc,v 1.7 2008/04/03 03:37:21 wsun Exp $
12
//
13
14
// system include files
15
16
// user include files
17
#include "
DataFormats/L1Trigger/interface/L1JetParticle.h
"
18
19
using namespace
l1extra ;
20
21
//
22
// constants, enums and typedefs
23
//
24
25
//
26
// static data member definitions
27
//
28
29
//
30
// constructors and destructor
31
//
32
L1JetParticle::L1JetParticle
()
33
{
34
}
35
36
L1JetParticle::L1JetParticle
(
const
LorentzVector
&
p4
,
37
const
edm::Ref< L1GctJetCandCollection >
& aRef,
38
int
bx )
39
: LeafCandidate( ( char ) 0, p4 ),
40
ref_( aRef ),
41
bx_( bx )
42
{
43
if
(
ref_
.
isNonnull
() )
44
{
45
type_
=
gctJetCand
()->
isTau
() ?
kTau
:
46
(
gctJetCand
()->
isForward
() ?
kForward
:
kCentral
) ;
47
}
48
}
49
50
L1JetParticle::L1JetParticle
(
const
PolarLorentzVector
&
p4
,
51
const
edm::Ref< L1GctJetCandCollection >
& aRef,
52
int
bx )
53
: LeafCandidate( ( char ) 0, p4 ),
54
ref_( aRef ),
55
bx_( bx )
56
{
57
if
(
ref_
.
isNonnull
() )
58
{
59
type_
=
gctJetCand
()->
isTau
() ?
kTau
:
60
(
gctJetCand
()->
isForward
() ?
kForward
:
kCentral
) ;
61
}
62
}
63
64
L1JetParticle::L1JetParticle
(
const
LorentzVector
&
p4
,
65
JetType
type
,
66
int
bx )
67
: LeafCandidate( ( char ) 0, p4 ),
68
type_( type ),
69
ref_( edm::
Ref
<
L1GctJetCandCollection
>() ),
70
bx_( bx )
71
{
72
}
73
74
L1JetParticle::L1JetParticle
(
const
PolarLorentzVector
&
p4
,
75
JetType
type
,
76
int
bx )
77
: LeafCandidate( ( char ) 0, p4 ),
78
type_( type ),
79
ref_( edm::
Ref
<
L1GctJetCandCollection
>() ),
80
bx_( bx )
81
{
82
}
83
84
// L1JetParticle::L1JetParticle(const L1JetParticle& rhs)
85
// {
86
// // do actual copying here;
87
// }
88
89
// L1JetParticle::~L1JetParticle()
90
// {
91
// }
92
93
//
94
// assignment operators
95
//
96
// const L1JetParticle& L1JetParticle::operator=(const L1JetParticle& rhs)
97
// {
98
// //An exception safe implementation is
99
// L1JetParticle temp(rhs);
100
// swap(rhs);
101
//
102
// return *this;
103
// }
104
105
//
106
// member functions
107
//
108
109
//
110
// const member functions
111
//
112
113
//
114
// static member functions
115
//
type
type
Definition:
HCALResponse.h:22
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:33
l1extra::L1JetParticle::type_
JetType type_
Definition:
L1JetParticle.h:94
L1GctJetCand::isForward
bool isForward() const
check if this is a forward jet
Definition:
L1GctJetCand.h:71
l1extra::L1JetParticle::L1JetParticle
L1JetParticle()
Definition:
L1JetParticle.cc:32
l1extra::L1JetParticle::ref_
edm::Ref< L1GctJetCandCollection > ref_
Definition:
L1JetParticle.h:95
L1GctJetCandCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
Definition:
L1GctCollections.h:31
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition:
Ref.h:250
l1extra::L1JetParticle::kCentral
Definition:
L1JetParticle.h:35
L1JetParticle.h
l1extra::L1JetParticle::JetType
JetType
Definition:
L1JetParticle.h:33
l1extra::L1JetParticle::kTau
Definition:
L1JetParticle.h:37
p4
double p4[4]
Definition:
TauolaWrapper.h:92
l1extra::L1JetParticle::gctJetCand
const L1GctJetCand * gctJetCand() const
Definition:
L1JetParticle.h:70
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:38
l1extra::L1JetParticle::kForward
Definition:
L1JetParticle.h:36
edm::Ref< L1GctJetCandCollection >
reco::Candidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
Candidate.h:40
Generated for CMSSW Reference Manual by
1.8.5