Functions
test_persist_responses.cxx File Reference
#include "WireCellUtil/Response.h"
#include "WireCellUtil/ExecMon.h"
#include <iostream>

Go to the source code of this file.

Functions

int main (int argc, const char *argv[])
 

Function Documentation

int main ( int  argc,
const char *  argv[] 
)

Definition at line 7 of file test_persist_responses.cxx.

8 {
9 
10  if (argc < 2) {
11  cerr << "This test requires an Wire Cell Field Response input file." << endl;
12  return 0;
13  }
14 
15  WireCell::ExecMon em("test_persist_responses");
17  em("loaded");
18 
19  em("loop");
20  cerr << fr.planes.size() << " planes" << endl;
21  for (auto plane : fr.planes) {
22  cerr << "\t" << plane.planeid << ": " << plane.paths.size() << " paths" << endl;
23  for (auto path : plane.paths) {
24  cerr << "\t\t" << path.current.size() << " samples\n\t\t";
25  for (auto c : path.current) {
26  cerr << c << " ";
27  }
28  cerr << endl;
29  break;
30  }
31  }
32  cerr << em.summary() << endl;
33  // with -ggdb3: size=133936K, res=105216K about the same with opt.
34  return 0;
35 }
FieldResponse load(const char *filename)
Definition: Response.cxx:39
QTextStream & endl(QTextStream &s)