CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/CalibTracker/SiPixelESProducers/interface/SiPixelDetInfoFileReader.h

Go to the documentation of this file.
00001 #ifndef CalibTracker_SiPixelESProducers_SiPixelDetInfoFileReader_h
00002 #define CalibTracker_SiPixelESProducers_SiPixelDetInfoFileReader_h
00003 // -*- C++ -*-
00004 //
00005 // Package:    SiPixelDetInfoFileReader
00006 // Class:      SiPixelDetInfoFileReader
00007 // 
00015 //
00016 // Original Author:  V.Chiochia
00017 //         Created:  Mon Nov 20 10:04:31 CET 2006
00018 // $Id: SiPixelDetInfoFileReader.h,v 1.1 2007/08/08 16:22:28 chiochia Exp $
00019 //
00020 //
00021 
00022 #include <map>
00023 #include <vector>
00024 #include <string>
00025 #include <iostream>
00026 #include <fstream>
00027 #include <boost/cstdint.hpp>
00028 
00029 class SiPixelDetInfoFileReader  {
00030 
00031 public:
00032 
00033   explicit SiPixelDetInfoFileReader(std::string filePath);
00034   ~SiPixelDetInfoFileReader();
00035 
00036   const std::vector<uint32_t> & getAllDetIds() const;
00037   const std::pair<int, int> & getDetUnitDimensions(uint32_t detId) const;
00038 
00039 private:
00040 
00041   std::ifstream inputFile_; 
00042   //  std::string filePath_;
00043 
00044   std::map<uint32_t, std::pair<int, int> > detData_;
00045   std::vector<uint32_t> detIds_;
00046 
00047 };
00048 #endif