Changeset 5803 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 01/11/05 16:46:58 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r5760 r5803 64 64 #include "MReadMarsFile.h" 65 65 #include "MRawFileRead.h" 66 #include "MContinue.h" 67 #include "MTriggerPatternDecode.h" 68 #include "MFTriggerPattern.h" 66 69 #include "MGeomApply.h" 67 70 #include "MMcPedestalCopy.h" … … 69 72 #include "MPedCalcFromLoGain.h" 70 73 #include "MExtractor.h" 74 #include "MFCosmics.h" 71 75 #include "MTaskEnv.h" 72 76 #include "MCalibrateData.h" … … 180 184 } 181 185 182 Bool_t MJCalibrateSignal::ProcessFile(MPedestalCam &pedcamab, MPedestalCam &pedcam2 /*, MPedestalCam &pedcam*/)186 Bool_t MJCalibrateSignal::ProcessFile(MPedestalCam &pedcamab, MPedestalCam &pedcam2, MPedestalCam &pedcam) 183 187 { 184 188 if (!fSequence.IsValid()) … … 324 328 // Make sure that pedcamab has the correct name 325 329 pedcamab.SetName("MPedestalFundamental"); 326 //pedcam.SetName("MPedestalFromExtractorRndm");330 pedcam.SetName("MPedestalFromExtractorRndm"); 327 331 pedcam2.SetName("MPedestalFromExtractor"); 328 //plist.AddToList(&pedcam);332 plist.AddToList(&pedcam); 329 333 plist.AddToList(&pedcam2); 330 334 plist.AddToList(&pedcamab); 331 335 336 // Check for interleaved events 337 MTriggerPatternDecode decode; 338 339 MFTriggerPattern ftp; 340 ftp.DenyCalibration(); 341 ftp.DenyPedestal(); 342 ftp.DenyPinDiode(); 343 344 MContinue conttp(&ftp, "ContTrigPattern"); 345 // --> tlist2 346 347 // Do signal and pedestal calculation 332 348 MPedCalcFromLoGain pedlo1("MPedCalcFundamental"); 333 349 pedlo1.SetPedestalUpdate(kTRUE); 334 350 pedlo1.SetNamePedestalCamOut("MPedestalFundamental"); 335 /* 336 MPedCalcFromLoGain pedlo2("MPedCalcWithExtractorRndm"); 337 pedlo2.SetPedestalUpdate(kTRUE); 338 pedlo2.SetRandomCalculation(kTRUE); 339 pedlo2.SetNamePedestalCamIn("MPedestalFundamental"); 340 pedlo2.SetNamePedestalCamOut("MPedestalFromExtractorRndm"); 341 */ 351 352 MPedCalcFromLoGain pedlo2("MPedCalcWithExtractorRndm"); 353 pedlo2.SetPedestalUpdate(kTRUE); 354 pedlo2.SetRandomCalculation(kTRUE); 355 pedlo2.SetNamePedestalCamIn("MPedestalFundamental"); 356 pedlo2.SetNamePedestalCamOut("MPedestalFromExtractorRndm"); 342 357 343 358 MPedCalcFromLoGain pedlo3("MPedCalcWithExtractor"); … … 352 367 const Float_t win = extractor1->GetNumHiGainSamples(); 353 368 pedlo1.SetExtractWindow(15, (UShort_t)TMath::Nint(win)); 354 //pedlo2.SetExtractWindow(15, (UShort_t)TMath::Nint(win));369 pedlo2.SetExtractWindow(15, (UShort_t)TMath::Nint(win)); 355 370 pedlo3.SetExtractWindow(15, (UShort_t)TMath::Nint(win)); 356 371 357 372 if (extractor1->InheritsFrom("MExtractTimeAndCharge")) 358 373 { 359 //pedlo2.SetExtractor((MExtractTimeAndCharge*)extractor1);374 pedlo2.SetExtractor((MExtractTimeAndCharge*)extractor1); 360 375 pedlo3.SetExtractor((MExtractTimeAndCharge*)extractor1); 361 376 extractor1->SetPedestals(&pedcamab); … … 363 378 } 364 379 365 MMcPedestalCopy pcopy; 380 MFCosmics fcosmics; 381 fcosmics.SetNamePedestalCam("MPedestalFundamental"); 382 MContinue contcos(&fcosmics, "ContTrigEvts"); 383 contcos.SetInverted(); 384 385 MMcPedestalCopy pcopy; 366 386 MTaskEnv taskenv1("ExtractSignal"); 367 387 MTaskEnv taskenv2("ExtractTime"); … … 376 396 calib.AddPedestal("MPedestalCam", "MPedPhotFundamental"); 377 397 calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractor"); 378 //calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractorRndm");398 calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractorRndm"); 379 399 } 380 400 else … … 382 402 calib.AddPedestal("Fundamental"); 383 403 calib.AddPedestal("FromExtractor"); 384 //calib.AddPedestal("FromExtractorRndm");404 calib.AddPedestal("FromExtractorRndm"); 385 405 calib.SetPedestalFlag(MCalibrateData::kEvent); 386 406 } … … 393 413 treat.AddNamePedPhotCam("MPedPhotFundamental"); 394 414 treat.AddNamePedPhotCam("MPedPhotFromExtractor"); 395 //treat.AddNamePedPhotCam("MPedPhotFromExtractorRndm");415 treat.AddNamePedPhotCam("MPedPhotFromExtractorRndm"); 396 416 397 417 … … 438 458 write.AddContainer("MPedPhotFundamental", "Events"); 439 459 write.AddContainer("MPedPhotFromExtractor", "Events"); 440 //write.AddContainer("MPedPhotFromExtractorRndm", "Events");460 write.AddContainer("MPedPhotFromExtractorRndm", "Events"); 441 461 write.AddContainer("MTime", "Events", kFALSE); 442 462 write.AddContainer("MRawEvtHeader", "Events"); … … 468 488 // Now setup tasklist for events 469 489 MTaskList tlist2; 490 tlist2.AddToList(&decode); 491 tlist2.AddToList(&conttp); 470 492 tlist2.AddToList(&apply); 471 493 tlist2.AddToList(&merge); … … 475 497 { 476 498 tlist2.AddToList(&pedlo1); 477 //tlist2.AddToList(&pedlo2);499 tlist2.AddToList(&pedlo2); 478 500 tlist2.AddToList(&pedlo3); 479 501 } … … 484 506 if (extractor2) 485 507 tlist2.AddToList(&taskenv2); 508 tlist2.AddToList(&contcos); 486 509 tlist2.AddToList(&fill2); 487 510 tlist2.AddToList(&calib); -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h
r5760 r5803 34 34 MJCalibrateSignal(const char *name=NULL, const char *title=NULL); 35 35 36 Bool_t ProcessFile(MPedestalCam &camab, MPedestalCam &cam 2/*, MPedestalCam &cam2*/);36 Bool_t ProcessFile(MPedestalCam &camab, MPedestalCam &cam1, MPedestalCam &cam2); 37 37 38 38 ClassDef(MJCalibrateSignal, 0) // Tool to create a pedestal file (MPedestalCam) -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r5760 r5803 537 537 { 538 538 539 TCanvas &c3 = fDisplay->AddTab("PedExtrd");540 c3.Divide(2,3);541 542 disp0.CamDraw(c3, 1, 2, 1);543 disp1.CamDraw(c3, 2, 2, 6);544 545 TCanvas &c13 = fDisplay->AddTab("PedDiff");546 c13.Divide(2,3);547 548 disp9.CamDraw(c13, 1, 2, 5);549 disp10.CamDraw(c13, 2, 2, 5);550 return;539 TCanvas &c3 = fDisplay->AddTab(fExtractionType==kWithExtractor?"PedExtrd":"PedRndm"); 540 c3.Divide(2,3); 541 542 disp0.CamDraw(c3, 1, 2, 1); 543 disp1.CamDraw(c3, 2, 2, 6); 544 545 TCanvas &c13 = fDisplay->AddTab(fExtractionType==kWithExtractor?"PedDiff":"DiffRndm"); 546 c13.Divide(2,3); 547 548 disp9.CamDraw(c13, 1, 2, 5); 549 disp10.CamDraw(c13, 2, 2, 5); 550 return; 551 551 } 552 552 } -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r5760 r5803 186 186 //MBadPixelsMerge merge(&badpix); 187 187 MImgCleanStd clean; 188 clean.SetNamePedPhotCam("MPedPhotFromExtractor ");188 clean.SetNamePedPhotCam("MPedPhotFromExtractorRndm"); 189 189 190 190 MHillasCalc hcalc;
Note:
See TracChangeset
for help on using the changeset viewer.