![]() |
Project
|
#include <AODProducerWorkflowSpec.h>
Public Member Functions | |
BunchCrossings ()=default | |
Constructor initializes the acceleration structure. | |
void | init (std::map< uint64_t, int > const &bcs) |
initialize this container (to be ready for lookup/search queries) | |
std::vector< uint64_t > const & | getBCTimeVector () const |
return the sorted vector of increaing BC times | |
std::pair< size_t, uint64_t > | lower_bound (uint64_t timestamp) const |
void | clear () |
clear/reset this container | |
void | print () |
print information about this container | |
A structure or container to organize bunch crossing data of a timeframe and to facilitate fast lookup and search within bunch crossings.
Definition at line 49 of file AODProducerWorkflowSpec.h.
|
default |
Constructor initializes the acceleration structure.
|
inline |
clear/reset this container
Definition at line 119 of file AODProducerWorkflowSpec.h.
|
inline |
return the sorted vector of increaing BC times
Definition at line 67 of file AODProducerWorkflowSpec.h.
initialize this container (to be ready for lookup/search queries)
Definition at line 56 of file AODProducerWorkflowSpec.h.
|
inline |
Performs a "lower bound" search for timestamp within the bunch crossing data.
Returns the smallest bunch crossing (index and value) equal or greater than timestamp.
The functions is expected to perform much better than a binary search in the bunch crossing data directly. Expect O(1) instead of O(log(N)) at the cost of the additional memory used by this class.
This is not O(1). The loop below makes it at least O(N). The call to std::lower_bound is O(log(N)).
Definition at line 82 of file AODProducerWorkflowSpec.h.
|
inline |
print information about this container
Definition at line 127 of file AODProducerWorkflowSpec.h.