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 <boost/cstdint.hpp>
27 
29 
30 public:
31 
32  explicit SiPixelDetInfoFileReader(std::string filePath);
34 
35  const std::vector<uint32_t> & getAllDetIds() const;
36  const std::pair<int, int> & getDetUnitDimensions(uint32_t detId) const;
37 
38 private:
39 
40  std::ifstream inputFile_;
41  // std::string filePath_;
42 
43  std::map<uint32_t, std::pair<int, int> > detData_;
44  std::vector<uint32_t> detIds_;
45 
46 };
47 #endif
const std::pair< int, int > & getDetUnitDimensions(uint32_t detId) const
const std::vector< uint32_t > & getAllDetIds() const
SiPixelDetInfoFileReader(std::string filePath)
std::vector< uint32_t > detIds_
std::map< uint32_t, std::pair< int, int > > detData_