Utility for the track selection - used in various calibration modules. More...
#include <TrackSelector.h>
Public Types | |
enum | EType { c_undefined = 0 , c_dimuon = 1 , c_bhabha = 2 , c_cosmics = 3 } |
enumerators for possible data sample types (skims) More... | |
Public Member Functions | |
TrackSelector () | |
Default constructor. | |
TrackSelector (const std::string &sampleName) | |
Useful constructor. | |
void | setMinMomentum (double minMomentum) |
Sets momentum cut (used for "cosmics" only) | |
void | setDeltaEcms (double deltaEcms) |
Sets cut on c.m.s. | |
void | setCutOnPOCA (double dr, double dz) |
Sets cut on point of closest approach to (0, 0, 0) | |
void | setCutOnLocalZ (double minZ, double maxZ) |
Sets cut on local z coordinate (module frame) of the track extrapolated to TOP. | |
const std::string & | getSampleName () const |
Returns sample name. | |
double | getMinMomentum () const |
Returns momentum cut. | |
double | getDeltaEcms () const |
Returns c.m.s. | |
double | getDr () const |
Returns POCA cut in r. | |
double | getDz () const |
Returns POCA cut in z. | |
double | getMinZ () const |
Returns cut on local z. | |
double | getMaxZ () const |
Returns cut on local z. | |
const Const::ChargedStable & | getChargedStable () const |
Returns track hypothesis. | |
const ROOT::Math::XYZVector & | getPOCAPosition () const |
Returns position of POCA of the track in last isSelected call. | |
const ROOT::Math::XYZVector & | getPOCAMomentum () const |
Returns momentum vector at POCA of the track in last isSelected call. | |
double | getCMSEnergy () const |
Returns c.m.s energy of the track in last isSelected call. | |
const ROOT::Math::XYZPoint & | getLocalPosition () const |
Returns position at TOP in local frame of the track in last isSelected call. | |
const ROOT::Math::XYZVector & | getLocalMomentum () const |
Returns momentum at TOP in local frame of the track in last isSelected call. | |
bool | isSelected (const TOPTrack &track) const |
Returns selection status. | |
Private Attributes | |
EType | m_sampleType = c_undefined |
data sample (skim) type | |
std::string | m_sampleName |
data sample (skim) name | |
double | m_minMomentum = 0 |
minimal track momentum if sample is "cosmics" | |
double | m_deltaEcms = 0 |
c.m.s energy window for "dimuon" or "bhabha" | |
double | m_dr = 0 |
cut on POCA in r | |
double | m_dz = 0 |
cut on POCA in z | |
double | m_minZ = 0 |
minimal local z of extrapolated hit | |
double | m_maxZ = 0 |
maximal local z of extrapolated hit | |
Const::ChargedStable | m_chargedStable = Const::muon |
track hypothesis | |
ROOT::Math::XYZVector | m_pocaPosition |
position of POCA | |
ROOT::Math::XYZVector | m_pocaMomentum |
momentum at POCA | |
double | m_cmsEnergy = 0 |
c.m.s. | |
ROOT::Math::XYZPoint | m_localPosition |
position at TOP in local (module) frame | |
ROOT::Math::XYZVector | m_localMomentum |
momentum at TOP in local (module) frame | |
Utility for the track selection - used in various calibration modules.
Definition at line 27 of file TrackSelector.h.
enum EType |
enumerators for possible data sample types (skims)
Definition at line 34 of file TrackSelector.h.
|
inline |
|
explicit |
Useful constructor.
sampleName | data sample name, one of dimuon, bhabha or cosmics |
Definition at line 23 of file TrackSelector.cc.
|
inline |
Returns track hypothesis.
Definition at line 132 of file TrackSelector.h.
|
inline |
Returns c.m.s energy of the track in last isSelected call.
Definition at line 150 of file TrackSelector.h.
|
inline |
Returns c.m.s.
energy cut
Definition at line 103 of file TrackSelector.h.
|
inline |
Returns POCA cut in r.
Definition at line 109 of file TrackSelector.h.
|
inline |
Returns POCA cut in z.
Definition at line 115 of file TrackSelector.h.
|
inline |
Returns momentum at TOP in local frame of the track in last isSelected call.
Definition at line 162 of file TrackSelector.h.
|
inline |
Returns position at TOP in local frame of the track in last isSelected call.
Definition at line 156 of file TrackSelector.h.
|
inline |
Returns cut on local z.
Definition at line 127 of file TrackSelector.h.
|
inline |
Returns momentum cut.
Definition at line 97 of file TrackSelector.h.
|
inline |
Returns cut on local z.
Definition at line 121 of file TrackSelector.h.
|
inline |
Returns momentum vector at POCA of the track in last isSelected call.
Definition at line 144 of file TrackSelector.h.
|
inline |
Returns position of POCA of the track in last isSelected call.
Definition at line 138 of file TrackSelector.h.
|
inline |
Returns sample name.
Definition at line 91 of file TrackSelector.h.
bool isSelected | ( | const TOPTrack & | track | ) | const |
Returns selection status.
track | track extrapolated to TOP |
Definition at line 43 of file TrackSelector.cc.
|
inline |
Sets cut on local z coordinate (module frame) of the track extrapolated to TOP.
minZ | minimal z |
maxZ | maximal z |
Definition at line 81 of file TrackSelector.h.
|
inline |
Sets cut on point of closest approach to (0, 0, 0)
dr | maximal radius in x-y plane |
dz | cut in z coordinate (|z| < dz/2) |
Definition at line 70 of file TrackSelector.h.
|
inline |
Sets cut on c.m.s.
energy (used for "dimuon" and "bhabha")
deltaEcms | size of energy window |
Definition at line 63 of file TrackSelector.h.
|
inline |
Sets momentum cut (used for "cosmics" only)
minMomentum | minimal track momentum |
Definition at line 57 of file TrackSelector.h.
|
private |
track hypothesis
Definition at line 181 of file TrackSelector.h.
|
mutableprivate |
|
private |
c.m.s energy window for "dimuon" or "bhabha"
Definition at line 176 of file TrackSelector.h.
|
private |
cut on POCA in r
Definition at line 177 of file TrackSelector.h.
|
private |
cut on POCA in z
Definition at line 178 of file TrackSelector.h.
|
mutableprivate |
momentum at TOP in local (module) frame
Definition at line 188 of file TrackSelector.h.
|
mutableprivate |
position at TOP in local (module) frame
Definition at line 187 of file TrackSelector.h.
|
private |
maximal local z of extrapolated hit
Definition at line 180 of file TrackSelector.h.
|
private |
minimal track momentum if sample is "cosmics"
Definition at line 175 of file TrackSelector.h.
|
private |
minimal local z of extrapolated hit
Definition at line 179 of file TrackSelector.h.
|
mutableprivate |
momentum at POCA
Definition at line 185 of file TrackSelector.h.
|
mutableprivate |
position of POCA
Definition at line 184 of file TrackSelector.h.
|
private |
data sample (skim) name
Definition at line 174 of file TrackSelector.h.
|
private |
data sample (skim) type
Definition at line 173 of file TrackSelector.h.