17 |
#include <TSystemDirectory.h> |
#include <TSystemDirectory.h> |
18 |
#include <TSQLServer.h> |
#include <TSQLServer.h> |
19 |
#include <TMatrixD.h> |
#include <TMatrixD.h> |
20 |
|
#include <TMatrixF.h> |
21 |
#include <TArrayI.h> |
#include <TArrayI.h> |
22 |
#include <TArrayF.h> |
#include <TArrayF.h> |
23 |
#include <TStyle.h> |
#include <TStyle.h> |
24 |
#include <TCanvas.h> |
#include <TCanvas.h> |
25 |
#include <TStyle.h> |
#include <TStyle.h> |
26 |
#include <TH1F.h> |
#include <TH1F.h> |
27 |
|
#include <TDecompSVD.h> |
28 |
// |
// |
29 |
|
|
30 |
#include <PamLevel2.h> |
#include <PamLevel2.h> |
47 |
TArrayF *brigm; |
TArrayF *brigm; |
48 |
TArrayF *qplmean[17]; |
TArrayF *qplmean[17]; |
49 |
TMatrixD *hmat[17]; |
TMatrixD *hmat[17]; |
50 |
|
TMatrixF *hfmat[17]; |
51 |
|
TMatrixD *fqplmean[17]; |
52 |
Int_t N; |
Int_t N; |
53 |
Int_t NC; |
Int_t NC; |
54 |
// |
// |
62 |
Float_t qplane[43]; |
Float_t qplane[43]; |
63 |
Bool_t sel; |
Bool_t sel; |
64 |
Bool_t cont; |
Bool_t cont; |
65 |
|
Bool_t crig; |
66 |
// |
// |
67 |
Int_t mask18b; |
Int_t mask18b; |
68 |
Bool_t dofull; |
Bool_t dofull; |
89 |
void Contamination(){sel = false; cont = true;}; ///< Set contamination mode: planes from N to 22 are used. |
void Contamination(){sel = false; cont = true;}; ///< Set contamination mode: planes from N to 22 are used. |
90 |
Int_t GetDegreeOfFreedom(){return degfre;}; |
Int_t GetDegreeOfFreedom(){return degfre;}; |
91 |
// |
// |
92 |
TArrayF *LoadLongAverage(Float_t rig); |
TArrayF *LoadLongAverage(Float_t rig); |
93 |
TMatrixD *LoadCovarianceMatrix(Float_t rig); |
TMatrixD *LoadCovarianceMatrix(Float_t rig); |
94 |
// |
// |
95 |
Float_t GetAverageAt(Int_t plane, Float_t rig); |
Float_t GetAverageAt(Int_t plane, Float_t rig); |
96 |
Float_t GetHmatrixAt(Int_t i, Int_t j, Float_t rig); |
Float_t GetHmatrixAt(Int_t i, Int_t j, Float_t rig); |
97 |
// |
// |
98 |
|
Float_t GetFullAverageAt(Int_t plane, Int_t strip, Float_t rig); |
99 |
|
Float_t GetFullHmatrixAt(Int_t i, Int_t j, Float_t rig); |
100 |
|
Float_t GetFullAverageAt(Int_t plane, Int_t strip, Float_t rig, Int_t rigbin); |
101 |
|
Float_t GetFullHmatrixAt(Int_t i, Int_t j, Float_t rig, Int_t rigbin); |
102 |
|
// |
103 |
Bool_t Open(TString matrixfile); |
Bool_t Open(TString matrixfile); |
104 |
Bool_t LoadBin(); |
Bool_t LoadBin(); |
105 |
|
Bool_t LoadLong(); |
106 |
|
Bool_t LoadFull(); |
107 |
Bool_t LoadMatrices(); |
Bool_t LoadMatrices(); |
108 |
|
Bool_t LoadFullMatrices(); |
109 |
TFile *GetFile(){return file;}; |
TFile *GetFile(){return file;}; |
110 |
// |
// |
111 |
|
TMatrixD *LoadFullAverage(Int_t rigbin); |
112 |
|
TMatrixD *LoadFullNAverage(Int_t rigbin); |
113 |
|
void UnLoadFullAverage(Int_t rigbin); |
114 |
|
void UnLoadFullNAverage(Int_t rigbin); |
115 |
|
TMatrixF *LoadFullMatrix(Int_t rigbin); |
116 |
|
void LoadFullMatrix(Int_t rigbin, TMatrixF *&fmatri); |
117 |
|
TMatrixF *LoadFullNMatrix(Int_t rigbin); |
118 |
|
void UnLoadFullMatrix(Int_t rigbin); |
119 |
|
void UnLoadFullNMatrix(Int_t rigbin); |
120 |
|
// |
121 |
|
Int_t ConvertStrip(Int_t mstrip); |
122 |
|
// |
123 |
Bool_t CreateMatrixFile(TString matrixfile); |
Bool_t CreateMatrixFile(TString matrixfile); |
124 |
Bool_t UpdateMatrixFile(TString matrixfile); |
Bool_t UpdateMatrixFile(TString matrixfile); |
125 |
void WriteNumBin(Int_t numbin); |
void WriteNumBin(Int_t numbin); |
126 |
void WriteRigBin(TArrayF *rigbin); |
void WriteRigBin(TArrayF *rigbin); |
127 |
void WriteLongMean(TArrayF *qpl, Int_t bin); |
void WriteLongMean(TArrayF *qpl, Int_t bin); |
128 |
void WriteLongMatrix(TMatrixD *matrix, Int_t bin); |
void WriteLongMatrix(TMatrixD *matrix, Int_t bin); |
129 |
|
void WriteFullMatrix(TMatrixD *matrix, Int_t bin); |
130 |
|
void WriteFullNMatrix(TMatrixF *matrix, Int_t bin); |
131 |
|
void WriteFullMean(TMatrixD *matrix, Int_t bin); |
132 |
|
void WriteFullNMean(TMatrixD *matrix, Int_t bin); |
133 |
void WriteInvertedLongMatrix(TMatrixD matrix, Int_t bin); |
void WriteInvertedLongMatrix(TMatrixD matrix, Int_t bin); |
134 |
|
void WriteInvertedFullMatrix(TMatrixD matrix, Int_t bin); |
135 |
void CloseMatrixFile(); |
void CloseMatrixFile(); |
136 |
// |
// |
137 |
void CalculateLongTZeta(){ dofull = false; dolong=true; }; |
void CalculateLongTZeta(){ dofull = false; dolong=true; }; |
142 |
Int_t GetNoWpreSampler(){return N;}; ///< Get the number of W planes used as presampler. |
Int_t GetNoWpreSampler(){return N;}; ///< Get the number of W planes used as presampler. |
143 |
Int_t GetNoWcalo(){return NC;}; ///< Get the number of W planes used as calorimeter. |
Int_t GetNoWcalo(){return NC;}; ///< Get the number of W planes used as calorimeter. |
144 |
void DrawLongAverage(Float_t rig); |
void DrawLongAverage(Float_t rig); |
145 |
|
void DrawLongAverage(Int_t bin); |
146 |
|
void UseCaloRig(){crig=true;}; |
147 |
// |
// |
148 |
void Clear(); |
void Clear(); |
149 |
void Clear(Option_t *option){Clear();}; |
void Clear(Option_t *option){Clear();}; |