67 zap[
'f'] =
make_field(inputFile ,
"Path to input file " );
68 zap[
'o'] =
make_field(outputFile ,
"Path to output file" ) =
"out.root";
69 zap[
'a'] =
make_field(detectorFile ,
"path to detector file" );
70 zap[
't'] =
make_field(nTimeslices ,
"number of timeslices" ) = JLimit::max();
71 zap[
's'] =
make_field(nSummaryslices ,
"number of summaryslices") = JLimit::max();
72 zap[
'n'] =
make_field(nEvents ,
"number of events" ) = JLimit::max();
73 zap[
'@'] =
make_field(parameters,
"parameter values, e.g: \"p0 = 1.0;\"");
77 catch(
const exception &error) {
78 ERROR(error.what() << endl);
81 bool pmt_analysis =
false;
89 if(pmt_analysis ==
true){
90 cout <<
"JRUNANALYZER RUNNING WITH ALL AVAILABLE PLOTS. It may take a while!" << endl;
92 cout <<
"JRUNANALYZER RUNNING WITH A REDUCED NUMBER OF PLOTS." << endl;
97 bool filecheck =
false;
98 if(scanner.hasNext()) {
106 JRunAnalyzer Analyzer (inputFile, detectorFile, nTimeslices, nSummaryslices, nEvents, pmt_analysis);
108 Analyzer.readEvents ();
109 cout <<
"read events!\n";
110 Analyzer.readSummaryData ();
111 cout <<
"read summarydata!\n";
116 cout <<
"read timeslices!\n";
119 cout <<
"before histos!\n";
123 TFile out(outputFile.c_str(),
"recreate");
125 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.