Changeset 4301 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 06/17/04 10:49:08 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r4189 r4301 63 63 64 64 using namespace std; 65 66 const Double_t MJPedestal::fgPedestalMin = 4.; 67 const Double_t MJPedestal::fgPedestalMax = 16.; 68 const Double_t MJPedestal::fgPedRmsMin = 0.; 69 const Double_t MJPedestal::fgPedRmsMax = 20.; 65 70 // -------------------------------------------------------------------------- 66 71 // … … 147 152 // Create container to display 148 153 // 149 MHCamera disp0(geomcam, "MPedestalCam;ped", " Pedestal");150 MHCamera disp1(geomcam, "MPedestalCam;RMS", "Ped .RMS");154 MHCamera disp0(geomcam, "MPedestalCam;ped", "Mean Pedestal"); 155 MHCamera disp1(geomcam, "MPedestalCam;RMS", "Pedestal RMS"); 151 156 152 157 disp0.SetCamContent(fPedestalCam, 0); … … 159 164 disp1.SetYTitle("\\sigma_{P} [fadc/slice]"); 160 165 166 161 167 // 162 168 // Display data … … 165 171 c3.Divide(2,3); 166 172 167 disp0.CamDraw(c3, 1, 2, 1); 168 disp1.CamDraw(c3, 2, 2, 6); 173 if (fDataCheck) 174 { 175 c3.cd(1); 176 gPad->SetBorderMode(0); 177 gPad->SetTicks(); 178 MHCamera *obj1=(MHCamera*)disp0.DrawCopy("hist"); 179 obj1->SetDirectory(NULL); 180 obj1->SetMinimum(fgPedestalMin); 181 obj1->SetMaximum(fgPedestalMax); 182 gPad->Modified(); 183 gPad->Update(); 184 185 c3.cd(3); 186 gPad->SetBorderMode(0); 187 obj1->SetPrettyPalette(); 188 obj1->Draw(); 189 190 c3.cd(5); 191 gPad->SetBorderMode(0); 192 gPad->SetTicks(); 193 disp0.DrawProjection(7); 194 gPad->Modified(); 195 gPad->Update(); 196 197 c3.cd(2); 198 gPad->SetBorderMode(0); 199 gPad->SetTicks(); 200 MHCamera *obj2=(MHCamera*)disp1.DrawCopy("hist"); 201 obj2->SetDirectory(NULL); 202 obj2->SetMinimum(fgPedRmsMin); 203 obj2->SetMaximum(fgPedRmsMax); 204 gPad->Modified(); 205 gPad->Update(); 206 207 c3.cd(4); 208 gPad->SetBorderMode(0); 209 obj2->SetPrettyPalette(); 210 obj2->Draw(); 211 212 c3.cd(6); 213 gPad->SetBorderMode(0); 214 gPad->SetTicks(); 215 disp1.DrawProjection(6); 216 217 } 218 else 219 { 220 disp0.CamDraw(c3, 1, 2, 1); 221 disp1.CamDraw(c3, 2, 2, 6); 222 } 169 223 } 170 224 -
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r4189 r4301 17 17 { 18 18 private: 19 20 static const Double_t fgPedestalMin; 21 static const Double_t fgPedestalMax; 22 static const Double_t fgPedRmsMin; 23 static const Double_t fgPedRmsMax; 19 24 20 25 TString fOutputPath; … … 41 46 42 47 const char* GetOutputFile() const; 48 const Bool_t IsDataCheck() const { return fDataCheck; } 43 49 44 50 Bool_t Process();
Note:
See TracChangeset
for help on using the changeset viewer.