CMS 3D CMS Logo

SurveyDataReader.h
Go to the documentation of this file.
1 #ifndef SurveyDataReader_h
2 #define SurveyDataReader_h
3 
4 //
5 // Class to read in survey data from text file
6 // Where all numbers are floats, except DetId which is an unsigned integer
7 //
8 // The result is a map of DetIds and corresponding OpticalInfo
9 //
10 
12 
13 class TrackerTopology;
14 
16 public:
17  typedef std::map<align::ID, align::Scalars> MapType;
18  typedef std::pair<align::ID, align::Scalars> PairType;
19  typedef std::map<std::vector<int>, align::Scalars> MapTypeOr;
20  typedef std::pair<std::vector<int>, align::Scalars> PairTypeOr;
21 
23  void readFile(const std::string& textFileName, const std::string& fileType, const TrackerTopology* tTopo);
25 
26  // Returns the Map
27  const MapType& detIdMap() const { return theMap; }
28  const MapTypeOr& surveyMap() const { return theOriginalMap; }
29 
30 private:
33 };
34 
35 #endif
SurveyDataReader
Definition: SurveyDataReader.h:15
align::Scalars
std::vector< Scalar > Scalars
Definition: Utilities.h:26
TrackerTopology
Definition: TrackerTopology.h:16
SurveyDataReader::convertToAlignableCoord
align::Scalars convertToAlignableCoord(const align::Scalars &align_params)
Definition: SurveyDataReader.cc:88
SurveyDataReader::PairTypeOr
std::pair< std::vector< int >, align::Scalars > PairTypeOr
Definition: SurveyDataReader.h:20
SurveyDataReader::surveyMap
const MapTypeOr & surveyMap() const
Definition: SurveyDataReader.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SurveyDataReader::readFile
void readFile(const std::string &textFileName, const std::string &fileType, const TrackerTopology *tTopo)
Read given text file.
Definition: SurveyDataReader.cc:17
SurveyDataReader::theMap
MapType theMap
Definition: SurveyDataReader.h:31
SurveyDataReader::MapTypeOr
std::map< std::vector< int >, align::Scalars > MapTypeOr
Definition: SurveyDataReader.h:19
Utilities.h
SurveyDataReader::MapType
std::map< align::ID, align::Scalars > MapType
Definition: SurveyDataReader.h:17
SurveyDataReader::PairType
std::pair< align::ID, align::Scalars > PairType
Definition: SurveyDataReader.h:18
SurveyDataReader::detIdMap
const MapType & detIdMap() const
Definition: SurveyDataReader.h:27
SurveyDataReader::theOriginalMap
MapTypeOr theOriginalMap
Definition: SurveyDataReader.h:32