CMS 3D CMS Logo

SiPixelDetInfoFileReader.h
Go to the documentation of this file.
1 #ifndef CalibTracker_SiPixelESProducers_SiPixelDetInfoFileReader_h
2 #define CalibTracker_SiPixelESProducers_SiPixelDetInfoFileReader_h
3 // -*- C++ -*-
4 //
5 // Package: SiPixelDetInfoFileReader
6 // Class: SiPixelDetInfoFileReader
7 //
15 //
16 // Original Author: V.Chiochia
17 // Created: Mon Nov 20 10:04:31 CET 2006
18 //
19 //
20 
21 #include <map>
22 #include <vector>
23 #include <string>
24 #include <iostream>
25 #include <fstream>
26 #include <cstdint>
27 
29 public:
32 
33  const std::vector<uint32_t>& getAllDetIds() const;
34  const std::pair<int, int>& getDetUnitDimensions(uint32_t detId) const;
35 
36  constexpr static char const* const kPh0DefaultFile = "CalibTracker/SiPixelESProducers/data/PixelSkimmedGeometry.txt";
37  constexpr static char const* const kPh1DefaultFile =
38  "SLHCUpgradeSimulations/Geometry/data/PhaseI/PixelSkimmedGeometry_phase1.txt";
39 
40 private:
41  std::ifstream inputFile_;
42  // std::string filePath_;
43 
44  std::map<uint32_t, std::pair<int, int> > detData_;
45  std::vector<uint32_t> detIds_;
46 };
47 #endif
static constexpr char const *const kPh1DefaultFile
SiPixelDetInfoFileReader(std::string filePath)
const std::pair< int, int > & getDetUnitDimensions(uint32_t detId) const
std::vector< uint32_t > detIds_
const std::vector< uint32_t > & getAllDetIds() const
std::map< uint32_t, std::pair< int, int > > detData_
static constexpr char const *const kPh0DefaultFile