4 #ifndef smartSelector_h
5 #define smartSelector_h
29 int accept (
int eventNb,
const int numberOfFractions)
const
35 for (
int i=1 ;
i<numberOfFractions ;
i *= 2) sum +=
i ;
39 if (position >= sum &&
40 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