Double_t AliL3Histogram::GetPreciseBinCenterX(Float_t xbin) const
{
// Returns the position of the center of a bin using precise values inside the bin
- if(xbin < (fFirstXbin-0.5) || xbin > (fLastXbin+0.5))
+ if(xbin < (fFirstXbin-1.5) || xbin > (fLastXbin+1.5))
{
LOG(AliL3Log::kError,"AliL3Histogram::GetBinCenterX","xbin")
<<"Bin-value out of range "<<xbin<<ENDLOG;
Double_t AliL3Histogram::GetPreciseBinCenterY(Float_t ybin) const
{
// Returns the position of the center of a bin using precise values inside the bin
- if(ybin < (fFirstYbin-0.5) || ybin > (fLastYbin+0.5))
+ if(ybin < (fFirstYbin-1.5) || ybin > (fLastYbin+1.5))
{
LOG(AliL3Log::kError,"AliL3Histogram::GetBinCenterY","ybin")
<<"Bin-value out of range "<<ybin<<ENDLOG;
for(Int_t i=0; i<GetNEtaSegments(); i++)
{
if(!fgTrackID[i]) continue;
- delete fgTrackID[i];
+ delete [] fgTrackID[i];
}
delete [] fgTrackID;
fgTrackID = 0;
Int_t ymin = hist->GetFirstYbin();
Int_t ymax = hist->GetLastYbin();
Int_t nxbins = hist->GetNbinsX()+2;
- for(Int_t ybin=ymin; ybin<=ymax; ybin++)
+ for(Int_t ybin=ymin-1; ybin<=(ymax+1); ybin++)
{
- for(Int_t xbin=xmin; xbin<=xmax; xbin++)
+ for(Int_t xbin=xmin-1; xbin<=(xmax+1); xbin++)
{
//cvetan: we get strange warning on gcc-2.95
//warning: large integer implicitly truncated to unsigned type