13#ifndef TMSelector_FLAG_
14#define TMSelector_FLAG_
16#ifdef TRKRECO_DEBUG_DETAIL
25#define HEP_SHORT_NAMES
46 void dump(
const std::string & message = std::string(
""),
47 const std::string & prefix = std::string(
""))
const;
50 unsigned nLinks(
void)
const;
56 double minPt(
void)
const;
102 bool _nSuperLayersDefined;
104 bool _maxImpactDefined;
105 bool _maxSigmaDefined;
108 unsigned _nSuperLayers;
113 bool _nLinksStereoDefined;
114 bool _maxDistanceDefined;
116 unsigned _nLinksStereo;
122#ifdef TMSelector_NO_INLINE
126#define TMSelector_INLINE_DEFINE_HERE
129#ifdef TMSelector_INLINE_DEFINE_HERE
135 if (! _nLinksDefined)
136 std::cout <<
"TMSelector !!! min. nLinks is not defined" << std::endl;
144 _nLinksDefined =
true;
153 std::cout <<
"TMSelector !!! min. nSuperLayers is not defined" << std::endl;
155 return _nSuperLayers;
161 _nSuperLayersDefined =
true;
162 return _nSuperLayers = a;
170 std::cout <<
"TMSelector !!! min. pt is not defined" << std::endl;
178 _minPtDefined =
true;
186 if (! _maxImpactDefined)
187 std::cout <<
"TMSelector !!! max. impact is not defined" << std::endl;
195 _maxImpactDefined =
true;
196 return _maxImpact = a;
203 if (! _maxSigmaDefined)
204 std::cout <<
"TMSelector !!! max. sigma is not defined" << std::endl;
212 _maxSigmaDefined =
true;
213 return _maxSigma = a;
220 if (! _nLinksStereoDefined)
221 std::cout <<
"TMSelector !!! min. nLinksStereo is not defined" << std::endl;
223 return _nLinksStereo;
229 _nLinksStereoDefined =
true;
230 return _nLinksStereo = a;
237 if (! _maxDistanceDefined)
238 std::cout <<
"TMSelector !!! max. distance is not defined" << std::endl;
246 _maxDistanceDefined =
true;
247 return _maxDistance = a;
A class to represent a circle in tracking.
A class to select a TTrackBase object.
double maxDistance(void) const
returns max. distance required for stereo hits.
unsigned nSuperLayers(void) const
returns min. # of super layers required.
virtual ~TMSelector()
Destructor.
double maxImpact(void) const
returns max. impact(2D) required.
unsigned nLinks(void) const
returns min. # of hits(TMLinks) requried.
double maxSigma(void) const
returns max. sigma for each TMLink.
unsigned nLinksStereo(void) const
returns min. # of stereo hits(TMLinks) requried.
double minPt(void) const
returns min. pt required.
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
bool preSelect(const TTrackBase &) const
returns true if given track satisfys criteria before fitting.
bool select(TTrackBase &) const
returns true if given track satisfys criteria after fitting.
A virtual class for a track class in tracking.