Changeset 8795 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 12/19/07 18:53:03 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r8790 r8795 40 40 #include <TFile.h> 41 41 42 // Core 42 43 #include "MLog.h" 43 44 #include "MLogManip.h" 44 45 45 46 #include "MDirIter.h" 46 #include "M RunIter.h"47 #include "MTaskList.h" 47 48 #include "MParList.h" 48 #include "MTaskList.h"49 49 #include "MEvtLoop.h" 50 50 51 51 #include "MStatusDisplay.h" 52 52 53 // General containers 53 54 #include "MGeomCam.h" 55 #include "MBadPixelsCam.h" 56 #include "MCalibConstCam.h" 57 #include "MPedestalCam.h" 58 #include "MArrivalTimeCam.h" 59 60 // General histograms 54 61 #include "MHCamEvent.h" 55 #include "MPedestalCam.h" 56 #include "MBadPixelsCam.h" 57 #include "MArrivalTimeCam.h" 58 62 #include "MHVsTime.h" 63 64 // Calibration containers 59 65 #include "MCalibrationQECam.h" 60 66 #include "MCalibrationBlindCam.h" … … 62 68 #include "MCalibrationRelTimeCam.h" 63 69 #include "MCalibrationChargePINDiode.h" 64 #include "MCalibrationPatternDecode.h" 65 66 #include "MCalibrationChargeCalc.h" 67 #include "MCalibrationRelTimeCalc.h" 68 69 #include "MCalibConstCam.h" 70 70 71 // Calibration histograms 71 72 #include "MHCalibrationChargeCam.h" 72 73 #include "MHCalibrationChargeBlindCam.h" 73 74 #include "MHCalibrationChargePINDiode.h" 74 75 #include "MHCalibrationRelTimeCam.h" 75 #include "MHCalibrationPulseTimeCam.h" 76 #include "MHVsTime.h" 77 #include "MHCamera.h" 78 79 #include "MCalibCalcFromPast.h" 80 76 77 // Tasks 81 78 #include "MReadMarsFile.h" 82 79 #include "MRawFileRead.h" 80 #include "MTaskEnv.h" 83 81 #include "MContinue.h" 82 #include "MFillH.h" 83 #include "MGeomApply.h" 84 #include "MExtractTimeAndCharge.h" 84 85 #include "MTriggerPatternDecode.h" 85 #include "M FTriggerPattern.h"86 #include "M FDataPhrase.h"87 #include "M FilterList.h"88 #include "M GeomApply.h"86 #include "MCalibrationPatternDecode.h" 87 #include "MCalibrationChargeCalc.h" 88 #include "MCalibrationRelTimeCalc.h" 89 #include "MCalibCalcFromPast.h" 89 90 #include "MPedestalSubtract.h" 90 #include "MPointingPosCalc.h"91 91 #include "MPedCalcFromLoGain.h" 92 #include "MPedestalSubtract.h" 93 #include "MExtractor.h" 94 #include "MExtractTimeAndCharge.h" 92 #include "MCalibrateData.h" 95 93 #include "MExtractPINDiode.h" 96 94 #include "MExtractBlindPixel.h" 97 #include "MFCosmics.h"98 #include "MTaskEnv.h"99 #include "MCalibrateData.h"100 95 #include "MCalibrateRelTimes.h" 101 96 #include "MBadPixelsCalc.h" 102 97 #include "MBadPixelsTreat.h" 103 #include "MFillH.h"104 98 #include "MWriteRootFile.h" 105 99 100 // Filter 101 #include "MFTriggerPattern.h" 102 #include "MFCosmics.h" 103 #include "MFilterList.h" 104 #include "MFDataPhrase.h" 105 106 // Classes for writing movies 106 107 #include "MFEvtNumber.h" 107 108 #include "MMoviePrepare.h" 108 109 #include "MMovieWrite.h" 109 110 #include "MImgCleanStd.h" 111 110 112 111 113 ClassImp(MJCalibrateSignal); -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r8788 r8795 41 41 // root classes 42 42 #include <TF1.h> 43 #include <TLine.h> 44 #include <TLatex.h> 45 #include <TLegend.h> 46 43 47 #include <TEnv.h> 44 48 #include <TFile.h> 45 #include <TLine.h>46 #include <TLatex.h>47 #include <TString.h>48 #include <TCanvas.h>49 #include <TSystem.h>50 #include <TLegend.h>51 #include <TPad.h>52 #include <TEnv.h>53 #include <TH2F.h>54 49 55 50 // mars core … … 74 69 #include "MPedestalPix.h" 75 70 71 //#include "MHPedestalPix.h" 76 72 #include "MCalibrationPix.h" 77 #include "MHPedestalPix.h"78 73 #include "MHCalibrationPulseTimeCam.h" 79 74 #include "MCalibrationPulseTimeCam.h" … … 92 87 #include "MFTriggerPattern.h" 93 88 #include "MBadPixelsCalc.h" 94 95 #include "MPedPhotCam.h"96 #include "MPedPhotPix.h"97 #include "MPedestalCam.h"98 #include "MPedestalPix.h"99 89 #include "MPedestalSubtract.h" 100 90 … … 121 111 : fExtractor(NULL), fDisplayType(kDisplayDataCheck), 122 112 fExtractType(kUsePedRun), fExtractionType(kFundamental), 123 fIsUseHists(kFALSE),fDeadPixelCheck(kFALSE), fMinEvents(50)113 /*fIsUseHists(kFALSE),*/ fDeadPixelCheck(kFALSE), fMinEvents(50) 124 114 { 125 115 fName = name ? name : "MJPedestal"; … … 337 327 } 338 328 339 #if 0 329 /* 340 330 if (fIsUseHists) 341 331 { … … 353 343 disp5.CamDraw(c4, 2, 2, 5); 354 344 355 /* 356 TCanvas &c5 = fDisplay->AddTab("Difference Hist."); 357 c5.Divide(2,3); 358 359 disp6.CamDraw(c5, 1, 2, 1); 360 disp7.CamDraw(c5, 2, 2, 5); 361 */ 345 //TCanvas &c5 = fDisplay->AddTab("Difference Hist."); 346 //c5.Divide(2,3); 347 // 348 //disp6.CamDraw(c5, 1, 2, 1); 349 //disp7.CamDraw(c5, 2, 2, 5); 362 350 363 351 TCanvas &c6 = fDisplay->AddTab("Difference Calc."); … … 368 356 return; 369 357 } 370 #endif 358 */ 371 359 if (fDisplayType == kDisplayDataCheck) 372 360 { … … 785 773 } 786 774 787 788 if (HasEnv("UseHists")) 789 if (GetEnv("UseHists",kFALSE)) 790 fIsUseHists = kTRUE; 791 775 // fIsUseHists = GetEnv("UseHists", fIsUseHists); 776 792 777 SetNoStorage(GetEnv("DisableOutput", IsNoStorage())); 793 778 … … 844 829 Int_t MJPedestal::PulsePosCheck(const MParList &plist) const 845 830 { 831 /* 846 832 if (fIsPixelCheck) 847 833 { … … 853 839 } 854 840 } 855 841 */ 856 842 if (!fIsPulsePosCheck) 857 843 return kTRUE; … … 869 855 MCalibrationPulseTimeCam *cam = NULL; 870 856 if (!fSequence.IsMonteCarlo()) 871 { 857 { /* 872 858 if (fIsPixelCheck) 873 859 { … … 885 871 gPad->SaveAs(Form("%s/PulsePosTest_Pixel%04d.root",fPathOut.Data(),fCheckedPixId)); 886 872 } 887 873 */ 888 874 cam = (MCalibrationPulseTimeCam*)plist.FindObject("MCalibrationPulseTimeCam"); 889 875 if (!cam) … … 1066 1052 pedlogain.SetPedestalUpdate(kFALSE); 1067 1053 1068 MHPedestalCam hpedcam;1069 hpedcam.SetPedestalsOut(&fPedestalCamOut);1070 if (fExtractionType != kFundamental)1071 hpedcam.SetRenorm(kTRUE);1054 // MHPedestalCam hpedcam; 1055 // hpedcam.SetPedestalsOut(&fPedestalCamOut); 1056 // if (fExtractionType != kFundamental) 1057 // hpedcam.SetRenorm(kTRUE); 1072 1058 1073 1059 // To have it in the parlist for MEnv! … … 1172 1158 break; 1173 1159 } 1174 1160 /* 1175 1161 if (fIsUseHists && fExtractor) 1176 1162 { … … 1188 1174 plist.AddToList(&hpedcam); 1189 1175 } 1190 1176 */ 1191 1177 pedcalc.SetPedestalsOut(&fPedestalCamOut); 1192 1178 pedlogain.SetPedestalsOut(&fPedestalCamOut); -
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r8788 r8795 71 71 Int_t fExtractionType; // Flag if the extractor is used to calculate the pedestals 72 72 73 Bool_t fIsUseHists; // Switch on histogramming or not73 // Bool_t fIsUseHists; // Switch on histogramming or not 74 74 Bool_t fDeadPixelCheck; // Should the dead pixel check be done? 75 75 … … 113 113 void SetExtractor(MExtractor* ext); 114 114 void SetUseData() { fExtractType = kUseData; } 115 void SetUseHists( const Bool_t b=kTRUE) { fIsUseHists = b; }115 // void SetUseHists( const Bool_t b=kTRUE) { fIsUseHists = b; } 116 116 void SetDeadPixelCheck(const Bool_t b=kTRUE) { fDeadPixelCheck = b; } 117 117 void SetUsePedRun() { fExtractType = kUsePedRun; } -
trunk/MagicSoft/Mars/mjobs/MSequence.cc
r8780 r8795 406 406 if (!str.CompareTo("No_Moon", TString::kIgnoreCase)) 407 407 return kNoMoon; 408 if (!str.CompareTo("NoMoon", TString::kIgnoreCase)) 409 return kNoMoon; 408 410 if (!str.CompareTo("Twilight", TString::kIgnoreCase)) 409 411 return kTwilight;
Note:
See TracChangeset
for help on using the changeset viewer.