Utility for the track selection - used in various calibration modules.
More...
#include <TrackSelector.h>
|
enum | EType {
c_undefined = 0,
c_dimuon = 1,
c_bhabha = 2,
c_cosmics = 3
} |
| enumerators for possible data sample types (skims)
|
|
Utility for the track selection - used in various calibration modules.
Definition at line 37 of file TrackSelector.h.
◆ TrackSelector()
Useful constructor.
- Parameters
-
sampleName | data sample name, one of dimuon, bhabha or cosmics |
Definition at line 34 of file TrackSelector.cc.
40 B2ERROR(
"TOP::TrackSelector: unknown data sample."
41 <<
LogVar(
"name", sampleName));
49 B2ERROR(
"TOP::TrackSelector: sample type is undefined, default constructor used");
◆ getCMSEnergy()
double getCMSEnergy |
( |
| ) |
const |
|
inline |
Returns c.m.s energy of the track in last isSelected call.
- Returns
- c.m.s. energy if track is selected, otherwise undefined
Definition at line 160 of file TrackSelector.h.
◆ getDeltaEcms()
double getDeltaEcms |
( |
| ) |
const |
|
inline |
Returns c.m.s.
energy cut
- Returns
- size of the energy window
Definition at line 113 of file TrackSelector.h.
◆ getDr()
Returns POCA cut in r.
- Returns
- maximal radius in x-y plane
Definition at line 119 of file TrackSelector.h.
◆ getDz()
Returns POCA cut in z.
- Returns
- cut in z coordinate (|z| < dz/2)
Definition at line 125 of file TrackSelector.h.
◆ getLocalMomentum()
const TVector3& getLocalMomentum |
( |
| ) |
const |
|
inline |
Returns momentum at TOP in local frame of the track in last isSelected call.
- Returns
- momentum vector in local frame if track is selected, otherwise undefined
Definition at line 172 of file TrackSelector.h.
◆ getLocalPosition()
const TVector3& getLocalPosition |
( |
| ) |
const |
|
inline |
Returns position at TOP in local frame of the track in last isSelected call.
- Returns
- position in local frame if track is selected, otherwise undefined
Definition at line 166 of file TrackSelector.h.
◆ getMaxZ()
Returns cut on local z.
- Returns
- maximal local z of extrapolated hit
Definition at line 137 of file TrackSelector.h.
◆ getMinMomentum()
double getMinMomentum |
( |
| ) |
const |
|
inline |
Returns momentum cut.
- Returns
- minimal momentum
Definition at line 107 of file TrackSelector.h.
◆ getMinZ()
Returns cut on local z.
- Returns
- minimal local z of extrapolated hit
Definition at line 131 of file TrackSelector.h.
◆ getPOCAMomentum()
const TVector3& getPOCAMomentum |
( |
| ) |
const |
|
inline |
Returns momentum vector at POCA of the track in last isSelected call.
- Returns
- momentum vector if track is selected, otherwise undefined
Definition at line 154 of file TrackSelector.h.
◆ getPOCAPosition()
const TVector3& getPOCAPosition |
( |
| ) |
const |
|
inline |
Returns position of POCA of the track in last isSelected call.
- Returns
- POCA if track is selected, otherwise undefined
Definition at line 148 of file TrackSelector.h.
◆ getSampleName()
const std::string& getSampleName |
( |
| ) |
const |
|
inline |
◆ isSelected()
bool isSelected |
( |
const TOPtrack & |
track | ) |
const |
Returns selection status.
- Parameters
-
track | track extrapolated to TOP |
- Returns
- true if track passes selection criteria
Definition at line 53 of file TrackSelector.cc.
◆ setCutOnLocalZ()
void setCutOnLocalZ |
( |
double |
minZ, |
|
|
double |
maxZ |
|
) |
| |
|
inline |
Sets cut on local z coordinate (module frame) of the track extrapolated to TOP.
- Parameters
-
minZ | minimal z |
maxZ | maximal z |
Definition at line 91 of file TrackSelector.h.
◆ setCutOnPOCA()
void setCutOnPOCA |
( |
double |
dr, |
|
|
double |
dz |
|
) |
| |
|
inline |
Sets cut on point of closest approach to (0, 0, 0)
- Parameters
-
dr | maximal radius in x-y plane |
dz | cut in z coordinate (|z| < dz/2) |
Definition at line 80 of file TrackSelector.h.
◆ setDeltaEcms()
void setDeltaEcms |
( |
double |
deltaEcms | ) |
|
|
inline |
Sets cut on c.m.s.
energy (used for "dimuon" and "bhabha")
- Parameters
-
deltaEcms | size of energy window |
Definition at line 73 of file TrackSelector.h.
◆ setMinMomentum()
void setMinMomentum |
( |
double |
minMomentum | ) |
|
|
inline |
Sets momentum cut (used for "cosmics" only)
- Parameters
-
minMomentum | minimal track momentum |
Definition at line 67 of file TrackSelector.h.
◆ m_cmsEnergy
The documentation for this class was generated from the following files: