25 int main(
int argc,
char **argv)
32 size_t numberOfOutliers;
37 JParser<> zap(
"Auxiliary program to print RMS of acoustic events.");
40 zap[
'n'] =
make_field(numberOfEvents) = JLimit_t::max();
46 catch(
const exception &error) {
47 FATAL(error.what() << endl);
53 while (inputFile.hasNext()) {
55 const JEvent* evt = inputFile.next();
59 for (JEvent::const_iterator i = evt->begin(); i != evt->end(); ++i) {
60 buffer.push_back(i->getToE());
63 if (buffer.size() >= 2 * numberOfOutliers + 5) {
65 sort(buffer.begin(), buffer.end());
70 for (
size_t i = 0; i != numberOfOutliers; ++i) {
75 const double x0 = 0.5 * (*p + *q);
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings.
Auxiliary class for defining the range of iterations of objects.
I/O formatting auxiliaries.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
const array_type< JValue_t > & make_array(const JValue_t(&array)[N])
Method to create array of values.
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.