Fit function. 
  190    {
  192      using namespace JFIT;
 
  194      using namespace JLANG;
 
  195 
  197 
  199 
  202 
  203      
  204 
  206 
  208 
  209      if (!in.empty()) {
  211      }
  212 
  214 
  215      data.reserve(dataL0.size() + 
 
  216                   dataL1.size());
  217      
  218      for (JEvt::const_iterator track = in.begin(); track != in.end(); ++track) {
  219 
  223            
  225 
  226        for (buffer_type::const_iterator i = dataL1.begin(); i != dataL1.end(); ++i) {
  227 
  229              
  230          hit.rotate(R);
  231 
  232          if (match(hit)) {
  234          }
  235        }
  236 
  238 
  239          buffer_type::iterator __end = 
data.end();     
 
  240 
  241          for (buffer_type::const_iterator i = dataL0.begin(); i != dataL0.end(); ++i) {
  242              
  244 
  246              
  247              hit.rotate(R);
  248              
  249              if (match(hit)) {
  251              }
  252            }
  253          }
  254        }
  255 
  256 
  257        this->step.resize(5);
  258        
  264        
  266 
  267        if (NDF > 0) {
  268 
  270              
  272              
  273          tb.rotate_back(R);
  274 
  276 
  277          
  278 
  279          out.rbegin()->setW(track->getW());
  282        }
  283      }
  284 
  285      
  286 
  288 
  289      copy(input.in.begin(), input.in.end(), back_inserter(out));
 
  290 
  291      return out;
  292    }
Data structure for fit of straight line paralel to z-axis.
 
Data structure for fit of straight line in positive z-direction.
 
JPosition3D & rotate(const JRotation3D &R)
Rotate.
 
Data structure for vector in three dimensions.
 
Data structure for normalised vector in positive z-direction.
 
int getModuleID() const
Get module identifier.
 
static const int JMUONSIMPLEX
 
static const int JPP_COVERAGE_POSITION
coverage of dynamic position calibration from any Jpp application
 
static const int JPP_COVERAGE_ORIENTATION
coverage of dynamic orientation calibration from any Jpp application
 
void copy(const Head &from, JHead &to)
Copy header from from to to.
 
Auxiliary classes and methods for 3D geometrical objects and operations.
 
Auxiliary classes and methods for language specific functionality.
 
size_t getCount(const array_type< T > &buffer, const JCompare_t &compare)
Count number of unique values.
 
JTOOLS::JRange< double > JTimeRange
Type definition for time range (unit [ns]).
 
double getQuality(const double chi2, const int N, const int NDF)
Get quality of fit.
 
JPosition3D getPosition(const JFit &fit)
Get position.
 
bool qualitySorter(const JFit &first, const JFit &second)
Comparison of fit results.
 
JFit getFit(const JHistory &history, const JTrack3D &track, const double Q, const int NDF, const double energy=0.0, const int status=SINGLE_STAGE)
Get fit.
 
JDirection3D getDirection(const JFit &fit)
Get direction.
 
Model for fit to acoustics data.
 
Auxiliary class to test history.
 
double TMax_ns
maximal time w.r.t. Cherenkov hypothesis [ns]
 
double roadWidth_m
road width [m]
 
size_t numberOfPrefits
number of prefits
 
double TMin_ns
minimal time w.r.t. Cherenkov hypothesis [ns]