#include <DataFormats/L1Trigger/interface/L1JetParticle.h>
Public Types | |
enum | JetType { kCentral, kForward, kTau, kUndefined, kNumOfJetTypes } |
Public Member Functions | |
int | bx () const |
virtual L1JetParticle * | clone () const |
returns a clone of the Candidate object | |
const L1GctJetCand * | gctJetCand () const |
const edm::Ref < L1GctJetCandCollection > & | gctJetCandRef () const |
L1JetParticle (const PolarLorentzVector &p4, JetType type=kUndefined, int bx=0) | |
L1JetParticle (const LorentzVector &p4, JetType type=kUndefined, int bx=0) | |
L1JetParticle (const PolarLorentzVector &p4, const edm::Ref< L1GctJetCandCollection > &aRef, int bx=0) | |
L1JetParticle (const LorentzVector &p4, const edm::Ref< L1GctJetCandCollection > &aRef, int bx=0) | |
L1JetParticle () | |
void | setBx (int bx) |
void | setType (JetType type) |
JetType | type () const |
virtual | ~L1JetParticle () |
Private Attributes | |
int | bx_ |
edm::Ref< L1GctJetCandCollection > | ref_ |
JetType | type_ |
Definition at line 29 of file L1JetParticle.h.
Definition at line 33 of file L1JetParticle.h.
00034 { 00035 kCentral, 00036 kForward, 00037 kTau, 00038 kUndefined, 00039 kNumOfJetTypes 00040 } ;
L1JetParticle::L1JetParticle | ( | ) |
L1JetParticle::L1JetParticle | ( | const LorentzVector & | p4, | |
const edm::Ref< L1GctJetCandCollection > & | aRef, | |||
int | bx = 0 | |||
) |
Definition at line 36 of file L1JetParticle.cc.
References gctJetCand(), L1GctJetCand::isForward(), L1GctJetCand::isTau(), kCentral, kForward, kTau, ref_, and type_.
00039 : LeafCandidate( ( char ) 0, p4 ), 00040 ref_( aRef ), 00041 bx_( bx ) 00042 { 00043 if( ref_.isNonnull() ) 00044 { 00045 type_ = gctJetCand()->isTau() ? kTau : 00046 ( gctJetCand()->isForward() ? kForward : kCentral ) ; 00047 } 00048 }
L1JetParticle::L1JetParticle | ( | const PolarLorentzVector & | p4, | |
const edm::Ref< L1GctJetCandCollection > & | aRef, | |||
int | bx = 0 | |||
) |
Definition at line 50 of file L1JetParticle.cc.
References gctJetCand(), L1GctJetCand::isForward(), L1GctJetCand::isTau(), kCentral, kForward, kTau, ref_, and type_.
00053 : LeafCandidate( ( char ) 0, p4 ), 00054 ref_( aRef ), 00055 bx_( bx ) 00056 { 00057 if( ref_.isNonnull() ) 00058 { 00059 type_ = gctJetCand()->isTau() ? kTau : 00060 ( gctJetCand()->isForward() ? kForward : kCentral ) ; 00061 } 00062 }
L1JetParticle::L1JetParticle | ( | const LorentzVector & | p4, | |
JetType | type = kUndefined , |
|||
int | bx = 0 | |||
) |
Definition at line 64 of file L1JetParticle.cc.
00067 : LeafCandidate( ( char ) 0, p4 ), 00068 type_( type ), 00069 ref_( edm::Ref< L1GctJetCandCollection >() ), 00070 bx_( bx ) 00071 { 00072 }
L1JetParticle::L1JetParticle | ( | const PolarLorentzVector & | p4, | |
JetType | type = kUndefined , |
|||
int | bx = 0 | |||
) |
Definition at line 74 of file L1JetParticle.cc.
00077 : LeafCandidate( ( char ) 0, p4 ), 00078 type_( type ), 00079 ref_( edm::Ref< L1GctJetCandCollection >() ), 00080 bx_( bx ) 00081 { 00082 }
virtual l1extra::L1JetParticle::~L1JetParticle | ( | ) | [inline, virtual] |
int l1extra::L1JetParticle::bx | ( | ) | const [inline] |
virtual L1JetParticle* l1extra::L1JetParticle::clone | ( | void | ) | const [inline, virtual] |
returns a clone of the Candidate object
Reimplemented from reco::LeafCandidate.
Definition at line 73 of file L1JetParticle.h.
References L1JetParticle().
00074 { return new L1JetParticle( *this ) ; }
const L1GctJetCand* l1extra::L1JetParticle::gctJetCand | ( | ) | const [inline] |
Definition at line 70 of file L1JetParticle.h.
References ref_.
Referenced by L1JetParticle().
00071 { return ref_.get() ; }
const edm::Ref< L1GctJetCandCollection >& l1extra::L1JetParticle::gctJetCandRef | ( | ) | const [inline] |
JetType l1extra::L1JetParticle::type | ( | ) | const [inline] |
int l1extra::L1JetParticle::bx_ [private] |
edm::Ref< L1GctJetCandCollection > l1extra::L1JetParticle::ref_ [private] |
Definition at line 95 of file L1JetParticle.h.
Referenced by gctJetCand(), gctJetCandRef(), and L1JetParticle().
JetType l1extra::L1JetParticle::type_ [private] |
Definition at line 94 of file L1JetParticle.h.
Referenced by L1JetParticle(), setType(), and type().