Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:30:49

0001 #ifndef L1Trigger_TrackFindingTracklet_interface_VMStubME_h
0002 #define L1Trigger_TrackFindingTracklet_interface_VMStubME_h
0003 
0004 #include <iostream>
0005 #include <fstream>
0006 #include <cassert>
0007 #include <cmath>
0008 
0009 #include "L1Trigger/TrackFindingTracklet/interface/L1TStub.h"
0010 #include "L1Trigger/TrackFindingTracklet/interface/Stub.h"
0011 #include "L1Trigger/TrackFindingTracklet/interface/FPGAWord.h"
0012 
0013 namespace trklet {
0014 
0015   class VMStubME {
0016   public:
0017     VMStubME() {}
0018 
0019     VMStubME(const Stub* stub, FPGAWord finephi, FPGAWord finerz, FPGAWord bend, FPGAWord allstubindex);
0020 
0021     ~VMStubME() = default;
0022 
0023     const FPGAWord& finephi() const { return finephi_; }
0024     const FPGAWord& finerz() const { return finerz_; }
0025 
0026     const FPGAWord& bend() const { return bend_; }
0027 
0028     const Stub* stub() const { return stub_; }
0029 
0030     bool isPSmodule() const { return stub_->isPSmodule(); }
0031 
0032     const FPGAWord& stubindex() const { return allStubIndex_; }
0033 
0034     //return binary string for memory printout
0035     std::string str() const;
0036 
0037   private:
0038     FPGAWord allStubIndex_;
0039     FPGAWord finephi_;
0040     FPGAWord finerz_;
0041     FPGAWord bend_;
0042     const Stub* stub_;
0043   };
0044 
0045 };  // namespace trklet
0046 #endif