Ignore:
Timestamp:
05/03/04 19:03:03 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeBlindPix.cc

    r3723 r3952  
    120120// Initializes:
    121121// - all pointers to NULL
     122// - fASinglePheFADCSlices(0);
     123// - fAPedestalFADCSlices(0);
     124//
    122125//
    123126// Calls:
     
    148151    fHGausHist.SetYTitle("Nr. of events");
    149152
     153    fASinglePheFADCSlices(0);
     154    fAPedestalFADCSlices(0);
     155 
    150156    Clear();
    151157}
     
    294300// - MExtractedSignalBlindPixel
    295301//
    296 // Initializes:
    297 // - fASinglePheFADCSlices(0);
    298 // - fAPedestalFADCSlices(0);
    299 //
    300302// Calls:
    301303// - MHGausHist::InitBins()
     
    317319      return kFALSE;
    318320    }
    319  
    320   fASinglePheFADCSlices(0);
    321   fAPedestalFADCSlices(0);
    322321 
    323322  InitBins();
     
    985984
    986985  pad->cd(3);
    987   if (fHSinglePheFADCSlices)
    988       delete fHSinglePheFADCSlices;
    989 
    990   fHSinglePheFADCSlices = new TH1F(fASinglePheFADCSlices);
    991   fHSinglePheFADCSlices->SetName("SinglePheFADCSlices");
    992   fHSinglePheFADCSlices->SetTitle(Form("%s%f","Assumed Single Phe FADC Slices, Sum > ",fSinglePheCut));
    993   fHSinglePheFADCSlices->SetXTitle("FADC slice number");
    994   fHSinglePheFADCSlices->SetYTitle("FADC counts");
    995   fHSinglePheFADCSlices->Draw(opt);
    996 
     986
     987  if (fASinglePheFADCSlices.GetNrows() != 0)
     988    {
     989      if (fHSinglePheFADCSlices)
     990        delete fHSinglePheFADCSlices;
     991      fHSinglePheFADCSlices = new TH1F(fASinglePheFADCSlices);
     992      fHSinglePheFADCSlices->SetName("SinglePheFADCSlices");
     993      fHSinglePheFADCSlices->SetTitle(Form("%s%f","Assumed Single Phe FADC Slices, Sum > ",fSinglePheCut));
     994      fHSinglePheFADCSlices->SetXTitle("FADC slice number");
     995      fHSinglePheFADCSlices->SetYTitle("FADC counts");
     996      fHSinglePheFADCSlices->Draw(opt);
     997    }
     998 
    997999  pad->cd(4);
    998   if (fHPedestalFADCSlices)
    999       delete fHPedestalFADCSlices;
    1000 
    1001   fHPedestalFADCSlices = new TH1F(fAPedestalFADCSlices);
    1002   fHPedestalFADCSlices->SetName("PedestalFADCSlices");
    1003   fHPedestalFADCSlices->SetTitle(Form("%s%f","Pedestal FADC Slices, Sum < ",fSinglePheCut));
    1004   fHPedestalFADCSlices->SetXTitle("FADC slice number");
    1005   fHPedestalFADCSlices->SetYTitle("FADC counts");
    1006   fHPedestalFADCSlices->Draw(opt);
    1007 
     1000  if (fAPedestalFADCSlices.GetNrows() != 0)
     1001    {
     1002
     1003      if (fHPedestalFADCSlices)
     1004        delete fHPedestalFADCSlices;
     1005     
     1006      fHPedestalFADCSlices = new TH1F(fAPedestalFADCSlices);
     1007      fHPedestalFADCSlices->SetName("PedestalFADCSlices");
     1008      fHPedestalFADCSlices->SetTitle(Form("%s%f","Pedestal FADC Slices, Sum < ",fSinglePheCut));
     1009      fHPedestalFADCSlices->SetXTitle("FADC slice number");
     1010      fHPedestalFADCSlices->SetYTitle("FADC counts");
     1011      fHPedestalFADCSlices->Draw(opt);
     1012    }
     1013 
    10081014  if (win < 2)
    10091015  return;
Note: See TracChangeset for help on using the changeset viewer.