Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:59

0001 // -*- C++ -*-
0002 //
0003 // Package:     L1Trigger
0004 // Class  :     L1JetParticle
0005 //
0006 /**\class L1JetParticle \file L1JetParticle.cc DataFormats/L1Trigger/src/L1JetParticle.cc \author Werner Sun
0007 */
0008 //
0009 // Original Author:  Werner Sun
0010 //         Created:  Tue Jul 25 17:51:21 EDT 2006
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "DataFormats/L1Trigger/interface/L1JetParticle.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 L1JetParticle::L1JetParticle() {}
0032 
0033 L1JetParticle::L1JetParticle(const LorentzVector& p4, const edm::Ref<L1GctJetCandCollection>& aRef, int bx)
0034     : LeafCandidate((char)0, p4), ref_(aRef), bx_(bx) {
0035   if (ref_.isNonnull()) {
0036     type_ = gctJetCand()->isTau() ? kTau : (gctJetCand()->isForward() ? kForward : kCentral);
0037   }
0038 }
0039 
0040 L1JetParticle::L1JetParticle(const PolarLorentzVector& p4, const edm::Ref<L1GctJetCandCollection>& aRef, int bx)
0041     : LeafCandidate((char)0, p4), ref_(aRef), bx_(bx) {
0042   if (ref_.isNonnull()) {
0043     type_ = gctJetCand()->isTau() ? kTau : (gctJetCand()->isForward() ? kForward : kCentral);
0044   }
0045 }
0046 
0047 L1JetParticle::L1JetParticle(const LorentzVector& p4, JetType type, int bx)
0048     : LeafCandidate((char)0, p4), type_(type), ref_(edm::Ref<L1GctJetCandCollection>()), bx_(bx) {}
0049 
0050 L1JetParticle::L1JetParticle(const PolarLorentzVector& p4, JetType type, int bx)
0051     : LeafCandidate((char)0, p4), type_(type), ref_(edm::Ref<L1GctJetCandCollection>()), bx_(bx) {}
0052 
0053 // L1JetParticle::L1JetParticle(const L1JetParticle& rhs)
0054 // {
0055 //    // do actual copying here;
0056 // }
0057 
0058 // L1JetParticle::~L1JetParticle()
0059 // {
0060 // }
0061 
0062 //
0063 // assignment operators
0064 //
0065 // const L1JetParticle& L1JetParticle::operator=(const L1JetParticle& rhs)
0066 // {
0067 //   //An exception safe implementation is
0068 //   L1JetParticle 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 //