Auxiliary class for start or end point evaluation.
More...
#include <JStart.hh>
|
| JStart () |
| Default constructor. More...
|
|
| JStart (const double Pmin1, const double Pmin2) |
| Constructor. More...
|
|
bool | is_valid () const |
| Check validity of start or end point conditions. More...
|
|
template<class JHit_t > |
bool | operator() (const JHit_t &observation) const |
| Evaluate start or end point conditions. More...
|
|
template<class JHit_t > |
bool | operator() (const JHit_t &first, const JHit_t &second) const |
| Evaluate start or end point conditions. More...
|
|
template<class T > |
T | find (T __begin, T __end) const |
| Get start or end point of muon trajectory. More...
|
|
|
double | Pmin1 |
| minimal probability single observation More...
|
|
double | Pmin2 |
| minimal probability each of two consecutive observations More...
|
|
Auxiliary class for start or end point evaluation.
Definition at line 21 of file JStart.hh.
Default constructor.
Definition at line 25 of file JStart.hh.
double Pmin2
minimal probability each of two consecutive observations
double Pmin1
minimal probability single observation
JFIT::JStart::JStart |
( |
const double |
Pmin1, |
|
|
const double |
Pmin2 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
Pmin1 | minimal probability single observation |
Pmin2 | minimal probability each of two consecutive observations |
Definition at line 37 of file JStart.hh.
double Pmin2
minimal probability each of two consecutive observations
double Pmin1
minimal probability single observation
bool JFIT::JStart::is_valid |
( |
| ) |
const |
|
inline |
Check validity of start or end point conditions.
- Returns
- true if valid; else false
Definition at line 50 of file JStart.hh.
double Pmin2
minimal probability each of two consecutive observations
double Pmin1
minimal probability single observation
template<class JHit_t >
bool JFIT::JStart::operator() |
( |
const JHit_t & |
observation | ) |
const |
|
inline |
Evaluate start or end point conditions.
The template parameter should correspond to a data type which has the member method:
double getP() const; // return probability
- Parameters
-
- Returns
- true if start or end point; else false
Definition at line 68 of file JStart.hh.
70 return observation.getP() <
Pmin1;
double Pmin1
minimal probability single observation
template<class JHit_t >
bool JFIT::JStart::operator() |
( |
const JHit_t & |
first, |
|
|
const JHit_t & |
second |
|
) |
| const |
|
inline |
Evaluate start or end point conditions.
The template parameter should correspond to a data type which has the member method:
double getP() const; // return probability
- Parameters
-
first | first observation |
second | second observation |
- Returns
- true if start or end point; else false
Definition at line 87 of file JStart.hh.
90 return ((first.getP() <
Pmin1) ||
91 (first.getP() <
Pmin2 && second.getP() <
Pmin2));
double Pmin2
minimal probability each of two consecutive observations
double Pmin1
minimal probability single observation
template<class T >
T JFIT::JStart::find |
( |
T |
__begin, |
|
|
T |
__end |
|
) |
| const |
|
inline |
Get start or end 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.
- Parameters
-
__begin | begin of data |
__end | end of data |
Definition at line 108 of file JStart.hh.
110 if (__begin != __end) {
111 for (T q = __begin, p = q++; q != __end; ++p, ++q) {
112 if ((*
this)(*p,*q)) {
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JStart & |
parameters |
|
) |
| |
|
friend |
Read parameters from input.
- Parameters
-
in | input stream |
parameters | parameters |
- Returns
- input stream
Definition at line 129 of file JStart.hh.
double Pmin2
minimal probability each of two consecutive observations
double Pmin1
minimal probability single observation
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JStart & |
parameters |
|
) |
| |
|
friend |
Write parameters to output.
- Parameters
-
out | output stream |
parameters | parameters |
- Returns
- output stream
Definition at line 144 of file JStart.hh.
146 out << parameters.
Pmin1 <<
' ' << parameters.
Pmin2;
double Pmin2
minimal probability each of two consecutive observations
double Pmin1
minimal probability single observation
double JFIT::JStart::Pmin1 |
minimal probability single observation
Definition at line 152 of file JStart.hh.
double JFIT::JStart::Pmin2 |
minimal probability each of two consecutive observations
Definition at line 153 of file JStart.hh.
The documentation for this struct was generated from the following file: