Ignore:
Timestamp:
12/11/03 17:42:25 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCalibrationPixel.cc

    r2642 r2658  
    116116    fHTimeHiGain->SetXTitle("Mean Arrival Times [Hi Gain FADC slice nr]");
    117117    fHTimeHiGain->SetYTitle("Nr. of events");
    118     fHTimeHiGain->Sumw2();
     118    // fHTimeHiGain->Sumw2();
    119119
    120120    fHTimeHiGain->SetDirectory(NULL);
     
    124124    fHTimeLoGain->SetXTitle("Mean Arrival Times [Lo Gain FADC slice nr]");
    125125    fHTimeLoGain->SetYTitle("Nr. of events");
    126     fHTimeLoGain->Sumw2();
     126    //    fHTimeLoGain->Sumw2();
    127127
    128128    fHTimeLoGain->SetDirectory(NULL);
     
    183183
    184184  fPixId = id;
    185  
     185
     186  //
     187  // Names Hi gain Histograms
     188  //
    186189  TString nameQHiGain = TString(fHChargeHiGain->GetName());
    187190  nameQHiGain += id;
     
    196199  fHChargevsNHiGain->SetName(nameQvsNHiGain.Data());
    197200
     201  //
     202  // Title Hi gain Histograms
     203  //
    198204  TString titleQHiGain = TString(fHChargeHiGain->GetTitle());
    199205  titleQHiGain += id;
     
    208214  fHChargevsNHiGain->SetTitle(titleQvsNHiGain.Data());
    209215
    210 
     216  //
     217  // Names Low Gain Histograms
     218  //
    211219  TString nameQLoGain = TString(fHChargeLoGain->GetName());
    212220  nameQLoGain += id;
     
    221229  fHChargevsNLoGain->SetName(nameQvsNLoGain.Data());
    222230
     231  //
     232  // Titles Low Gain Histograms
     233  //
    223234  TString titleQLoGain = TString(fHChargeLoGain->GetTitle());
    224235  titleQLoGain += id;
     
    374385    fHiGainvsLoGain->GetXaxis()->Set(300,0.,1500.);
    375386    fHiGainvsLoGain->GetYaxis()->Set(400,0.,2000.);
     387    fHiGainvsLoGain->GetXaxis()->SetTitle("Sum of Charges High Gain");
     388    fHiGainvsLoGain->GetYaxis()->SetTitle("Sum of Charges Low Gain");
    376389    fHiGainvsLoGain->SetMarkerStyle(7);
    377390
     
    480493        if (fTimeGausFit)
    481494          {
    482             if (fTimeChisquare > 1.)
     495            if (fTimeProb > gkProbLimit)
    483496              fTimeGausFit->SetLineColor(kRed);
    484497            else
     
    494507        if (fTimeGausFit)
    495508          {
    496             if (fTimeChisquare > 1.)
     509            if (fTimeProb > gkProbLimit)
    497510              fTimeGausFit->SetLineColor(kRed);
    498511            else
     
    535548    return kFALSE;
    536549
    537   rmin = (rmin != 0.) ? rmin : 4.;
     550  rmin = (rmin != 0.) ? rmin : 3.;
    538551  rmax = (rmax != 0.) ? rmax : 9.;
    539552
     
    575588  fTimeSigma     = fTimeGausFit->GetParameter(2);
    576589
    577   if (fTimeChisquare > 1.)
     590  if (fTimeProb < gkProbLimit)
    578591    {
    579592      *fLog << warn << "Fit of the Arrival times failed ! " << endl;
     
    591604    return kFALSE;
    592605
    593   rmin = (rmin != 0.) ? rmin : 4.;
     606  rmin = (rmin != 0.) ? rmin : 3.;
    594607  rmax = (rmax != 0.) ? rmax : 9.;
    595608
     
    631644  fTimeSigma     = fTimeGausFit->GetParameter(2);
    632645
    633   if (fTimeChisquare > 1.)
     646  if (fTimeProb < gkProbLimit)
    634647    {
    635648      *fLog << warn << "Fit of the Arrival times failed ! " << endl;
     
    709722    }
    710723 
    711  
    712724  fFitOK = kTRUE;
    713725   
  • trunk/MagicSoft/Mars/mhist/MHCalibrationPixel.h

    r2642 r2658  
    3636
    3737  Int_t fPixId;                  // Pixel Nr
    38   TGraph *fHiGainvsLoGain;       // Plot the HiGain vs. the LoGain
     38  TGraph *fHiGainvsLoGain;       //! Plot the HiGain vs. the LoGain
    3939  Int_t fTotalEntries;           // Number of entries
    4040
Note: See TracChangeset for help on using the changeset viewer.