23 int main(
int argc,
char **argv)
33 JParser<> zap(
"Auxiliary program to print UUID.");
40 catch(
const exception &error) {
41 FATAL(error.what() << endl);
44 if (inputFile !=
"") {
48 gErrorIgnoreLevel = kError;
50 TFile*
file = TFile::Open(inputFile.c_str(),
"EXISTS");
53 file->GetUUID().Print();
61 ifstream
in(inputFile.c_str());
65 if (
in >> comment && comment.hasUUID()) {
66 cout << comment.
getUUID() << endl;
80 for (
string buffer;
in >> c && c == JComment::START_COMMENT; ) {
87 if (comment.hasUUID()) {
88 cout << comment.getUUID() << endl;
96 cout << JUUID::rndm() << endl;
Utility class to parse command line options.
int main(int argc, char *argv[])
static const char *const BINARY_DETECTOR_FILE_FORMAT[]
JIO binary file format.
static const char *const ASCII_FILE_FORMAT
ASCII file name extension.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
static const char *const KM3NET_DETECTOR_FILE_FORMAT
KM3NeT standard ASCII format
Utility class to parse command line options.
std::string getFilenameExtension(const std::string &file_name)
Get file name extension, i.e. part after last JEEP::FILENAME_SEPARATOR if any.
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
static const char *const ROOT_FILE_FORMAT
ROOT file name extension.
Specifications of file name extensions.
Binary buffered file input.
then usage $script< string identifier >< detectorfile > event file(toashort file)+" "\nNote that the event files and toashort files should be one-to-one related." fi if (( $