/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CalibTracker/SiPixelESProducers/interface/SiPixelDetInfoFileReader.h
47 строк
1 KB
mmusich
add SiPixelDetInfoFileReader default files and use them in the SiPixel Payload Inspector
13 июл 2021, 15:25
13 июл 2021, 15:25
fbece95
Код
Авторство
О чём код?
#ifndef CalibTracker_SiPixelESProducers_SiPixelDetInfoFileReader_h #define CalibTracker_SiPixelESProducers_SiPixelDetInfoFileReader_h // -*- C++ -*- // // Package: SiPixelDetInfoFileReader // Class: SiPixelDetInfoFileReader // /**\class SiPixelDetInfoFileReader SiPixelDetInfoFileReader.cc CalibTracker/SiPixelCommon/src/SiPixelDetInfoFileReader.cc Description: <one line class summary> Implementation: <Notes on implementation> */ // // Original Author: V.Chiochia // Created: Mon Nov 20 10:04:31 CET 2006 // // #include <map> #include <vector> #include <string> #include <iostream> #include <fstream> #include <cstdint> class SiPixelDetInfoFileReader { public: explicit SiPixelDetInfoFileReader(std::string filePath); ~SiPixelDetInfoFileReader(); const std::vector<uint32_t>& getAllDetIds() const; const std::pair<int, int>& getDetUnitDimensions(uint32_t detId) const; constexpr static char const* const kPh0DefaultFile = "CalibTracker/SiPixelESProducers/data/PixelSkimmedGeometry.txt"; constexpr static char const* const kPh1DefaultFile = "SLHCUpgradeSimulations/Geometry/data/PhaseI/PixelSkimmedGeometry_phase1.txt"; private: std::ifstream inputFile_; // std::string filePath_; std::map<uint32_t, std::pair<int, int> > detData_; std::vector<uint32_t> detIds_; }; #endif