42 using namespace KM3NETDAQ;
43 using namespace JDETECTOR;
44 using namespace JLANG;
51 int main(
int argc,
char **argv) {
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" );
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);
109 cout <<
"read events!\n";
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 main(int argc, char *argv[])
int getParameter(const std::string &text)
Get parameter number from text string.
ROOT TTree parameter settings of various packages.
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
static counter_type max()
Get maximum counter value.
Class dedicated to the analysis of KM3NeT runs.
int getRunNumber() const
Get run number.
Template definition for direct access of elements in ROOT TChain.
Data structure for detector geometry and calibration.
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.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Direct access to module in detector data structure.
Auxiliary class to define a range between two values.
Utility class to parse command line options.
Wrapper class around string.
KM3NeT DAQ constants, bit handling, etc.
JRA_Histograms getHistograms()
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.