Changeset 2634
- Timestamp:
- 12/10/03 14:18:49 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r2631 r2634 220 220 disp16.SetYTitle("Sigma per Charge [1]"); 221 221 222 disp1.SetPrettyPalette();223 disp3.SetPrettyPalette();224 disp5.SetPrettyPalette();225 disp6.SetPrettyPalette();226 disp7.SetPrettyPalette();227 disp8.SetPrettyPalette();228 disp9.SetPrettyPalette();229 disp10.SetPrettyPalette();230 disp11.SetPrettyPalette();231 disp12.SetPrettyPalette();232 disp13.SetPrettyPalette();233 disp14.SetPrettyPalette();234 disp15.SetPrettyPalette();235 disp16.SetPrettyPalette();236 237 238 222 239 223 MStatusDisplay *d2 = new MStatusDisplay; … … 251 235 obj=disp1.DrawCopy("hist"); 252 236 ((MHCamera*)obj)->AddNotify(*cam); 237 ((MHCamera*)obj)->SetPrettyPalette(); 253 238 254 239 c1->cd(3); … … 260 245 obj=disp3.DrawCopy("hist"); 261 246 ((MHCamera*)obj)->AddNotify(*cam); 247 ((MHCamera*)obj)->SetPrettyPalette(); 262 248 263 249 c1->cd(4); … … 273 259 obj=disp5.DrawCopy("hist"); 274 260 ((MHCamera*)obj)->AddNotify(*cam); 261 ((MHCamera*)obj)->SetPrettyPalette(); 275 262 276 263 c12->cd(2); … … 285 272 obj=disp6.DrawCopy("hist"); 286 273 ((MHCamera*)obj)->AddNotify(*cam); 274 ((MHCamera*)obj)->SetPrettyPalette(); 287 275 288 276 c2->cd(4); … … 293 281 obj=disp7.DrawCopy("hist"); 294 282 ((MHCamera*)obj)->AddNotify(*cam); 283 ((MHCamera*)obj)->SetPrettyPalette(); 295 284 296 285 c2->cd(5); … … 301 290 obj=disp8.DrawCopy("hist"); 302 291 ((MHCamera*)obj)->AddNotify(*cam); 292 ((MHCamera*)obj)->SetPrettyPalette(); 303 293 304 294 c2->cd(6); … … 312 302 obj=disp9.DrawCopy("hist"); 313 303 ((MHCamera*)obj)->AddNotify(*cam); 304 ((MHCamera*)obj)->SetPrettyPalette(); 314 305 315 306 c3->cd(3); … … 320 311 obj=disp10.DrawCopy("hist"); 321 312 ((MHCamera*)obj)->AddNotify(*cam); 313 ((MHCamera*)obj)->SetPrettyPalette(); 322 314 323 315 c3->cd(4); … … 331 323 obj=disp11.DrawCopy("hist"); 332 324 ((MHCamera*)obj)->AddNotify(*cam); 325 ((MHCamera*)obj)->SetPrettyPalette(); 333 326 334 327 c4->cd(3); … … 339 332 obj=disp16.DrawCopy("hist"); 340 333 ((MHCamera*)obj)->AddNotify(*cam); 334 ((MHCamera*)obj)->SetPrettyPalette(); 341 335 342 336 c4->cd(4); … … 350 344 obj=disp12.DrawCopy("hist"); 351 345 ((MHCamera*)obj)->AddNotify(*cam); 346 ((MHCamera*)obj)->SetPrettyPalette(); 352 347 353 348 c5->cd(3); … … 358 353 obj=disp13.DrawCopy("hist"); 359 354 ((MHCamera*)obj)->AddNotify(*cam); 355 ((MHCamera*)obj)->SetPrettyPalette(); 360 356 361 357 c5->cd(4); … … 369 365 obj=disp14.DrawCopy("hist"); 370 366 ((MHCamera*)obj)->AddNotify(*cam); 367 ((MHCamera*)obj)->SetPrettyPalette(); 371 368 372 369 c6->cd(3); … … 377 374 obj=disp15.DrawCopy("hist"); 378 375 ((MHCamera*)obj)->AddNotify(*cam); 376 ((MHCamera*)obj)->SetPrettyPalette(); 379 377 380 378 c6->cd(4); -
trunk/MagicSoft/Mars/manalysis/MCalibrationCalc.cc
r2631 r2634 304 304 305 305 MExtractedSignalPix &sig = (*fSignals)[pixid]; 306 Float_t sum = sig.GetExtractedSignal(); 306 307 Float_t sum = sig.GetExtractedSignal(); 307 308 Bool_t logain = sig.IsLoGainUsed(); 308 309 -
trunk/MagicSoft/Mars/manalysis/MCalibrationPix.cc
r2631 r2634 102 102 103 103 if (fPed && fPedRms) 104 fHist->SetLowerFitRange( 3.5*fPedRms);105 // fHist->SetLowerFitRange(fPed + 3.5*fPedRms); 104 fHist->SetLowerFitRange(1.5*fPedRms); 105 106 106 else 107 107 *fLog << warn << "Cannot set lower fit range to suppress cosmics: Pedestals not available" << endl; … … 116 116 *fLog << warn << "Could not fit Lo Gain charges of pixel " << fPixId << endl; 117 117 fHist->PrintChargeFitResult(); 118 return kFALSE;118 // return kFALSE; 119 119 } 120 120 } … … 125 125 *fLog << warn << "Could not fit Hi Gain charges of pixel " << fPixId << endl; 126 126 fHist->PrintChargeFitResult(); 127 return kFALSE;127 // return kFALSE; 128 128 } 129 129 } -
trunk/MagicSoft/Mars/manalysis/MExtractSignal.h
r2627 r2634 41 41 42 42 Bool_t ReInit(MParList *pList); 43 Int_t PreProcess(MParList *pList);44 Int_t Process();45 Int_t PostProcess();43 Int_t PreProcess(MParList *pList); 44 Int_t Process(); 45 Int_t PostProcess(); 46 46 47 47 public: -
trunk/MagicSoft/Mars/manalysis/MExtractedSignalPix.h
r2627 r2634 16 16 Byte_t fNumLoGainSaturated; 17 17 18 Float_t fMeanArrivalTime; 19 Float_t fWidthArrivalTime; 20 18 21 public: 19 22 … … 25 28 Float_t GetExtractedSignalError() const { return fExtractedSignalError; } 26 29 27 void SetExtractedSignal(Float_t sig, Float_t sigerr) { fExtractedSignal = sig; fExtractedSignalError = sigerr; } 30 Float_t GetMeanArrivalTime() const { return fMeanArrivalTime; } 31 Float_t GetWidthArrivalTime() const { return fWidthArrivalTime; } 32 33 void SetExtractedSignal(Float_t sig, Float_t sigerr) 34 { 35 fExtractedSignal = sig; 36 fExtractedSignalError = sigerr; 37 } 38 28 39 void SetGainSaturation(Bool_t sat, Byte_t higain, Byte_t logain) 29 40 { fIsLoGainUsed = sat; 30 41 fNumHiGainSaturated = higain; 31 42 fNumLoGainSaturated = logain; } 43 44 void SetArrivalTimes(Float_t mean, Float_t width) 45 { fMeanArrivalTime = mean; 46 fWidthArrivalTime = width; 47 } 32 48 33 49 Bool_t IsLoGainUsed() { return fIsLoGainUsed; }
Note:
See TracChangeset
for help on using the changeset viewer.