9#include <framework/dbobjects/BunchStructure.h>
33 int k = i % c_RFBuckets;
34 if (k < 0) k += c_RFBuckets;
49 if (
m_fillPattern.empty())
return (gRandom->Integer(c_RFBuckets / 2) * 2);
52 for (
unsigned i = 0; i < c_RFBuckets; ++i) {
std::vector< unsigned > m_filledBuckets
cache for the filled bucket numbers
std::vector< bool > m_fillPattern
fill pattern, true means the bucket is filled
unsigned getNumOfFilledBuckets() const
Returns the number of filled buckets.
void setBucket(unsigned i)
Sets the fill status of RF bucket to true.
bool getBucket(int i) const
Returns the fill status of RF bucket.
unsigned generateBucketNumber() const
Generates RF bucket number according to the fill pattern.
Abstract base class for different kinds of events.