#include <DataFormats/L1Trigger/interface/L1EmParticle.h>
Public Types | |
enum | EmType { kIsolated, kNonIsolated, kUndefined, kNumOfEmTypes } |
Public Member Functions | |
int | bx () const |
virtual L1EmParticle * | clone () const |
returns a clone of the Candidate object | |
const L1GctEmCand * | gctEmCand () const |
const edm::Ref < L1GctEmCandCollection > & | gctEmCandRef () const |
L1EmParticle (const PolarLorentzVector &p4, EmType type=kUndefined, int bx=0) | |
L1EmParticle (const LorentzVector &p4, EmType type=kUndefined, int bx=0) | |
L1EmParticle (const PolarLorentzVector &p4, const edm::Ref< L1GctEmCandCollection > &aRef, int bx=0) | |
L1EmParticle (const LorentzVector &p4, const edm::Ref< L1GctEmCandCollection > &aRef, int bx=0) | |
L1EmParticle () | |
void | setBx (int bx) |
void | setType (EmType type) |
EmType | type () const |
virtual | ~L1EmParticle () |
Private Attributes | |
int | bx_ |
edm::Ref< L1GctEmCandCollection > | ref_ |
EmType | type_ |
Definition at line 29 of file L1EmParticle.h.
Definition at line 33 of file L1EmParticle.h.
00034 { 00035 kIsolated, 00036 kNonIsolated, 00037 kUndefined, 00038 kNumOfEmTypes 00039 } ;
L1EmParticle::L1EmParticle | ( | ) |
L1EmParticle::L1EmParticle | ( | const LorentzVector & | p4, | |
const edm::Ref< L1GctEmCandCollection > & | aRef, | |||
int | bx = 0 | |||
) |
Definition at line 36 of file L1EmParticle.cc.
References gctEmCand(), L1GctEmCand::isolated(), kIsolated, kNonIsolated, ref_, and type_.
00039 : LeafCandidate( ( char ) 0, p4 ), 00040 ref_( aRef ), 00041 bx_( bx ) 00042 { 00043 if( ref_.isNonnull() ) 00044 { 00045 type_ = gctEmCand()->isolated() ? kIsolated : kNonIsolated ; 00046 } 00047 }
L1EmParticle::L1EmParticle | ( | const PolarLorentzVector & | p4, | |
const edm::Ref< L1GctEmCandCollection > & | aRef, | |||
int | bx = 0 | |||
) |
Definition at line 49 of file L1EmParticle.cc.
References gctEmCand(), L1GctEmCand::isolated(), kIsolated, kNonIsolated, ref_, and type_.
00052 : LeafCandidate( ( char ) 0, p4 ), 00053 ref_( aRef ), 00054 bx_( bx ) 00055 { 00056 if( ref_.isNonnull() ) 00057 { 00058 type_ = gctEmCand()->isolated() ? kIsolated : kNonIsolated ; 00059 } 00060 }
L1EmParticle::L1EmParticle | ( | const LorentzVector & | p4, | |
EmType | type = kUndefined , |
|||
int | bx = 0 | |||
) |
Definition at line 62 of file L1EmParticle.cc.
00065 : LeafCandidate( ( char ) 0, p4 ), 00066 type_( type ), 00067 ref_( edm::Ref< L1GctEmCandCollection >() ), 00068 bx_( bx ) 00069 { 00070 }
L1EmParticle::L1EmParticle | ( | const PolarLorentzVector & | p4, | |
EmType | type = kUndefined , |
|||
int | bx = 0 | |||
) |
Definition at line 72 of file L1EmParticle.cc.
00075 : LeafCandidate( ( char ) 0, p4 ), 00076 type_( type ), 00077 ref_( edm::Ref< L1GctEmCandCollection >() ), 00078 bx_( bx ) 00079 { 00080 }
virtual l1extra::L1EmParticle::~L1EmParticle | ( | ) | [inline, virtual] |
int l1extra::L1EmParticle::bx | ( | ) | const [inline] |
virtual L1EmParticle* l1extra::L1EmParticle::clone | ( | void | ) | const [inline, virtual] |
returns a clone of the Candidate object
Reimplemented from reco::LeafCandidate.
Definition at line 72 of file L1EmParticle.h.
References L1EmParticle().
00073 { return new L1EmParticle( *this ) ; }
const L1GctEmCand* l1extra::L1EmParticle::gctEmCand | ( | ) | const [inline] |
Definition at line 69 of file L1EmParticle.h.
References ref_.
Referenced by L1EmParticle().
00070 { return ref_.get() ; }
const edm::Ref< L1GctEmCandCollection >& l1extra::L1EmParticle::gctEmCandRef | ( | ) | const [inline] |
EmType l1extra::L1EmParticle::type | ( | ) | const [inline] |
int l1extra::L1EmParticle::bx_ [private] |
edm::Ref< L1GctEmCandCollection > l1extra::L1EmParticle::ref_ [private] |
Definition at line 94 of file L1EmParticle.h.
Referenced by gctEmCand(), gctEmCandRef(), and L1EmParticle().
EmType l1extra::L1EmParticle::type_ [private] |