Detector subset with binary search functionality.
More...
#include <JDetectorSubset.hh>
|
| | JDetectorSubset (const JDetector &detector, const JAxis3D &track, const JComparator_t &comparator, const double Rmax=std::numeric_limits< double >::max(), const JRangeZ Z=JRangeZ()) |
| | Constructor. More...
|
| |
| | JDetectorSubset (const JDetector &detector, const JAxis3D &track, const double Rmax=std::numeric_limits< double >::max(), const JRangeZ Z=JRangeZ()) |
| | Constructor. More...
|
| |
| | JDetectorSubset (const JDetector &detector, const JVector3D &position, const JComparator_t &comparator, const double Dmax=std::numeric_limits< double >::max()) |
| | Constructor. More...
|
| |
| | JDetectorSubset (const JDetector &detector, const JVector3D &position, const double Dmax=std::numeric_limits< double >::max()) |
| | Constructor. More...
|
| |
| const JComparator_t & | getComparator () const |
| | Get comparator. More...
|
| |
| const_iterator | lower_bound (const double value) const |
| | Find first module after given value according specified comparator. More...
|
| |
| range_type | getRange (const double xmin, const double xmax) const |
| | Get range of modules between given values according specified comparator. More...
|
| |
template<class JComparator_t>
class JDETECTOR::JDetectorSubset< JComparator_t >
Detector subset with binary search functionality.
Definition at line 118 of file JDetectorSubset.hh.
◆ JDetectorSubset() [1/4]
template<class JComparator_t >
Constructor.
See constructor JDetectorSubset_t::JDetectorSubset_t. The modules are sorted according the specified comparator.
- Parameters
-
| detector | detector |
| track | particle track |
| comparator | comparator |
| Rmax | maximal distance of approach [m] |
| Z | range of positions along z-axis [m] |
Definition at line 161 of file JDetectorSubset.hh.
169 std::sort(this->begin(), this->end(),
compare);
◆ JDetectorSubset() [2/4]
template<class JComparator_t >
Constructor.
See constructor JDetectorSubset_t::JDetectorSubset_t. The modules are sorted according the default comparator.
- Parameters
-
| detector | detector |
| track | particle track |
| Rmax | maximal distance of approach [m] |
| Z | range of positions along z-axis [m] |
Definition at line 184 of file JDetectorSubset.hh.
191 std::sort(this->begin(), this->end(),
compare);
◆ JDetectorSubset() [3/4]
template<class JComparator_t >
Constructor.
See constructor JDetectorSubset_t::JDetectorSubset_t. The modules are sorted according the specified comparator.
- Parameters
-
| detector | detector |
| position | position of vertex |
| comparator | comparator |
| Dmax | maximal distance [m] |
Definition at line 206 of file JDetectorSubset.hh.
213 std::sort(this->begin(), this->end(),
compare);
◆ JDetectorSubset() [4/4]
template<class JComparator_t >
◆ getComparator()
template<class JComparator_t >
◆ lower_bound()
template<class JComparator_t >
Find first module after given value according specified comparator.
- Parameters
-
- Returns
- iterator to module
Definition at line 254 of file JDetectorSubset.hh.
256 return std::lower_bound(this->begin(), this->end(), value,
compare);
◆ getRange()
template<class JComparator_t >
Get range of modules between given values according specified comparator.
- Parameters
-
| xmin | minimal value |
| xmax | maximal value |
- Returns
- range of iterators
Definition at line 267 of file JDetectorSubset.hh.
◆ compare
template<class JComparator_t >
The documentation for this class was generated from the following file: