 |
Belle II Software
release-05-01-25
|
10 #include <tracking/ckf/svd/filters/relations/SectorMapBasedSVDPairFilter.h>
11 #include <tracking/trackFindingCDC/filters/base/Filter.icc.h>
13 #include <tracking/trackFindingCDC/utilities/StringManipulation.h>
15 #include <tracking/spacePointCreation/SpacePoint.h>
16 #include <framework/core/ModuleParamList.templateDetails.h>
17 #include <tracking/dataobjects/FullSecID.h>
46 B2ASSERT(
"From and to state must be set", fromState and toState);
48 const CKFToSVDState::stateCache& outerStateCache = fromState->
getStateCache();
49 const CKFToSVDState::stateCache& innerStateCache = toState->getStateCache();
51 B2ASSERT(
"Both hits must be present!", outerStateCache.isHitState and innerStateCache.isHitState);
54 B2ASSERT(
"Outer hit is invalid",
56 B2ASSERT(
"Inner hit is invalid",
60 outerStateCache.localNormalizedv);
62 innerStateCache.localNormalizedv);
66 const auto*
filter = outerStaticSector->getFilter2sp(innerSecID);
72 const SpacePoint* innerHit = toState->getHit();
74 if (not
filter->accept(*outerHit, *innerHit)) {
void beginRun() final
Initialize the sector map.
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
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters of the filter.
SectorMapFilter * m_vxdtfFilters
The sector map filter, will be set in begin run.
VxdID getVxdID() const
returns VxdID of sensor.
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
bool areCoordinatesValid(VxdID aSensorID, double normalizedU, double normalizedV) const
check if using getFullID() would be safe (true if it is safe):
VXDTFFilters< point_t > * getFilters(const std::string &setupName)
Gives access to the sector map and filters of a given setup.
const staticSector_t * getStaticSector(const FullSecID secID) const
returns pointer to static sector for given fullSecID.
Class to identify a sector inside of the VXD.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
Abstract base class for different kinds of events.
void beginRun() override
Receive and dispatch signal for the beginning of a new run.
const struct stateCache & getStateCache() const
Get the cached data of this state.
FilterContainer & m_filtersContainer
The filter container to use.
const Hit * getHit() const
Return the SP this state is related to. May be nullptr.
std::string m_param_sectorMapName
Name of the sector map to use.
The Module parameter list class.
Specialized CKF State for extrapolating into the SVD.
TrackFindingCDC::Weight operator()(const std::pair< const CKFToSVDState *, const CKFToSVDState * > &relation) override
Give a final weight to the possibilities by asking the filter.
FullSecID getFullID(VxdID aSensorID, double normalizedU, double normalizedV) const
returns fullSecID for given sensorID and local coordinates.