10#include <framework/logging/Logger.h>
41 m_pThreshold.insert(std::pair<int, float>(pdg, momentum));
49 std::map<int, float>::const_iterator it =
m_pThreshold.find(pdg);
53 B2FATAL(
"Momentum threshold for pdg " << pdg <<
" not found");
The payload containing the momentum threshold to disable the particle hypothesis in the track fit.
TrackFitMomentumRange()
Default constructor.
void setMomentumRange(const int pdg, const float momentum)
Set the momentum threshold for the pdg particle hypothesis (infinite means always enabled)
ClassDef(TrackFitMomentumRange, 1)
ClassDef, necessary for ROOT.
~TrackFitMomentumRange()
Destructor.
std::map< int, float > m_pThreshold
The p threshold that is used to determine if you want to fit the particle hypothesis,...
float getMomentumRange(int pdg) const
Get the momentum threshold for the pdg particle hypothesis (100.
Abstract base class for different kinds of events.