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:
31  MapType theMap;
32  MapTypeOr theOriginalMap;
33 };
34 
35 #endif
std::pair< align::ID, align::Scalars > PairType
std::pair< std::vector< int >, align::Scalars > PairTypeOr
std::map< align::ID, align::Scalars > MapType
std::vector< Scalar > Scalars
Definition: Utilities.h:27
const MapTypeOr & surveyMap() const
MapTypeOr theOriginalMap
const MapType & detIdMap() const
void readFile(const std::string &textFileName, const std::string &fileType, const TrackerTopology *tTopo)
Read given text file.
align::Scalars convertToAlignableCoord(const align::Scalars &align_params)
std::map< std::vector< int >, align::Scalars > MapTypeOr