Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
L1Trigger
interface
L1JetParticle.h
Go to the documentation of this file.
1
#ifndef L1Trigger_L1JetParticle_h
2
#define L1Trigger_L1JetParticle_h
3
// -*- C++ -*-
4
//
5
// Package: L1Trigger
6
// Class : L1JetParticle
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
L1JetParticle
:
public
reco::LeafCandidate
29
{
30
31
public
:
32
enum
JetType
33
{
34
kCentral
,
35
kForward
,
36
kTau
,
37
kUndefined
,
38
kNumOfJetTypes
39
} ;
40
41
L1JetParticle
();
42
43
L1JetParticle
(
const
LorentzVector
&
p4
,
44
const
edm::Ref< L1GctJetCandCollection >
& aRef,
45
int
bx
= 0 ) ;
46
47
L1JetParticle
(
const
PolarLorentzVector
&
p4
,
48
const
edm::Ref< L1GctJetCandCollection >
& aRef,
49
int
bx
= 0 ) ;
50
51
// Creates null Ref.
52
L1JetParticle
(
const
LorentzVector
&
p4
,
53
JetType
type
=
kUndefined
,
54
int
bx
= 0 ) ;
55
56
L1JetParticle
(
const
PolarLorentzVector
&
p4
,
57
JetType
type
=
kUndefined
,
58
int
bx
= 0 ) ;
59
60
virtual
~L1JetParticle
() {}
61
62
// ---------- const member functions ---------------------
63
JetType
type
()
const
64
{
return
type_
; }
65
66
const
edm::Ref< L1GctJetCandCollection >
&
gctJetCandRef
()
const
67
{
return
ref_
; }
68
69
const
L1GctJetCand
*
gctJetCand
()
const
70
{
return
ref_
.
get
() ; }
71
72
virtual
L1JetParticle
*
clone
()
const
73
{
return
new
L1JetParticle
( *
this
) ; }
74
75
int
bx
()
const
76
{
return
bx_
; }
77
78
// ---------- static member functions --------------------
79
80
// ---------- member functions ---------------------------
81
void
setType
(
JetType
type
)
82
{
type_
=
type
; }
83
84
void
setBx
(
int
bx
)
85
{
bx_
=
bx
; }
86
87
private
:
88
// L1JetParticle(const L1JetParticle&); // stop default
89
90
// const L1JetParticle& operator=(const L1JetParticle&); // stop default
91
92
// ---------- member data --------------------------------
93
JetType
type_
;
94
edm::Ref< L1GctJetCandCollection >
ref_
;
95
int
bx_
;
96
};
97
}
98
99
#endif
type
type
Definition:
HCALResponse.h:21
reco::LeafCandidate
Definition:
LeafCandidate.h:21
l1extra::L1JetParticle::setType
void setType(JetType type)
Definition:
L1JetParticle.h:81
l1extra::L1JetParticle::setBx
void setBx(int bx)
Definition:
L1JetParticle.h:84
l1extra::L1JetParticle::clone
virtual L1JetParticle * clone() const
returns a clone of the Candidate object
Definition:
L1JetParticle.h:72
l1extra::L1JetParticle::bx
int bx() const
Definition:
L1JetParticle.h:75
reco::LeafCandidate::p4
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
Definition:
LeafCandidate.h:148
LeafCandidate.h
l1extra::L1JetParticle::type_
JetType type_
Definition:
L1JetParticle.h:93
l1extra::L1JetParticle
Definition:
L1JetParticle.h:28
reco::LeafCandidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
LeafCandidate.h:30
L1GctJetCand
Level-1 Trigger jet candidate.
Definition:
L1GctJetCand.h:18
l1extra::L1JetParticle::~L1JetParticle
virtual ~L1JetParticle()
Definition:
L1JetParticle.h:60
l1extra::L1JetParticle::type
JetType type() const
Definition:
L1JetParticle.h:63
l1extra::L1JetParticle::L1JetParticle
L1JetParticle()
Definition:
L1JetParticle.cc:31
l1extra::L1JetParticle::ref_
edm::Ref< L1GctJetCandCollection > ref_
Definition:
L1JetParticle.h:94
l1extra::L1JetParticle::kNumOfJetTypes
Definition:
L1JetParticle.h:38
l1extra::L1JetParticle::kCentral
Definition:
L1JetParticle.h:34
l1extra::L1JetParticle::JetType
JetType
Definition:
L1JetParticle.h:32
l1extra::L1JetParticle::kTau
Definition:
L1JetParticle.h:36
l1extra::L1JetParticle::gctJetCand
const L1GctJetCand * gctJetCand() const
Definition:
L1JetParticle.h:69
l1extra::L1JetParticle::kUndefined
Definition:
L1JetParticle.h:37
L1GctCollections.h
Ref.h
l1extra::L1JetParticle::bx_
int bx_
Definition:
L1JetParticle.h:95
l1extra::L1JetParticle::gctJetCandRef
const edm::Ref< L1GctJetCandCollection > & gctJetCandRef() const
Definition:
L1JetParticle.h:66
l1extra::L1JetParticle::kForward
Definition:
L1JetParticle.h:35
LorentzVector
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< float > > LorentzVector
Definition:
analysisEnums.h:9
edm::Ref::get
T const * get() const
Returns C++ pointer to the item.
Definition:
Ref.h:242
edm::Ref< L1GctJetCandCollection >
Generated for CMSSW Reference Manual by
1.8.5