Changeset 8428
- Timestamp:
- 04/20/07 14:59:58 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsIntensityCam.cc
r8425 r8428 32 32 // per calibration camera result. Has to be created 33 33 // 34 // See also: MCalibrationIntensityChargeCam, MCalibrationIntensityRelTimeCam, 35 // MCalibrationCam, MCalibrationPix, 34 // See also: MCalibrationIntensityChargeCam, MCalibrationCam, MCalibrationPix, 36 35 // MHCalibrationChargePix, MHCalibrationChargeCam 37 36 // MCalibrationChargeBlindPix, MCalibrationChargePINDiode -
trunk/MagicSoft/Mars/mcalib/CalibLinkDef.h
r8427 r8428 19 19 #pragma link C++ class MCalibrationIntensityCam+; 20 20 #pragma link C++ class MCalibrationIntensityChargeCam+; 21 #pragma link C++ class MCalibrationIntensityRelTimeCam+;22 21 #pragma link C++ class MCalibrationIntensityTestCam+; 23 22 … … 29 28 #pragma link C++ class MCalibrationPulseTimeCam+; 30 29 #pragma link C++ class MCalibrationPedCam+; 31 //#pragma link C++ class MCalibrationHiLoCam+;32 //#pragma link C++ class MCalibrationHiLoPix+;33 30 #pragma link C++ class MCalibrationQECamMagic+; 34 31 #pragma link C++ class MCalibrationQECam+; -
trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.cc
r8427 r8428 31 31 // MParList 32 32 // MCalibrationIntensityChargeCam 33 // MCalibrationIntensityRelTimeCam34 33 // 35 34 // Output Containers: 36 35 // MCalibrationIntensityChargeCam 37 // MCalibrationIntensityRelTimeCam38 36 // 39 37 // Class version 2: … … 58 56 59 57 #include "MCalibrationIntensityChargeCam.h" 60 //#include "MCalibrationIntensityRelTimeCam.h"61 58 62 59 #include "MBadPixelsCam.h" … … 202 199 if (pList->FindObject(AddSerialNumber("MHCalibrationRelTimeCam"))) 203 200 { 204 205 MParContainer *cont = pList->FindCreateObj("MCalibrationIntensityRelTimeCam"); 206 if (!cont) 207 { 208 *fLog << err << "Could not find nor create MCalibrationIntensityRelTimeCam abort... " << endl; 209 return kFALSE; 210 } 201 // if (!pList->FindCreateObj("MCalibrationIntensityRelTimeCam")) 202 // return kFALSE; 211 203 212 204 if (!fRelTimeCalc) -
trunk/MagicSoft/Mars/mcalib/MCalibColorSteer.cc
r8427 r8428 34 34 // MParList 35 35 // MCalibrationIntensityChargeCam 36 // MCalibrationIntensityRelTimeCam37 36 // 38 37 // Output Containers: 39 38 // MCalibrationIntensityChargeCam 40 // MCalibrationIntensityRelTimeCam41 39 // 42 40 ////////////////////////////////////////////////////////////////////////////// … … 58 56 59 57 #include "MCalibrationIntensityChargeCam.h" 60 #include "MCalibrationIntensityRelTimeCam.h"61 58 62 59 #include "MCalibrationPattern.h" 63 60 #include "MCalibrationQECam.h" 64 61 #include "MCalibrationBlindCam.h" 62 65 63 #include "MCalibrationChargeCam.h" 66 64 #include "MCalibrationChargeCalc.h" 65 66 #include "MCalibrationRelTimeCam.h" 67 67 #include "MCalibrationRelTimeCalc.h" 68 68 … … 77 77 MCalibColorSteer::MCalibColorSteer(const char *name, const char *title) 78 78 : fCalibPattern(NULL), fGeom(NULL), fParList(NULL), 79 fIntensCharge(NULL), fIntensRelTime(NULL),79 fIntensCharge(NULL), 80 80 fBad(NULL), fChargeCalc(NULL), fRelTimeCalc(NULL), fHistCopy(kFALSE) 81 81 { … … 178 178 { 179 179 180 fIntensRelTime = (MCalibrationIntensityRelTimeCam*)pList->FindCreateObj("MCalibrationIntensityRelTimeCam");181 fRelTimeCalc = (MCalibrationRelTimeCalc*)tlist->FindObject(AddSerialNumber("MCalibrationRelTimeCalc"));182 183 180 *fLog << inf << "Found MHCalibrationRelTimeCam ... " << flush; 184 181 185 if (!fIntensRelTime) 186 { 187 *fLog << err << "Could not find nor create MCalibrationIntensityRelTimeCam abort... " << endl; 182 fRelTimeCam = (MCalibrationRelTimeCam*)pList->FindCreateObj("MCalibrationRelTimeCam"); 183 if (!fRelTimeCam) 188 184 return kFALSE; 189 } 190 185 186 fRelTimeCalc = (MCalibrationRelTimeCalc*)tlist->FindObject(AddSerialNumber("MCalibrationRelTimeCalc")); 191 187 if (!fRelTimeCalc) 192 {193 *fLog << err << "Could not find MCalibrationRelTimeCalc abort... " << endl;194 188 return kFALSE; 195 } 189 190 // CALL ITS PrePorcess ??? 196 191 } 197 192 … … 320 315 fBlindCam->SetPulserColor(fCalibPattern->GetPulserColor()); 321 316 317 fRelTimeCam->Clear(); 318 fRelTimeCam->SetPulserColor(fCalibPattern->GetPulserColor()); 319 322 320 if (fIntensCharge) 323 321 { … … 331 329 } 332 330 333 if (fIntensRelTime)334 {335 fIntensRelTime->AddToList(Form("MCalibrationRelTimeCam%s",namep.Data()),*fGeom);336 MCalibrationCam *cam = fIntensRelTime->GetCam();337 cam->SetPulserColor(fCalibPattern->GetPulserColor());338 *fLog << inf << "New MCalibrationRelTimeCam with name: " << cam->GetName() << endl;339 }340 341 331 return kTRUE; 342 332 … … 388 378 // fIntensBlind->AddHist((MHCalibrationCam*)hcam->Clone()); 389 379 390 if (n.Contains("RelTime"))391 if (fIntensRelTime)392 fIntensRelTime->AddHist((MHCalibrationCam*)hcam->Clone());393 } 394 395 // -------------------------------------------------------------------------- 380 // if (n.Contains("RelTime")) 381 // if (fIntensRelTime) 382 // fIntensRelTime->AddHist((MHCalibrationCam*)hcam->Clone()); 383 } 384 385 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mcalib/MCalibColorSteer.h
r8427 r8428 18 18 class MCalibrationRelTimeCalc; 19 19 class MCalibrationIntensityChargeCam; 20 class MCalibration IntensityRelTimeCam;20 class MCalibrationRelTimeCam; 21 21 class MCalibrationBlindCam; 22 22 class MCalibrationQECam; … … 31 31 MParList *fParList; //! 32 32 MCalibrationIntensityChargeCam *fIntensCharge; //! 33 MCalibration IntensityRelTimeCam *fIntensRelTime;//!33 MCalibrationRelTimeCam *fRelTimeCam; //! 34 34 MCalibrationBlindCam *fBlindCam; //! 35 35 MCalibrationQECam *fQECam; //! -
trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityCam.cc
r8425 r8428 34 34 // per calibration camera result and area index 35 35 // 36 // See also: MCalibrationIntensityChargeCam, MCalibrationIntensityRelTimeCam,36 // See also: MCalibrationIntensityChargeCam, 37 37 // MCalibrationCam, MCalibrationPix, MHCalibrationChargePix, 38 38 // MHCalibrationChargeCam, MCalibrationChargeBlindPix, -
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc
r8417 r8428 71 71 #include "MGeomPix.h" 72 72 73 #include "MCalibrationIntensityRelTimeCam.h"74 73 #include "MCalibrationRelTimeCam.h" 75 74 #include "MCalibrationRelTimePix.h" … … 122 121 void MCalibrationRelTimeCalc::Clear(const Option_t *o) 123 122 { 124 125 fBadPixels = NULL; 126 fCam = NULL; 127 fIntensCam = NULL; 128 123 fBadPixels = NULL; 124 fCam = NULL; 129 125 } 130 126 … … 133 129 // Search for the following input containers and abort if not existing: 134 130 // - MGeomCam 135 // - MCalibration IntensityRelTimeCam or MCalibrationRelTimeCam131 // - MCalibrationRelTimeCam 136 132 // - MBadPixelsCam 137 133 // … … 161 157 } 162 158 163 fIntensCam = (MCalibrationIntensityRelTimeCam*)pList->FindObject(AddSerialNumber("MCalibrationIntensityRelTimeCam")); 164 if (fIntensCam) 165 *fLog << inf << "Found MCalibrationIntensityRelTimeCam ... " << endl; 166 else 167 { 168 fCam = (MCalibrationRelTimeCam*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCam")); 169 if (!fCam) 170 { 171 *fLog << err << "Cannot find MCalibrationRelTimeCam ... abort." << endl; 172 *fLog << err << "Maybe you forget to call an MFillH for the MHCalibrationRelTimeCam before..." << endl; 173 return kFALSE; 174 } 175 } 176 177 UInt_t npixels = fGeom->GetNumPixels(); 178 179 MCalibrationRelTimeCam *relcam = fIntensCam 180 ? (MCalibrationRelTimeCam*)fIntensCam->GetCam() : fCam; 181 159 fCam = (MCalibrationRelTimeCam*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCam")); 160 if (!fCam) 161 { 162 *fLog << err << "Cannot find MCalibrationRelTimeCam ... abort." << endl; 163 return kFALSE; 164 } 165 166 const UInt_t npixels = fGeom->GetNumPixels(); 182 167 for (UInt_t i=0; i<npixels; i++) 183 { 184 185 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*relcam)[i]; 168 { 169 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*fCam)[i]; 186 170 187 171 if ((*fBadPixels)[i].IsBad()) 188 172 { 189 173 pix.SetExcluded(); 190 174 continue; 191 175 } 192 176 193 177 if (IsDebug()) 194 pix.SetDebug();195 178 pix.SetDebug(); 179 } 196 180 197 181 return kTRUE; … … 242 226 FinalizeUnsuitablePixels(); 243 227 244 if (fIntensCam) 245 fIntensCam->SetReadyToSave(); 246 else 247 fCam ->SetReadyToSave(); 248 228 fCam->SetReadyToSave(); 249 229 fBadPixels->SetReadyToSave(); 250 230 … … 277 257 { 278 258 279 MCalibrationRelTimeCam *relcam = fIntensCam280 ? (MCalibrationRelTimeCam*)fIntensCam->GetCam() : fCam;281 282 259 const UInt_t npixels = fGeom->GetNumPixels(); 283 260 const UInt_t nareas = fGeom->GetNumAreas(); … … 286 263 TArrayF upplim (nareas); 287 264 TArrayF areasum (nareas); 288 // Float_t areasum2 [nareas];289 265 TArrayI numareavalid (nareas); 290 266 TArrayI useunreliable(nareas); … … 306 282 numareavalid[aidx] ++; 307 283 } 308 284 309 285 for (UInt_t aidx=0; aidx<nareas; aidx++) 310 286 if (numareavalid[aidx] < 100) … … 318 294 for (UInt_t i=0; i<npixels; i++) 319 295 { 320 321 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*relcam)[i];296 297 const MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*fCam)[i]; 322 298 323 299 if (pix.IsExcluded()) … … 349 325 continue; 350 326 } 351 327 352 328 // Calculate the rms out of sum2: 353 329 /* … … 358 334 lowlim [aidx] = 0; 359 335 upplim [aidx] = areasum [aidx] + fRelTimeResolutionLimit; 360 336 361 337 } 362 338 *fLog << endl; … … 365 341 for (UInt_t i=0; i<npixels; i++) 366 342 { 367 368 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(* relcam)[i];369 343 344 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*fCam)[i]; 345 370 346 if (pix.IsExcluded()) 371 347 continue; 372 348 373 349 MBadPixelsPix &bad = (*fBadPixels)[i]; 374 350 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 375 351 continue; 376 352 377 353 const Float_t res = pix.GetTimePrecision(); 378 354 const Int_t aidx = (*fGeom)[i].GetAidx(); 379 355 380 356 if ( res < lowlim[aidx] || res > upplim[aidx] ) 381 357 { … … 401 377 void MCalibrationRelTimeCalc::FinalizeBadPixels() 402 378 { 403 404 MCalibrationRelTimeCam *relcam = fIntensCam405 ? (MCalibrationRelTimeCam*)fIntensCam->GetCam() : fCam;406 379 407 380 for (Int_t i=0; i<fBadPixels->GetSize(); i++) 408 381 { 409 410 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*relcam)[i];411 382 412 383 MBadPixelsPix &bad = (*fBadPixels)[i]; … … 425 396 426 397 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 398 { 399 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*fCam)[i]; 427 400 pix.SetExcluded(); 401 } 428 402 } 429 403 … … 442 416 *fLog << dec; 443 417 444 MCalibrationRelTimeCam *relcam = fIntensCam ? (MCalibrationRelTimeCam*)fIntensCam->GetCam() : fCam;445 446 418 const Int_t nareas = fGeom->GetNumAreas(); 447 419 … … 453 425 unsuit[aidx] += fBadPixels->GetNumUnsuitable(MBadPixelsPix::kUnsuitableRun, fGeom, aidx); 454 426 unrel[aidx] += fBadPixels->GetNumUnsuitable(MBadPixelsPix::kUnreliableRun, fGeom, aidx); 455 relcam->SetNumUnsuitable(unsuit[aidx], aidx);456 relcam->SetNumUnreliable(unrel[aidx], aidx);427 fCam->SetNumUnsuitable(unsuit[aidx], aidx); 428 fCam->SetNumUnreliable(unrel[aidx], aidx); 457 429 } 458 430 -
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.h
r8417 r8428 19 19 #endif 20 20 21 class MCalibrationIntensityRelTimeCam;22 21 class MCalibrationRelTimeCam; 23 22 class MGeomCam; 24 //class MBadPixelsIntensityCam;25 23 class MBadPixelsCam; 26 24 … … 35 33 36 34 // Pointers 37 //MBadPixelsIntensityCam *fIntensBad; // Bad Pixels Intensity Cam38 35 MBadPixelsCam *fBadPixels; // Bad Pixels 39 MCalibrationIntensityRelTimeCam *fIntensCam; // Calibrated RelTimes for different intensities40 36 MCalibrationRelTimeCam *fCam; // Calibrated RelTimes of all pixels 41 37 MGeomCam *fGeom; //! Camera geometry -
trunk/MagicSoft/Mars/mcalib/Makefile
r8427 r8428 41 41 MCalibrationIntensityCam.cc \ 42 42 MCalibrationIntensityChargeCam.cc \ 43 MCalibrationIntensityRelTimeCam.cc \44 43 MCalibrationIntensityTestCam.cc \ 45 44 MCalibrationCam.cc \ -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeBlindCam.cc
r8427 r8428 318 318 *fLog << endl; 319 319 320 MCalibrationCam *blindcam = fIntensCam ? fIntensCam->GetCam() : fCam;321 322 320 for (Int_t i=0; i<fHiGainArray->GetSize(); i++) 323 321 { … … 360 358 } 361 359 362 MCalibrationBlindPix &pix = (MCalibrationBlindPix&)(*blindcam)[i]; 363 364 FitBlindPixel(hist,pix); 360 FitBlindPixel(hist, (MCalibrationBlindPix&)(*fCam)[i]); 365 361 } 366 362 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationHiLoCam.cc
r8417 r8428 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationHiLoCam.cc,v 1.2 1 2007-04-18 15:33:56tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationHiLoCam.cc,v 1.22 2007-04-20 13:55:00 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 392 392 pix.SetHivsLoLast (fHivsLoLast); 393 393 394 InitHists(pix, fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j);394 InitHists(pix, fCam->GetAverageBadArea(j), j); 395 395 396 396 if (fCam) … … 425 425 pix.SetHivsLoLast (fHivsLoLast); 426 426 427 InitHists(pix, fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j);427 InitHists(pix, fCam->GetAverageBadSector(j), j); 428 428 429 429 if (fCam) … … 516 516 pix.SetHivsLoLast (fHivsLoLast ); 517 517 518 InitHists(pix, fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j);518 InitHists(pix, fCam->GetAverageBadArea(j), j); 519 519 520 520 h = pix.GetHivsLo(); … … 547 547 pix.SetHivsLoLast (fHivsLoLast); 548 548 549 InitHists(pix, fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j);549 InitHists(pix, fCam->GetAverageBadSector(j), j); 550 550 551 551 h = pix.GetHivsLo(); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc
r8417 r8428 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.3 5 2007-04-18 15:33:56tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.36 2007-04-20 13:55:00 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 253 253 // Gets or creates the pointers to: 254 254 // - MExtractedSignalCam 255 // - MCalibrationPulseTimeCam or MCalibrationIntensityPulseTimeCam255 // - MCalibrationPulseTimeCam 256 256 // - MBadPixelsCam 257 257 // … … 327 327 pix.SetBinning(fNbins, fFirst, fLast); 328 328 329 InitHists(pix, fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j);329 InitHists(pix, fCam->GetAverageBadArea(j), j); 330 330 } 331 331 } … … 340 340 pix.SetBinning(fNbins, fFirst, fLast); 341 341 342 InitHists(pix, fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j);342 InitHists(pix, fCam->GetAverageBadSector(j), j); 343 343 } 344 344 } … … 464 464 *fLog << endl; 465 465 466 MCalibrationCam &calcam = *(fIntensCam ? fIntensCam->GetCam() : fCam);467 466 // 468 467 // Perform the fitting for the High Gain (done in MHCalibrationCam) … … 472 471 473 472 MHCalibrationPix &hist = (*this)[i]; 474 475 473 if (hist.IsExcluded()) 476 474 continue; 477 475 478 MCalibrationPix &pix = calcam[i]; 479 CalcHists(hist,pix); 476 CalcHists(hist, (*fCam)[i]); 480 477 } 481 478 … … 484 481 485 482 for (Int_t j=0; j<fAverageHiGainAreas->GetSize(); j++) 486 { 487 MHCalibrationPix &hist = GetAverageHiGainArea(j); 488 MCalibrationPix &pix = calcam.GetAverageArea(j); 489 CalcHists(hist,pix); 490 } 483 CalcHists(GetAverageHiGainArea(j), fCam->GetAverageArea(j)); 491 484 492 485 for (Int_t j=0; j<fAverageHiGainSectors->GetSize(); j++) 493 { 494 MHCalibrationPix &hist = GetAverageHiGainSector(j); 495 MCalibrationPix &pix = calcam.GetAverageSector(j); 496 CalcHists(hist,pix); 497 } 486 CalcHists(GetAverageHiGainSector(j), fCam->GetAverageSector(j)); 498 487 499 488 return kTRUE; -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc
r8417 r8428 95 95 #include "MParList.h" 96 96 97 #include "MCalibrationIntensityRelTimeCam.h"98 99 97 #include "MCalibrationRelTimeCam.h" 100 98 #include "MCalibrationRelTimePix.h" … … 446 444 *fLog << endl; 447 445 448 MCalibrationCam *relcam = fIntensCam ? fIntensCam->GetCam() : fCam;449 450 446 const Int_t nareas = fAverageHiGainAreas->GetSize(); 451 447 const Int_t nsectors = fAverageHiGainSectors->GetSize(); … … 467 463 const Int_t sector = (*fGeom)[i].GetSector(); 468 464 469 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*relcam)[i] ;470 471 465 fNumareahi[aidx]++; 472 466 fNumsectorhi[sector]++; 467 473 468 // 474 469 // Check saturation 475 470 // 471 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*fCam)[i] ; 476 472 if (histhi.GetSaturated() > fNumHiGainSaturationLimit*histhi.GetHGausHist()->GetEntries()) 477 473 { … … 496 492 for (Int_t j=0; j<nareas; j++) 497 493 { 498 499 MHCalibrationPix &histhi = GetAverageHiGainArea(j); 500 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&) relcam->GetAverageArea(j);494 495 MHCalibrationPix &histhi = GetAverageHiGainArea(j); 496 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)fCam->GetAverageArea(j); 501 497 502 498 if (satarea[j] > 0.5*fNumareahi[j]) … … 519 515 for (Int_t j=0; j<fAverageHiGainSectors->GetSize(); j++) 520 516 { 521 517 522 518 MHCalibrationPix &histhi = GetAverageHiGainSector(j); 523 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)relcam->GetAverageSector(j) ;524 519 525 520 if (satsect[j] > 0.5*fNumsectorhi[j]) 526 521 { 522 MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)fCam->GetAverageSector(j) ; 527 523 pix.SetHiGainSaturation(); 528 524 histhi.SetExcluded(); … … 540 536 } 541 537 542 FitHiGainArrays(* relcam, *fBadPixels,538 FitHiGainArrays(*fCam, *fBadPixels, 543 539 MBadPixelsPix::kRelTimeNotFitted, 544 540 MBadPixelsPix::kRelTimeOscillating); 545 541 546 if (IsLoGain()) 547 FitLoGainArrays(* relcam, *fBadPixels,542 if (IsLoGain()) 543 FitLoGainArrays(*fCam, *fBadPixels, 548 544 MBadPixelsPix::kRelTimeNotFitted, 549 545 MBadPixelsPix::kRelTimeOscillating); -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r8427 r8428 70 70 #include "MCalibConstCam.h" 71 71 #include "MCalibrationIntensityChargeCam.h" 72 #include "MCalibrationIntensityRelTimeCam.h"73 72 74 73 #include "MHCalibrationChargeCam.h" … … 255 254 // Read File 256 255 MCalibrationIntensityChargeCam ichcam; 257 MCalibrationIntensityRelTimeCam itmcam;258 256 259 257 MHCalibrationChargeCam hchacam; … … 282 280 { 283 281 interlacedcont.Add(&ichcam); 284 interlacedcont.Add(&itmcam);285 282 interlacedcont.Add(&hchacam); 286 283 if (IsUseBlindPixel()) -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r8414 r8428 2038 2038 // 2039 2039 // If the flag kRelTimes is set, then also: 2040 // - MCalibrationRelTimeCam or MCalibrationIntensityRelTimeCam2040 // - MCalibrationRelTimeCam 2041 2041 // 2042 2042 Bool_t MJCalibration::WriteResult(MParList &plist) -
trunk/MagicSoft/Mars/mjobs/MJCalibration.h
r8417 r8428 11 11 #include "MCalibrationBlindCam.h" 12 12 #endif 13 #ifndef MARS_MCalibrationRelTimeCam 14 #include "MCalibrationRelTimeCam.h" 15 #endif 13 16 #ifndef MARS_MCalibrationChargePINDiode 14 17 #include "MCalibrationChargePINDiode.h" 15 #endif16 #ifndef MARS_MCalibrationRelTimeCam17 #include "MCalibrationRelTimeCam.h"18 18 #endif 19 19 #ifndef MARS_MCalibrationQECam … … 80 80 Float_t fRefTimeResolutionInner; //! Reference value for the time resolution - inner 81 81 Float_t fRefTimeResolutionOuter; //! Reference value for the time resolution - outer 82 82 83 83 TString fReferenceFile; // File name containing the reference values 84 84 TString fHiLoCalibFile; // File name containing the hi-lo calib. constants … … 86 86 MExtractor *fExtractor; // Signal extractor 87 87 MExtractTime *fTimeExtractor; // Arrival Time extractor 88 88 89 89 MBadPixelsCam fBadPixels; // Bad Pixels cam, can be set from previous runs 90 90 MCalibrationChargeCam fCalibrationCam; // Calibration conversion factors FADC2Phe … … 93 93 MCalibrationQECam fQECam; // Quantum efficiency, can be set from previous runs 94 94 MCalibrationRelTimeCam fRelTimeCam; // Calibration constants rel. times 95 95 96 96 MPedestalCam fExtractorCam; // Pedestal Cam with extractor resolution 97 97 98 98 MCalibrationCam::PulserColor_t fColor; // Colour of the pulsed LEDs 99 99 100 100 enum Display_t // Possible Display types 101 101 { … … 104 104 kNormalDisplay 105 105 }; 106 106 107 107 Display_t fDisplayType; // Chosen Display type 108 108 109 109 enum { kRelTimes, kDebug }; // Possible flags 110 110 111 111 Byte_t fFlags; // Bit-field for the flags 112 112 113 113 TString fGeometry; // Class name geometry 114 114 115 115 Bool_t IsRelTimes () const { return TESTBIT(fFlags,kRelTimes); } 116 116 Bool_t IsDebug () const { return TESTBIT(fFlags,kDebug); } … … 124 124 const Int_t CountBadPixels ( MHCamera *cam , const Int_t what ) const; 125 125 void FixDataCheckHist ( TH1D *hist ) const; 126 126 127 127 Bool_t WriteResult (MParList &plist); 128 128 //Bool_t WriteEventloop( MEvtLoop &evtloop ) const; 129 129 Bool_t WriteTasks ( MTask *t1, MTask *t2) const; 130 130 Bool_t CheckEnvLocal (); 131 131 132 132 // WORKAROUNDS!!! 133 133 void InitBlindPixel(MExtractBlindPixel &blindext, … … 138 138 void ReadReferenceFile(); 139 139 Bool_t ReadHiLoCalibFile(); 140 140 141 141 public: 142 142 MJCalibration(const char *name=NULL, const char *title=NULL); … … 146 146 const MCalibrationQECam &GetQECam() const { return fQECam; } 147 147 const MBadPixelsCam &GetBadPixels() const { return fBadPixels; } 148 148 149 149 // Containers and pointers 150 150 void SetBadPixels ( const MBadPixelsCam &bad) { bad.Copy(fBadPixels); } … … 154 154 void SetQECam ( const MCalibrationQECam &qe) { qe.Copy(fQECam); } 155 155 void SetTimeExtractor( MExtractTime* ext) { fTimeExtractor = ext; } 156 156 157 157 // Displays 158 158 void SetFullDisplay() { fDisplayType = kFullDisplay; } … … 162 162 // Camera Geomtry 163 163 void SetGeometry(const char *geom) { fGeometry = geom; } 164 164 165 165 // Flags 166 166 void SetRelTimeCalibration( const Bool_t b=kTRUE ) { b ? SETBIT(fFlags,kRelTimes) : CLRBIT(fFlags,kRelTimes); } 167 167 void SetDebug ( const Bool_t b=kTRUE ) { b ? SETBIT(fFlags,kDebug) : CLRBIT(fFlags,kDebug); } 168 168 //void SetIntensity ( const Bool_t b=kTRUE ) { b ? SETBIT(fFlags,kIntensity) : CLRBIT(fFlags,kIntensity); } 169 169 170 170 // Files 171 171 void SetReferenceFile( const TString ref=fgReferenceFile ) { fReferenceFile = ref; }
Note:
See TracChangeset
for help on using the changeset viewer.