26 int main(
int argc,
char **argv)
36 JParser<> zap(
"Auxiliary program to print JDomino statistics.");
44 catch(
const exception &error) {
45 FATAL(error.what() << endl);
54 TFile*
in = TFile::Open(file_name->c_str(),
"exist");
56 if (in == NULL || !in->IsOpen()) {
57 FATAL(
"File: " << *file_name <<
" not opened." << endl);
60 TH1D* job =
dynamic_cast<TH1D*
>(in->Get(
"job"));
63 FATAL(
"No job statistics.");
66 buffer.push_back(job);
70 if (!buffer.empty()) {
74 DEBUG(setw(6) <<
' ' <<
' ' <<
FILL(WIDTH,
' '));
83 for (
int i0 = 1; i0 <= h0->GetNbinsX(); ++i0) {
85 const Double_t
x = h0->GetBinCenter(i0);
86 const int type = (int) x;
87 const Int_t i1 = h0->FindBin(-x);
98 W += (
combine ? (*h1)->GetBinContent(i0) + (*h1)->GetBinContent(i1) : (*h1)->GetBinContent(i0));
109 NOTICE(
' ' << setw(WIDTH) << left << particle.name);
111 catch(
const exception& error) {
113 NOTICE(
' ' << setw(WIDTH) << left <<
"unknown");
117 NOTICE(noshowpos <<
' ' <<
FIXED(12,6) << (
combine ? (*h1)->GetBinContent(i0) + (*h1)->GetBinContent(i1) : (*h1)->GetBinContent(i0)));
Auxiliary data structure for alignment of data.
Utility class to parse command line options.
int main(int argc, char *argv[])
Auxiliary data structure for floating point format specification.
I/O formatting auxiliaries.
T & getInstance(const T &object)
Get static instance from temporary object.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
Auxiliary data structure for sequence of same character.
Utility class to parse command line options.
std::string getFilename(const std::string &file_name)
Get file name part, i.e. part after last JEEP::PATHNAME_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 JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
#define DEBUG(A)
Message macros.