Changeset 5562 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 12/06/04 13:44:36 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r5387 r5562 55 55 #include "MBadPixelsCam.h" 56 56 57 #include "MCalibrationChargePINDiode.h"58 59 57 #include "MCalibrationQECam.h" 60 58 #include "MCalibrationBlindCam.h" 61 59 #include "MCalibrationChargeCam.h" 62 60 #include "MCalibrationRelTimeCam.h" 63 /* 64 #include "MCalibrationIntensityQECam.h" 65 #include "MCalibrationIntensityBlindCam.h" 66 #include "MCalibrationIntensityChargeCam.h" 67 #include "MCalibrationIntensityRelTimeCam.h" 68 */ 61 #include "MCalibrationChargePINDiode.h" 62 69 63 #include "MReadReports.h" 70 64 #include "MReadMarsFile.h" … … 126 120 } 127 121 128 Bool_t MJCalibrateSignal::ReadCalibration(TObjArray &l, MBadPixelsCam &cam, M Task* &ext1, MTask* &ext2, TString &geom) const122 Bool_t MJCalibrateSignal::ReadCalibration(TObjArray &l, MBadPixelsCam &cam, MExtractor* &ext1, MExtractor* &ext2, TString &geom) const 129 123 { 130 124 const TString fname = Form("%s/calib%06d.root", fPathIn.Data(), fSequence.GetSequence()); … … 145 139 return kFALSE; 146 140 } 147 ext1 = o ? (M Task*)o->Clone() : NULL;141 ext1 = o ? (MExtractor*)o->Clone() : NULL; 148 142 149 143 o = file.Get("ExtractTime"); … … 153 147 return kFALSE; 154 148 } 155 ext2 = o ? (M Task*)o->Clone() : NULL;149 ext2 = o ? (MExtractor*)o->Clone() : NULL; 156 150 if (!ext1 && !ext2) 157 151 { … … 176 170 // 177 171 // MJCalibration allows to setup several option by a resource file: 178 // MJCalibration.Display: full, datacheck, normal 179 // MJCalibration.RelTimeCalibration: yes,no 180 // MJCalibration.DataCheck: yes,no 181 // MJCalibration.Debug: yes,no 182 // MJCalibration.Intensity: yes,no 183 // MJCalibration.UseBlindPixel: yes,no 184 // MJCalibration.UsePINDiode: yes,no 185 // MJCalibration.Geometry: MGeomCamMagic, MGeomCamECO1000 172 // MJCalibrateSignal.DataCheck: yes,no 186 173 // 187 174 // For more details see the class description and the corresponding Getters … … 244 231 MBadPixelsCam badpix; 245 232 246 M Task*extractor1=0;247 M Task*extractor2=0;233 MExtractor *extractor1=0; 234 MExtractor *extractor2=0; 248 235 TString geom; 249 236 … … 281 268 else 282 269 *fLog << inf << "No Camera geometry found using default <MGeomCamMagic>" << endl; 270 271 // 272 // Switch off noise calculation 273 // 274 if (extractor1) 275 extractor1->SetNoiseCalculation(kFALSE); 276 if (extractor2) 277 extractor2->SetNoiseCalculation(kFALSE); 283 278 284 279 // This is necessary for the case in which it is not in the files … … 335 330 MPedCalcFromLoGain pedlo; 336 331 pedlo.SetPedestalUpdate(kTRUE); 337 // FIXME: How to get the fixed value 15 automatically? 338 const Float_t win = static_cast<MExtractor*>(extractor1)->GetNumHiGainSamples(); 339 pedlo.SetExtractWindow(15, (UShort_t)TMath::Nint(win)); 332 333 if (extractor1) 334 { 335 // FIXME: How to get the fixed value 15 automatically? 336 const Float_t win = extractor1->GetNumHiGainSamples(); 337 pedlo.SetExtractWindow(15, (UShort_t)TMath::Nint(win)); 338 } 340 339 341 340 MMcPedestalCopy pcopy; -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h
r5308 r5562 13 13 class MGeomCam; 14 14 class MSequence; 15 class MExtractor; 15 16 class MPedestalCam; 16 17 class MBadPixelsCam; … … 25 26 Bool_t WriteResult(); 26 27 Bool_t ReadCalibration(TObjArray &o, MBadPixelsCam &bpix, 27 M Task* &ext1, MTask* &ext2, TString &geom) const;28 MExtractor* &ext1, MExtractor* &ext2, TString &geom) const; 28 29 29 30 Bool_t IsDataCheck() const { return fIsDataCheck; } -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r5561 r5562 17 17 ! 18 18 ! Author(s): Thomas Bretz, 1/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! 19 ! Author(s): Markus Gaug, 02/2004 <mailto:markus@ifae.es> 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2004
Note:
See TracChangeset
for help on using the changeset viewer.