ErrorCorrelationMgr

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
//   COCOA class header file
//Id:  ErrorCorrelationMgr.h
//CAT: Model
//
//   Manages the error correlations
//
//   History: v1.0  29/01/02   Pedro Arce

#ifndef ErrorCorrelationMgr_h
#define ErrorCorrelationMgr_h

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include <vector>
#include <map>
typedef std::map<ALIstring, ALIdouble, std::less<ALIstring> > msd;

#include "ErrorCorrelation.h"

class ErrorCorrelationMgr {
private:
  ErrorCorrelationMgr() {}

public:
  static ErrorCorrelationMgr* getInstance();
  void readFromReportFile(const ALIstring& filename);
  ErrorCorrelation* getCorrelation(ALIint ii);

  ALIint getNumberOfCorrelations() { return theCorrs.size(); }

private:
  std::vector<ErrorCorrelation*>::iterator findErrorCorrelation(pss& entry1, pss& entry2);

private:
  static ErrorCorrelationMgr* theInstance;
  std::vector<ErrorCorrelation*> theCorrs;
};

#endif