CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/DataFormats/L1Trigger/src/L1EmParticle.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     L1Trigger
00004 // Class  :     L1EmParticle
00005 // 
00008 //
00009 // Original Author:  Werner Sun
00010 //         Created:  Tue Jul 25 15:56:47 EDT 2006
00011 // $Id: L1EmParticle.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/L1EmParticle.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 L1EmParticle::L1EmParticle()
00033 {
00034 }
00035 
00036 L1EmParticle::L1EmParticle( const LorentzVector& p4,
00037                             const edm::Ref< L1GctEmCandCollection >& aRef,
00038                             int bx )
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 }
00048 
00049 L1EmParticle::L1EmParticle( const PolarLorentzVector& p4,
00050                             const edm::Ref< L1GctEmCandCollection >& aRef,
00051                             int bx )
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 }
00061 
00062 L1EmParticle::L1EmParticle( const LorentzVector& p4,
00063                             EmType type,
00064                             int bx )
00065    : LeafCandidate( ( char ) 0, p4 ),
00066      type_( type ),
00067      ref_( edm::Ref< L1GctEmCandCollection >() ),
00068      bx_( bx )
00069 {
00070 }
00071 
00072 L1EmParticle::L1EmParticle( const PolarLorentzVector& p4,
00073                             EmType type,
00074                             int bx )
00075    : LeafCandidate( ( char ) 0, p4 ),
00076      type_( type ),
00077      ref_( edm::Ref< L1GctEmCandCollection >() ),
00078      bx_( bx )
00079 {
00080 }
00081 
00082 // L1EmParticle::L1EmParticle(const L1EmParticle& rhs)
00083 // {
00084 //    // do actual copying here;
00085 // }
00086 
00087 // L1EmParticle::~L1EmParticle()
00088 // {
00089 // }
00090 
00091 //
00092 // assignment operators
00093 //
00094 // const L1EmParticle& L1EmParticle::operator=(const L1EmParticle& rhs)
00095 // {
00096 //   //An exception safe implementation is
00097 //   L1EmParticle temp(rhs);
00098 //   swap(rhs);
00099 //
00100 //   return *this;
00101 // }
00102 
00103 //
00104 // member functions
00105 //
00106 
00107 //
00108 // const member functions
00109 //
00110 
00111 //
00112 // static member functions
00113 //