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  :     L1MuonParticle
0005 //
0006 /**\class L1MuonParticle \file L1MuonParticle.cc DataFormats/L1Trigger/src/L1MuonParticle.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/L1MuonParticle.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 L1MuonParticle::L1MuonParticle() {}
0032 
0033 L1MuonParticle::L1MuonParticle(Charge q, const LorentzVector& p4, const L1MuGMTExtendedCand& aCand, int bx)
0034     : LeafCandidate(q, p4), cand_(aCand), bx_(bx) {
0035   isolated_ = cand_.isol();
0036   mip_ = cand_.mip();
0037   forward_ = cand_.isFwd();
0038   rpc_ = cand_.isRPC();
0039 }
0040 
0041 L1MuonParticle::L1MuonParticle(Charge q, const PolarLorentzVector& p4, const L1MuGMTExtendedCand& aCand, int bx)
0042     : LeafCandidate(q, p4), cand_(aCand), bx_(bx) {
0043   isolated_ = cand_.isol();
0044   mip_ = cand_.mip();
0045   forward_ = cand_.isFwd();
0046   rpc_ = cand_.isRPC();
0047 }
0048 
0049 L1MuonParticle::L1MuonParticle(
0050     Charge q, const LorentzVector& p4, bool isolated, bool mip, bool forward, bool rpc, unsigned int detector, int bx)
0051     : LeafCandidate(q, p4),
0052       isolated_(isolated),
0053       mip_(mip),
0054       forward_(forward),
0055       rpc_(rpc),
0056       cand_(L1MuGMTExtendedCand()),
0057       bx_(bx) {}
0058 
0059 L1MuonParticle::L1MuonParticle(Charge q,
0060                                const PolarLorentzVector& p4,
0061                                bool isolated,
0062                                bool mip,
0063                                bool forward,
0064                                bool rpc,
0065                                unsigned int detector,
0066                                int bx)
0067     : LeafCandidate(q, p4),
0068       isolated_(isolated),
0069       mip_(mip),
0070       forward_(forward),
0071       rpc_(rpc),
0072       cand_(L1MuGMTExtendedCand()),
0073       bx_(bx) {}
0074 
0075 // L1MuonParticle::L1MuonParticle(const L1MuonParticle& rhs)
0076 // {
0077 //    // do actual copying here;
0078 // }
0079 
0080 // L1MuonParticle::~L1MuonParticle()
0081 // {
0082 // }
0083 
0084 //
0085 // assignment operators
0086 //
0087 // const L1MuonParticle& L1MuonParticle::operator=(const L1MuonParticle& rhs)
0088 // {
0089 //   //An exception safe implementation is
0090 //   L1MuonParticle temp(rhs);
0091 //   swap(rhs);
0092 //
0093 //   return *this;
0094 // }
0095 
0096 //
0097 // member functions
0098 //
0099 
0100 //
0101 // const member functions
0102 //
0103 
0104 //
0105 // static member functions
0106 //