Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:26

0001 //   COCOA class header file

0002 //Id:  ErrorCorrelation.h

0003 //CAT: Model

0004 //

0005 //   Error correlation: contains first and second entry and correlation value

0006 //

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

0008 
0009 #ifndef ErrorCorrelation_h
0010 #define ErrorCorrelation_h
0011 
0012 #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
0013 
0014 typedef std::pair<ALIstring, ALIstring> pss;
0015 
0016 class ErrorCorrelation {
0017 public:
0018   ErrorCorrelation(const pss& entry1, const pss& entry2, const ALIdouble corr);
0019 
0020   void update(const ALIdouble corr);
0021 
0022   const pss& getEntry1() const { return theEntry1; }
0023   const pss& getEntry2() const { return theEntry2; }
0024   const ALIdouble getCorrelation() const { return theCorr; }
0025 
0026 private:
0027   pss theEntry1;
0028   pss theEntry2;
0029   ALIdouble theCorr;
0030 };
0031 
0032 #endif