10#include <tracking/trackFindingCDC/filters/wireHit/BaseWireHitFilter.h>
11#include <framework/database/DBObjPtr.h>
12#include <cdc/dbobjects/CDCWireHitRequirements.h>
19 namespace TrackFindingCDC {
40 Weight operator()(const
CDCWireHit& wireHit) final;
51 bool isInRange(const T& value, const
std::pair<T, T>& range) const;
Database object containing cut values to filter CDCWireHits.
Class for accessing objects in the database.
Class representing a hit wire in the central drift chamber.
Filter rejecting hits according to DB values.
std::unique_ptr< DBObjPtr< CDCWireHitRequirements > > m_CDCWireHitRequirementsFromDB
Cut values from the Data Base.
void initialize() final
Called at the beginning of the processing.
void beginRun() final
Called when a new run is started.
bool isInRange(const T &value, const std::pair< T, T > &range) const
Check if value >= range.first and value <= range.second If range.second == -1, then check only if val...
CutsFromDBWireHitFilter()
Default constructor.
void checkIfDBObjPtrIsValid()
Check if m_CDCWireHitRequirementsFromDB is valid and set m_DBPtrIsValidForCurrentRun accordingly.
virtual ~CutsFromDBWireHitFilter()=default
Default destructor.
bool m_DBPtrIsValidForCurrentRun
Boolean asserting if DBObjPtr is valid for the current run.
bool isLessThanOrEqualTo(const T &value, const T &upper_value) const
Check if value <= upper_value If upper_value == -1, then return true.
Base class for filters on a generic object type.
Abstract base class for different kinds of events.