/[PAMELA software]/calo/flight/CaloFranzini/inc/CaloFranzini.h
ViewVC logotype

Diff of /calo/flight/CaloFranzini/inc/CaloFranzini.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mocchiut, Thu Dec 13 17:08:08 2007 UTC revision 1.6 by mocchiut, Fri Jan 11 15:27:11 2008 UTC
# Line 17  Line 17 
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>
# Line 42  class CaloFranzini : public TObject { Line 43  class CaloFranzini : public TObject {
43      TFile *file;      TFile *file;
44      Int_t nbin;      Int_t nbin;
45      TArrayF *brig;      TArrayF *brig;
46        TArrayF *brigm;
47        TArrayF *qplmean[17];
48        TMatrixD *hmat[17];
49        TMatrixF *hfmat[17];
50        TMatrixD *fqplmean[17];
51      Int_t N;      Int_t N;
52      Int_t NC;      Int_t NC;
53      //      //
# Line 55  class CaloFranzini : public TObject { Line 61  class CaloFranzini : public TObject {
61      Float_t qplane[43];      Float_t qplane[43];
62      Bool_t sel;      Bool_t sel;
63      Bool_t cont;      Bool_t cont;
64        Bool_t crig;
65      //      //
66      Int_t mask18b;      Int_t mask18b;
67      Bool_t dofull;      Bool_t dofull;
# Line 81  class CaloFranzini : public TObject { Line 88  class CaloFranzini : public TObject {
88      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.
89      Int_t GetDegreeOfFreedom(){return degfre;};      Int_t GetDegreeOfFreedom(){return degfre;};
90      //      //
91      TArrayF *LoadLongAverage(Float_t rig);      TArrayF *LoadLongAverage(Float_t rig);
92      TMatrixD *LoadCovarianceMatrix(Float_t rig);      TMatrixD *LoadCovarianceMatrix(Float_t rig);
93      //      //
94        Float_t GetAverageAt(Int_t plane, Float_t rig);
95        Float_t GetHmatrixAt(Int_t i, Int_t j, Float_t rig);
96        //
97        Float_t GetFullAverageAt(Int_t plane, Int_t strip, Float_t rig);
98        Float_t GetFullHmatrixAt(Int_t i, Int_t j, Float_t rig);
99        Float_t GetFullAverageAt(Int_t plane, Int_t strip, Float_t rig, Int_t rigbin);
100        Float_t GetFullHmatrixAt(Int_t i, Int_t j, Float_t rig, Int_t rigbin);
101        //
102      Bool_t Open(TString matrixfile);      Bool_t Open(TString matrixfile);
103        Bool_t LoadBin();
104        Bool_t LoadLong();
105        Bool_t LoadFull();
106        Bool_t LoadMatrices();
107        Bool_t LoadFullMatrices();
108      TFile *GetFile(){return file;};      TFile *GetFile(){return file;};
109      //      //
110        TMatrixD *LoadFullAverage(Int_t rigbin);
111        TMatrixD *LoadFullNAverage(Int_t rigbin);
112        void UnLoadFullAverage(Int_t rigbin);
113        void UnLoadFullNAverage(Int_t rigbin);
114        TMatrixF *LoadFullMatrix(Int_t rigbin);
115        void LoadFullMatrix(Int_t rigbin, TMatrixF *&fmatri);
116        TMatrixF *LoadFullNMatrix(Int_t rigbin);
117        void UnLoadFullMatrix(Int_t rigbin);
118        void UnLoadFullNMatrix(Int_t rigbin);
119        //
120      Bool_t CreateMatrixFile(TString matrixfile);      Bool_t CreateMatrixFile(TString matrixfile);
121        Bool_t UpdateMatrixFile(TString matrixfile);
122      void WriteNumBin(Int_t numbin);      void WriteNumBin(Int_t numbin);
123      void WriteRigBin(TArrayF *rigbin);      void WriteRigBin(TArrayF *rigbin);
124      void WriteLongMean(TArrayF *qpl, Int_t bin);      void WriteLongMean(TArrayF *qpl, Int_t bin);
125      void WriteLongMatrix(TMatrixD *matrix, Int_t bin);      void WriteLongMatrix(TMatrixD *matrix, Int_t bin);
126        void WriteFullMatrix(TMatrixF *matrix, Int_t bin);
127        void WriteFullNMatrix(TMatrixF *matrix, Int_t bin);
128        void WriteFullMean(TMatrixD *matrix, Int_t bin);
129        void WriteFullNMean(TMatrixD *matrix, Int_t bin);
130      void WriteInvertedLongMatrix(TMatrixD matrix, Int_t bin);      void WriteInvertedLongMatrix(TMatrixD matrix, Int_t bin);
131        void WriteInvertedFullMatrix(TMatrixF matrix, Int_t bin);
132      void CloseMatrixFile();      void CloseMatrixFile();
133      //      //
134      void CalculateLongTZeta(){ dofull = false; dolong=true; };      void CalculateLongTZeta(){ dofull = false; dolong=true; };
# Line 103  class CaloFranzini : public TObject { Line 139  class CaloFranzini : public TObject {
139      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.
140      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.
141      void DrawLongAverage(Float_t rig);      void DrawLongAverage(Float_t rig);
142        void DrawLongAverage(Int_t bin);
143        void UseCaloRig(){crig=true;};
144      //      //
145      void Clear();      void Clear();
146      void Clear(Option_t *option){Clear();};      void Clear(Option_t *option){Clear();};

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.23