test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
17 
18 public:
19 
20  typedef std::map<align::ID, align::Scalars > MapType;
21  typedef std::pair<align::ID,align::Scalars > PairType;
22  typedef std::map< std::vector<int>, align::Scalars > MapTypeOr;
23  typedef std::pair< std::vector<int>, align::Scalars > PairTypeOr;
24 
26  void readFile( const std::string& textFileName, const std::string& fileType, const TrackerTopology* tTopo);
28 
29  // Returns the Map
30  const MapType& detIdMap() const { return theMap; }
31  const MapTypeOr& surveyMap() const { return theOriginalMap; }
32 
33 private:
34 
37 
38 };
39 
40 #endif
std::pair< align::ID, align::Scalars > PairType
std::vector< Scalar > Scalars
Definition: Utilities.h:22
std::pair< std::vector< int >, align::Scalars > PairTypeOr
std::map< align::ID, align::Scalars > MapType
const MapTypeOr & surveyMap() const
MapTypeOr theOriginalMap
std::map< std::vector< int >, align::Scalars > MapTypeOr
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)