Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
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
L1EmParticle::L1EmParticle
(
const
LorentzVector
& p4,
const
edm::Ref<L1GctEmCandCollection>
& aRef,
int
bx
)
34
: LeafCandidate((char)0, p4), ref_(aRef), bx_(bx) {
35
if
(
ref_
.
isNonnull
()) {
36
type_
=
gctEmCand
()->
isolated
() ?
kIsolated
:
kNonIsolated
;
37
}
38
}
39
40
L1EmParticle::L1EmParticle
(
const
PolarLorentzVector
& p4,
const
edm::Ref<L1GctEmCandCollection>
& aRef,
int
bx
)
41
: LeafCandidate((char)0, p4), ref_(aRef), bx_(bx) {
42
if
(
ref_
.
isNonnull
()) {
43
type_
=
gctEmCand
()->
isolated
() ?
kIsolated
:
kNonIsolated
;
44
}
45
}
46
47
L1EmParticle::L1EmParticle
(
const
LorentzVector
& p4,
EmType
type
,
int
bx
)
48
: LeafCandidate((char)0, p4), type_(type), ref_(edm::
Ref
<
L1GctEmCandCollection
>()), bx_(bx) {}
49
50
L1EmParticle::L1EmParticle
(
const
PolarLorentzVector
& p4,
EmType
type
,
int
bx
)
51
: LeafCandidate((char)0, p4), type_(type), ref_(edm::
Ref
<
L1GctEmCandCollection
>()), bx_(bx) {}
52
53
// L1EmParticle::L1EmParticle(const L1EmParticle& rhs)
54
// {
55
// // do actual copying here;
56
// }
57
58
// L1EmParticle::~L1EmParticle()
59
// {
60
// }
61
62
//
63
// assignment operators
64
//
65
// const L1EmParticle& L1EmParticle::operator=(const L1EmParticle& rhs)
66
// {
67
// //An exception safe implementation is
68
// L1EmParticle 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::L1EmParticle::kNonIsolated
Definition:
L1EmParticle.h:30
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:238
L1EmParticle.h
edm::Ref< L1GctEmCandCollection >
l1extra::L1EmParticle::gctEmCand
const L1GctEmCand * gctEmCand() const
Definition:
L1EmParticle.h:50
l1extra::L1EmParticle::ref_
edm::Ref< L1GctEmCandCollection > ref_
Definition:
L1EmParticle.h:70
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:39
l1extra::L1EmParticle::type_
EmType type_
Definition:
L1EmParticle.h:69
l1extra::L1EmParticle::EmType
EmType
Definition:
L1EmParticle.h:30
L1GctEmCand::isolated
bool isolated() const
which stream did this come from
Definition:
L1GctEmCand.h:71
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:36
makePileupJSON.bx
tuple bx
Definition:
makePileupJSON.py:40
l1extra::L1EmParticle::kIsolated
Definition:
L1EmParticle.h:30
L1GctEmCandCollection
std::vector< L1GctEmCand > L1GctEmCandCollection
Definition:
L1GctCollections.h:30
reco::Candidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
Candidate.h:38
Generated for CMSSW Reference Manual by
1.8.5