Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:39

0001 // -*- C++ -*-
0002 //
0003 // Package:     L1Trigger
0004 // Class  :     L1EmParticle
0005 //
0006 /**\class L1EmParticle \file L1EmParticle.cc DataFormats/L1Trigger/src/L1EmParticle.cc \author Werner Sun
0007  */
0008 //
0009 // Original Author:  Werner Sun
0010 //         Created:  Tue Jul 25 15:56:47 EDT 2006
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "DataFormats/L1Trigger/interface/L1EmParticle.h"
0017 
0018 using namespace l1extra;
0019 
0020 //
0021 // constants, enums and typedefs
0022 //
0023 
0024 //
0025 // static data member definitions
0026 //
0027 
0028 //
0029 // constructors and destructor
0030 //
0031 L1EmParticle::L1EmParticle() {}
0032 
0033 L1EmParticle::L1EmParticle(const LorentzVector& p4, const edm::Ref<L1GctEmCandCollection>& aRef, int bx)
0034     : LeafCandidate((char)0, p4), ref_(aRef), bx_(bx) {
0035   if (ref_.isNonnull()) {
0036     type_ = gctEmCand()->isolated() ? kIsolated : kNonIsolated;
0037   }
0038 }
0039 
0040 L1EmParticle::L1EmParticle(const PolarLorentzVector& p4, const edm::Ref<L1GctEmCandCollection>& aRef, int bx)
0041     : LeafCandidate((char)0, p4), ref_(aRef), bx_(bx) {
0042   if (ref_.isNonnull()) {
0043     type_ = gctEmCand()->isolated() ? kIsolated : kNonIsolated;
0044   }
0045 }
0046 
0047 L1EmParticle::L1EmParticle(const LorentzVector& p4, EmType type, int bx)
0048     : LeafCandidate((char)0, p4), type_(type), ref_(edm::Ref<L1GctEmCandCollection>()), bx_(bx) {}
0049 
0050 L1EmParticle::L1EmParticle(const PolarLorentzVector& p4, EmType type, int bx)
0051     : LeafCandidate((char)0, p4), type_(type), ref_(edm::Ref<L1GctEmCandCollection>()), bx_(bx) {}
0052 
0053 // L1EmParticle::L1EmParticle(const L1EmParticle& rhs)
0054 // {
0055 //    // do actual copying here;
0056 // }
0057 
0058 // L1EmParticle::~L1EmParticle()
0059 // {
0060 // }
0061 
0062 //
0063 // assignment operators
0064 //
0065 // const L1EmParticle& L1EmParticle::operator=(const L1EmParticle& rhs)
0066 // {
0067 //   //An exception safe implementation is
0068 //   L1EmParticle temp(rhs);
0069 //   swap(rhs);
0070 //
0071 //   return *this;
0072 // }
0073 
0074 //
0075 // member functions
0076 //
0077 
0078 //
0079 // const member functions
0080 //
0081 
0082 //
0083 // static member functions
0084 //