Changeset 6913 for trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
- Timestamp:
- 04/07/05 11:32:22 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6907 r6913 92 92 #include "MTriggerPatternDecode.h" 93 93 #include "MFTriggerPattern.h" 94 #include "MFTriggerLvl1.h" 94 95 #include "MGeomApply.h" 95 96 //#include "MMcPedestalCopy.h" … … 179 180 } 180 181 181 Bool_t MJCalibrateSignal::ReadCalibration(TObjArray &l, MBadPixelsCam &cam, MExtractor* &ext 1, MExtractor* &ext2, TString &geom) const182 Bool_t MJCalibrateSignal::ReadCalibration(TObjArray &l, MBadPixelsCam &cam, MExtractor* &ext2, MExtractor* &ext3, TString &geom) const 182 183 { 183 184 … … 193 194 } 194 195 195 if (!ext1) 196 { 197 TObject *o = file.Get("ExtractSignal"); 198 if (o && !o->InheritsFrom(MExtractor::Class())) 199 { 200 *fLog << err << dbginf << "ERROR - ExtractSignal read from " << fname << " doesn't inherit from MExtractor!" << endl; 201 return kFALSE; 202 } 203 ext1 = o ? (MExtractor*)o->Clone() : NULL; 204 } 205 206 TObject *o = file.Get("ExtractTime"); 196 TObject *o = file.Get("ExtractSignal"); 197 if (o && !o->InheritsFrom(MExtractor::Class())) 198 { 199 *fLog << err << dbginf << "ERROR - ExtractSignal read from " << fname << " doesn't inherit from MExtractor!" << endl; 200 return kFALSE; 201 } 202 ext3 = o ? (MExtractor*)o->Clone() : NULL; 203 204 o = file.Get("ExtractTime"); 207 205 if (o && !o->InheritsFrom(MExtractor::Class())) 208 206 { … … 211 209 } 212 210 ext2 = o ? (MExtractor*)o->Clone() : NULL; 213 if (!ext 1&& !ext2)211 if (!ext3 && !ext2) 214 212 { 215 213 *fLog << err << dbginf << "ERROR - Neither ExtractSignal nor ExrtractTime found in " << fname << "!" << endl; … … 385 383 calibcont.Add(&tmcam); 386 384 387 if (!ReadCalibration(calibcont, badpix, extractor 1, extractor2, geom))385 if (!ReadCalibration(calibcont, badpix, extractor2, extractor3, geom)) 388 386 return kFALSE; 389 387 … … 394 392 *fLog << inf << "No Camera geometry found using default <MGeomCamMagic>" << endl; 395 393 394 if (extractor3) 395 { 396 *fLog << underline << "Signal Extractor found in calibration file" << endl; 397 extractor3->Print(); 398 *fLog << endl; 399 } 400 else 401 *fLog << inf << "No Signal Extractor: ExtractSignal in file." << endl; 402 403 396 404 if (extractor1) 397 405 { 398 *fLog << underline << " Signal Extractor found in calibration file" << endl;406 *fLog << underline << "Modified Signal Extractor set by user." << endl; 399 407 extractor1->Print(); 400 408 *fLog << endl; 401 extractor3 = (MExtractor*)extractor1->Clone();402 409 } 403 410 else 404 *fLog << inf << "No Signal Extractor: ExtractSignal in file." << endl; 411 { 412 *fLog << inf << "No modified Signal Extractor set by user... using ExtractSignal." << endl; 413 extractor1 = extractor3 ? (MExtractor*)extractor3->Clone() : 0; 414 } 405 415 406 416 if (extractor2) … … 455 465 456 466 // Skips empty MC events (Not necessary, but faster!) 457 MContinue contmc("MRawEvtData.GetNumPixels<0.5", "ContEmptyMC"); 467 MFTriggerLvl1 trigmc; 468 MContinue contmc(&trigmc, "ContTrigMC"); 469 contmc.SetInverted(); 458 470 459 471 MPointingPosInterpolate pextr; … … 718 730 pacalc.SetFilter(&fcalib); 719 731 filcam.SetFilter(&fcalib); 720 filtme.SetFilter(&fcalib); 721 filbnd.SetFilter(&fcalib); 722 filpin.SetFilter(&fcalib); 732 filtme.SetFilter(&fcalib); 733 if (IsUseBlindPixel()) 734 filbnd.SetFilter(&fcalib); 735 if (IsUsePINDiode()) 736 filpin.SetFilter(&fcalib); 723 737 chcalc.SetFilter(&fcalib); 724 738 recalc.SetFilter(&fcalib); … … 775 789 tlist.AddToList(read); 776 790 if (IsUseMC()) 791 { 777 792 tlist.AddToList(&writemc); 778 tlist.AddToList(&contmc); 793 tlist.AddToList(&contmc); 794 } 779 795 780 796 if (IsUseRootData())
Note:
See TracChangeset
for help on using the changeset viewer.