Changeset 5760 for trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
- Timestamp:
- 01/10/05 10:45:07 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r5570 r5760 113 113 MJPedestal::MJPedestal(const char *name, const char *title) 114 114 : fRuns(0), fExtractor(NULL), fDisplayType(kNormalDisplay), 115 fDataCheck(kFALSE), fExtractType(kUsePedRun) 115 fDataCheck(kFALSE), fExtractType(kUsePedRun), fExtractionType(kFundamental) 116 116 { 117 117 fName = name ? name : "MJPedestal"; … … 121 121 SetUsePedRun(); 122 122 SetPathIn(""); 123 SetExtractorResolution(kFALSE);124 123 } 125 124 … … 298 297 } 299 298 300 if (fExtract orResolution)299 if (fExtractionType!=kFundamental/*fExtractorResolution*/) 301 300 { 302 301 for (UInt_t i=0;i<geomcam.GetNumPixels();i++) … … 338 337 // Display data 339 338 // 340 if (fDisplayType != kDataCheckDisplay && fExtractType != kUseHists && !fExtractorResolution)339 if (fDisplayType != kDataCheckDisplay && fExtractType != kUseHists && fExtractionType==kFundamental/*fExtractorResolution*/) 341 340 { 342 341 TCanvas &c3 = fDisplay->AddTab("Pedestals"); … … 381 380 { 382 381 383 TCanvas &c3 = fDisplay->AddTab(fExtract orResolution? "PedExtrd" : "Ped");382 TCanvas &c3 = fDisplay->AddTab(fExtractionType!=kFundamental/*fExtractorResolution*/ ? "PedExtrd" : "Ped"); 384 383 c3.Divide(2,3); 385 384 … … 391 390 // for the datacheck, fix the ranges!! 392 391 // 393 if ( !fExtractorResolution)392 if (fExtractionType==kFundamental/*!fExtractorResolution*/) 394 393 { 395 394 obj1->SetMinimum(fgPedestalMin); … … 535 534 } 536 535 537 if (fExtract orResolution)536 if (fExtractionType!=kFundamental/*fExtractorResolution*/) 538 537 { 539 538 … … 674 673 void MJPedestal::SetExtractor(MExtractor* ext) 675 674 { 676 if (fExtractor) 677 delete fExtractor; 678 fExtractor = ext ? (MExtractor*)ext->Clone(ext->GetName()) : NULL; 675 if (ext) 676 { 677 if (fExtractor) 678 delete fExtractor; 679 fExtractor = ext ? (MExtractor*)ext->Clone(ext->GetName()) : NULL; 680 } 681 else 682 fExtractor = 0; 679 683 } 680 684 … … 709 713 fExtractType = kUseHists; 710 714 711 SetExtractorResolution(GetEnv("ExtractorResolution", fExtractorResolution));715 //fExtractorResolution = GetEnv("ExtractionType", fExtractorResolution); 712 716 713 717 SetNoStorage(GetEnv("DisableOutput", IsNoStorage())); … … 784 788 return kTRUE; 785 789 786 if ( !fExtractorResolution|| !fExtractor->InheritsFrom("MExtractTimeAndCharge"))790 if (fExtractionType==kFundamental || !fExtractor->InheritsFrom("MExtractTimeAndCharge")) 787 791 return kFALSE; 788 792 789 793 extped.SetPedestalsIn(&fPedestalCamIn); 790 794 extped.SetExtractor((MExtractTimeAndCharge*)fExtractor); 795 extped.SetRandomCalculation(fExtractionType==kWithExtractorRndm); 791 796 792 797 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.