]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDCalibraVdriftLinearFit.cxx
Modifications in AliRoot for re-processing a selected event.
[u/mrichter/AliRoot.git] / TRD / AliTRDCalibraVdriftLinearFit.cxx
index 2a0f899ed2c22fbe875bee86f6470d5cd768c393..c3d5c5dd02eddcd57854a5472caf15266d88b72f 100644 (file)
@@ -426,6 +426,7 @@ void AliTRDCalibraVdriftLinearFit::FillPEArray2()
       
       Int_t nEntries=0;
       TGraphErrors *gg=DrawMS(fitterhisto,nEntries);
+      if (!gg) continue;
       // Number of points of the TGraphErrors
       if(gg->GetN() < 20) {
        if(gg) delete gg;
@@ -471,6 +472,10 @@ void AliTRDCalibraVdriftLinearFit::FillPEArray2()
 //_________Helper function__________________________________________________
 TGraphErrors* AliTRDCalibraVdriftLinearFit::DrawMS(const TH2 *const h2, Int_t &nEntries)
 {
+  //
+  // Debug function
+  //
+
   TF1 fg("fg", "gaus", -10., 30.);
   TGraphErrors *gp = new TGraphErrors();