 |
Belle II Software
release-05-01-25
|
11 #include <top/utilities/TrackSelector.h>
12 #include <framework/logging/Logger.h>
13 #include <top/reconstruction/TOPtrack.h>
14 #include <top/geometry/TOPGeometryPar.h>
15 #include <mdst/dataobjects/Track.h>
16 #include <analysis/utility/PCmsLabTransform.h>
28 if (sampleName ==
"dimuon") {
29 m_sampleType = c_dimuon;
31 }
else if (sampleName ==
"bhabha") {
32 m_sampleType = c_bhabha;
34 }
else if (sampleName ==
"cosmics") {
35 m_sampleType = c_cosmics;
38 m_sampleType = c_undefined;
39 m_sampleName =
"undefined";
40 B2ERROR(
"TOP::TrackSelector: unknown data sample."
41 <<
LogVar(
"name", sampleName));
49 B2ERROR(
"TOP::TrackSelector: sample type is undefined, default constructor used");
53 if (not trk.isValid())
return false;
55 const auto* fit = trk.getTrack()->getTrackFitResultWithClosestMass(
m_chargedStable);
56 if (not fit)
return false;
68 TLorentzVector lorentzLab;
72 auto lorentzCms = T.
labToCms(lorentzLab);
82 const auto& module = geo->getModule(trk.getModuleID());
double m_maxZ
maximal local z of extrapolated hit
TrackSelector()
Default constructor.
static const ChargedStable electron
electron particle
TVector3 m_localMomentum
momentum at TOP in local (module) frame
EType m_sampleType
data sample (skim) type
double m_dr
cut on POCA in r
Const::ChargedStable m_chargedStable
track hypothesis
double m_minZ
minimal local z of extrapolated hit
static TOPGeometryPar * Instance()
Static method to obtain the pointer to its instance.
TVector3 m_pocaPosition
position of POCA
double m_dz
cut on POCA in z
Abstract base class for different kinds of events.
double m_minMomentum
minimal track momentum if sample is "cosmics"
Class to store variables with their name which were sent to the logging service.
TVector3 m_localPosition
position at TOP in local (module) frame
TVector3 m_pocaMomentum
momentum at POCA
bool isSelected(const TOPtrack &track) const
Returns selection status.
double m_deltaEcms
c.m.s energy window for "dimuon" or "bhabha"
static const ChargedStable muon
muon particle
const TOPGeometry * getGeometry() const
Returns pointer to geometry object using Basf2 units.
double getMass() const
Particle mass.