// the grid
- fData = new Float_t[fNDim]; //num
+ fData = new Float_t[fNDim];
//Initialization
+ for(Int_t j=0;j<fNDim;j++){
+ fData[j] =0;
+ }
}
delete [] err;
proj1D->SetBinContent(nbins+1,GetOverFlows(ivar));
proj1D->SetBinContent(0,GetUnderFlows(ivar));
- proj1D->SetEntries(sum+GetUnderFlows(ivar)+GetOverFlows(ivar));
+ proj1D->SetEntries(fNentriesTot);
return proj1D;
}
proj2D->SetBinContent(nbins1+1,nbins2/2,GetOverFlows(ivar1));
proj2D->SetBinContent(nbins1/2,0,GetUnderFlows(ivar2));
proj2D->SetBinContent(nbins1/2,nbins2+1,GetOverFlows(ivar2));
- proj2D->SetEntries(sum+GetUnderFlows(ivar1)+GetOverFlows(ivar1)+GetUnderFlows(ivar2)+GetOverFlows(ivar2));
+ proj2D->SetEntries(fNentriesTot);
return proj2D;
}
//___________________________________________________________________
delete err;
delete err2;
delete err3;
- proj3D->SetEntries(sum+GetUnderFlows(ivar1)+GetOverFlows(ivar1)+GetUnderFlows(ivar2)+GetOverFlows(ivar2)+GetUnderFlows(ivar3)+GetOverFlows(ivar3));
+
+ proj3D->SetEntries(fNentriesTot);
return proj3D;
}
target.fErr2 = fErr2;
}
+//____________________________________________________________________
+void AliCFGrid::SetExcludeOffEntriesInProj(Bool_t in)
+{
+ //
+ // require under/overflows in 'hidden dimensions' to be excluded
+ // or included, when performing projections.
+ // For AliCFGrid implementation, only option = kTRUE is available
+
+ if(in){
+ AliInfo(Form("This option not available for AliCFGrid"));
+ return;
+ }
+
+ fExclOffEntriesInProj=in;
+}
+//____________________________________________________________________
+Bool_t AliCFGrid::GetExcludeOffEntriesInProj( ) const
+{
+ //
+ // return flag saying whether under/overflows are excluded in projections
+ //
+
+ return fExclOffEntriesInProj;
+}