+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Author: The ALICE Off-line Project. *
+ * Contributors are mentioned in the code where appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
+/* $Id$ */
+
+#include "AliLog.h"
#include "AliHBTMonitorFunction.h"
+
//__________________________________________________________________
////////////////////////////////////////////////////////////////////
//
}
/******************************************************************/
-void AliHBTMonitorFunction::Write()
+Int_t AliHBTMonitorFunction::Write(const char*,Int_t, Int_t)
{
//Writes an function to disk
if (GetResult()) GetResult()->Write();
+ return 0;
}
/******************************************************************/
void AliHBTMonitorFunction::Init()
{
//Writes an function to disk
- if (AliVAODParticle::GetDebug()>0) Info("Init","%s",GetName());
+ AliDebug(1,"Entering");
if (GetResult() == 0x0)
{
}
GetResult()->Reset();
GetResult()->SetDirectory(0x0);
- if (AliVAODParticle::GetDebug()>0) Info("Init","%s Done.",GetName());
+ AliDebug(1,"Done");
}
/******************************************************************/
TString numstr = fName + " Result"; //title and name of the
//result histogram
fResult = new TH1D(numstr.Data(),numstr.Data(),nbins,minXval,maxXval);
+ fResult->Sumw2();
}
AliHBTMonOneParticleFctn1D::AliHBTMonOneParticleFctn1D(const Char_t *name, const Char_t *title,
//result histogram
fResult = new TH1D(numstr.Data(),numstr.Data(),nbins,minXval,maxXval);
+ fResult->Sumw2();
fResult->SetDirectory(0x0);
}
fResult = new TH2D(numstr.Data(),numstr.Data(),
nXbins,minXval,maxXval,
nYbins,minYval,maxYval);
+ fResult->Sumw2();
fResult->SetDirectory(0x0);
}
/******************************************************************/
nXbins,minXval,maxXval,
nYbins,minYval,maxYval,
nZbins,minZval,maxZval);
+ fResult->Sumw2();
fResult->SetDirectory(0x0);
}
fResult = new TH1D(numstr.Data(),numstr.Data(),
nbins,minval,maxval);
+ fResult->Sumw2();
fResult->SetDirectory(0x0);
}
fResult = new TH1D(numstr.Data(),numstr.Data(),
nbins,minval,maxval);
+ fResult->Sumw2();
fResult->SetDirectory(0x0);
}
fResult = new TH2D(numstr.Data(),numstr.Data(),
nXbins,minXval,maxXval,
nYbins,minYval,maxYval);
+ fResult->Sumw2();
fResult->SetDirectory(0x0);
}
/******************************************************************/