/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
L1Trigger/TrackFindingTracklet/src/InputLinkMemory.cc
31 строка
998 B
Louise Skinnari
fix python to python3 syntax
20 сен 2022, 22:37
20 сен 2022, 22:37
4457a9b
Код
Авторство
О чём код?
#include "L1Trigger/TrackFindingTracklet/interface/InputLinkMemory.h" #include "L1Trigger/TrackFindingTracklet/interface/Stub.h" #include "L1Trigger/TrackFindingTracklet/interface/Globals.h" #include <iomanip> #include <cmath> #include <sstream> #include <cctype> #include "FWCore/MessageLogger/interface/MessageLogger.h" using namespace trklet; using namespace std; InputLinkMemory::InputLinkMemory(string name, Settings const& settings, double, double) : MemoryBase(name, settings) {} void InputLinkMemory::addStub(Stub* stub) { stubs_.push_back(stub); } void InputLinkMemory::writeStubs(bool first, unsigned int iSector) { iSector_ = iSector; const string dirIS = settings_.memPath() + "InputStubs/"; openFile(first, dirIS, "InputStubs_"); for (unsigned int j = 0; j < stubs_.size(); j++) { string stub = stubs_[j]->str(); out_ << hexstr(j) << " " << stub << " " << trklet::hexFormat(stub) << endl; } out_.close(); } void InputLinkMemory::clean() { stubs_.clear(); }