30 int main(
int argc,
char **argv)
55 catch(
const exception& error) {
56 FATAL(error.what() << endl);
61 if (pos == string::npos) {
62 FATAL(
"Valid wildcard must be specified (<" <<
outputFile <<
"> does not contain \'" << wildcard <<
"\').");
78 const string buffer = string(
outputFile).replace(pos, 1, identifier.c_str());
80 NOTICE(
"Writing " << buffer <<
"..." << endl);
90 out.put(
JMeta(argc, argv));
96 while (scanner->hasNext()) {
98 const Evt*
event = scanner->next();
102 STATUS(
"Event:" <<
RIGHT(10) << scanner->getCounter() <<
'\r');
DEBUG(endl);
107 WARNING(
"Event " << scanner->getCounter() <<
" is empty; skip.");
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
std::string getUniqueIdentifier(const_iterator p) const
Get unique identifier for a file-scanner contained within this set of event-weighter-associated file-...
const JHead & getHeader() const
Get header.
Recording of objects on file according a format that follows from the file name extension.
std::vector< value_type >::iterator iterator
I/O formatting auxiliaries.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Auxiliary base class for list of file names.
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
void copy(const Head &from, JHead &to)
Copy header from from to to.
virtual void open(const char *file_name) override
Open file.
Auxiliary class for organising Monte Carlo file scanners associated with event weighters.
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
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.