Ignore:
Timestamp:
01/10/05 10:45:07 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r5570 r5760  
    113113MJPedestal::MJPedestal(const char *name, const char *title)
    114114    : fRuns(0), fExtractor(NULL), fDisplayType(kNormalDisplay),
    115       fDataCheck(kFALSE), fExtractType(kUsePedRun)
     115      fDataCheck(kFALSE), fExtractType(kUsePedRun), fExtractionType(kFundamental)
    116116{
    117117    fName  = name  ? name  : "MJPedestal";
     
    121121    SetUsePedRun();
    122122    SetPathIn("");
    123     SetExtractorResolution(kFALSE);
    124123}
    125124
     
    298297      }
    299298   
    300     if (fExtractorResolution)
     299    if (fExtractionType!=kFundamental/*fExtractorResolution*/)
    301300      {
    302301        for (UInt_t i=0;i<geomcam.GetNumPixels();i++)
     
    338337    // Display data
    339338    //
    340     if (fDisplayType != kDataCheckDisplay && fExtractType != kUseHists && !fExtractorResolution)
     339    if (fDisplayType != kDataCheckDisplay && fExtractType != kUseHists && fExtractionType==kFundamental/*fExtractorResolution*/)
    341340      {
    342341        TCanvas &c3 = fDisplay->AddTab("Pedestals");
     
    381380      {
    382381
    383         TCanvas &c3 = fDisplay->AddTab(fExtractorResolution ? "PedExtrd" : "Ped");
     382        TCanvas &c3 = fDisplay->AddTab(fExtractionType!=kFundamental/*fExtractorResolution*/ ? "PedExtrd" : "Ped");
    384383        c3.Divide(2,3);
    385384       
     
    391390        // for the datacheck, fix the ranges!!
    392391        //
    393         if (!fExtractorResolution)
     392        if (fExtractionType==kFundamental/*!fExtractorResolution*/)
    394393          {
    395394            obj1->SetMinimum(fgPedestalMin);
     
    535534      }
    536535   
    537     if (fExtractorResolution)
     536    if (fExtractionType!=kFundamental/*fExtractorResolution*/)
    538537      {
    539538           
     
    674673void MJPedestal::SetExtractor(MExtractor* ext)
    675674{
    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;
    679683}
    680684
     
    709713            fExtractType = kUseHists;
    710714
    711     SetExtractorResolution(GetEnv("ExtractorResolution", fExtractorResolution));
     715    //fExtractorResolution = GetEnv("ExtractionType", fExtractorResolution);
    712716
    713717    SetNoStorage(GetEnv("DisableOutput", IsNoStorage()));
     
    784788        return kTRUE;
    785789
    786     if (!fExtractorResolution || !fExtractor->InheritsFrom("MExtractTimeAndCharge"))
     790    if (fExtractionType==kFundamental || !fExtractor->InheritsFrom("MExtractTimeAndCharge"))
    787791        return kFALSE;
    788792
    789793    extped.SetPedestalsIn(&fPedestalCamIn);
    790794    extped.SetExtractor((MExtractTimeAndCharge*)fExtractor);
     795    extped.SetRandomCalculation(fExtractionType==kWithExtractorRndm);
    791796
    792797    return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.