8 #ifndef smartSelector_h
9 #define smartSelector_h
33 int accept (
int eventNb,
const int numberOfFractions)
const
39 for (
int i=1 ;
i<numberOfFractions ;
i *= 2) sum +=
i ;
43 if (position >= sum &&
44 position < sum + numberOfFractions)
int accept(int eventNb, const int numberOfFractions) const
actual selector
static int position[TOTALCHAMBERS][3]
int setSmallestPart(int smallestPart)
set the smallest part only if was set to 0
smartSelector(int smallestPart=0)
ctor