Auxiliary program to convert data to Dusj format. 
   49   using namespace KM3NETDAQ;
 
   59     JParser<> zap(
"Auxiliary program to convert data to Dusj format.");
 
   64     zap[
'n'] = 
make_field(numberOfEvents)      = JLimit::max();
 
   69   catch(
const exception& error) {
 
   70     FATAL(error.what() << endl);
 
  100     center    = get<Vec>(buffer);
 
  101     mc_run_id = buffer.start_run.run_id;
 
  103   } 
catch(
const exception& error) {
 
  105     JHead buffer(header);
 
  107     buffer.start_run.run_id = getRunNumber<JDAQSummaryslice>(inputFile);
 
  108     buffer.push(&JHead::start_run);
 
  110     copy(buffer, header);    
 
  113     JHead buffer(header);
 
  116     buffer.push(&JHead::DAQ);
 
  118     copy(buffer, header);
 
  126     STATUS(
"event: " << setw(10) << inputFile.getCounter() << 
'\r'); 
DEBUG(endl);
 
  132     if (mc.getEntries() != 0) {
 
  151       out.
mc_id     = inputFile.getCounter();
 
  161       const JModule& module = router.getModule(i->getModuleID());
 
  166       hit.
id         = out.
hits.size() + 1;
 
  167       hit.
dom_id     = i->getModuleID();
 
  177       out.
hits.push_back(hit);
 
  182     double t0 = numeric_limits<double>::max();
 
  194     if (out.
mc_t > 0.0 && t0 != numeric_limits<double>::max()) {
 
  198     out.
id = inputFile.getCounter();
 
Utility class to parse command line options. 
 
Data structure for a composite optical module. 
 
bool read(Vec &v, std::istream &is)
Read a Vec(tor) from a stream. 
 
Router for direct addressing of module data in detector data structure. 
 
int pmt_id
global PMT identifier as found in evt files 
 
int getRunNumber() const 
Get run number. 
 
esac $JPP_DIR examples JDetector JTransitTime o $OUTPUT_FILE n N $NPE T $TTS_NS d $DEBUG for HISTOGRAM in tts tt2 pmt
 
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header. 
 
Auxiliary class for defining the range of iterations of objects. 
 
const_iterator< T > end() const 
Get end of data. 
 
double a
hit amplitude (in p.e.) 
 
The Vec class is a straightforward 3-d vector, which also works in pyroot. 
 
int mc_run_id
MC run identifier. 
 
const_iterator< T > begin() const 
Get begin of data. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
int mc_id
identifier of the MC event (as found in ascii or antcc file). 
 
int getID() const 
Get identifier. 
 
Data structure for PMT geometry and calibration. 
 
void load(const JString &file_name, JDetector &detector)
Load detector from input file. 
 
const JPMT & getPMT(const int index) const 
Get PMT. 
 
double mc_t
MC: time of the mc event. 
 
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
 
double getLivetime(const std::string &file_name)
Get data taking live time. 
 
double t
hit time (from calibration or MC truth) 
 
int dom_id
module identifier from the data (unique in the detector). 
 
void copy(const Head &from, JHead &to)
Copy header from from to to. 
 
int id
offline event identifier 
 
Object reading from a list of files. 
 
const JLimit & getLimit() const 
Get limit. 
 
std::vector< Hit > hits
list of hits 
 
JTriggerCounter_t getCounter() const 
Get trigger counter. 
 
std::vector< Trk > mc_trks
MC: list of MC truth tracks. 
 
JTriggerCounter_t next()
Increment trigger counter. 
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event. 
 
#define DEBUG(A)
Message macros.