CMS 3D CMS Logo

l1extra::L1EmParticle Class Reference

#include <DataFormats/L1Trigger/interface/L1EmParticle.h>

Inheritance diagram for l1extra::L1EmParticle:

reco::LeafCandidate reco::Candidate reco::Particle

List of all members.

Public Types

enum  EmType { kIsolated, kNonIsolated, kUndefined, kNumOfEmTypes }

Public Member Functions

int bx () const
virtual L1EmParticleclone () const
 returns a clone of the Candidate object
const L1GctEmCandgctEmCand () 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< L1GctEmCandCollectionref_
EmType type_


Detailed Description

Definition at line 29 of file L1EmParticle.h.


Member Enumeration Documentation

enum l1extra::L1EmParticle::EmType

Enumerator:
kIsolated 
kNonIsolated 
kUndefined 
kNumOfEmTypes 

Definition at line 33 of file L1EmParticle.h.

00034          {
00035             kIsolated,
00036             kNonIsolated,
00037             kUndefined,
00038             kNumOfEmTypes
00039          } ;


Constructor & Destructor Documentation

L1EmParticle::L1EmParticle (  ) 

Definition at line 32 of file L1EmParticle.cc.

Referenced by clone().

00033 {
00034 }

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]

Definition at line 60 of file L1EmParticle.h.

00060 {}


Member Function Documentation

int l1extra::L1EmParticle::bx (  )  const [inline]

Definition at line 75 of file L1EmParticle.h.

References bx_.

00076          { return bx_ ; }

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]

Definition at line 66 of file L1EmParticle.h.

References ref_.

00067          { return ref_ ; }

void l1extra::L1EmParticle::setBx ( int  bx  )  [inline]

Definition at line 84 of file L1EmParticle.h.

References bx_.

00085            { bx_ = bx ; }

void l1extra::L1EmParticle::setType ( EmType  type  )  [inline]

Definition at line 81 of file L1EmParticle.h.

References type_.

00082          { type_ = type ; }

EmType l1extra::L1EmParticle::type (  )  const [inline]

Definition at line 63 of file L1EmParticle.h.

References type_.

00064          { return type_ ; }


Member Data Documentation

int l1extra::L1EmParticle::bx_ [private]

Definition at line 95 of file L1EmParticle.h.

Referenced by bx(), and setBx().

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]

Definition at line 93 of file L1EmParticle.h.

Referenced by L1EmParticle(), setType(), and type().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:47:47 2009 for CMSSW by  doxygen 1.5.4