DataFormats
L1Trigger
interface
L1EmParticle.h
Go to the documentation of this file.
1
#ifndef L1Trigger_L1EmParticle_h
2
#define L1Trigger_L1EmParticle_h
3
// -*- C++ -*-
4
//
5
// Package: L1Trigger
6
// Class : L1EmParticle
7
//
12
//
13
// Original Author: Werner Sun
14
// Created: Sat Jul 15 12:41:07 EDT 2006
15
//
16
17
// system include files
18
19
// user include files
20
#include "
DataFormats/Candidate/interface/LeafCandidate.h
"
21
#include "
DataFormats/L1GlobalCaloTrigger/interface/L1GctCollections.h
"
22
#include "
DataFormats/Common/interface/Ref.h
"
23
24
// forward declarations
25
26
namespace
l1extra
{
27
28
class
L1EmParticle
:
public
reco::LeafCandidate
{
29
public
:
30
enum
EmType
{
kIsolated
,
kNonIsolated
,
kUndefined
,
kNumOfEmTypes
};
31
32
L1EmParticle
();
33
34
L1EmParticle
(
const
LorentzVector
&
p4
,
const
edm::Ref<L1GctEmCandCollection>
& aRef,
int
bx
= 0);
35
36
L1EmParticle
(
const
PolarLorentzVector
&
p4
,
const
edm::Ref<L1GctEmCandCollection>
& aRef,
int
bx
= 0);
37
38
// Creates null Ref.
39
L1EmParticle
(
const
LorentzVector
&
p4
,
EmType
type
=
kUndefined
,
int
bx
= 0);
40
41
L1EmParticle
(
const
PolarLorentzVector
&
p4
,
EmType
type
=
kUndefined
,
int
bx
= 0);
42
43
~L1EmParticle
()
override
{}
44
45
// ---------- const member functions ---------------------
46
EmType
type
()
const
{
return
type_
; }
47
48
const
edm::Ref<L1GctEmCandCollection>
&
gctEmCandRef
()
const
{
return
ref_
; }
49
50
const
L1GctEmCand
*
gctEmCand
()
const
{
return
ref_
.
get
(); }
51
52
L1EmParticle
*
clone
()
const override
{
return
new
L1EmParticle
(*
this
); }
53
54
int
bx
()
const
{
return
bx_
; }
55
56
// ---------- static member functions --------------------
57
58
// ---------- member functions ---------------------------
59
void
setType
(
EmType
type
) {
type_
=
type
; }
60
61
void
setBx
(
int
bx
) {
bx_
=
bx
; }
62
63
private
:
64
// L1EmParticle(const L1EmParticle&); // stop default
65
66
// const L1EmParticle& operator=(const L1EmParticle&); // stop default
67
68
// ---------- member data --------------------------------
69
EmType
type_
;
70
edm::Ref<L1GctEmCandCollection>
ref_
;
71
int
bx_
;
72
};
73
}
// namespace l1extra
74
75
#endif
l1extra::L1EmParticle::kNumOfEmTypes
Definition:
L1EmParticle.h:30
l1extra::L1EmParticle::bx_
int bx_
Definition:
L1EmParticle.h:71
L1GctCollections.h
l1extra::L1EmParticle::L1EmParticle
L1EmParticle()
Definition:
L1EmParticle.cc:31
L1GctEmCand
Level-1 Trigger EM candidate at output of GCT.
Definition:
L1GctEmCand.h:21
l1extra::L1EmParticle::setBx
void setBx(int bx)
Definition:
L1EmParticle.h:61
edm::Ref::get
T const * get() const
Returns C++ pointer to the item.
Definition:
Ref.h:232
l1extra::L1EmParticle::gctEmCandRef
const edm::Ref< L1GctEmCandCollection > & gctEmCandRef() const
Definition:
L1EmParticle.h:48
l1extra::L1EmParticle::kNonIsolated
Definition:
L1EmParticle.h:30
l1extra::L1EmParticle::type_
EmType type_
Definition:
L1EmParticle.h:69
edm::Ref< L1GctEmCandCollection >
l1extra::L1EmParticle::clone
L1EmParticle * clone() const override
returns a clone of the Candidate object
Definition:
L1EmParticle.h:52
l1extra::L1EmParticle::ref_
edm::Ref< L1GctEmCandCollection > ref_
Definition:
L1EmParticle.h:70
l1extra::L1EmParticle
Definition:
L1EmParticle.h:28
reco::LeafCandidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
LeafCandidate.h:25
LeafCandidate.h
l1extra::L1EmParticle::kUndefined
Definition:
L1EmParticle.h:30
l1extra::L1EmParticle::bx
int bx() const
Definition:
L1EmParticle.h:54
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:37
l1extra::L1EmParticle::type
EmType type() const
Definition:
L1EmParticle.h:46
l1extra::L1EmParticle::gctEmCand
const L1GctEmCand * gctEmCand() const
Definition:
L1EmParticle.h:50
l1extra::L1EmParticle::kIsolated
Definition:
L1EmParticle.h:30
l1extra::L1EmParticle::EmType
EmType
Definition:
L1EmParticle.h:30
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition:
LeafCandidate.h:114
Ref.h
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition:
HLTMuonMatchAndPlot.h:49
l1extra::L1EmParticle::~L1EmParticle
~L1EmParticle() override
Definition:
L1EmParticle.h:43
l1extra::L1EmParticle::setType
void setType(EmType type)
Definition:
L1EmParticle.h:59
reco::LeafCandidate
Definition:
LeafCandidate.h:16
l1extra
Definition:
L1EmParticle.h:26
Generated for CMSSW Reference Manual by
1.8.16