 |
Belle II Software
release-05-01-25
|
12 #include <tracking/trackFindingCDC/filters/wireHit/BaseWireHitFilter.h>
13 #include <framework/database/DBObjPtr.h>
14 #include <cdc/dbobjects/CDCWireHitRequirements.h>
21 namespace TrackFindingCDC {
25 class CutsFromDBWireHitFilter :
public BaseWireHitFilter {
42 Weight operator()(const
CDCWireHit& wireHit) final;
53 bool isInRange(const T& value, const std::pair<T, T>& range) const;
void checkIfDBObjPtrIsValid()
Check if m_CDCWireHitRequirementsFromDB is valid and set m_DBPtrIsValidForCurrentRun accordingly.
void initialize() final
Called at the beginning of the processing.
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...
void beginRun() final
Called when a new run is started.
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.
Class for accessing objects in the database.
Database object containing cut values to filter CDCWireHits.
Abstract base class for different kinds of events.
virtual ~CutsFromDBWireHitFilter()=default
Default destructor.
CutsFromDBWireHitFilter()
Default constructor.
std::unique_ptr< DBObjPtr< CDCWireHitRequirements > > m_CDCWireHitRequirementsFromDB
Cut values from the Data Base.
Class representing a hit wire in the central drift chamber.