CMS 3D CMS Logo

FittedEntriesSet.h

Go to the documentation of this file.
00001 //   COCOA class header file
00002 //Id:  FittedEntriesSet.h
00003 //CAT: Model
00004 //
00005 //   Class to store set of fitted entries with date 
00006 // 
00007 //   History: v1.0 
00008 //   Pedro Arce
00009 
00010 #ifndef _FittedEntriesSet_HH
00011 #define _FittedEntriesSet_HH
00012 
00013 #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
00014 #include "time.h"
00015 #include <vector>
00016 #include "Alignment/CocoaAnalysis/interface/FittedEntry.h"
00017 //#ifdef MAT_MESCHACH
00018 #include "Alignment/CocoaFit/interface/MatrixMeschach.h"
00019 //typedef MatrixMeschach ALIMatrix;
00020 //#endif
00021 
00022 class FittedEntriesSet
00023 {
00024 
00025 public:
00026   //---------- Constructors / Destructor
00027   FittedEntriesSet( MatrixMeschach* AtWAMatrix );
00028   FittedEntriesSet( std::vector<ALIstring> wl );
00029   //---- Average a list of FittedEntriesSet's
00030   FittedEntriesSet( std::vector<FittedEntriesSet*> vSets ); 
00031   ~FittedEntriesSet(){ };
00032   void Fill();
00033   void FillEntries();
00034   void FillCorrelations();
00035   void CreateCorrelationMatrix( const ALIuint nent );
00036   void FillEntriesFromFile( std::vector<ALIstring> wl);
00037   void FillEntriesAveragingSets( std::vector<FittedEntriesSet*> vSets );
00038 
00039   void SetOptOEntries();
00040 
00041  public:
00042   std::vector< FittedEntry* >& FittedEntries(){
00043     return theFittedEntries;
00044   }
00045 
00046 //GET AND SET METHODS
00047   ALIstring& getDate() {
00048     return theDate;
00049   }
00050   ALIstring& getTime() {
00051     return theTime;
00052   }
00053 
00054 public:
00055 
00056   std::vector< FittedEntry* > theFittedEntries;
00057  private:
00058 //t  struct tm theTime;
00059   ALIstring theDate;
00060   ALIstring theTime;
00061   std::vector< std::vector<ALIdouble> > theCorrelationMatrix;
00062   ALIint theMinEntryQuality;
00063   MatrixMeschach* theEntriesErrorMatrix;
00064 };
00065 
00066 #endif
00067 

Generated on Tue Jun 9 17:23:25 2009 for CMSSW by  doxygen 1.5.4