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
// $Id: L1JetParticle.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
L1JetParticle
:
public
reco::LeafCandidate
30
{
31
32
public
:
33
enum
JetType
34
{
35
kCentral
,
36
kForward
,
37
kTau
,
38
kUndefined
,
39
kNumOfJetTypes
40
} ;
41
42
L1JetParticle
();
43
44
L1JetParticle
(
const
LorentzVector
&
p4
,
45
const
edm::Ref< L1GctJetCandCollection >
& aRef,
46
int
bx
= 0 ) ;
47
48
L1JetParticle
(
const
PolarLorentzVector
&
p4
,
49
const
edm::Ref< L1GctJetCandCollection >
& aRef,
50
int
bx
= 0 ) ;
51
52
// Creates null Ref.
53
L1JetParticle
(
const
LorentzVector
&
p4
,
54
JetType
type
=
kUndefined
,
55
int
bx
= 0 ) ;
56
57
L1JetParticle
(
const
PolarLorentzVector
&
p4
,
58
JetType
type
=
kUndefined
,
59
int
bx
= 0 ) ;
60
61
virtual
~L1JetParticle
() {}
62
63
// ---------- const member functions ---------------------
64
JetType
type
()
const
65
{
return
type_
; }
66
67
const
edm::Ref< L1GctJetCandCollection >
&
gctJetCandRef
()
const
68
{
return
ref_
; }
69
70
const
L1GctJetCand
*
gctJetCand
()
const
71
{
return
ref_
.
get
() ; }
72
73
virtual
L1JetParticle
*
clone
()
const
74
{
return
new
L1JetParticle
( *
this
) ; }
75
76
int
bx
()
const
77
{
return
bx_
; }
78
79
// ---------- static member functions --------------------
80
81
// ---------- member functions ---------------------------
82
void
setType
(
JetType
type
)
83
{
type_
=
type
; }
84
85
void
setBx
(
int
bx
)
86
{
bx_
=
bx
; }
87
88
private
:
89
// L1JetParticle(const L1JetParticle&); // stop default
90
91
// const L1JetParticle& operator=(const L1JetParticle&); // stop default
92
93
// ---------- member data --------------------------------
94
JetType
type_
;
95
edm::Ref< L1GctJetCandCollection >
ref_
;
96
int
bx_
;
97
};
98
}
99
100
#endif
type
type
Definition:
HCALResponse.h:21
reco::LeafCandidate
Definition:
LeafCandidate.h:19
l1extra::L1JetParticle::setType
void setType(JetType type)
Definition:
L1JetParticle.h:82
l1extra::L1JetParticle::setBx
void setBx(int bx)
Definition:
L1JetParticle.h:85
l1extra::L1JetParticle::clone
virtual L1JetParticle * clone() const
returns a clone of the Candidate object
Definition:
L1JetParticle.h:73
l1extra::L1JetParticle::bx
int bx() const
Definition:
L1JetParticle.h:76
reco::LeafCandidate::p4
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
Definition:
LeafCandidate.h:123
LeafCandidate.h
l1extra::L1JetParticle::type_
JetType type_
Definition:
L1JetParticle.h:94
l1extra::L1JetParticle
Definition:
L1JetParticle.h:29
reco::LeafCandidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
LeafCandidate.h:28
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition:
HLTMuonMatchAndPlot.h:57
L1GctJetCand
Level-1 Trigger jet candidate.
Definition:
L1GctJetCand.h:18
l1extra::L1JetParticle::~L1JetParticle
virtual ~L1JetParticle()
Definition:
L1JetParticle.h:61
l1extra::L1JetParticle::type
JetType type() const
Definition:
L1JetParticle.h:64
l1extra::L1JetParticle::L1JetParticle
L1JetParticle()
Definition:
L1JetParticle.cc:32
l1extra::L1JetParticle::ref_
edm::Ref< L1GctJetCandCollection > ref_
Definition:
L1JetParticle.h:95
l1extra::L1JetParticle::kNumOfJetTypes
Definition:
L1JetParticle.h:39
l1extra::L1JetParticle::kCentral
Definition:
L1JetParticle.h:35
l1extra::L1JetParticle::JetType
JetType
Definition:
L1JetParticle.h:33
l1extra::L1JetParticle::kTau
Definition:
L1JetParticle.h:37
l1extra::L1JetParticle::gctJetCand
const L1GctJetCand * gctJetCand() const
Definition:
L1JetParticle.h:70
l1extra::L1JetParticle::kUndefined
Definition:
L1JetParticle.h:38
L1GctCollections.h
Ref.h
l1extra::L1JetParticle::bx_
int bx_
Definition:
L1JetParticle.h:96
l1extra::L1JetParticle::gctJetCandRef
const edm::Ref< L1GctJetCandCollection > & gctJetCandRef() const
Definition:
L1JetParticle.h:67
l1extra::L1JetParticle::kForward
Definition:
L1JetParticle.h:36
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