Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 //   COCOA class header file

0002 //Id:  FittedEntriesSet.h

0003 //CAT: Model

0004 //

0005 //   Class to store set of fitted entries with date

0006 //

0007 //   History: v1.0

0008 //   Pedro Arce

0009 
0010 #ifndef _FittedEntriesSet_HH
0011 #define _FittedEntriesSet_HH
0012 
0013 #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
0014 #include <ctime>
0015 #include <vector>
0016 #include "Alignment/CocoaFit/interface/FittedEntry.h"
0017 //#ifdef MAT_MESCHACH

0018 #include "Alignment/CocoaFit/interface/MatrixMeschach.h"
0019 //typedef MatrixMeschach ALIMatrix;

0020 //#endif

0021 
0022 class FittedEntriesSet {
0023 public:
0024   //---------- Constructors / Destructor

0025   FittedEntriesSet(MatrixMeschach* AtWAMatrix);
0026   FittedEntriesSet(const std::vector<ALIstring>& wl);
0027   //---- Average a list of FittedEntriesSet's

0028   FittedEntriesSet(const std::vector<FittedEntriesSet*>& vSets);
0029   ~FittedEntriesSet(){};
0030   void Fill();
0031   void FillEntries();
0032   void FillCorrelations();
0033   void CreateCorrelationMatrix(const ALIuint nent);
0034   void FillEntriesFromFile(const std::vector<ALIstring>& wl);
0035   void FillEntriesAveragingSets(const std::vector<FittedEntriesSet*>& vSets);
0036 
0037   void SetOptOEntries();
0038 
0039 public:
0040   std::vector<FittedEntry*>& FittedEntries() { return theFittedEntries; }
0041 
0042   //GET AND SET METHODS

0043   ALIstring& getDate() { return theDate; }
0044   ALIstring& getTime() { return theTime; }
0045 
0046 public:
0047   std::vector<FittedEntry*> theFittedEntries;
0048 
0049 private:
0050   //t  struct tm theTime;

0051   ALIstring theDate;
0052   ALIstring theTime;
0053   std::vector<std::vector<ALIdouble> > theCorrelationMatrix;
0054   ALIint theMinEntryQuality;
0055   MatrixMeschach* theEntriesErrorMatrix;
0056 };
0057 
0058 #endif