65 zap[
'f'] =
make_field(inputFile ,
"Path to input file " );
66 zap[
'o'] =
make_field(outputFile ,
"Path to output file" ) =
"out.root";
67 zap[
'a'] =
make_field(detectorFile ,
"path to detector file" );
68 zap[
't'] =
make_field(nTimeslices ,
"number of timeslices" ) = JLimit::max();
69 zap[
's'] =
make_field(nSummaryslices ,
"number of summaryslices") = JLimit::max();
70 zap[
'n'] =
make_field(nEvents ,
"number of events" ) = JLimit::max();
71 zap[
'@'] =
make_field(parameters,
"parameter values, e.g: \"p0 = 1.0;\"");
75 catch(
const exception &error) {
76 ERROR(error.what() << endl);
79 bool pmt_analysis =
false;
87 if(pmt_analysis ==
true){
88 cout <<
"JRUNANALYZER RUNNING WITH ALL AVAILABLE PLOTS. It may take a while!" << endl;
90 cout <<
"JRUNANALYZER RUNNING WITH A REDUCED NUMBER OF PLOTS." << endl;
95 JRunAnalyzer Analyzer (inputFile, detectorFile, nTimeslices, nSummaryslices, nEvents, pmt_analysis);
97 Analyzer.readEvents ();
98 cout <<
"read events!\n";
99 Analyzer.readSummaryData ();
100 cout <<
"read summarydata!\n";
105 cout <<
"read timeslices!\n";
108 cout <<
"before histos!\n";
112 TFile out(outputFile.c_str(),
"recreate");
114 cout <<
"outputfile!\n";
Utility class to parse command line options.
double getValue(const JScale_t scale)
Get numerical value corresponding to scale.
int getParameter(const std::string &text)
Get parameter number from text string.
int getDetectorID() const
Get detector identifier.
*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
Class dedicated to the analysis of KM3NeT runs.
int getRunNumber() const
Get run number.
Template definition for direct access of elements in ROOT TChain.
Timeslice data structure for L1 data.
void Write_to_file(TFile &f)
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Timeslice data structure for L2 data.
Timeslice data structure for SN data.
bool putObject(TDirectory &dir, const TObject &object)
Write object to ROOT directory.
Wrapper class around string.
void copy(const Head &from, JHead &to)
Copy header from from to to.
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
Timeslice data structure for L0 data.