Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:56

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