ATLAS Offline Software
|
Functor counting how many neighbors a given bunch crossing has. More...
#include <count_bunch_neighbors.h>
Public Member Functions | |
count_bunch_neighbors (const std::vector< int > &bunches, int maxBunchSpacing) | |
Constructor with colliding bunches, and maximum bunch spacing. More... | |
int | operator() (int bunch) const |
Count how many neighbors can be found for the specified bunch crossing. More... | |
Private Attributes | |
const std::vector< int > & | m_bunches |
Filled bunches in the current configuration. More... | |
const int | m_maxBunchSpacing |
Maximum bunch spacing to consider. More... | |
Functor counting how many neighbors a given bunch crossing has.
This is used as an unary predicate when counting how many bunches have neighbors closer than X. To determine the minimum bunch spacing of the configurations, before the code would start looking for single bunches and bunch trains.
Definition at line 24 of file count_bunch_neighbors.h.
Trig::count_bunch_neighbors::count_bunch_neighbors | ( | const std::vector< int > & | bunches, |
int | maxBunchSpacing | ||
) |
Constructor with colliding bunches, and maximum bunch spacing.
Definition at line 15 of file count_bunch_neighbors.cxx.
int Trig::count_bunch_neighbors::operator() | ( | int | bunch | ) | const |
Count how many neighbors can be found for the specified bunch crossing.
Definition at line 22 of file count_bunch_neighbors.cxx.
|
private |
Filled bunches in the current configuration.
Definition at line 36 of file count_bunch_neighbors.h.
|
private |
Maximum bunch spacing to consider.
Definition at line 38 of file count_bunch_neighbors.h.