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
// $Id: L1EmParticle.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/L1EmParticle.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
L1EmParticle::L1EmParticle
()
33
{
34
}
35
36
L1EmParticle::L1EmParticle
(
const
LorentzVector
&
p4
,
37
const
edm::Ref< L1GctEmCandCollection >
& aRef,
38
int
bx )
39
: LeafCandidate( ( char ) 0, p4 ),
40
ref_( aRef ),
41
bx_( bx )
42
{
43
if
(
ref_
.
isNonnull
() )
44
{
45
type_
=
gctEmCand
()->
isolated
() ?
kIsolated
:
kNonIsolated
;
46
}
47
}
48
49
L1EmParticle::L1EmParticle
(
const
PolarLorentzVector
&
p4
,
50
const
edm::Ref< L1GctEmCandCollection >
& aRef,
51
int
bx )
52
: LeafCandidate( ( char ) 0, p4 ),
53
ref_( aRef ),
54
bx_( bx )
55
{
56
if
(
ref_
.
isNonnull
() )
57
{
58
type_
=
gctEmCand
()->
isolated
() ?
kIsolated
:
kNonIsolated
;
59
}
60
}
61
62
L1EmParticle::L1EmParticle
(
const
LorentzVector
&
p4
,
63
EmType
type
,
64
int
bx )
65
: LeafCandidate( ( char ) 0, p4 ),
66
type_( type ),
67
ref_( edm::
Ref
<
L1GctEmCandCollection
>() ),
68
bx_( bx )
69
{
70
}
71
72
L1EmParticle::L1EmParticle
(
const
PolarLorentzVector
&
p4
,
73
EmType
type
,
74
int
bx )
75
: LeafCandidate( ( char ) 0, p4 ),
76
type_( type ),
77
ref_( edm::
Ref
<
L1GctEmCandCollection
>() ),
78
bx_( bx )
79
{
80
}
81
82
// L1EmParticle::L1EmParticle(const L1EmParticle& rhs)
83
// {
84
// // do actual copying here;
85
// }
86
87
// L1EmParticle::~L1EmParticle()
88
// {
89
// }
90
91
//
92
// assignment operators
93
//
94
// const L1EmParticle& L1EmParticle::operator=(const L1EmParticle& rhs)
95
// {
96
// //An exception safe implementation is
97
// L1EmParticle temp(rhs);
98
// swap(rhs);
99
//
100
// return *this;
101
// }
102
103
//
104
// member functions
105
//
106
107
//
108
// const member functions
109
//
110
111
//
112
// static member functions
113
//
type
type
Definition:
HCALResponse.h:22
l1extra::L1EmParticle::kNonIsolated
Definition:
L1EmParticle.h:36
reco::JetExtendedAssociation::Ref
edm::Ref< Container > Ref
Definition:
JetExtendedAssociation.h:33
l1extra::L1EmParticle::L1EmParticle
L1EmParticle()
Definition:
L1EmParticle.cc:32
L1EmParticle.h
l1extra::L1EmParticle::gctEmCand
const L1GctEmCand * gctEmCand() const
Definition:
L1EmParticle.h:69
l1extra::L1EmParticle::type_
EmType type_
Definition:
L1EmParticle.h:93
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition:
Ref.h:250
p4
double p4[4]
Definition:
TauolaWrapper.h:92
l1extra::L1EmParticle::EmType
EmType
Definition:
L1EmParticle.h:33
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:94
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:38
l1extra::L1EmParticle::kIsolated
Definition:
L1EmParticle.h:35
edm::Ref< L1GctEmCandCollection >
L1GctEmCandCollection
std::vector< L1GctEmCand > L1GctEmCandCollection
Definition:
L1GctCollections.h:30
reco::Candidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
Candidate.h:40
Generated for CMSSW Reference Manual by
1.8.5