Changeset 1999
- Timestamp:
- 04/24/03 11:09:17 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1998 r1999 1 1 -*-*- END OF LINE -*-*- 2 3 2003/04/24: Wolfgang Wittek 4 5 * mfilter/MFCT1SelFinal.cc 6 - small correction in output 7 8 * mhistmc/MHMcCT1CollectionArea.cc 9 - plot all 3 histograms in DrawClone() 10 11 * manalysis/MPadSchweizer.[h,cc] 12 - cleanup as proposed by Thomas 13 - new member function SetHistograms() to set the pointers to the 14 histograms to be used in the padding 15 16 2 17 3 18 2003/04/24: Antonio Stamerra -
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) -
trunk/MagicSoft/Mars/mfilter/MFCT1SelFinal.cc
r1982 r1999 83 83 void MFCT1SelFinal::SetCuts(Float_t hadmax, Float_t alphamax, Float_t distmax) 84 84 { 85 fHadronnessMax = hadmax;85 fHadronnessMax = hadmax; 86 86 fAlphaMax = alphamax; 87 fDistMax = distmax; 88 89 *fLog << inf << "MFCT1SelFinal cut values : fHadronnessMax, fAlphaMax = " 90 << fHadronnessMax << ", " << fAlphaMax << ", fDistMax = " << fDistMax 91 << endl; 87 fDistMax = distmax; 88 89 *fLog << inf << "MFCT1SelFinal cut values : fHadronnessMax, fAlphaMax, fDistMax = " 90 << fHadronnessMax << ", " << fAlphaMax << ", " << fDistMax << endl; 92 91 } 93 92 -
trunk/MagicSoft/Mars/mhistmc/MHMcCT1CollectionArea.cc
r1992 r1999 183 183 TObject *MHMcCT1CollectionArea::DrawClone(Option_t* option) const 184 184 { 185 TCanvas *c = MH::MakeDefCanvas(fHistCol); 185 TCanvas &c = *MakeDefCanvas("CollArea", "Collection area plots", 600, 600); 186 c.Divide(2,2); 186 187 187 188 // … … 190 191 gROOT->SetSelectedPad(NULL); 191 192 193 c.cd(1); 194 fHistCol->SetDirectory(NULL); 192 195 fHistCol->DrawCopy(option); 193 196 194 c->Modified(); 195 c->Update(); 196 197 return c; 197 c.cd(2); 198 fHistSel->SetDirectory(NULL); 199 fHistSel->DrawCopy(option); 200 201 c.cd(3); 202 fHistAll->SetDirectory(NULL); 203 fHistAll->DrawCopy(option); 204 205 206 c.Modified(); 207 c.Update(); 208 209 return &c; 198 210 } 199 211
Note:
See TracChangeset
for help on using the changeset viewer.