32int main(
int argc,
char **argv)
50 JParser<> zap(
"Auxiliary program to set disable status of transmission based on time-of-arrival histograms.");
52 zap[
'f'] =
make_field(inputFile,
"input file (output from JCanberra).");
62 catch(
const exception &error) {
67 inputFile = getFilenames(inputFile);
86 TFile in(i->c_str(),
"read");
92 if (TString(key->GetName()).
EndsWith(
".toa")) {
94 TH1* h1 =
dynamic_cast<TH1*
>(key->ReadObj());
98 TString buffer(h1->GetName());
100 const char*
regexp =
"[^0-9][0-9]* [0-9]*[^0-9]";
103 buffer = buffer(1, buffer.Length() - 2);
105 if (buffer.Length() > 0 && buffer.IsDigit()) {
111 const int N = h1->GetEntries();
113 if (N > 0 && N < Nmin) {
115 NOTICE(
"disable: " <<
setw(2) <<
id.tx <<
' ' <<
setw(8) <<
id.rx <<
' ' <<
setw(6) << N <<
" < " <<
setw(6) << Nmin <<
endl);
126 h1->GetQuantiles(Q.size(), R.data(), Q.data());
128 const double T_us = (*R.rbegin() - *R.begin()) * 1.0e6;
144 ERROR(
"Histogram name " << h1->GetName() <<
" not compatible with regular expression " <<
regexp <<
"." <<
endl);
int main(int argc, char **argv)
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Acoustic transmission identifier.
Template definition of a multi-dimensional oscillation probability interpolation table.
void load()
Load oscillation probability table.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.
Acoustic transmission identifier.
void store(const char *file_name) const
Store to output file.
Auxiliary data structure for return type of make methods.