72   using namespace KM3NETDAQ;
 
   75   typedef JParallelFileScanner_t::multi_pointer_type               multi_pointer_type;
 
   78   JParallelFileScanner_t  inputFile;
 
   88     JParser<> zap(
"Program to perform PDF fit of muon trajectory to data.");
 
   93     zap[
'n'] = 
make_field(numberOfEvents)      = JLimit::max();
 
  100   catch(
const exception& error) {
 
  101     FATAL(error.what() << endl);
 
  132   JRegressor_t fit(pdfFile);
 
  143   while (inputFile.hasNext()) {
 
  145     STATUS(
"event: " << setw(10) << inputFile.getCounter() << 
'\r'); 
DEBUG(endl);
 
  147     multi_pointer_type ps  = inputFile.next();
 
  170     buildL0(*tev, router, 
true, back_inserter(data));
 
  173     for (JEvt::iterator track = cp.begin(); track != cp.end(); ++track) {
 
  182       for (buffer_type::const_iterator i = data.begin(); i != data.end(); ++i) {
 
  189           top.insert(hit.getModuleIdentifier());
 
  195       for (JDetector::const_iterator i = 
detector.begin(); i != 
detector.end(); ++i) {
 
  197         const size_t count = top.count(i->getID());
 
  211             data.push_back(
JNPEHit(fit.getNPE(module.begin(), module.end(), 
parameters.R_Hz), count));
 
  220       double npe_total = 0.0;     
 
  230         if (track_start == data. end()) { track_start = data. begin(); }
 
  231         if (track_end   == data.rend()) { track_end   = data.rbegin(); }
 
  233         Zmin = track_start->getZ();
 
  234         Zmax = track_end  ->getZ();
 
  238           if (i->getZ() <= 0.0) {
 
  242           npe_total += i->getYA();
 
  249                 FIXED(6,4) << i->getY0() << 
' ' <<
 
  250                 FIXED(6,4) << i->getYA() << 
' ' <<
 
  251                 setw(1)    << i->getN()  << 
' ' <<
 
  252                 FIXED(6,4) << i->getP()  << endl);
 
  255         DEBUG(
" -->   " << 
FIXED(6,1) << Zmin << 
' ' << 
FIXED(6,1) << Zmax << endl);
 
  264       out.rbegin()->setW(track->getW());
 
  274     copy(in->begin(), in->end(), back_inserter(out));
 
static const int JMUONSTART
 
Utility class to parse command line options. 
 
static const int JSTART_NPE_MIP_TOTAL
number of photo-electrons along the whole track from JStart.cc 
 
JComparator< JResult_t T::*, JComparison::lt > make_comparator(JResult_t T::*member)
Helper method to create comparator between values of data member. 
 
Data structure for a composite optical module. 
 
Regressor function object for JEnergy fit. 
 
Router for direct addressing of module data in detector data structure. 
 
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
 
General purpose class for parallel reading of objects from a single file or multiple files...
 
Template specialisation of class JModel to match hit with muon trajectory along z-axis. 
 
Auxiliary class to test history. 
 
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
 
Auxiliary data structure for floating point format specification. 
 
JFit & add(const int type)
Add event to history. 
 
void transform(const JRotation3D &R, const JVector3D &pos)
Transform position. 
 
static const int JSTART_NPE_MIP
number of photo-electrons up to the barycentre from JStart.cc 
 
Auxiliary class for defining the range of iterations of objects. 
 
static const int JCOPY_Z_M
true vertex position along track [m] from JCopy.cc 
 
Data structure for fit parameters. 
 
JDirection3D getDirection(const Vec &dir)
Get direction. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
Auxiliary class for start or end point evaluation. 
 
Auxiliary class to test history. 
 
JPosition3D getPosition(const Vec &pos)
Get position. 
 
Auxiliary class for simultaneously handling light yields and response of PMT. 
 
then usage $script[distance] fi case set_variable R
 
const double getSpeedOfLight()
Get speed of light. 
 
static const int JSTART_LENGTH_METRES
distance between first and last hits in metres from JStart.cc 
 
void load(const std::string &file_name, JDetector &detector)
Load detector from input file. 
 
void transform(const JRotation3D &R, const JVector3D &pos)
Transformation of geometry (see method JGEOMETRY3D::JPosition3D::transform(const JRotation3D&, const JVector3D&)). 
 
Data structure for fit of straight line paralel to z-axis. 
 
void copy(const Head &from, JHead &to)
Copy header from from to to. 
 
Reduced data structure for L1 hit. 
 
Object reading from a list of files. 
 
Data structure for position in three dimensions. 
 
const JLimit & getLimit() const 
Get limit. 
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
 
JPosition3D & rotate(const JRotation3D &R)
Rotate. 
 
bool qualitySorter(const JRECONSTRUCTION::JFit &first, const JRECONSTRUCTION::JFit &second)
Comparison of fit results. 
 
#define DEBUG(A)
Message macros.