Changeset 4237 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 05/28/04 16:47:06 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/readCalibration.C
r4136 r4237 16 16 ! 17 17 ! 18 ! Author(s): Markus Gaug, 11/2003<mailto:markus@ifae.es>18 ! Author(s): Markus Gaug, 05/2004 <mailto:markus@ifae.es> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2004 … … 51 51 static const Bool_t debug = kFALSE; 52 52 // 53 // Tell if you want to use the display: 54 // 55 static Bool_t useDisplay = kTRUE; 56 // 53 57 void readCalibration(const Int_t prun=pedrun, const Int_t crun=calrun) 54 58 { … … 76 80 } 77 81 78 MStatusDisplay *display = new MStatusDisplay; 82 MStatusDisplay = NULL; 83 84 if (useDisplay) 85 display = new MStatusDisplay; 86 87 79 88 MPedestalCam pedcam; 80 89 MCalibrationChargeCam chargecam; … … 94 103 } 95 104 96 if (display->GetCanvas("Pedestals")) 97 display->Read(); 98 105 if (useDisplay) 106 { 107 if (display->GetCanvas("Pedestals")) 108 display->Read(); 109 } 110 99 111 cout << "Reading from file: " << calname << endl; 100 112 … … 129 141 } 130 142 143 if (useDisplay) 131 144 display->Read(); 132 145 … … 145 158 } 146 159 147 display->Read(); 148 149 MCalibrationChargePix &pix = chargecam[100]; 150 cout << pix.GetPheFFactorMethod() << endl; 151 152 MCalibrationChargePix &innpix = chargecam.GetAverageArea(0); 153 cout << innpix.GetPheFFactorMethod() << endl; 160 if (useDisplay) 161 display->Read(); 154 162 155 163 //
Note:
See TracChangeset
for help on using the changeset viewer.