44int main(
int argc, 
char **argv)
 
   52  JLimit_t&              numberOfEvents = inputFile.getLimit();
 
   58    JParser<> zap(
"Auxiliary program to convert data to Dusj format.");
 
   68  catch(
const exception& error) {
 
   69    FATAL(error.what() << endl);
 
  102  } 
catch(
const exception& error) {
 
  104    JHead buffer(header);
 
  109    copy(buffer, header);    
 
  112    JHead buffer(header);
 
  117    copy(buffer, header);
 
  131    if (mc.getEntries() != 0) {
 
  161      const JPMT&    pmt    = 
module.getPMT   (i->getPMT());
 
  165      hit.
id         = out.
hits.size() + 1;
 
  166      hit.
dom_id     = i->getModuleID();
 
  176      out.
hits.push_back(hit);
 
  181    double t0 = numeric_limits<double>::max();
 
  183    for (vector<Hit>::const_iterator i = out.
hits.begin(); i != out.
hits.end(); ++i) {
 
  193    if (out.
mc_t > 0.0 && t0 != numeric_limits<double>::max()) {
 
 
int main(int argc, char **argv)
Auxiliary program to convert data to Dusj format.
 
Data structure for detector geometry and calibration.
 
Recording of objects on file according a format that follows from the file name extension.
 
General purpose messaging.
 
#define DEBUG(A)
Message macros.
 
Direct access to module in detector data structure.
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Scanning of objects from a single file according a format that follows from the extension of each fil...
 
ROOT TTree parameter settings of various packages.
 
JAANET::start_run start_run
 
void push(T JHead::*pd)
Push given data member to Head.
 
Router for direct addressing of module data in detector data structure.
 
const JModule & getModule(const JObjectID &id) const
Get module parameters.
 
Data structure for a composite optical module.
 
Data structure for PMT geometry, calibration and status.
 
int getID() const
Get identifier.
 
Utility class to parse command line options.
 
Object reading from a list of files.
 
virtual bool hasNext() override
Check availability of next element.
 
counter_type getCounter() const
Get counter.
 
virtual const pointer_type & next() override
Get next element.
 
Template definition for direct access of elements in ROOT TChain.
 
int getRunNumber() const
Get run number.
 
const_iterator< T > end() const
Get end of data.
 
const_iterator< T > begin() const
Get begin of data.
 
JTriggerCounter_t getCounter() const
Get trigger counter.
 
void copy(const Head &from, JHead &to)
Copy header from from to to.
 
Vec getOffset(const JHead &header)
Get offset.
 
std::istream & read(std::istream &in, JTestSummary &summary)
Read test summary.
 
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
double getLivetime(const std::string &file_name)
Get data taking live time.
 
int getRunNumber(const std::string &file_name)
Get run number for given file name of data taking run.
 
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
 
KM3NeT DAQ data structures and auxiliaries.
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
 
int mc_id
identifier of the MC event (as found in ascii or antcc file).
 
double mc_t
MC: time where the mc-event was put in the timeslice, since start of run (offset+frameidx*timeslice_d...
 
std::vector< Hit > hits
list of hits
 
int mc_run_id
MC run identifier.
 
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
 
int id
offline event identifier
 
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
 
int pmt_id
global PMT identifier as found in evt files
 
int dom_id
module identifier from the data (unique in the detector).
 
double a
hit amplitude (in p.e.)
 
double t
hit time (from tdc+calibration or MC truth)
 
double livetime_s
Live time [s].
 
Auxiliary class for defining the range of iterations of objects.
 
static counter_type max()
Get maximum counter value.
 
The Vec class is a straightforward 3-d vector, which also works in pyroot.