36 JLimit_t& numberOfEvents = inputFile.getLimit();
44 JParser<> zap(
"Auxiliary program to disable acoustic sensors based on acoustic events.");
46 zap[
'f'] =
make_field(inputFile,
"output of JAcousticEventBuilder[.sh]");
49 zap[
'N'] =
make_field(Nmin,
"minimum number of transmissions");
55 catch(
const exception &error) {
70 while (inputFile.hasNext()) {
72 if (inputFile.getCounter()%1000 == 0) {
76 const JEvent* evt = inputFile.next();
78 for (JEvent::const_iterator i = evt->begin(); i != evt->end(); ++i) {
79 buffer[i->getID()] += 1;
84 if (inputFile.getCounter() == 0) {
90 if (buffer[
module->getID()] < Nmin) {
92 if (
module->getFloor() == 0) {
98 module->set(HYDROPHONE_DISABLE);
107 module->set(PIEZO_DISABLE);
ROOT TTree parameter settings.
Data structure for detector geometry and calibration.
int main(int argc, char **argv)
General purpose messaging.
#define DEBUG(A)
Message macros.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
Template definition of a multi-dimensional oscillation probability interpolation table.
static const int HYDROPHONE_DISABLE
Enable (disable) use of hydrophone if this status bit is 0 (1);.
static const int PIEZO_DISABLE
Enable (disable) use of piezo if this status bit is 0 (1);.
std::string getLabel(const JLocation &location)
Get module label for monitoring and other applications.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
void store(const std::string &file_name, const JDetector &detector)
Store detector to output file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.