CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

l1extra::L1EmParticle Class Reference

#include <L1EmParticle.h>

Inheritance diagram for l1extra::L1EmParticle:
reco::LeafCandidate reco::Candidate

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 ()
 L1EmParticle (const LorentzVector &p4, EmType type=kUndefined, int bx=0)
 L1EmParticle (const LorentzVector &p4, const edm::Ref< L1GctEmCandCollection > &aRef, int bx=0)
 L1EmParticle (const PolarLorentzVector &p4, EmType type=kUndefined, int bx=0)
 L1EmParticle (const PolarLorentzVector &p4, const edm::Ref< L1GctEmCandCollection > &aRef, int bx=0)
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

Enumerator:
kIsolated 
kNonIsolated 
kUndefined 
kNumOfEmTypes 

Definition at line 33 of file L1EmParticle.h.


Constructor & Destructor Documentation

L1EmParticle::L1EmParticle ( )

Definition at line 32 of file L1EmParticle.cc.

Referenced by clone().

{
}
L1EmParticle::L1EmParticle ( const LorentzVector p4,
const edm::Ref< L1GctEmCandCollection > &  aRef,
int  bx = 0 
)

Definition at line 36 of file L1EmParticle.cc.

References gctEmCand(), edm::Ref< C, T, F >::isNonnull(), L1GctEmCand::isolated(), kIsolated, kNonIsolated, ref_, and type_.

   : LeafCandidate( ( char ) 0, p4 ),
     ref_( aRef ),
     bx_( bx )
{
   if( ref_.isNonnull() )
   {
      type_ = gctEmCand()->isolated() ? kIsolated : kNonIsolated ;
   }
}
L1EmParticle::L1EmParticle ( const PolarLorentzVector p4,
const edm::Ref< L1GctEmCandCollection > &  aRef,
int  bx = 0 
)

Definition at line 49 of file L1EmParticle.cc.

References gctEmCand(), edm::Ref< C, T, F >::isNonnull(), L1GctEmCand::isolated(), kIsolated, kNonIsolated, ref_, and type_.

   : LeafCandidate( ( char ) 0, p4 ),
     ref_( aRef ),
     bx_( bx )
{
   if( ref_.isNonnull() )
   {
      type_ = gctEmCand()->isolated() ? kIsolated : kNonIsolated ;
   }
}
L1EmParticle::L1EmParticle ( const LorentzVector p4,
EmType  type = kUndefined,
int  bx = 0 
)

Definition at line 62 of file L1EmParticle.cc.

   : LeafCandidate( ( char ) 0, p4 ),
     type_( type ),
     ref_( edm::Ref< L1GctEmCandCollection >() ),
     bx_( bx )
{
}
L1EmParticle::L1EmParticle ( const PolarLorentzVector p4,
EmType  type = kUndefined,
int  bx = 0 
)

Definition at line 72 of file L1EmParticle.cc.

   : LeafCandidate( ( char ) 0, p4 ),
     type_( type ),
     ref_( edm::Ref< L1GctEmCandCollection >() ),
     bx_( bx )
{
}
virtual l1extra::L1EmParticle::~L1EmParticle ( ) [inline, virtual]

Definition at line 60 of file L1EmParticle.h.

{}

Member Function Documentation

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

Definition at line 75 of file L1EmParticle.h.

References bx_.

Referenced by setBx().

         { 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().

         { return new L1EmParticle( *this ) ; }
const L1GctEmCand* l1extra::L1EmParticle::gctEmCand ( ) const [inline]

Definition at line 69 of file L1EmParticle.h.

References edm::Ref< C, T, F >::get(), and ref_.

Referenced by L1EmParticle().

         { return ref_.get() ; }
const edm::Ref< L1GctEmCandCollection >& l1extra::L1EmParticle::gctEmCandRef ( ) const [inline]

Definition at line 66 of file L1EmParticle.h.

References ref_.

         { return ref_ ; }
void l1extra::L1EmParticle::setBx ( int  bx) [inline]

Definition at line 84 of file L1EmParticle.h.

References bx(), and bx_.

           { bx_ = bx ; }
void l1extra::L1EmParticle::setType ( EmType  type) [inline]

Definition at line 81 of file L1EmParticle.h.

References type(), and type_.

         { type_ = type ; }
EmType l1extra::L1EmParticle::type ( ) const [inline]

Definition at line 63 of file L1EmParticle.h.

References type_.

Referenced by setType().

         { return type_ ; }

Member Data Documentation

Definition at line 95 of file L1EmParticle.h.

Referenced by bx(), and setBx().

Definition at line 94 of file L1EmParticle.h.

Referenced by gctEmCand(), gctEmCandRef(), and L1EmParticle().

Definition at line 93 of file L1EmParticle.h.

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