59 JParser<> zap(
"Program to search for sets of consecutive hits on a given PMT that are equidistant in time.");
71 catch(
const exception& error) {
95 TH1D h1 (
"MEvt",
"", 50, 0.5, 50.5);
98 stringRouter.size() + 0, -0.5, stringRouter.size() - 0.5,
101 TH1D h3 (
"ML0" ,
"", 50, 0.5, 50.5);
104 stringRouter.size() + 0, -0.5, stringRouter.size() - 0.5,
108 h2.GetXaxis()->SetBinLabel(i,
MAKE_CSTRING(stringRouter.at(i-1)));
112 h4.GetXaxis()->SetBinLabel(i,
MAKE_CSTRING(stringRouter.at(i-1)));
128 for (JHitBuffer::const_iterator p = buffer.begin() ; p != buffer.end() ; ) {
130 JHitBuffer::const_iterator q = p;
133 (++q != buffer.end() &&
134 q->getModuleID() == p->getModuleID() &&
135 q->getPMT() == p->getPMT() &&
136 q->getT() == t1 + deltaT);
143 if (d >= multiplicity)
165 for(JDAQTimeslice::iterator frame = slice->begin(); frame != slice->end() ; ++frame){
167 const JModule&
module = moduleRouter.getModule(frame->getModuleID());
168 JSuperFrame2D_t& buffer = JSuperFrame2D_t::demultiplex(*frame,
module);
170 for (JSuperFrame2D_t::iterator pmt = buffer.begin() ; pmt != buffer.end() ; ++pmt) {
172 for (JHitBuffer::const_iterator p = pmt->begin() ; p != pmt->end() ;) {
174 JHitBuffer::const_iterator q = p;
177 (++q != pmt->end() &&
178 q->getT() == t1 + deltaT);
185 if (d >= multiplicity)
int main(int argc, char **argv)
Direct access to PMT data in detector data structure for DAQ hits.
Recording of objects on file according a format that follows from the file name extension.
Dynamic ROOT object management.
General purpose messaging.
Direct access to module in detector data structure.
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
#define MAKE_CSTRING(A)
Make C-string.
Direct access to string in detector data structure.
ROOT TTree parameter settings of various packages.
Simple wrapper around JModuleRouter class for direct addressing of PMT data in detector data structur...
int getFloor() const
Get floor number.
int getString() const
Get string number.
Router for direct addressing of module data in detector data structure.
Data structure for a composite optical module.
Auxiliary class to uniquely identify PMT readout channel.
Template definition of a multi-dimensional oscillation probability interpolation table.
JTriggerCounter_t next()
Increment trigger counter.
floor_range getRangeOfFloors(const JDetector &detector)
Get range of floors.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
Router for mapping of string identifier to index.
Auxiliary class to set-up Hit.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.