42 for (
typename vector<T>::const_iterator hit =
data.begin(); hit !=
data.end(); ++hit) {
45 buffer.push_back(*hit);
60int main(
int argc,
char **argv)
67 JLimit_t& numberOfEvents = inputFile.getLimit();
74 JParser<> zap(
"Example program to remove PMT(s) from data (and set corresponding rate to 0).");
84 catch(
const exception& error) {
85 FATAL(error.what() << endl);
100 for (
counter_type counter = 0; in.
hasNext() && counter != inputFile.getLimit(); ++counter) {
102 STATUS(
"event: " << setw(10) << counter <<
'\r');
DEBUG(endl);
106 for (JDAQTimeslice::iterator frame = timeslice->begin(); frame != timeslice->end(); ++frame) {
123 buffer[hit->getPMT()].push_back(*hit);
132 copy(buffer[pmt].begin(), buffer[pmt].end(), back_inserter(data));
136 sort(data.begin(), data.end());
139 frame->add(data.size(), data.data());
172 for (JDAQSummaryslice::iterator frame = summaryslice->begin(); frame != summaryslice->end(); ++frame) {
178 (*frame)[pmt].setValue(0.0);
JDAQPMTIdentifier PMT
Command line options.
KM3NeT DAQ constants, bit handling, etc.
Recording of objects on file according a format that follows from the file name extension.
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
int main(int argc, char **argv)
ROOT TTree parameter settings of various packages.
Auxiliary class for multiplexing object iterators.
virtual bool hasNext() override
Check availability of next element.
virtual const pointer_type & next() override
Get next element.
Utility class to parse command line options.
General purpose class for object reading from a list of file names.
virtual bool hasNext() override
Check availability of next element.
counter_type getCounter() const
Get counter.
virtual const pointer_type & next() override
Get next element.
void copy(const Head &from, JHead &to)
Copy header from from to to.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Long64_t counter_type
Type definition for counter.
KM3NeT DAQ data structures and auxiliaries.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Auxiliary class for demultiplexing object outputs.
virtual bool put(const JBase_t &object) override
Object output.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.