28 int main(
int argc,
char **argv)
33 JMultipleFileScanner<JDatalog> inputFile;
40 JParser<> zap(
"Auxiliary program to print slow control parameters.");
42 zap[
'f'] =
make_field(inputFile,
"ROOT input file (output file of JTuna).");
43 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
44 zap[
'S'] =
make_field(
id,
"string identifier (-1 => all)") = -1;
49 catch(
const exception &error) {
50 FATAL(error.what() << endl);
55 long long int counter = 0;
57 for (inputFile.rewind(); inputFile.hasNext(); ++counter) {
61 JDatalog* p = inputFile.next();
63 if (
id == -1 ||
id == p->string) {
64 buffer[p->floor].insert(p->parameter);
69 for (
map<
int,
set<string> >::const_iterator i = buffer.begin(); i != buffer.end(); ++i) {
71 cout <<
"floor: " << setw(2) << i->first <<
' ';
73 copy(i->second.begin(), i->second.end(), ostream_iterator<string>(cout,
" "));