51 int main(
int argc, 
char **argv)
 
   55   using namespace KM3NETDAQ;
 
   59   typedef JParallelFileScanner_t::multi_pointer_type               multi_pointer_type;
 
   62   JParallelFileScanner_t  inputFile;
 
   68   size_t         numberOfPrefits;
 
   75     JParser<> zap(
"Program to determine veto of muon trajectory.");
 
   80     zap[
'n'] = 
make_field(numberOfEvents)      = JLimit::max();
 
   81     zap[
'R'] = 
make_field(roadWidth_m)         = numeric_limits<double>::max();
 
   90   catch(
const exception& error) {
 
   91     FATAL(error.what() << endl);
 
  114     VS += vs->getLength() * 1.0e-9;
 
  122   while (inputFile.hasNext()) {
 
  124     STATUS(
"event: " << setw(10) << inputFile.getCounter() << 
'\r'); 
DEBUG(endl);
 
  126     multi_pointer_type ps  = inputFile.next();
 
  139     buildL0(*tev, router, 
true, back_inserter(dataL0));
 
  142     for (JEvt::iterator track = cp.begin(); track != cp.end(); ++track) {
 
  151       for (JDataL0_t::const_iterator i = dataL0.begin(); i != dataL0.end(); ++i) {
 
  157         bool is_veto = 
false;
 
  159         if (tz.getDistance(hit) <= roadWidth_m) {
 
  161           const double t1 = hit.
getT() - tz.getT(hit);
 
  177       for (JDetector::const_iterator module = 
detector.begin(); module != 
detector.end(); ++module) {
 
  183         if (tz.getDistance(pos) <= roadWidth_m) {
 
  185           for (
unsigned int i = 0; i != module->size(); ++i) {
 
  190             count += top.count(
id);
 
  197       out.rbegin()->setW(track->getW());
 
double getT() const 
Get calibrated time of hit. 
 
Utility class to parse command line options. 
 
int main(int argc, char *argv[])
 
ROOT TTree parameter settings of various packages. 
 
static const int JVETO_NPE
number of photo-electrons from JVeto.cc 
 
Template specialisation of L0 builder for JHitL0 data type. 
 
const JDAQPMTIdentifier & getPMTIdentifier() const 
Get PMT identifier. 
 
Recording of objects on file according a format that follows from the file name extension. 
 
Router for direct addressing of module data in detector data structure. 
 
General purpose class for parallel reading of objects from a single file or multiple files...
 
static const int JMUONVETO
 
Basic data structure for time and time over threshold information of hit. 
 
JFit & add(const int type)
Add event to history. 
 
Data structure for detector geometry and calibration. 
 
Basic data structure for L0 hit. 
 
Scanning of objects from a single file according a format that follows from the extension of each fil...
 
Auxiliary class for defining the range of iterations of objects. 
 
JAxis3D & rotate(const JRotation3D &R)
Rotate axis. 
 
JDirection3D getDirection(const Vec &dir)
Get direction. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
Parallel scanning of objects from a single file or multiple files according a format that follows fro...
 
JPosition3D getPosition(const Vec &pos)
Get position. 
 
static const int JVETO_NUMBER_OF_HITS
number of hits from JVeto.cc 
 
then usage $script[distance] fi case set_variable R
 
General purpose messaging. 
 
Direct access to module in detector data structure. 
 
Reduced data structure for L1 hit. 
 
void load(const std::string &file_name, JDetector &detector)
Load detector from input file. 
 
Utility class to parse command line options. 
 
Data structure for L0 hit. 
 
Data structure for fit of straight line paralel to z-axis. 
 
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 CHECK_EXIT_CODE 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. 
 
Basic data structure for L1 hit. 
 
#define DEBUG(A)
Message macros.