Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-07 22:33:30

0001 #include "L1Trigger/TrackFindingTracklet/interface/AllInnerStubsMemory.h"
0002 #include "L1Trigger/TrackFindingTracklet/interface/Stub.h"
0003 #include "L1Trigger/TrackFindingTracklet/interface/Settings.h"
0004 #include <iomanip>
0005 
0006 using namespace std;
0007 using namespace trklet;
0008 
0009 AllInnerStubsMemory::AllInnerStubsMemory(string name, Settings const& settings) : MemoryBase(name, settings) {}
0010 
0011 void AllInnerStubsMemory::writeStubs(bool first, unsigned int iSector) {
0012   iSector_ = iSector;
0013   const string dirS = settings_.memPath() + "Stubs/";
0014   openFile(first, dirS, "AllInnerStubs_");
0015 
0016   for (unsigned int j = 0; j < stubs_.size(); j++) {
0017     string stub = stubs_[j]->strinner();
0018     out_ << "0x";
0019     out_ << std::setfill('0') << std::setw(2);
0020     out_ << hex << j << dec;
0021     out_ << " " << stub << " " << hexFormat(stub) << endl;
0022   }
0023   out_.close();
0024 }