File indexing completed on 2024-09-07 04:34:25
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef ErrorCorrelationMgr_h
0010 #define ErrorCorrelationMgr_h
0011
0012 #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
0013 #include <vector>
0014 #include <map>
0015 typedef std::map<ALIstring, ALIdouble, std::less<ALIstring> > msd;
0016
0017 #include "ErrorCorrelation.h"
0018
0019 class ErrorCorrelationMgr {
0020 private:
0021 ErrorCorrelationMgr() {}
0022
0023 public:
0024 static ErrorCorrelationMgr* getInstance();
0025 void readFromReportFile(const ALIstring& filename);
0026 ErrorCorrelation* getCorrelation(ALIint ii);
0027
0028 ALIint getNumberOfCorrelations() { return theCorrs.size(); }
0029
0030 private:
0031 std::vector<ErrorCorrelation*>::iterator findErrorCorrelation(pss& entry1, pss& entry2);
0032
0033 private:
0034 static ErrorCorrelationMgr* theInstance;
0035 std::vector<ErrorCorrelation*> theCorrs;
0036 };
0037
0038 #endif