- Timestamp:
- 01/27/05 09:43:34 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/NEWS
r5841 r6031 52 52 extracted with the signal extractor with randomization 53 53 54 - implemented data reduction in calibrated data by reducing the precision 55 of the stored floating point values (pedestal, rms and signal) to 56 roughly 0.5% 57 54 58 55 59 -
trunk/MagicSoft/Mars/callisto.cc
r5956 r6031 293 293 job1.SetEnv(kConfig); 294 294 job1.SetEnvDebug(kDebugEnv); 295 job1.SetDisplay(d); ;295 job1.SetDisplay(d); 296 296 job1.SetOverwrite(kOverwrite); 297 297 job1.SetPathData(kInpathD); … … 387 387 job1.SetEnv(kConfig); 388 388 job1.SetEnvDebug(kDebugEnv); 389 job1.SetDisplay(d);; 389 job1.SetDisplay(d); 390 job1.SetNoDisplay(); 390 391 job1.SetOverwrite(kOverwrite); 391 392 job1.SetPathData(kInpathD); … … 415 416 job2.SetEnv(kConfig); 416 417 job2.SetEnvDebug(kDebugEnv); 417 job2.SetDisplay(d);; 418 job2.SetDisplay(d); 419 job2.SetNoDisplay(); 418 420 job2.SetOverwrite(kOverwrite); 419 421 job2.SetPathData(kInpathD); … … 448 450 job3.SetEnv(kConfig); 449 451 job3.SetEnvDebug(kDebugEnv); 450 job3.SetDisplay(d);; 452 job3.SetDisplay(d); 453 job3.SetNoDisplay(); 451 454 job3.SetOverwrite(kOverwrite); 452 455 job3.SetPathData(kInpathD); -
trunk/MagicSoft/Mars/callisto.rc
r6012 r6031 52 52 # ------------------------------------------------------------------------- 53 53 MJPedestalC1.ExtractSignal: MExtractTimeAndChargeDigitalFilter 54 #MJPedestalC1.ExtractSignal: MExtractFixedWindowPeakSearch 54 55 55 56 # ------------------------------------------------------------------------- … … 68 69 # ------------------------------------------------------------------------- 69 70 # Switch on relative time calibration 70 # MJCalibration.RelTimeCalibration: Yes71 # MJCalibration.RelTimeCalibration: Yes 71 72 # Switch on intensity calibration 72 73 #MJCalibration.IntensityCalibration: Yes … … 219 220 #MJPedestalY2.DataCheck: No 220 221 #MJPedestalY3.DataCheck: No 222 #MJPedestalY1.Display: None 223 #MJPedestalY2.Display: None 224 #MJPedestalY3.Display: None 221 225 #MJPedestalY1.UseData: Yes 222 226 #MJPedestalY2.UseData: Yes -
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc
r4702 r6031 68 68 fIsSaturated(kFALSE), fIsHGSaturated(kFALSE) 69 69 { 70 MMath::TruncatePrecision(fPhot); 71 MMath::TruncatePrecision(fErrPhot); 70 72 } 71 73 … … 78 80 // 79 81 // Here: 80 // Index numbers are compared 82 // Index numbers are compared --> This allows sorting by index 81 83 // 82 84 Int_t MCerPhotPix::Compare(const TObject *o) const -
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h
r5690 r6031 5 5 #include "MParContainer.h" 6 6 #endif 7 7 #include "MMath.h" 8 8 class MCerPhotPix : public MParContainer 9 9 { … … 45 45 Bool_t IsPixelCore() const { return fIsCore; } 46 46 47 void SetNumPhotons(Float_t f) { fPhot= f; }48 void SetErrorPhot(Float_t f) { fErrPhot = f; }49 void Set(Float_t np, Float_t ep) { fPhot = np; fErrPhot = ep; }47 void SetNumPhotons(Float_t f) { MMath::TruncatePrecision(f); fPhot = f; } 48 void SetErrorPhot(Float_t f) { MMath::TruncatePrecision(f); fErrPhot = f; } 49 void Set(Float_t np, Float_t ep) { MMath::TruncatePrecision(np); MMath::TruncatePrecision(ep); fPhot = np; fErrPhot = ep; } 50 50 51 51 void SetPixelSaturated() { fIsSaturated = kTRUE; } -
trunk/MagicSoft/Mars/mhflux/MHFalseSource.cc
r5971 r6031 110 110 // (sqrt(N)/binwidth) needed for WOlfgangs proposed caluclation 111 111 // of alpha(Li/Ma) 112 // - use the g/h-separation filters from the tasklists ("Cut1") as filters 113 // two 112 114 // 113 115 ////////////////////////////////////////////////////////////////////////////// -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r5957 r6031 34 34 // but this is NOT recommended! 35 35 // 36 // Resource file entries are case sensitive! 37 // 36 38 ///////////////////////////////////////////////////////////////////////////// 37 39 #include "MJCalibrateSignal.h" … … 432 434 MHCamEvent evt1(2, "PedRmsFLG", "Pedestal RMS from Lo Gain;;\\sigma_{p} [fadc/sl]"); 433 435 MHCamEvent evt2(0, "Extra'd", "Extracted Signal;;S [fadc/sl]"); 434 MHCamEvent evt3(4, "PedPhot", "Calibrated Pedestal;;P [\\gamma]");436 //MHCamEvent evt3(4, "PedPhot", "Calibrated Pedestal;;P [\\gamma]"); 435 437 MHCamEvent evt4(5, "PedRMS", "Calibrated Pedestal RMS;;\\sigma_{p} [\\gamma]"); 436 438 MHCamEvent evt5(0, "Interp'd", "Interpolated Signal;;S [\\gamma]"); 437 MHCamEvent evt6(2, "Unsuitable", " Unsuitable event ratio;;%");439 MHCamEvent evt6(2, "Unsuitable", "Fraction of unsuitable events per Pixel;;[1]"); 438 440 MHCamEvent evt7(0, "Times", "Arrival Time;;T [slice]"); 439 441 evt0.EnableVariance(); 440 442 evt1.EnableVariance(); 441 443 evt2.EnableVariance(); 442 evt3.EnableVariance();444 //evt3.EnableVariance(); 443 445 evt4.EnableVariance(); 444 446 evt5.EnableVariance(); … … 448 450 MFillH fill1(&evt1, "MPedestalFromExtractor", "FillPedRmsFLG"); 449 451 MFillH fill2(&evt2, "MExtractedSignalCam", "FillExtracted"); 450 MFillH fill3(&evt3, "MPedPhotFundamental", "FillPedPhot");452 //MFillH fill3(&evt3, "MPedPhotFundamental", "FillPedPhot"); 451 453 MFillH fill4(&evt4, "MPedPhotFromExtractor", "FillPedRMS"); 452 454 MFillH fill5(&evt5, "MCerPhotEvt", "FillInterpolated"); … … 527 529 tlist2.AddToList(&treat); 528 530 tlist2.AddToList(&fill6); 529 tlist2.AddToList(&fill3);531 //tlist2.AddToList(&fill3); 530 532 tlist2.AddToList(&fill4); 531 533 tlist2.AddToList(&fill5); -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r6004 r6031 78 78 //End_Html 79 79 // 80 // Different arrival time extractors can be set directly with the command SetTimeExtractor(MExtractor *) 80 // Different arrival time extractors can be set directly with the command 81 // SetTimeExtractor(MExtractor *) 82 // 83 // Resource file entries are case sensitive! 81 84 // 82 85 // See also: MHCalibrationRelTimePix, MHCalibrationRelTimeCam, MHGausEvents -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r5957 r6031 28 28 // MJPedestal 29 29 // 30 // Resource file entries are case sensitive! 31 // 30 32 ///////////////////////////////////////////////////////////////////////////// 31 33 #include "MJPedestal.h" … … 113 115 // 114 116 MJPedestal::MJPedestal(const char *name, const char *title) 115 : fRuns(0), fExtractor(NULL), fDisplayType(k NormalDisplay),117 : fRuns(0), fExtractor(NULL), fDisplayType(kDisplayNormal), 116 118 fDataCheck(kFALSE), fExtractType(kUsePedRun), fExtractionType(kFundamental) 117 119 { … … 338 340 // Display data 339 341 // 340 if (fDisplayType != kD ataCheckDisplay&& fExtractType != kUseHists && fExtractionType==kFundamental/*fExtractorResolution*/)342 if (fDisplayType != kDisplayDataCheck && fExtractType != kUseHists && fExtractionType==kFundamental/*fExtractorResolution*/) 341 343 { 342 344 TCanvas &c3 = fDisplay->AddTab("Pedestals"); … … 378 380 } 379 381 380 if (fDisplayType == kD ataCheckDisplay)382 if (fDisplayType == kDisplayDataCheck) 381 383 { 382 384 … … 544 546 disp1.CamDraw(c3, 2, 2, 6); 545 547 546 TCanvas &c13 = fDisplay->AddTab(fExtractionType==kWithExtractor?" PedDiff":"DiffRndm");548 TCanvas &c13 = fDisplay->AddTab(fExtractionType==kWithExtractor?"DiffExtrd":"DiffRndm"); 547 549 c13.Divide(2,3); 548 550 … … 691 693 // Prefix.DataCheck: Yes, No <default> 692 694 // 693 // S how data check display694 // Prefix.D ataCheckDisplay: Yes, No <default>695 // Setup display type 696 // Prefix.Display: normal <default>, datacheck, none 695 697 // 696 698 // Use cosmic data instead of pedestal data (DatRuns) … … 704 706 SetDataCheck(GetEnv("DataCheck", fDataCheck)); 705 707 706 if (HasEnv("DataCheckDisplay")) 707 fDisplayType = GetEnv("DataCheckDisplay", kFALSE) ? kDataCheckDisplay : kNormalDisplay; 708 if (HasEnv("Display")) 709 { 710 TString type = GetEnv("Display", "normal"); 711 type.ToLower(); 712 if (type==(TString)"normal") 713 fDisplayType = kDisplayNormal; 714 if (type==(TString)"datacheck") 715 fDisplayType = kDisplayDataCheck; 716 if (type==(TString)"none") 717 fDisplayType = kDisplayNone; 718 } 708 719 709 720 if (HasEnv("UseData")) … … 713 724 if (GetEnv("UseHists",kFALSE)) 714 725 fExtractType = kUseHists; 715 716 //fExtractorResolution = GetEnv("ExtractionType", fExtractorResolution);717 726 718 727 SetNoStorage(GetEnv("DisableOutput", IsNoStorage())); … … 1047 1056 tlist.PrintStatistics(); 1048 1057 1049 DisplayResult(plist); 1058 if (fDisplayType!=kDisplayNone) 1059 DisplayResult(plist); 1050 1060 1051 1061 if (!WriteResult()) -
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r5938 r6031 48 48 MBadPixelsCam fBadPixels; // Bad Pixels 49 49 50 enum Display_t { kD ataCheckDisplay, kNormalDisplay}; // Possible Display types50 enum Display_t { kDisplayNone, kDisplayNormal, kDisplayDataCheck }; // Possible Display types 51 51 Display_t fDisplayType; // Chosen Display type 52 52 … … 98 98 void SetUseHists() { fExtractType = kUseHists; } 99 99 void SetUsePedRun() { fExtractType = kUsePedRun; } 100 void SetDataCheck(const Bool_t b=kTRUE) { fDataCheck = b; b ? SetDataCheckDisplay() : SetNormalDisplay(); } 101 void SetDataCheckDisplay() { fDisplayType = kDataCheckDisplay; } 102 void SetNormalDisplay() { fDisplayType = kNormalDisplay; } 100 void SetDataCheck(const Bool_t b=kTRUE) { fDataCheck = b; } 101 void SetDataCheckDisplay() { fDisplayType = kDisplayDataCheck; } 102 void SetNormalDisplay() { fDisplayType = kDisplayNormal; } 103 void SetNoDisplay() { fDisplayType = kDisplayNone; } 103 104 104 105 void SetExtractionFundamental() { fExtractionType=kFundamental; /*fPedestalCamOut.SetName("MPedestalFundamental");*/ } -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r5810 r6031 26 26 // 27 27 // MJStar 28 // 29 // Resource file entries are case sensitive! 28 30 // 29 31 ///////////////////////////////////////////////////////////////////////////// -
trunk/MagicSoft/Mars/mpedestal/MPedPhotPix.h
r4384 r6031 5 5 #include <TObject.h> 6 6 #endif 7 #include "MMath.h" 7 8 8 9 class MPedPhotPix : public TObject … … 24 25 25 26 //void SetMean(Float_t f) { fMean = f; } 26 void SetRms(Float_t f) { fRms = f; }27 void Set(Float_t m, Float_t r, UInt_t n=1) { fMean = m; fRms = r; fNumEvents=n; }27 void SetRms(Float_t f) {MMath::TruncatePrecision(f); fRms = f; } 28 void Set(Float_t m, Float_t r, UInt_t n=1) { MMath::TruncatePrecision(r); MMath::TruncatePrecision(m); fMean = m; fRms = r; fNumEvents=n; } 28 29 29 30 Bool_t IsValid() const { return fRms>=0; } -
trunk/MagicSoft/Mars/star.rc
r5067 r6031 41 41 # Configure MJStar 42 42 # ------------------------------------------------------------------------- 43 #MJStar.MaxEvents: 1000 43 #MJStar.MaxEvents: 10000 44 44 #MJStar.Overwrite: yes,no 45 45 #MJStar. … … 47 47 # ------------------------------------------------------------------------- 48 48 # ------------------------------------------------------------------------- 49 MJStar.MImgCleanStd.CleanLevel1: 3.550 MJStar.MImgCleanStd.CleanLevel2: 249 MJStar.MImgCleanStd.CleanLevel1: 4.5 50 MJStar.MImgCleanStd.CleanLevel2: 3.0 51 51 MJStar.MImgCleanStd.CleanMethod: Scaled 52 52
Note:
See TracChangeset
for help on using the changeset viewer.