 |
Belle II Software
release-05-02-19
|
11 #ifndef FILTERSCONTAINER_HH
12 #define FILTERSCONTAINER_HH
14 #include "tracking/trackFindingVXD/environment/VXDTFFilters.h"
15 #include <unordered_map>
29 template<
class po
int_t>
30 class FiltersContainer {
78 return result->second;
95 B2INFO(
"FiltersContainer: Replacing existing filter for setup name: " << setupName);
This class contains everything needed by the VXDTF that is not going to change during a RUN,...
Class that contains all the static sectors to which the filters are attached.
std::map< ExpRun, std::pair< double, double > > filter(const std::map< ExpRun, std::pair< double, double >> &runs, double cut, std::map< ExpRun, std::pair< double, double >> &runsRemoved)
filter events to remove runs shorter than cut, it stores removed runs in runsRemoved
VXDTFFilters< point_t > * getFilters(const std::string &setupName)
Gives access to the sector map and filters of a given setup.
FiltersContainer()
Singleton so use a hidden Constructor.
setupNameToFilters_t m_allSetupsFilters
Container of all the Filters indexed by their setupNames.
Abstract base class for different kinds of events.
void assignFilters(const std::string &setupName, VXDTFFilters< point_t > *filters)
assigns filters.
virtual ~FiltersContainer()
Destructor deleting all filters stored.
FiltersContainer & operator=(const FiltersContainer &)=delete
dont allow copies
static FiltersContainer & getInstance()
one and only way to access the singleton object
const setupNameToFilters_t & getAllSetups(void)
returns all the available setups.
std::unordered_map< std::string, Belle2::VXDTFFilters< point_t > * > setupNameToFilters_t
typedef for better readability. Index is name of the setup.