forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 1
/
FittedEntriesSet.h
67 lines (56 loc) · 1.6 KB
/
FittedEntriesSet.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// COCOA class header file
//Id: FittedEntriesSet.h
//CAT: Model
//
// Class to store set of fitted entries with date
//
// History: v1.0
// Pedro Arce
#ifndef _FittedEntriesSet_HH
#define _FittedEntriesSet_HH
#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include "time.h"
#include <vector>
#include "Alignment/CocoaAnalysis/interface/FittedEntry.h"
//#ifdef MAT_MESCHACH
#include "Alignment/CocoaFit/interface/MatrixMeschach.h"
//typedef MatrixMeschach ALIMatrix;
//#endif
class FittedEntriesSet
{
public:
//---------- Constructors / Destructor
FittedEntriesSet( MatrixMeschach* AtWAMatrix );
FittedEntriesSet( std::vector<ALIstring> wl );
//---- Average a list of FittedEntriesSet's
FittedEntriesSet( std::vector<FittedEntriesSet*> vSets );
~FittedEntriesSet(){ };
void Fill();
void FillEntries();
void FillCorrelations();
void CreateCorrelationMatrix( const ALIuint nent );
void FillEntriesFromFile( std::vector<ALIstring> wl);
void FillEntriesAveragingSets( std::vector<FittedEntriesSet*> vSets );
void SetOptOEntries();
public:
std::vector< FittedEntry* >& FittedEntries(){
return theFittedEntries;
}
//GET AND SET METHODS
ALIstring& getDate() {
return theDate;
}
ALIstring& getTime() {
return theTime;
}
public:
std::vector< FittedEntry* > theFittedEntries;
private:
//t struct tm theTime;
ALIstring theDate;
ALIstring theTime;
std::vector< std::vector<ALIdouble> > theCorrelationMatrix;
ALIint theMinEntryQuality;
MatrixMeschach* theEntriesErrorMatrix;
};
#endif