51 JLimit_t& numberOfEvents = inputFile.getLimit();
55 int numberOfTimeslices;
63 JParser<> zap(
"Example program to search for out of sync shifts around integral timeslices evolving over time.");
78 catch(
const exception& error) {
86 const int WR = 0x80000000;
88 MASK[808969848] = 0x00000020;
89 MASK[809544061] = 0x00000080;
90 MASK[808432835] = 0x00004000;
117 if (selector ==
"") {
128 NOTICE(
"Selected class " << ps->getClassName() <<
endl);
134 ps->configure(inputFile);
171 buffer[
event->getFrameIndex()].push_back(t0);
176 while (ps->hasNext()) {
182 map_type::const_iterator p = buffer.lower_bound(timeslice->
getFrameIndex() - numberOfTimeslices);
183 map_type::const_iterator q = buffer.upper_bound(timeslice->
getFrameIndex() + numberOfTimeslices);
187 for (map_type::const_iterator i = p; i != q; ++i) {
195 for (JDAQTimeslice::const_iterator frame = timeslice->begin(); frame != timeslice->end(); ++frame) {
199 if ((frame->getStatus() & ~
MASK[frame->getModuleID()] & ~WR) == 0) {
211 for (map_type::const_iterator i = p; i != q; ++i) {
212 for (map_type::mapped_type::const_iterator
j = i->second.begin();
j != i->second.end(); ++
j) {
214 const double t0 = *
j;