test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
{
30
31
public
:
32
enum
EmType
33
{
34
kIsolated
,
35
kNonIsolated
,
36
kUndefined
,
37
kNumOfEmTypes
38
} ;
39
40
L1EmParticle
();
41
42
L1EmParticle
(
const
LorentzVector
&
p4
,
43
const
edm::Ref< L1GctEmCandCollection >
& aRef,
44
int
bx
= 0 ) ;
45
46
L1EmParticle
(
const
PolarLorentzVector
&
p4
,
47
const
edm::Ref< L1GctEmCandCollection >
& aRef,
48
int
bx
= 0 ) ;
49
50
// Creates null Ref.
51
L1EmParticle
(
const
LorentzVector
&
p4
,
52
EmType
type
=
kUndefined
,
53
int
bx
= 0 ) ;
54
55
L1EmParticle
(
const
PolarLorentzVector
&
p4
,
56
EmType
type
=
kUndefined
,
57
int
bx
= 0 ) ;
58
59
virtual
~L1EmParticle
() {}
60
61
// ---------- const member functions ---------------------
62
EmType
type
()
const
63
{
return
type_
; }
64
65
const
edm::Ref< L1GctEmCandCollection >
&
gctEmCandRef
()
const
66
{
return
ref_
; }
67
68
const
L1GctEmCand
*
gctEmCand
()
const
69
{
return
ref_
.
get
() ; }
70
71
virtual
L1EmParticle
*
clone
()
const
72
{
return
new
L1EmParticle
( *
this
) ; }
73
74
int
bx
()
const
75
{
return
bx_
; }
76
77
// ---------- static member functions --------------------
78
79
// ---------- member functions ---------------------------
80
void
setType
(
EmType
type
)
81
{
type_
=
type
; }
82
83
void
setBx
(
int
bx
)
84
{
bx_
=
bx
; }
85
86
private
:
87
// L1EmParticle(const L1EmParticle&); // stop default
88
89
// const L1EmParticle& operator=(const L1EmParticle&); // stop default
90
91
// ---------- member data --------------------------------
92
EmType
type_
;
93
edm::Ref< L1GctEmCandCollection >
ref_
;
94
int
bx_
;
95
};
96
}
97
98
#endif
type
type
Definition:
HCALResponse.h:21
reco::LeafCandidate
Definition:
LeafCandidate.h:16
l1extra::L1EmParticle::kNonIsolated
Definition:
L1EmParticle.h:35
l1extra::L1EmParticle::bx_
int bx_
Definition:
L1EmParticle.h:94
l1extra::L1EmParticle::L1EmParticle
L1EmParticle()
Definition:
L1EmParticle.cc:31
l1extra::L1EmParticle::gctEmCandRef
const edm::Ref< L1GctEmCandCollection > & gctEmCandRef() const
Definition:
L1EmParticle.h:65
l1extra::L1EmParticle::kNumOfEmTypes
Definition:
L1EmParticle.h:37
LeafCandidate.h
edm::Ref< L1GctEmCandCollection >
l1extra::L1EmParticle::clone
virtual L1EmParticle * clone() const
returns a clone of the Candidate object
Definition:
L1EmParticle.h:71
reco::LeafCandidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
LeafCandidate.h:25
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition:
HLTMuonMatchAndPlot.h:51
l1extra::L1EmParticle::gctEmCand
const L1GctEmCand * gctEmCand() const
Definition:
L1EmParticle.h:68
l1extra::L1EmParticle::type
EmType type() const
Definition:
L1EmParticle.h:62
l1extra::L1EmParticle::kUndefined
Definition:
L1EmParticle.h:36
l1extra::L1EmParticle::setBx
void setBx(int bx)
Definition:
L1EmParticle.h:83
L1GctEmCand
Level-1 Trigger EM candidate at output of GCT.
Definition:
L1GctEmCand.h:22
l1extra::L1EmParticle::type_
EmType type_
Definition:
L1EmParticle.h:92
edm::Ref::get
T const * get() const
Returns C++ pointer to the item.
Definition:
Ref.h:244
l1extra::L1EmParticle::~L1EmParticle
virtual ~L1EmParticle()
Definition:
L1EmParticle.h:59
l1extra::L1EmParticle
Definition:
L1EmParticle.h:28
L1GctCollections.h
Ref.h
l1extra::L1EmParticle::EmType
EmType
Definition:
L1EmParticle.h:32
l1extra::L1EmParticle::ref_
edm::Ref< L1GctEmCandCollection > ref_
Definition:
L1EmParticle.h:93
l1extra::L1EmParticle::bx
int bx() const
Definition:
L1EmParticle.h:74
l1extra::L1EmParticle::kIsolated
Definition:
L1EmParticle.h:34
l1extra::L1EmParticle::setType
void setType(EmType type)
Definition:
L1EmParticle.h:80
reco::LeafCandidate::p4
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
Definition:
LeafCandidate.h:99
Generated for CMSSW Reference Manual by
1.8.5