27 int main(
int argc,
char **argv)
39 JParser<> zap(
"Auxiliary program to plot average tilt angles.");
41 zap[
'f'] =
make_field(inputFile,
"input file (output of JKatoomba)");
42 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
48 catch(
const exception &error) {
49 FATAL(error.what() << endl);
54 while (inputFile.hasNext()) {
56 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
58 const JEvt* evt = inputFile.next();
60 for (JEvt::const_iterator i = evt->begin(); i != evt->end(); ++i) {
61 H2 ->Fill(i->tx*1.0e3, i->ty*1.0e3);
62 H2[i->id]->Fill(i->tx*1.0e3, i->ty*1.0e3);
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings.
Dynamic ROOT object management.
Auxiliary class for defining the range of iterations of objects.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys...
I/O formatting auxiliaries.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
void Write(TDirectory &out, const bool wm=false)
Write objects to file.
General purpose messaging.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
const JLimit & getLimit() const
Get limit.
#define DEBUG(A)
Message macros.