Changeset 1999 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 04/24/03 11:09:17 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MPadSchweizer.cc
r1961 r1999 69 69 #include "TH2.h" 70 70 #include "TH3.h" 71 #include "TProfile.h"72 71 #include "TRandom.h" 73 72 #include "TCanvas.h" … … 93 92 // Default constructor. 94 93 // 95 MPadSchweizer::MPadSchweizer(const char *name, const char *title, 96 TH2D *fHist2, TH3D *fHist3, TH3D *fHist3Diff) : 97 fRunType(0), fGroup(0) 94 MPadSchweizer::MPadSchweizer(const char *name, const char *title) 98 95 { 99 96 fName = name ? name : "MPadSchweizer"; 100 97 fTitle = title ? title : "Task for the padding (Schweizer)"; 101 98 102 fHSigmaTheta = fHist2;103 fHSigmaPixTheta = fHist3;104 fHDiffPixTheta = fHist3Diff;105 106 fHSigmaTheta->SetDirectory(NULL);107 fHSigmaPixTheta->SetDirectory(NULL);108 fHDiffPixTheta->SetDirectory(NULL);109 110 Print();99 //fHSigmaTheta = fHist2; 100 //fHSigmaPixTheta = fHist3; 101 //fHDiffPixTheta = fHist3Diff; 102 103 //fHSigmaTheta->SetDirectory(NULL); 104 //fHSigmaPixTheta->SetDirectory(NULL); 105 //fHDiffPixTheta->SetDirectory(NULL); 106 107 //Print(); 111 108 } 112 109 … … 122 119 // -------------------------------------------------------------------------- 123 120 // 121 // Set the references to the histograms to be used in the padding 122 // 123 // 124 void MPadSchweizer::SetHistograms(TH2D *fHist2, TH3D *fHist3, TH3D *fHist3Diff) 125 { 126 fHSigmaTheta = fHist2; 127 fHSigmaPixTheta = fHist3; 128 fHDiffPixTheta = fHist3Diff; 129 130 fHSigmaTheta->SetDirectory(NULL); 131 fHSigmaPixTheta->SetDirectory(NULL); 132 fHDiffPixTheta->SetDirectory(NULL); 133 134 Print(); 135 } 136 137 // -------------------------------------------------------------------------- 138 // 124 139 // Set the option for the padding 125 140 // 141 // There are 2 options for the padding : // 142 // // 143 // 1) fPadFlag = 1 : // 144 // Generate first a Sigmabar using the 2D-histogram Sigmabar vs. Theta // 145 // (fHSigmaTheta). Then generate a pedestal sigma for each pixel using // 146 // the 3D-histogram Theta, pixel no., Sigma^2-Sigmabar^2 // 147 // (fHDiffPixTheta). // 148 // // 149 // This is the preferred option as it takes into account the // 150 // correlations between the Sigma of a pixel and Sigmabar. // 151 // // 152 // 2) fPadFlag = 2 : // 153 // Generate a pedestal sigma for each pixel using the 3D-histogram // 154 // Theta, pixel no., Sigma (fHSigmaPixTheta). // 155 // // 126 156 void MPadSchweizer::SetPadFlag(Int_t padflag) 127 157 { -
trunk/MagicSoft/Mars/manalysis/MPadSchweizer.h
r1996 r1999 14 14 #include "TH2.h" 15 15 #include "TH3.h" 16 #include "TProfile.h"17 16 18 17 … … 21 20 class MPedestalCam; 22 21 class MMcEvt; 23 class MPedestalCam;24 22 class MSigmabar; 25 23 class MParList; … … 63 61 64 62 public: 65 MPadSchweizer(const char *name, const char *title, 66 TH2D *fHist2, TH3D *fHist3, TH3D *fHist3Diff); 63 MPadSchweizer(const char *name=NULL, const char *title=NULL); 67 64 ~MPadSchweizer(); 65 66 void SetHistograms(TH2D *fHist2=NULL, TH3D *fHist3=NULL, 67 TH3D *fHist3Diff=NULL); 68 68 69 69 Bool_t PreProcess(MParList *pList); … … 72 72 73 73 void SetPadFlag(Int_t padflag); 74 void SetRunType(Int_t runtype) { fRunType = runtype; }75 void SetGroup(Int_t group) { fGroup = group; }76 74 77 75 ClassDef(MPadSchweizer, 0) // task for the padding (Schweizer)
Note:
See TracChangeset
for help on using the changeset viewer.