Belle II Software development
TrackFitMomentumRange Class Reference

The payload containing the momentum threshold to disable the particle hypothesis in the track fit. More...

#include <TrackFitMomentumRange.h>

Inheritance diagram for TrackFitMomentumRange:

Public Member Functions

 TrackFitMomentumRange ()
 Default constructor.
 
 ~TrackFitMomentumRange ()
 Destructor.
 
void setMomentumRange (const int pdg, const float momentum)
 Set the momentum threshold for the pdg particle hypothesis (infinite means always enabled)
 
float getMomentumRange (int pdg) const
 Get the momentum threshold for the pdg particle hypothesis (100.
 

Private Member Functions

 ClassDef (TrackFitMomentumRange, 1)
 ClassDef, necessary for ROOT.
 

Private Attributes

std::map< int, float > m_pThreshold
 The p threshold that is used to determine if you want to fit the particle hypothesis, for each particle hypotheis (pdg number)
 

Detailed Description

The payload containing the momentum threshold to disable the particle hypothesis in the track fit.

If the track momentum (from the seed) is greater than the hypothesis threshold, the particle hypothesis is disabled; if the momentum is lower, the particle hypothesis is used. Pion (default hypothesis) threshold has to be always infinite (large, always enabled). The values are expressed in GeV/c.

Definition at line 26 of file TrackFitMomentumRange.h.

Constructor & Destructor Documentation

◆ TrackFitMomentumRange()

Default constructor.

Definition at line 31 of file TrackFitMomentumRange.h.

31{}

◆ ~TrackFitMomentumRange()

~TrackFitMomentumRange ( )
inline

Destructor.

Definition at line 33 of file TrackFitMomentumRange.h.

33{}

Member Function Documentation

◆ getMomentumRange()

float getMomentumRange ( int  pdg) const
inline

Get the momentum threshold for the pdg particle hypothesis (100.

means always enabled)

Parameters
pdgParticle hypothesis pdg code

Definition at line 47 of file TrackFitMomentumRange.h.

48 {
49 std::map<int, float>::const_iterator it = m_pThreshold.find(pdg);
50 if (it != m_pThreshold.end()) {
51 return it->second;
52 } else {
53 B2FATAL("Momentum threshold for pdg " << pdg << " not found");
54 }
55 }
std::map< int, float > m_pThreshold
The p threshold that is used to determine if you want to fit the particle hypothesis,...

◆ setMomentumRange()

void setMomentumRange ( const int  pdg,
const float  momentum 
)
inline

Set the momentum threshold for the pdg particle hypothesis (infinite means always enabled)

Parameters
pdgParticle hypothesis pdg code
momentumMomentum cut un GeV/c

Definition at line 39 of file TrackFitMomentumRange.h.

40 {
41 m_pThreshold.insert(std::pair<int, float>(pdg, momentum));
42 }

Member Data Documentation

◆ m_pThreshold

std::map<int, float> m_pThreshold
private

The p threshold that is used to determine if you want to fit the particle hypothesis, for each particle hypotheis (pdg number)

Definition at line 60 of file TrackFitMomentumRange.h.


The documentation for this class was generated from the following file: