Class to store the fill pattern of colliding bunches.
More...
#include <BunchStructure.h>
|
| BunchStructure () |
| Default constructor.
|
|
void | setBucket (unsigned i) |
| Sets the fill status of RF bucket to true.
|
|
unsigned | getRFBucketsPerRevolution () const |
| Returns the number of RF buckets per beam revolution.
|
|
const std::vector< bool > & | getFillPattern () const |
| Returns fill pattern.
|
|
bool | getBucket (int i) const |
| Returns the fill status of RF bucket.
|
|
bool | isSet () const |
| Checks if the fill pattern is really set.
|
|
unsigned | getNumOfFilledBuckets () const |
| Returns the number of filled buckets.
|
|
unsigned | generateBucketNumber () const |
| Generates RF bucket number according to the fill pattern.
|
|
|
enum | { c_RFBuckets = 5120
} |
| Number of RF buckets per beam revolution. More...
|
|
|
std::vector< bool > | m_fillPattern |
| fill pattern, true means the bucket is filled
|
|
std::vector< unsigned > | m_filledBuckets |
| cache for the filled bucket numbers
|
|
Class to store the fill pattern of colliding bunches.
Default: if setBucket is not called, works as every second bucket is filled (even bucket numbers).
Definition at line 26 of file BunchStructure.h.
◆ anonymous enum
◆ BunchStructure()
◆ ClassDef()
◆ getFillPattern()
const std::vector< bool > & getFillPattern |
( |
| ) |
const |
|
inline |
Returns fill pattern.
- Returns
- fill pattern
Definition at line 52 of file BunchStructure.h.
52{return m_fillPattern;}
◆ getRFBucketsPerRevolution()
unsigned getRFBucketsPerRevolution |
( |
| ) |
const |
|
inline |
Returns the number of RF buckets per beam revolution.
- Returns
- the number of RF buckets per beam revolution
Definition at line 46 of file BunchStructure.h.
◆ isSet()
Checks if the fill pattern is really set.
- Returns
- true, if the fill pattern is set
Definition at line 65 of file BunchStructure.h.
65{return (not m_fillPattern.empty());}
◆ m_filledBuckets
std::vector<unsigned> m_filledBuckets |
|
mutableprivate |
◆ m_fillPattern
std::vector<bool> m_fillPattern |
|
private |
fill pattern, true means the bucket is filled
Definition at line 87 of file BunchStructure.h.
The documentation for this class was generated from the following files: