#include <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 () | |
L1JetParticle (const LorentzVector &p4, JetType type=kUndefined, int bx=0) | |
L1JetParticle (const LorentzVector &p4, const edm::Ref< L1GctJetCandCollection > &aRef, int bx=0) | |
L1JetParticle (const PolarLorentzVector &p4, JetType type=kUndefined, int bx=0) | |
L1JetParticle (const PolarLorentzVector &p4, const edm::Ref< L1GctJetCandCollection > &aRef, int bx=0) | |
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.
{ kCentral, kForward, kTau, kUndefined, kNumOfJetTypes } ;
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(), edm::Ref< C, T, F >::isNonnull(), L1GctJetCand::isTau(), kCentral, kForward, kTau, ref_, and type_.
: LeafCandidate( ( char ) 0, p4 ), ref_( aRef ), bx_( bx ) { if( ref_.isNonnull() ) { type_ = gctJetCand()->isTau() ? kTau : ( gctJetCand()->isForward() ? kForward : kCentral ) ; } }
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(), edm::Ref< C, T, F >::isNonnull(), L1GctJetCand::isTau(), kCentral, kForward, kTau, ref_, and type_.
: LeafCandidate( ( char ) 0, p4 ), ref_( aRef ), bx_( bx ) { if( ref_.isNonnull() ) { type_ = gctJetCand()->isTau() ? kTau : ( gctJetCand()->isForward() ? kForward : kCentral ) ; } }
L1JetParticle::L1JetParticle | ( | const LorentzVector & | p4, |
JetType | type = kUndefined , |
||
int | bx = 0 |
||
) |
Definition at line 64 of file L1JetParticle.cc.
: LeafCandidate( ( char ) 0, p4 ), type_( type ), ref_( edm::Ref< L1GctJetCandCollection >() ), bx_( bx ) { }
L1JetParticle::L1JetParticle | ( | const PolarLorentzVector & | p4, |
JetType | type = kUndefined , |
||
int | bx = 0 |
||
) |
Definition at line 74 of file L1JetParticle.cc.
: LeafCandidate( ( char ) 0, p4 ), type_( type ), ref_( edm::Ref< L1GctJetCandCollection >() ), bx_( bx ) { }
virtual l1extra::L1JetParticle::~L1JetParticle | ( | ) | [inline, virtual] |
Definition at line 61 of file L1JetParticle.h.
{}
int l1extra::L1JetParticle::bx | ( | ) | const [inline] |
Definition at line 76 of file L1JetParticle.h.
References bx_.
Referenced by setBx().
{ return bx_ ; }
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().
{ return new L1JetParticle( *this ) ; }
const L1GctJetCand* l1extra::L1JetParticle::gctJetCand | ( | ) | const [inline] |
Definition at line 70 of file L1JetParticle.h.
References edm::Ref< C, T, F >::get(), and ref_.
Referenced by L1JetParticle().
const edm::Ref< L1GctJetCandCollection >& l1extra::L1JetParticle::gctJetCandRef | ( | ) | const [inline] |
void l1extra::L1JetParticle::setBx | ( | int | bx | ) | [inline] |
void l1extra::L1JetParticle::setType | ( | JetType | type | ) | [inline] |
JetType l1extra::L1JetParticle::type | ( | ) | const [inline] |
Definition at line 64 of file L1JetParticle.h.
References type_.
Referenced by setType().
{ return type_ ; }
int l1extra::L1JetParticle::bx_ [private] |
Definition at line 96 of file L1JetParticle.h.
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().