Auxiliary class for start or end point evaluation.
Definition at line 21 of file JStart.hh.
template<class T >
T JRECONSTRUCTION::JStart::find |
( |
T |
__begin, |
|
|
T |
__end |
|
) |
| const |
|
inline |
Get start point of muon trajectory.
The template parameter should correspond to a data type which has the member method:
double getP() const; // return probability
The input data should have been sorted along the muon path beforehand.
A start point is triggered when an observed probability is less than Pmin1 or when there are two probabilities less than Pmin2 within Nmax2 consecutive observations.
The start or end point can found by providing the data in ascending or descending order, respectively.
- Parameters
-
__begin | begin of data |
__end | end of data |
- Returns
- start point
Definition at line 77 of file JStart.hh.
79 for (
T p = __begin; p != __end; ++p) {
81 if (p->getP() < this->
Pmin1) {
85 if (p->getP() < this->
Pmin2) {
87 if (q->getP() < this->
Pmin2) {
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
int Nmax2
maximal number for twofold observations
do set_variable OUTPUT_DIRECTORY $WORKDIR T
double Pmin1
minimal probability single observation
double Pmin2
minimal probability for twofold observations