64 using namespace KM3NETDAQ;
74 JParser<> zap(
"Example program to remove PMT(s) from data (and set corresponding rate to 0).");
78 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
84 catch(
const exception& error) {
85 FATAL(error.what() << endl);
102 for (
counter_type counter = 0;
in.hasNext() && counter != inputFile.getLimit(); ++counter) {
104 STATUS(
"event: " << setw(10) << counter <<
'\r');
DEBUG(endl);
108 for (JDAQTimeslice::iterator frame = timeslice->begin(); frame != timeslice->end(); ++frame) {
125 buffer[hit->getPMT()].push_back(*hit);
134 copy(buffer[pmt].begin(), buffer[pmt].end(), back_inserter(data));
138 sort(data.begin(), data.end());
141 frame->add(data.size(), data.data());
152 while (
in.hasNext()) {
154 STATUS(
"event: " << setw(10) <<
in.getCounter() <<
'\r');
DEBUG(endl);
168 while (
in.hasNext()) {
170 STATUS(
"event: " << setw(10) <<
in.getCounter() <<
'\r');
DEBUG(endl);
174 for (JDAQSummaryslice::iterator frame = summaryslice->begin(); frame != summaryslice->end(); ++frame) {
180 (*frame)[pmt].setValue(0.0);
Template specialisation of JMultipleFileScanner for trigger parameters.
Utility class to parse command line options.
static const JPBS_t PMT(3, 4, 2, 3)
PBS of photo-multiplier tube (PMT)
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Long64_t counter_type
Type definition for counter.
Auxiliary class for multiplexing object iterators.
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Auxiliary class for demultiplexing object outputs.
General purpose class for object reading from a list of file names.
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
void copy(const Head &from, JHead &to)
Copy header from from to to.
const JLimit & getLimit() const
Get limit.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in