Changeset 3905 for trunk/MagicSoft/Mars
- Timestamp:
- 04/30/04 13:49:02 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r3871 r3905 55 55 // 56 56 ///////////////////////////////////////////////////////////////////////////// 57 static const TString inpath = "/home/rootdata/Calib/2004_04_16/"; 57 //static const TString inpath = "/home/rootdata/Calib/2004_04_16/"; 58 static const TString inpath = "/mnt/Data/rootdata/CrabNebula/2003_12_01/"; 59 static const Int_t pedrun = 3340; 60 static const Int_t calrun1 = 3341; 61 static const Int_t calrun2 = 0; 62 /* 58 63 static const Int_t pedrun = 22265; 59 64 static const Int_t calrun1 = 22300; 60 65 static const Int_t calrun2 = 0; 61 66 */ 62 67 void calibration(const Int_t prun=pedrun, const Int_t crun1=calrun1, const Int_t crun2=calrun2) 63 68 { 64 69 65 70 MExtractFixedWindowPeakSearch extractor; 66 71 extractor.SetRange(0,14,0,14); 72 73 /* 74 MExtractTimeSpline timeext; 75 timeext.SetRange(0,14,6,14); 76 */ 77 67 78 MRunIter pruns; 68 79 MRunIter cruns; … … 74 85 else 75 86 cruns.AddRuns(crun1,crun2,inpath); 76 77 MCalibrationQECam qecam;78 MBadPixelsCam badcam;79 MGeomCamMagic geomcam;80 MGeomApply geomapl;81 //82 // If you want to exclude pixels from the beginning, read83 // an ascii-file with the corr. pixel numbers (see MBadPixelsCam)84 //85 // badcam.AsciiRead("badpixels.dat");86 87 87 88 gStyle->SetOptStat(1); … … 96 97 /************************************/ 97 98 99 MCalibrationQECam qecam; 100 MBadPixelsCam badcam; 101 MGeomCamMagic geomcam; 102 MGeomApply geomapl; 103 // 104 // If you want to exclude pixels from the beginning, read 105 // an ascii-file with the corr. pixel numbers (see MBadPixelsCam) 106 // 107 // badcam.AsciiRead("badpixels.dat"); 108 98 109 MJPedestal pedloop; 110 pedloop.SetExtractor(&extractor); 99 111 pedloop.SetInput(&pruns); 100 112 pedloop.SetDisplay(display); … … 117 129 // calloop.SetDataCheckDisplay(); 118 130 // 119 // For everything, you ever dreamed of, choose:120 // calloop.SetFullDisplay();131 // For everything, you have ever dreamed of, choose: 132 // calloop.SetFullDisplay(); 121 133 122 134 // 123 135 // If you want to calibrate the times as well, choose: 124 136 // 125 //calloop.SetRelTimeCalibration();137 calloop.SetRelTimeCalibration(); 126 138 calloop.SetExtractor(&extractor); 139 // calloop.SetArrivalTimeLevel(1); 140 // calloop.SetTimeExtractor(&timeext); 127 141 calloop.SetInput(&cruns); 128 142 calloop.SetDisplay(display); … … 132 146 return; 133 147 148 MCalibrationChargeCam &chargecam = calloop.GetCalibrationCam(); 149 MLog juanlog; 150 juanlog.SetOutputFile("test.txt",1); 151 chargecam.SetLogStream(&juanlog); 152 chargecam.Print(); 153 chargecam.SetLogStream(&gLog); 134 154 135 155 /********************************************************************/ … … 146 166 return; 147 167 148 149 168 } 150 169 -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r3875 r3905 361 361 disp34.SetCamContent(fBadPixels,21); 362 362 363 disp30.SetYTitle("Time Offset [ ns]");364 disp31.SetYTitle("Timing resolution [ ns]");363 disp30.SetYTitle("Time Offset [FADC units]"); 364 disp31.SetYTitle("Timing resolution [FADC units]"); 365 365 disp32.SetYTitle("P_{Time} [1]"); 366 366 disp33.SetYTitle("[1]");
Note:
See TracChangeset
for help on using the changeset viewer.