CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/DataFormats/L1Trigger/src/L1JetParticle.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     L1Trigger
00004 // Class  :     L1JetParticle
00005 // 
00008 //
00009 // Original Author:  Werner Sun
00010 //         Created:  Tue Jul 25 17:51:21 EDT 2006
00011 // $Id: L1JetParticle.cc,v 1.7 2008/04/03 03:37:21 wsun Exp $
00012 //
00013 
00014 // system include files
00015 
00016 // user include files
00017 #include "DataFormats/L1Trigger/interface/L1JetParticle.h"
00018 
00019 using namespace l1extra ;
00020 
00021 //
00022 // constants, enums and typedefs
00023 //
00024 
00025 //
00026 // static data member definitions
00027 //
00028 
00029 //
00030 // constructors and destructor
00031 //
00032 L1JetParticle::L1JetParticle()
00033 {
00034 }
00035 
00036 L1JetParticle::L1JetParticle( const LorentzVector& p4,
00037                               const edm::Ref< L1GctJetCandCollection >& aRef,
00038                               int bx )
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 }
00049 
00050 L1JetParticle::L1JetParticle( const PolarLorentzVector& p4,
00051                               const edm::Ref< L1GctJetCandCollection >& aRef,
00052                               int bx )
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 }
00063 
00064 L1JetParticle::L1JetParticle( const LorentzVector& p4,
00065                               JetType type,
00066                               int bx )
00067    : LeafCandidate( ( char ) 0, p4 ),
00068      type_( type ),
00069      ref_( edm::Ref< L1GctJetCandCollection >() ),
00070      bx_( bx )
00071 {
00072 }
00073 
00074 L1JetParticle::L1JetParticle( const PolarLorentzVector& p4,
00075                               JetType type,
00076                               int bx )
00077    : LeafCandidate( ( char ) 0, p4 ),
00078      type_( type ),
00079      ref_( edm::Ref< L1GctJetCandCollection >() ),
00080      bx_( bx )
00081 {
00082 }
00083 
00084 // L1JetParticle::L1JetParticle(const L1JetParticle& rhs)
00085 // {
00086 //    // do actual copying here;
00087 // }
00088 
00089 // L1JetParticle::~L1JetParticle()
00090 // {
00091 // }
00092 
00093 //
00094 // assignment operators
00095 //
00096 // const L1JetParticle& L1JetParticle::operator=(const L1JetParticle& rhs)
00097 // {
00098 //   //An exception safe implementation is
00099 //   L1JetParticle temp(rhs);
00100 //   swap(rhs);
00101 //
00102 //   return *this;
00103 // }
00104 
00105 //
00106 // member functions
00107 //
00108 
00109 //
00110 // const member functions
00111 //
00112 
00113 //
00114 // static member functions
00115 //