Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:34:25

0001 //   COCOA class header file

0002 //Id:  ErrorCorrelationMgr.h

0003 //CAT: Model

0004 //

0005 //   Manages the error correlations

0006 //

0007 //   History: v1.0  29/01/02   Pedro Arce

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