/*
$Log$
+Revision 1.17 2002/10/23 07:17:33 alibrary
+Introducing Riostream.h
+
Revision 1.16 2002/10/14 14:57:42 hristov
Merging the VirtualMC branch to the main development branch (HEAD)
if ( (xyz[0]>0) && (xyz[1]<0) ) angle=2*TMath::Pi()+angle;
}
- sector=Int_t((angle-fInnerAngleShift)/fInnerAngle);
+ sector=Int_t(TMath::Nint((angle-fInnerAngleShift)/fInnerAngle));
Float_t cos,sin;
AdjustCosSin(sector,cos,sin);
if (x1>fOuterRadiusLow)
{
- sector=Int_t((angle-fOuterAngleShift)/fOuterAngle)+fNInnerSector;
+ sector=Int_t(TMath::Nint((angle-fOuterAngleShift)/fOuterAngle))+fNInnerSector;
if (xyz[2]<0) sector+=(fNOuterSector>>1);
}
else