File indexing completed on 2024-04-06 12:21:57
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_ << hexstr(j) << " " << stub << " " << hexFormat(stub) << endl;
0019 }
0020 out_.close();
0021 }