/[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.2 by mocchiut, Tue Dec 4 12:42:50 2007 UTC revision 1.3 by mocchiut, Thu Dec 13 17:08:08 2007 UTC
# Line 5  Line 5 
5  #ifndef calofranzini_h  #ifndef calofranzini_h
6  #define calofranzini_h  #define calofranzini_h
7    
8  #include <PamLevel2.h>  #include <iostream>
9    
10  #include <TTree.h>  #include <TTree.h>
11  #include <TFriendElement.h>  #include <TFriendElement.h>
# Line 19  Line 19 
19  #include <TMatrixD.h>  #include <TMatrixD.h>
20  #include <TArrayI.h>  #include <TArrayI.h>
21  #include <TArrayF.h>  #include <TArrayF.h>
22    #include <TStyle.h>
23    #include <TCanvas.h>
24    #include <TStyle.h>
25    #include <TH1F.h>
26    //
27    
28  #include <iostream>  #include <PamLevel2.h>
29    
30  using namespace std;  using namespace std;
31    
# Line 37  class CaloFranzini : public TObject { Line 42  class CaloFranzini : public TObject {
42      TFile *file;      TFile *file;
43      Int_t nbin;      Int_t nbin;
44      TArrayF *brig;      TArrayF *brig;
45        Int_t N;
46        Int_t NC;
47      //      //
48      // needed to avoid reprocessing the same event over and over to obtain the variables;      // needed to avoid reprocessing the same event over and over to obtain the variables;
49      //      //
# Line 45  class CaloFranzini : public TObject { Line 52  class CaloFranzini : public TObject {
52      UInt_t atime;      UInt_t atime;
53      Int_t sntr;      Int_t sntr;
54      Float_t estrip[2][22][96];      Float_t estrip[2][22][96];
55      Float_t qplane[44];      Float_t qplane[43];
56        Bool_t sel;
57        Bool_t cont;
58      //      //
59        Int_t mask18b;
60      Bool_t dofull;      Bool_t dofull;
61      Bool_t dolong;      Bool_t dolong;
62      Int_t degfre;      Int_t degfre;
# Line 67  class CaloFranzini : public TObject { Line 77  class CaloFranzini : public TObject {
77      Float_t GetNormLongTZeta(); ///< Returns longitudinal covariance parameter used for event selection      Float_t GetNormLongTZeta(); ///< Returns longitudinal covariance parameter used for event selection
78      Float_t GetNormFullTZeta(); ///< Returns full calorimeter covariance parameter used for event selection      Float_t GetNormFullTZeta(); ///< Returns full calorimeter covariance parameter used for event selection
79      //      //
80        void Selection(){sel = true; cont = false;}; ///< Set selection mode: planes from 1 to 22-N are used, plane 18 - N is masked if "emulate18" variable is true (DEFAULT);
81        void Contamination(){sel = false; cont = true;}; ///< Set contamination mode: planes from N to 22 are used.
82      Int_t GetDegreeOfFreedom(){return degfre;};      Int_t GetDegreeOfFreedom(){return degfre;};
83      //      //
84      TArrayF *LoadLongAverage(Float_t rig);      TArrayF *LoadLongAverage(Float_t rig);
85      TMatrixD *LoadCovarianceMatrix(Float_t rig);      TMatrixD *LoadCovarianceMatrix(Float_t rig);
86      //      //
87      Bool_t Open(TString matrixfile);      Bool_t Open(TString matrixfile);
88        TFile *GetFile(){return file;};
89      //      //
90      Bool_t CreateMatrixFile(TString matrixfile);      Bool_t CreateMatrixFile(TString matrixfile);
91      void WriteNumBin(Int_t numbin);      void WriteNumBin(Int_t numbin);
92      void WriteRigBin(TArrayF *rigbin);      void WriteRigBin(TArrayF *rigbin);
93      void WriteLongMean(TArrayF *qpl, Int_t bin);      void WriteLongMean(TArrayF *qpl, Int_t bin);
94      void WriteLongMatrix(TMatrixD *matrix, Int_t bin);      void WriteLongMatrix(TMatrixD *matrix, Int_t bin);
95        void WriteInvertedLongMatrix(TMatrixD matrix, Int_t bin);
96      void CloseMatrixFile();      void CloseMatrixFile();
97      //      //
98      void CalculateLongTZeta(){ dofull = false; dolong=true; };      void CalculateLongTZeta(){ dofull = false; dolong=true; };
99      void CalculateFullTZeta(){ dolong = false; dofull=true; };      void CalculateFullTZeta(){ dolong = false; dofull=true; };
100      void SetDebug(Bool_t d){ debug=d; };      void SetDebug(Bool_t d){ debug=d; };
101        void SetNoWpreSampler(Int_t n);
102        void SetNoWcalo(Int_t n);
103        Int_t GetNoWpreSampler(){return N;}; ///< Get the number of W planes used as presampler.
104        Int_t GetNoWcalo(){return NC;}; ///< Get the number of W planes used as calorimeter.
105        void DrawLongAverage(Float_t rig);
106      //      //
107      void Clear();      void Clear();
108      void Clear(Option_t *option){Clear();};      void Clear(Option_t *option){Clear();};

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

  ViewVC Help
Powered by ViewVC 1.1.23