Ignore:
Timestamp:
12/01/04 20:49:05 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc

    r5477 r5544  
    487487 
    488488  Int_t win = 1;
     489  Int_t nofit = 0;
    489490
    490491  if (option.Contains("events"))
    491     win += 1;
     492    {
     493      option.ReplaceAll("events","");     
     494      win += 1;
     495    }
    492496  if (option.Contains("fourier"))
    493     win += 2;
     497    {
     498      option.ReplaceAll("fourier","");     
     499      win += 2;
     500    }
     501 
    494502  if (IsEmpty())
    495503    win--;
    496504
     505  if (option.Contains("nofit"))
     506    {
     507      option.ReplaceAll("nofit","");
     508      nofit++;
     509    }
     510 
    497511  pad->SetBorderMode(0);
    498512  pad->Divide(1,win);
     
    510524
    511525      fHGausHist.Draw(option);
    512      
    513       if (fFGausFit)
    514         {
    515           fFGausFit->SetLineColor(IsGausFitOK() ? kGreen : kRed);
    516           fFGausFit->Draw("same");
    517         }
     526
     527      if (!nofit)
     528        if (fFGausFit)
     529          {
     530            fFGausFit->SetLineColor(IsGausFitOK() ? kGreen : kRed);
     531            fFGausFit->Draw("same");
     532          }
    518533    }
    519534 
Note: See TracChangeset for help on using the changeset viewer.