10#include <tracking/ckf/cdc/filters/paths/BaseCDCPathFilter.h>
12#include <tracking/trackFindingCDC/numerics/Weight.h>
26 if (path.size() == 1) {
31 if (path.front().getSeed()->getChargeSeed() == 0) {
36 if (path.front().getSeed()->getChargeSeed() != path.back().getTrackState().getCharge()) {
37 B2DEBUG(29,
"Flipped charge: " << path.front().getSeed()->getChargeSeed() <<
"->" << path.back().getTrackState().getCharge());
41 return path.front().getSeed()->getChargeSeed();
Check if charge of fitted path corresponds to charge of seed.
TrackFindingCDC::Weight operator()(const BaseCDCPathFilter::Object &path) final
Main function: return the charge of the path.
Base class for filters on a generic object type.
AObject Object
Type of the object to be analysed.
Abstract base class for different kinds of events.