11#include "tracking/trackFindingVXD/environment/VXDTFFilters.h"
12#include <unordered_map>
26 template<
class po
int_t>
75 return result->second;
92 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,...
virtual ~FiltersContainer()
Destructor deleting all filters stored.
VXDTFFilters< point_t > * getFilters(const std::string &setupName)
Gives access to the sector map and filters of a given setup.
FiltersContainer(const FiltersContainer &filtersContainer)=delete
Copies of this class, which is a singleton, are not allowed so the copy constructor method is deleted...
FiltersContainer()
Singleton so use a hidden Constructor.
static FiltersContainer & getInstance()
one and only way to access the singleton object
void assignFilters(const std::string &setupName, VXDTFFilters< point_t > *filters)
assigns filters.
const setupNameToFilters_t & getAllSetups(void)
returns all the available setups.
FiltersContainer & operator=(const FiltersContainer &)=delete
dont allow copies
std::unordered_map< std::string, Belle2::VXDTFFilters< point_t > * > setupNameToFilters_t
typedef for better readability. Index is name of the setup.
setupNameToFilters_t m_allSetupsFilters
Container of all the Filters indexed by their setupNames.
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
Abstract base class for different kinds of events.