CMS 3D CMS Logo

l1extra::L1JetParticle Class Reference

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

Inheritance diagram for l1extra::L1JetParticle:

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

List of all members.

Public Types

enum  JetType {
  kCentral, kForward, kTau, kUndefined,
  kNumOfJetTypes
}

Public Member Functions

int bx () const
virtual L1JetParticleclone () const
 returns a clone of the Candidate object
const L1GctJetCandgctJetCand () 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< L1GctJetCandCollectionref_
JetType type_


Detailed Description

Definition at line 29 of file L1JetParticle.h.


Member Enumeration Documentation

enum l1extra::L1JetParticle::JetType

Enumerator:
kCentral 
kForward 
kTau 
kUndefined 
kNumOfJetTypes 

Definition at line 33 of file L1JetParticle.h.

00034          {
00035             kCentral,
00036             kForward,
00037             kTau,
00038             kUndefined,
00039             kNumOfJetTypes
00040          } ;


Constructor & Destructor Documentation

L1JetParticle::L1JetParticle (  ) 

Definition at line 32 of file L1JetParticle.cc.

Referenced by clone().

00033 {
00034 }

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]

Definition at line 61 of file L1JetParticle.h.

00061 {}


Member Function Documentation

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

Definition at line 76 of file L1JetParticle.h.

References bx_.

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

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]

Definition at line 67 of file L1JetParticle.h.

References ref_.

00068          { return ref_ ; }

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

Definition at line 85 of file L1JetParticle.h.

References bx_.

00086          { bx_ = bx ; }

void l1extra::L1JetParticle::setType ( JetType  type  )  [inline]

Definition at line 82 of file L1JetParticle.h.

References type_.

00083          { type_ = type ; }

JetType l1extra::L1JetParticle::type (  )  const [inline]

Definition at line 64 of file L1JetParticle.h.

References type_.

00065          { return type_ ; }


Member Data Documentation

int l1extra::L1JetParticle::bx_ [private]

Definition at line 96 of file L1JetParticle.h.

Referenced by bx(), and setBx().

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


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