test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
L1Trigger
src
L1EmParticle.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: L1Trigger
4
// Class : L1EmParticle
5
//
8
//
9
// Original Author: Werner Sun
10
// Created: Tue Jul 25 15:56:47 EDT 2006
11
//
12
13
// system include files
14
15
// user include files
16
#include "
DataFormats/L1Trigger/interface/L1EmParticle.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
L1EmParticle::L1EmParticle
()
32
{
33
}
34
35
L1EmParticle::L1EmParticle
(
const
LorentzVector
&
p4
,
36
const
edm::Ref< L1GctEmCandCollection >
& aRef,
37
int
bx )
38
: LeafCandidate( (
char
) 0, p4 ),
39
ref_( aRef ),
40
bx_( bx )
41
{
42
if
(
ref_
.
isNonnull
() )
43
{
44
type_
=
gctEmCand
()->
isolated
() ?
kIsolated
:
kNonIsolated
;
45
}
46
}
47
48
L1EmParticle::L1EmParticle
(
const
PolarLorentzVector
&
p4
,
49
const
edm::Ref< L1GctEmCandCollection >
& aRef,
50
int
bx )
51
: LeafCandidate( (
char
) 0, p4 ),
52
ref_( aRef ),
53
bx_( bx )
54
{
55
if
(
ref_
.
isNonnull
() )
56
{
57
type_
=
gctEmCand
()->
isolated
() ?
kIsolated
:
kNonIsolated
;
58
}
59
}
60
61
L1EmParticle::L1EmParticle
(
const
LorentzVector
&
p4
,
62
EmType
type
,
63
int
bx )
64
: LeafCandidate( (
char
) 0, p4 ),
65
type_( type ),
66
ref_( edm::
Ref
<
L1GctEmCandCollection
>() ),
67
bx_( bx )
68
{
69
}
70
71
L1EmParticle::L1EmParticle
(
const
PolarLorentzVector
&
p4
,
72
EmType
type
,
73
int
bx )
74
: LeafCandidate( (
char
) 0, p4 ),
75
type_( type ),
76
ref_( edm::
Ref
<
L1GctEmCandCollection
>() ),
77
bx_( bx )
78
{
79
}
80
81
// L1EmParticle::L1EmParticle(const L1EmParticle& rhs)
82
// {
83
// // do actual copying here;
84
// }
85
86
// L1EmParticle::~L1EmParticle()
87
// {
88
// }
89
90
//
91
// assignment operators
92
//
93
// const L1EmParticle& L1EmParticle::operator=(const L1EmParticle& rhs)
94
// {
95
// //An exception safe implementation is
96
// L1EmParticle temp(rhs);
97
// swap(rhs);
98
//
99
// return *this;
100
// }
101
102
//
103
// member functions
104
//
105
106
//
107
// const member functions
108
//
109
110
//
111
// static member functions
112
//
type
type
Definition:
HCALResponse.h:21
l1extra::L1EmParticle::kNonIsolated
Definition:
L1EmParticle.h:35
reco::JetExtendedAssociation::Ref
edm::Ref< Container > Ref
Definition:
JetExtendedAssociation.h:32
l1extra::L1EmParticle::L1EmParticle
L1EmParticle()
Definition:
L1EmParticle.cc:31
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition:
Ref.h:252
L1EmParticle.h
edm::Ref< L1GctEmCandCollection >
l1extra::L1EmParticle::gctEmCand
const L1GctEmCand * gctEmCand() const
Definition:
L1EmParticle.h:68
hitfit::char
char
Definition:
Lepjets_Event_Jet.cc:254
l1extra::L1EmParticle::type_
EmType type_
Definition:
L1EmParticle.h:92
p4
double p4[4]
Definition:
TauolaWrapper.h:92
l1extra::L1EmParticle::EmType
EmType
Definition:
L1EmParticle.h:32
L1GctEmCand::isolated
bool isolated() const
which stream did this come from
Definition:
L1GctEmCand.h:73
l1extra::L1EmParticle::ref_
edm::Ref< L1GctEmCandCollection > ref_
Definition:
L1EmParticle.h:93
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:37
l1extra::L1EmParticle::kIsolated
Definition:
L1EmParticle.h:34
L1GctEmCandCollection
std::vector< L1GctEmCand > L1GctEmCandCollection
Definition:
L1GctCollections.h:30
reco::Candidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
Candidate.h:39
Generated for CMSSW Reference Manual by
1.8.5