ErrorCorrelation

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
//   COCOA class header file
//Id:  ErrorCorrelation.h
//CAT: Model
//
//   Error correlation: contains first and second entry and correlation value
//
//   History: v1.0  29/01/02   Pedro Arce

#ifndef ErrorCorrelation_h
#define ErrorCorrelation_h

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"

typedef std::pair<ALIstring, ALIstring> pss;

class ErrorCorrelation {
public:
  ErrorCorrelation(const pss& entry1, const pss& entry2, const ALIdouble corr);

  void update(const ALIdouble corr);

  const pss& getEntry1() const { return theEntry1; }
  const pss& getEntry2() const { return theEntry2; }
  const ALIdouble getCorrelation() const { return theCorr; }

private:
  pss theEntry1;
  pss theEntry2;
  ALIdouble theCorr;
};

#endif