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
// $Id: L1EmParticle.h,v 1.12 2008/04/03 03:37:20 wsun Exp $
16
//
17
18
// system include files
19
20
// user include files
21
#include "
DataFormats/Candidate/interface/LeafCandidate.h
"
22
#include "
DataFormats/L1GlobalCaloTrigger/interface/L1GctCollections.h
"
23
#include "
DataFormats/Common/interface/Ref.h
"
24
25
// forward declarations
26
27
namespace
l1extra {
28
29
class
L1EmParticle
:
public
reco::LeafCandidate
30
{
31
32
public
:
33
enum
EmType
34
{
35
kIsolated
,
36
kNonIsolated
,
37
kUndefined
,
38
kNumOfEmTypes
39
} ;
40
41
L1EmParticle
();
42
43
L1EmParticle
(
const
LorentzVector
&
p4
,
44
const
edm::Ref< L1GctEmCandCollection >
& aRef,
45
int
bx
= 0 ) ;
46
47
L1EmParticle
(
const
PolarLorentzVector
&
p4
,
48
const
edm::Ref< L1GctEmCandCollection >
& aRef,
49
int
bx
= 0 ) ;
50
51
// Creates null Ref.
52
L1EmParticle
(
const
LorentzVector
&
p4
,
53
EmType
type
=
kUndefined
,
54
int
bx
= 0 ) ;
55
56
L1EmParticle
(
const
PolarLorentzVector
&
p4
,
57
EmType
type
=
kUndefined
,
58
int
bx
= 0 ) ;
59
60
virtual
~L1EmParticle
() {}
61
62
// ---------- const member functions ---------------------
63
EmType
type
()
const
64
{
return
type_
; }
65
66
const
edm::Ref< L1GctEmCandCollection >
&
gctEmCandRef
()
const
67
{
return
ref_
; }
68
69
const
L1GctEmCand
*
gctEmCand
()
const
70
{
return
ref_
.
get
() ; }
71
72
virtual
L1EmParticle
*
clone
()
const
73
{
return
new
L1EmParticle
( *
this
) ; }
74
75
int
bx
()
const
76
{
return
bx_
; }
77
78
// ---------- static member functions --------------------
79
80
// ---------- member functions ---------------------------
81
void
setType
(
EmType
type
)
82
{
type_
=
type
; }
83
84
void
setBx
(
int
bx
)
85
{
bx_
=
bx
; }
86
87
private
:
88
// L1EmParticle(const L1EmParticle&); // stop default
89
90
// const L1EmParticle& operator=(const L1EmParticle&); // stop default
91
92
// ---------- member data --------------------------------
93
EmType
type_
;
94
edm::Ref< L1GctEmCandCollection >
ref_
;
95
int
bx_
;
96
};
97
}
98
99
#endif
type
type
Definition:
HCALResponse.h:22
reco::LeafCandidate
Definition:
LeafCandidate.h:18
l1extra::L1EmParticle::kNonIsolated
Definition:
L1EmParticle.h:36
l1extra::L1EmParticle::bx_
int bx_
Definition:
L1EmParticle.h:95
l1extra::L1EmParticle::L1EmParticle
L1EmParticle()
Definition:
L1EmParticle.cc:32
l1extra::L1EmParticle::gctEmCandRef
const edm::Ref< L1GctEmCandCollection > & gctEmCandRef() const
Definition:
L1EmParticle.h:66
l1extra::L1EmParticle::kNumOfEmTypes
Definition:
L1EmParticle.h:38
LeafCandidate.h
l1extra::L1EmParticle::clone
virtual L1EmParticle * clone() const
returns a clone of the Candidate object
Definition:
L1EmParticle.h:72
reco::LeafCandidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
LeafCandidate.h:27
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition:
HLTMuonMatchAndPlot.h:57
l1extra::L1EmParticle::gctEmCand
const L1GctEmCand * gctEmCand() const
Definition:
L1EmParticle.h:69
l1extra::L1EmParticle::type
EmType type() const
Definition:
L1EmParticle.h:63
l1extra::L1EmParticle::kUndefined
Definition:
L1EmParticle.h:37
l1extra::L1EmParticle::setBx
void setBx(int bx)
Definition:
L1EmParticle.h:84
L1GctEmCand
Level-1 Trigger EM candidate at output of GCT.
Definition:
L1GctEmCand.h:22
l1extra::L1EmParticle::type_
EmType type_
Definition:
L1EmParticle.h:93
l1extra::L1EmParticle::~L1EmParticle
virtual ~L1EmParticle()
Definition:
L1EmParticle.h:60
l1extra::L1EmParticle
Definition:
L1EmParticle.h:29
L1GctCollections.h
Ref.h
l1extra::L1EmParticle::EmType
EmType
Definition:
L1EmParticle.h:33
l1extra::L1EmParticle::ref_
edm::Ref< L1GctEmCandCollection > ref_
Definition:
L1EmParticle.h:94
l1extra::L1EmParticle::bx
int bx() const
Definition:
L1EmParticle.h:75
l1extra::L1EmParticle::kIsolated
Definition:
L1EmParticle.h:35
edm::Ref::get
T const * get() const
Returns C++ pointer to the item.
Definition:
Ref.h:242
l1extra::L1EmParticle::setType
void setType(EmType type)
Definition:
L1EmParticle.h:81
reco::LeafCandidate::p4
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
Definition:
LeafCandidate.h:108
edm::Ref< L1GctEmCandCollection >
Generated for CMSSW Reference Manual by
1.8.5