Changeset 7374 for trunk/MagicSoft
- Timestamp:
- 09/30/05 10:42:20 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7373 r7374 43 43 * mpointing/MPointingDevCalc.cc: 44 44 - reset counter in PreProcess 45 46 * resources/calibration.rc: 47 - new file 45 48 46 49 -
trunk/MagicSoft/Mars/NEWS
r7368 r7374 13 13 14 14 - merpp: made aware of new format 20050829-0 15 16 - callisto: New scale factors from muon analysis, stored in new 17 resource file resources/calibration.rc 15 18 16 19 - callisto: MBadPixelsCalc now raises an error instead of simply stopping -
trunk/MagicSoft/Mars/callisto.rc
r7251 r7374 399 399 #MJCalibrateSignal.MCalibColorSet.ExpicitColor: green,blue,uv,ct1 400 400 #MJCalibrateSignal.MCalibrateData.PedestalFlag: Event 401 MJCalibrateSignal.MCalibrateData.ScaleFactor: 0.9633911368 401 #MJCalibrateSignal.MCalibrateData.ScaleFactor: 1 402 MJCalibrateSignal.MCalibrateData.FileNameScale: resources/calibration.rc 402 403 #MJCalibrateSignal.MCalibrateData.CalibrationMode: Default 403 404 #MJCalibrateSignal.MCalibrateData.CalibConvMinLimit: 0.01 -
trunk/MagicSoft/Mars/callisto_Dec04Jan05.rc
r7251 r7374 410 410 #MJCalibrateSignal.MCalibColorSet.ExpicitColor: green,blue,uv,ct1 411 411 #MJCalibrateSignal.MCalibrateData.PedestalFlag: Event 412 MJCalibrateSignal.MCalibrateData.ScaleFactor: 0. 919117647412 MJCalibrateSignal.MCalibrateData.ScaleFactor: 0.85182358 413 413 #MJCalibrateSignal.MCalibrateData.CalibrationMode: Default 414 414 #MJCalibrateSignal.MCalibrateData.CalibConvMinLimit: 0.01 -
trunk/MagicSoft/Mars/callisto_MarApr05.rc
r7251 r7374 399 399 #MJCalibrateSignal.MCalibColorSet.ExpicitColor: green,blue,uv,ct1 400 400 #MJCalibrateSignal.MCalibrateData.PedestalFlag: Event 401 MJCalibrateSignal.MCalibrateData.ScaleFactor: 1.01419878296146 401 #MJCalibrateSignal.MCalibrateData.ScaleFactor: 1 402 MJCalibrateSignal.MCalibrateData.FileNameScale: resources/calibration.rc 402 403 #MJCalibrateSignal.MCalibrateData.CalibrationMode: Default 403 404 #MJCalibrateSignal.MCalibrateData.CalibConvMinLimit: 0.01 -
trunk/MagicSoft/Mars/datacenter/macros/fillstar.C
r7369 r7374 114 114 115 115 Float_t mw = hmuon->GetMeanWidth(); 116 Float_t psf = -194.031674+404.077598*mw-192.532597*mw*mw;116 Float_t psf = 51.505292 - 31.147126*mw; 117 117 psf = TMath::Nint(psf*10)/10.; 118 118 TString PSF = Form("%5.1f", psf); -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
r7353 r7374 429 429 // output information or warnings: 430 430 // 431 switch (fSignalType)431 switch (fSignalType) 432 432 { 433 433 case kPhe: 434 *fLog << inf << "Calibrating in units of equivalent (outer/inner=4) photo-electrons." << endl;435 break;434 *fLog << inf << "Calibrating in units of equivalent (outer/inner=4) photo-electrons." << endl; 435 break; 436 436 case kPhot: 437 *fLog << inf << "Calibrating in units of photons." << endl;438 break;437 *fLog << inf << "Calibrating in units of photons." << endl; 438 break; 439 439 } 440 440 441 441 if (header->IsMonteCarloRun()) 442 442 { 443 *fLog << "Additional scale factor: 1 (MonteCarloRun)" << endl;443 *fLog << inf << "Additional scale factor forced to: 1 (MonteCarloRun)" << endl; 444 444 fScaleFactor = 1; 445 445 } 446 446 else 447 *fLog << "Additional scale factor: " << fScaleFactor << endl; 447 { 448 if (!fFileNameScale.IsNull()) 449 { 450 if (gSystem->AccessPathName(fFileNameScale, kFileExists)) 451 { 452 *fLog << err << "ERROR - Configuration file '" << fFileNameScale << "' doesn't exist... abort." << endl; 453 return kFALSE; 454 } 455 456 const Int_t p = header->GetRunStart().GetMagicPeriod(); 457 const TString per = Form("%2d", p); 458 459 TEnv rc(fFileNameScale); 460 const Double_t scale = rc.GetValue(per, -1.); 461 462 if (scale<=0) 463 { 464 *fLog << err << "ERROR - No valid entry for scale factor found for period " << p << " in " << fFileNameScale << "... abort." << endl; 465 return kFALSE; 466 } 467 468 *fLog << inf << "New additional scale factor for period " << p << ": " << scale << endl; 469 fScaleFactor = scale; 470 } 471 else 472 *fLog << inf << "Additional scale factor set to: " << fScaleFactor << endl; 473 } 448 474 449 475 const Int_t npixels = fGeomCam->GetNumPixels(); … … 931 957 } 932 958 959 if (IsEnvDefined(env, prefix, "FileNameScale", print)) 960 { 961 fFileNameScale = GetEnvValue(env, prefix, "FileNameScale", fFileNameScale); 962 rc = kTRUE; 963 } 964 933 965 return rc; 934 966 } -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.h
r7189 r7374 79 79 Float_t fRenormFactor; // Possible renormalization factor for signals (-> phes) 80 80 Float_t fScaleFactor; // Possible scale factor for signals 81 81 82 TString fFileNameScale; // File name for list of scale factors 83 82 84 TList fNamesPedestal; // Names of input and output pedestal conatainer 83 85 TList fPedestalCams; //! List of pointers to input MPedestalCam … … 106 108 void EnablePedestalType(PedestalType_t i) { fPedestalFlag |= i; } 107 109 108 Int_t GetSize() const { return fCalibConsts.GetSize(); }110 //Int_t GetSize() const { return fCalibConsts.GetSize(); } 109 111 110 112 void Print(Option_t *o="") const; -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r7257 r7374 399 399 histdc.SetTitle("Mean of all DC Currents;;<I> [nA]"); 400 400 histdc.SetMinimum(0); 401 histdc.SetMaximum( 3);401 histdc.SetMaximum(10); 402 402 histrms.SetNameTime("MTimeCurrents"); 403 403 histrms.SetTitle("Mean pedestal rms of all pixels;;<\\sigma_{p}> [phe]"); 404 histrms.SetType(5); 404 405 histrms.SetMinimum(0); 405 histrms.SetMaximum( 0.2);406 histrms.SetMaximum(10); 406 407 407 408 /* … … 413 414 MFillH filldc(&histdc, "MCameraDC", "FillDC"); 414 415 MFillH fillrms(&histrms, "MPedPhotFromExtractorRndm", "FillPedRms"); 416 //MFillH filltst("MHTest", "MTime", "FillTest"); 415 417 filldc.SetNameTab("Currents"); 416 418 fillrms.SetNameTab("MeanRms"); 419 //filltst.SetNameTab("Test"); 417 420 418 421 MFillH fillw("MHWeather", "MTimeCC", "FillWeather"); … … 424 427 tlist.AddToList(ismc ? (MTask*)&readmc : (MTask*)&readreal); 425 428 tlist.AddToList(&pcalc, ismc ? "Events" : "Drive"); 429 //tlist.AddToList(&filltst, "Events"); 426 430 tlist.AddToList(&tlist2, "Events"); 427 431 if (!ismc) … … 432 436 tlist.AddToList(&filldc, "Currents"); 433 437 tlist.AddToList(&fillrms, "Currents"); 434 438 } 435 439 tlist.AddToList(&write); 436 440 -
trunk/MagicSoft/Mars/mmuon/MHMuonPar.cc
r7369 r7374 214 214 txt.SetTextColor(kBlue); 215 215 216 TF1 ref("RefShape100%", "- 254+1640*x-565*x*x", fgIntegralLoLim, fgIntegralUpLim);216 TF1 ref("RefShape100%", "-131+1333*x-385*x*x", fgIntegralLoLim, fgIntegralUpLim); 217 217 // old: 573*x + 430 218 218 ref.SetLineColor(kBlue); -
trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc
r7220 r7374 128 128 fRunType = MRawRunHeader::kRTNone; 129 129 130 fSkip.Reset(); 131 130 132 return fDeviation ? kTRUE : kFALSE; 131 133 }
Note:
See TracChangeset
for help on using the changeset viewer.