00001 // COCOA class header file 00002 //Id: FittedEntriesManager.h 00003 //CAT: Model 00004 // 00005 // Class to manage the sets of fitted entries (one set per each measurement data set) 00006 // 00007 // History: v1.0 00008 // Pedro Arce 00009 00010 #ifndef _FittedEntriesManager_HH 00011 #define _FittedEntriesManager_HH 00012 00013 #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h" 00014 #include "Alignment/CocoaAnalysis/interface/FittedEntriesSet.h" 00015 00016 00017 class FittedEntriesManager 00018 { 00019 00020 public: 00021 //---------- Constructors / Destructor 00022 FittedEntriesManager(){ }; 00023 ~FittedEntriesManager(){ }; 00024 static FittedEntriesManager* getInstance(); 00025 void AddFittedEntriesSet( FittedEntriesSet* fents); 00026 void MakeHistos(); 00027 00028 public: 00029 std::vector< FittedEntriesSet* > getFittedEntriesSets() const { 00030 return theFittedEntriesSets; } 00031 00032 private: 00033 ALIstring createFileName( const ALIstring& optoName, const ALIstring& entryName); 00034 void dumpEntriesSubstraction( std::ofstream& fout, FittedEntriesSet& fes, ALIint order1, ALIint order2 ); 00035 00036 private: 00037 static FittedEntriesManager* instance; 00038 std::vector< FittedEntriesSet* > theFittedEntriesSets; 00039 00040 void GetDifferentBetweenLasers(); 00041 00042 }; 00043 00044 #endif 00045