CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FastMonitoringService.cc
Go to the documentation of this file.
2 #include <iostream>
3 
5 #include <iomanip>
6 #include <sys/time.h>
7 
17 
20 
21 constexpr double throughputFactor() {return (1000000)/double(1024*1024);}
22 
23 namespace evf{
24 
26  {"Init","JobReady","RunGiven","Running",
27  "Stopping","Done","JobEnded","Error","ErrorEnded","End",
28  "Invalid"};
29 
31 
33  edm::ActivityRegistry& reg) :
34  MicroStateService(iPS,reg)
35  ,encModule_(33)
36  ,nStreams_(0)//until initialized
37  ,sleepTime_(iPS.getUntrackedParameter<int>("sleepTime", 1))
38  ,fastMonIntervals_(iPS.getUntrackedParameter<unsigned int>("fastMonIntervals", 1))
39  ,microstateDefPath_(iPS.getUntrackedParameter<std::string> ("microstateDefPath", std::string(getenv("CMSSW_BASE"))+"/src/EventFilter/Utilities/plugins/microstatedef.jsd"))
40  ,fastMicrostateDefPath_(iPS.getUntrackedParameter<std::string>("fastMicrostateDefPath", microstateDefPath_))
41  ,fastName_(iPS.getUntrackedParameter<std::string>("fastName", "fastmoni"))
42  ,slowName_(iPS.getUntrackedParameter<std::string>("slowName", "slowmoni"))
43  ,totalEventsProcessed_(0)
44  {
45  reg.watchPreallocate(this, &FastMonitoringService::preallocate);//receiving information on number of threads
47 
51 
55 
60 
62 
65 
66  reg.watchPreSourceEvent(this,&FastMonitoringService::preSourceEvent);//source (with streamID of requestor)
68 
71 
72  }
73 
74 
76  {
77  }
78 
79 
81  //taken from first stream
82  std::ostringstream ost;
83  for(int i = 0;
84  i < encPath_[0].current_;
85  i++)
86  ost<<i<<"="<<*((std::string *)(encPath_[0].decode(i)))<<" ";
87  return ost.str();
88  }
89 
90 
92  {
93  std::ostringstream ost;
94  for(int i = 0; i < encModule_.current_; i++)
95  ost<<i<<"="<<((const edm::ModuleDescription *)(encModule_.decode(i)))->moduleLabel()<<" ";
96  return ost.str();
97  }
98 
99 
101  {
102 
103  // FIND RUN DIRECTORY
104  // The run dir should be set via the configuration of EvFDaqDirector
105 
106  if (edm::Service<evf::EvFDaqDirector>().operator->()==nullptr)
107  {
108  throw cms::Exception("FastMonitoringService") << "EvFDaqDirector is not present";
109 
110  }
111  boost::filesystem::path runDirectory(edm::Service<evf::EvFDaqDirector>()->baseRunDir());
112  workingDirectory_ = runDirectory_ = runDirectory;
113  workingDirectory_ /= "mon";
114 
115  if ( !boost::filesystem::is_directory(workingDirectory_)) {
116  LogDebug("FastMonitoringService") << "<MON> DIR NOT FOUND! Trying to create -: " << workingDirectory_.string() ;
117  boost::filesystem::create_directories(workingDirectory_);
118  if ( !boost::filesystem::is_directory(workingDirectory_))
119  edm::LogWarning("FastMonitoringService") << "Unable to create <MON> DIR -: " << workingDirectory_.string()
120  << ". No monitoring data will be written.";
121  }
122 
123  std::ostringstream fastFileName;
124 
125  fastFileName << fastName_ << "_pid" << std::setfill('0') << std::setw(5) << getpid() << ".fast";
127  fast /= fastFileName.str();
128  fastPath_ = fast.string();
129 
130  std::ostringstream moduleLegFile;
131  moduleLegFile << "microstatelegend_pid" << std::setfill('0') << std::setw(5) << getpid() << ".leg";
132  moduleLegendFile_ = (workingDirectory_/moduleLegFile.str()).string();
133 
134  std::ostringstream pathLegFile;
135  pathLegFile << "pathlegend_pid" << std::setfill('0') << std::setw(5) << getpid() << ".leg";
136  pathLegendFile_ = (workingDirectory_/pathLegFile.str()).string();
137 
138  LogDebug("FastMonitoringService") << "Initializing FastMonitor with microstate def path -: "
140  //<< encPath_.current_ + 1 << " " << encModule_.current_ + 1
141 
142  nStreams_=bounds.maxNumberOfStreams();
143  nThreads_=bounds.maxNumberOfThreads();
144 
145  //this should already be >=1
146  if (nStreams_==0) nStreams_=1;
147  if (nThreads_==0) nThreads_=1;
148 
149  /*
150  * initialize the fast monitor with:
151  * vector of pointers to monitorable parameters
152  * path to definition
153  *
154  */
155 
157 
158  for(unsigned int i = 0; i < (mCOUNT); i++)
161 
162  for (unsigned int i=0;i<nStreams_;i++) {
163  ministate_.push_back(&nopath_);
165 
166  //for synchronization
167  streamCounterUpdating_.push_back(new std::atomic<bool>(0));
168 
169  //path (mini) state
170  encPath_.emplace_back(0);
171  encPath_[i].update((void*)&nopath_);
172  eventCountForPathInit_.push_back(0);
173  firstEventId_.push_back(0);
174  collectedPathList_.push_back(new std::atomic<bool>(0));
175 
176  }
177  //for (unsigned int i=0;i<nThreads_;i++)
178  // threadMicrostate_.push_back(&reservedMicroStateNames[mInvalid]);
179 
180  //initial size until we detect number of bins
184 
185  lastGlobalLumi_=0;
187  lumiFromSource_=0;
188 
189  //startup monitoring
191  fmt_.jsonMonitor_->setNStreams(nStreams_);
193  monInit_.store(false,std::memory_order_release);
195 
196  //this definition needs: #include "tbb/compat/thread"
197  //however this would results in TBB imeplementation replacing std::thread
198  //(both supposedly call pthread_self())
199  //number of threads created in process could be obtained from /proc,
200  //assuming that all posix threads are true kernel threads capable of running in parallel
201 
202  //#if TBB_IMPLEMENT_CPP0X
204  //threadIDAvailable_=true;
205  //#endif
206 
207  }
208 
210  {
212  }
213 
214  //new output module name is stream
216  {
217  std::lock_guard<std::mutex> lock(fmt_.monlock_);
218  //std::cout << " Pre module Begin Job module: " << desc.moduleName() << std::endl;
219 
220  //build a map of modules keyed by their module description address
221  //here we need to treat output modules in a special way so they can be easily singled out
222  if(desc.moduleName() == "Stream" || desc.moduleName() == "ShmStreamConsumer" ||
223  desc.moduleName() == "EventStreamFileWriter" || desc.moduleName() == "PoolOutputModule")
224  encModule_.updateReserved((void*)&desc);
225  else
226  encModule_.update((void*)&desc);
227  }
228 
230  {
231  std::string && moduleLegStr = makeModuleLegenda();
232  FileIO::writeStringToFile(moduleLegendFile_, moduleLegStr);
233 
235 
236  //update number of entries in module histogram
237  std::lock_guard<std::mutex> lock(fmt_.monlock_);
239  }
240 
242  {
244  fmt_.stop();
245  }
246 
248  {
250  }
251 
253  {
254 
255  timeval lumiStartTime;
256  gettimeofday(&lumiStartTime, 0);
257  unsigned int newLumi = gc.luminosityBlockID().luminosityBlock();
258 
259  std::lock_guard<std::mutex> lock(fmt_.monlock_);
260 
261  lumiStartTime_[newLumi]=lumiStartTime;
262  while (!lastGlobalLumisClosed_.empty()) {
263  //wipe out old map entries as they aren't needed and slow down access
264  unsigned int oldLumi = lastGlobalLumisClosed_.back();
266  lumiStartTime_.erase(oldLumi);
267  avgLeadTime_.erase(oldLumi);
268  filesProcessedDuringLumi_.erase(oldLumi);
269  accuSize_.erase(oldLumi);
270  processedEventsPerLumi_.erase(oldLumi);
271  }
272  lastGlobalLumi_= newLumi;
274  }
275 
277  {
278  unsigned int lumi = gc.luminosityBlockID().luminosityBlock();
279  LogDebug("FastMonitoringService") << "Lumi ended. Writing JSON information. LUMI -: "
280  << lumi;
281  timeval lumiStopTime;
282  gettimeofday(&lumiStopTime, 0);
283 
284  std::lock_guard<std::mutex> lock(fmt_.monlock_);
285 
286  // Compute throughput
287  timeval stt = lumiStartTime_[lumi];
288  unsigned long usecondsForLumi = (lumiStopTime.tv_sec - stt.tv_sec)*1000000
289  + (lumiStopTime.tv_usec - stt.tv_usec);
290  unsigned long accuSize = accuSize_.find(lumi)==accuSize_.end() ? 0 : accuSize_[lumi];
291  double throughput = throughputFactor()* double(accuSize) / double(usecondsForLumi);
292  //store to registered variable
293  fmt_.m_data.fastThroughputJ_.value() = throughput;
294 
295  //update
296  doSnapshot(lumi,true);
297 
298  // create file name for slow monitoring file
299  std::stringstream slowFileName;
300  slowFileName << slowName_ << "_ls" << std::setfill('0') << std::setw(4)
301  << lumi << "_pid" << std::setfill('0')
302  << std::setw(5) << getpid() << ".jsn";
304  slow /= slowFileName.str();
305 
306  //retrieve one result we need (todo: sanity check if it's found)
307  IntJ *lumiProcessedJptr = dynamic_cast<IntJ*>(fmt_.jsonMonitor_->getMergedIntJForLumi("Processed",lumi));
308  if (!lumiProcessedJptr)
309  throw cms::Exception("FastMonitoringService") << "Internal error: got null pointer from FastMonitor";
310  processedEventsPerLumi_[lumi] = lumiProcessedJptr->value();
311 
312  {
313  auto itr = sourceEventsReport_.find(lumi);
314  if (itr==sourceEventsReport_.end()) {
315  //do not throw exception in case of signal termination
316  if (edm::shutdown_flag) {
317  edm::LogInfo("FastMonitoringService") << "Run interrupted. Skip writing EoL information -: "
318  << processedEventsPerLumi_[lumi] << " events were processed in LUMI " << lumi;
319  //this will prevent output modules from producing json file for possibly incomplete lumi
321  return;
322  }
323  //disable this exception, so service can be used standalone (will be thrown if output module asks for this information)
324  //throw cms::Exception("FastMonitoringService") << "SOURCE did not send update for lumi block. LUMI -:" << lumi;
325  }
326  else {
327  if (itr->second!=processedEventsPerLumi_[lumi]) {
328  throw cms::Exception("FastMonitoringService") << "MISMATCH with SOURCE update. LUMI -: "
329  << lumi
330  << ", events(processed):" << processedEventsPerLumi_[lumi]
331  << " events(source):" << itr->second;
332  }
333  sourceEventsReport_.erase(itr);
334  }
335  }
336  edm::LogInfo("FastMonitoringService") << "Statistics for lumisection -: lumi = " << lumi << " events = "
337  << lumiProcessedJptr->value() << " time = " << usecondsForLumi/1000000
338  << " size = " << accuSize << " thr = " << throughput;
339  delete lumiProcessedJptr;
340 
341  //full global and stream merge&output for this lumi
342  fmt_.jsonMonitor_->outputFullJSON(slow.string(),lumi);//full global and stream merge and JSON write for this lumi
343  fmt_.jsonMonitor_->discardCollected(lumi);//we don't do further updates for this lumi
344 
346  }
347 
349  {
350  //mark closed lumis (still keep map entries until next one)
352  }
353 
355  {
356  unsigned int sid = sc.streamID().value();
357  std::lock_guard<std::mutex> lock(fmt_.monlock_);
359 
360  //reset collected values for this stream
361  *(fmt_.m_data.processed_[sid])=0;
362 
363  ministate_[sid]=&nopath_;
365  }
366 
368  {
370  }
371 
373  {
374  unsigned int sid = sc.streamID().value();
375  std::lock_guard<std::mutex> lock(fmt_.monlock_);
376 
377  #if ATOMIC_LEVEL>=2
378  //spinlock to make sure we are not still updating event counter somewhere
379  while (streamCounterUpdating_[sid]->load(std::memory_order_acquire)) {}
380  #endif
381 
382  //update processed count to be complete at this time
384  //reset this in case stream does not get notified of next lumi (we keep processed events only)
385  ministate_[sid]=&nopath_;
387  }
389  {
391  }
392 
393 
395  {
396  //make sure that all path names are retrieved before allowing ministate to change
397  //hack: assume memory is synchronized after ~50 events seen by each stream
398  if (unlikely(eventCountForPathInit_[sc.streamID()]<50) && false==collectedPathList_[sc.streamID()]->load(std::memory_order_acquire))
399  {
400  //protection between stream threads, as well as the service monitoring thread
401  std::lock_guard<std::mutex> lock(fmt_.monlock_);
402 
403  if (firstEventId_[sc.streamID()]==0)
404  firstEventId_[sc.streamID()]=sc.eventID().event();
405  if (sc.eventID().event()==firstEventId_[sc.streamID()])
406  {
407  encPath_[sc.streamID()].update((void*)&pc.pathName());
408  return;
409  }
410  else {
411  //finished collecting path names
412  collectedPathList_[sc.streamID()]->store(true,std::memory_order_seq_cst);
413  fmt_.m_data.ministateBins_=encPath_[sc.streamID()].vecsize();
414  if (!pathLegendWritten_) {
415  std::string pathLegendStr = makePathLegenda();
416  FileIO::writeStringToFile(pathLegendFile_, pathLegendStr);
417  pathLegendWritten_=true;
418  }
419  }
420  }
421  else {
422  ministate_[sc.streamID()] = &(pc.pathName());
423  }
424  }
425 
426 
428  {
429  }
430 
432  {
434 
435  ministate_[sc.streamID()] = &nopath_;
436 
437  #if ATOMIC_LEVEL>=2
438  //use atomic flag to make sure end of lumi sees this
439  streamCounterUpdating_[sc.streamID()]->store(true,std::memory_order_release);
440  fmt_.m_data.processed_[sc.streamID()]->fetch_add(1,std::memory_order_release);
441  streamCounterUpdating_[sc.streamID()]->store(false,std::memory_order_release);
442 
443  #elif ATOMIC_LEVEL==1
444  //writes are atomic, we assume writes propagate to memory before stream EOL snap
445  fmt_.m_data.processed_[sc.streamID()]->fetch_add(1,std::memory_order_relaxed);
446 
447  #elif ATOMIC_LEVEL==0 //default
448  (*(fmt_.m_data.processed_[sc.streamID()]))++;
449  #endif
451 
452  //fast path counter (events accumulated in a run)
453  unsigned long res = totalEventsProcessed_.fetch_add(1,std::memory_order_relaxed);
455  //fmt_.m_data.fastPathProcessedJ_ = totalEventsProcessed_.load(std::memory_order_relaxed);
456  }
457 
459  {
461  }
462 
464  {
466  }
467 
469  {
470  microstate_[sc.streamID().value()] = (void*)(mcc.moduleDescription());
471  }
472 
474  {
475  //microstate_[sc.streamID().value()] = (void*)(mcc.moduleDescription());
477  }
478 
479  //FUNCTIONS CALLED FROM OUTSIDE
480 
481  //this is for old-fashioned service that is not thread safe and can block other streams
482  //(we assume the worst case - everything is blocked)
484  {
485  for (unsigned int i=0;i<nStreams_;i++)
487  }
488 
489  //this is for services that are multithreading-enabled or rarely blocks other streams
491  {
493  }
494 
495  //from source
496  void FastMonitoringService::accumulateFileSize(unsigned int lumi, unsigned long fileSize) {
497  std::lock_guard<std::mutex> lock(fmt_.monlock_);
498 
499  if (accuSize_.find(lumi)==accuSize_.end()) accuSize_[lumi] = fileSize;
500  else accuSize_[lumi] += fileSize;
501 
503  filesProcessedDuringLumi_[lumi] = 1;
504  else
506  }
507 
509  gettimeofday(&fileLookStart_, 0);
510  /*
511  std::cout << "Started looking for .raw file at: s=" << fileLookStart_.tv_sec << ": ms = "
512  << fileLookStart_.tv_usec / 1000.0 << std::endl;
513  */
514  }
515 
517  gettimeofday(&fileLookStop_, 0);
518  /*
519  std::cout << "Stopped looking for .raw file at: s=" << fileLookStop_.tv_sec << ": ms = "
520  << fileLookStop_.tv_usec / 1000.0 << std::endl;
521  */
522  std::lock_guard<std::mutex> lock(fmt_.monlock_);
523 
524  if (lumi>lumiFromSource_) {
526  leadTimes_.clear();
527  }
528  unsigned long elapsedTime = (fileLookStop_.tv_sec - fileLookStart_.tv_sec) * 1000000 // sec to us
529  + (fileLookStop_.tv_usec - fileLookStart_.tv_usec); // us
530  // add this to lead times for this lumi
531  leadTimes_.push_back((double)elapsedTime);
532 
533  // recompute average lead time for this lumi
534  if (leadTimes_.size() == 1) avgLeadTime_[lumi] = leadTimes_[0];
535  else {
536  double totTime = 0;
537  for (unsigned int i = 0; i < leadTimes_.size(); i++) totTime += leadTimes_[i];
538  avgLeadTime_[lumi] = 0.001*(totTime / leadTimes_.size());
539  }
540  }
541 
542  //for the output module
544  std::lock_guard<std::mutex> lock(fmt_.monlock_);
545 
546  auto it = processedEventsPerLumi_.find(lumi);
547  if (it!=processedEventsPerLumi_.end()) {
548  unsigned int proc = it->second;
549  return proc;
550  }
551  else {
552  throw cms::Exception("FastMonitoringService") << "output module wants already deleted (or never reported by SOURCE) lumisection event count for LUMI -: "<<lumi;
553  return 0;
554  }
555  }
556 
557 
558  void FastMonitoringService::doSnapshot(const unsigned int ls, const bool isGlobalEOL) {
559  // update macrostate
561 
562  //update these unless in the midst of a global transition
564 
565  auto itd = avgLeadTime_.find(ls);
566  if (itd != avgLeadTime_.end())
567  fmt_.m_data.fastAvgLeadTimeJ_ = itd->second;
568  else fmt_.m_data.fastAvgLeadTimeJ_=0.;
569 
570  auto iti = filesProcessedDuringLumi_.find(ls);
571  if (iti != filesProcessedDuringLumi_.end())
572  fmt_.m_data.fastFilesProcessedJ_ = iti->second;
574  }
575  else return;
576 
577  //capture latest mini/microstate of streams
578  for (unsigned int i=0;i<nStreams_;i++) {
581  }
582  //for (unsigned int i=0;i<nThreads_;i++)
583  // fmt_.m_data.threadMicrostateEncoded_[i] = encModule_.encode(threadMicrostate_[i]);
584 
585  if (isGlobalEOL)
586  {//only update global variables
587  fmt_.jsonMonitor_->snapGlobal(ls);
588  }
589  else
590  fmt_.jsonMonitor_->snap(ls);
591  }
592 
594  {
595 
596  std::lock_guard<std::mutex> lock(fmt_.monlock_);
597  auto itr = sourceEventsReport_.find(lumi);
598  if (itr!=sourceEventsReport_.end())
599  itr->second+=events;
600  else
601  sourceEventsReport_[lumi]=events;
602 
603  }
604 } //end namespace evf
605 
#define LogDebug(id)
void prePathEvent(edm::StreamContext const &, edm::PathContext const &)
std::string const & pathName() const
Definition: PathContext.h:37
unsigned int maxNumberOfThreads() const
Definition: SystemBounds.h:46
EventNumber_t event() const
Definition: EventID.h:44
void watchPreEvent(PreEvent::slot_type const &iSlot)
int i
Definition: DBlmapReader.cc:9
static const edm::ModuleDescription reservedMicroStateNames[mCOUNT]
std::vector< AtomicMonUInt * > processed_
void watchPrePathEvent(PrePathEvent::slot_type const &iSlot)
void watchPreallocate(Preallocate::slot_type const &iSlot)
boost::filesystem::path runDirectory_
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
void preallocate(edm::service::SystemBounds const &)
std::map< unsigned int, timeval > lumiStartTime_
void start(void(FastMonitoringService::*fp)(), FastMonitoringService *cp)
void preGlobalBeginLumi(edm::GlobalContext const &)
double throughputFactor()
void watchPreModuleEvent(PreModuleEvent::slot_type const &iSlot)
void postGlobalEndLumi(edm::GlobalContext const &)
TrainProcessor *const proc
Definition: MVATrainer.cc:101
void postEvent(edm::StreamContext const &)
void accumulateFileSize(unsigned int lumi, unsigned long fileSize)
void watchPreGlobalEndLumi(PreGlobalEndLumi::slot_type const &iSlot)
std::map< unsigned int, unsigned long > accuSize_
tuple lumi
Definition: fjr2json.py:35
std::vector< unsigned int > eventCountForPathInit_
std::vector< std::atomic< bool > * > streamCounterUpdating_
void watchPostEvent(PostEvent::slot_type const &iSlot)
LuminosityBlockID const & luminosityBlockID() const
Definition: GlobalContext.h:52
void watchPostStreamEndLumi(PostStreamEndLumi::slot_type const &iSlot)
void watchPreGlobalBeginLumi(PreGlobalBeginLumi::slot_type const &iSlot)
std::string const & moduleName() const
void watchPostModuleEvent(PostModuleEvent::slot_type const &iSlot)
void watchPostSourceEvent(PostSourceEvent::slot_type const &iSlot)
volatile std::atomic< bool > shutdown_flag
void doStreamEOLSnapshot(const unsigned int ls, const unsigned int streamID)
std::map< unsigned int, unsigned int > filesProcessedDuringLumi_
void preGlobalEndLumi(edm::GlobalContext const &)
LuminosityBlockNumber_t luminosityBlock() const
Definition: EventID.h:43
void watchPreStreamEndLumi(PreStreamEndLumi::slot_type const &iSlot)
#define constexpr
void watchJobFailure(JobFailure::slot_type const &iSlot)
convenience function for attaching to signal
void reportEventsThisLumiInSource(unsigned int lumi, unsigned int events)
#define unlikely(x)
unsigned int maxNumberOfStreams() const
Definition: SystemBounds.h:43
unsigned int getEventsProcessedForLumi(unsigned int lumi)
void preModuleBeginJob(edm::ModuleDescription const &)
std::vector< std::atomic< bool > * > collectedPathList_
tuple path
else: Piece not in the list, fine.
std::queue< unsigned int > lastGlobalLumisClosed_
void preStreamEndLumi(edm::StreamContext const &)
std::map< unsigned int, double > avgLeadTime_
void watchPostStreamBeginLumi(PostStreamBeginLumi::slot_type const &iSlot)
void doSnapshot(const unsigned int ls, const bool isGlobalEOL)
static const std::string nopath_
def load
Definition: svgfig.py:546
ModuleDescription const * moduleDescription() const
void resetFastMonitor(std::string const &microStateDefPath, std::string const &fastMicroStateDefPath)
bool decode(bool &, std::string const &)
Definition: types.cc:62
void watchPostGlobalEndLumi(PostGlobalEndLumi::slot_type const &iSlot)
std::vector< unsigned long > firstEventId_
static const std::string macroStateNames[FastMonitoringThread::MCOUNT]
void watchPreModuleBeginJob(PreModuleBeginJob::slot_type const &iSlot)
void postModuleEvent(edm::StreamContext const &, edm::ModuleCallingContext const &)
void postStreamBeginLumi(edm::StreamContext const &)
StreamID const & streamID() const
Definition: StreamContext.h:57
void postStreamEndLumi(edm::StreamContext const &)
std::vector< const void * > microstate_
std::vector< unsigned int > microstateEncoded_
unsigned int value() const
Definition: StreamID.h:46
void preStreamBeginLumi(edm::StreamContext const &)
void registerVariables(FastMonitor *fm, unsigned int nStreams, unsigned int nThreads)
std::atomic< unsigned long > totalEventsProcessed_
LuminosityBlockNumber_t luminosityBlock() const
void watchPreStreamBeginLumi(PreStreamBeginLumi::slot_type const &iSlot)
FastMonitoringThread::Macrostate macrostate_
std::vector< double > leadTimes_
void stoppedLookingForFile(unsigned int lumi)
void setMicroState(MicroStateService::Microstate)
tuple events
Definition: patZpeak.py:19
boost::filesystem::path workingDirectory_
std::map< unsigned int, unsigned int > processedEventsPerLumi_
std::map< unsigned int, unsigned int > sourceEventsReport_
std::unique_ptr< FastMonitor > jsonMonitor_
void postGlobalBeginRun(edm::GlobalContext const &)
void preEvent(edm::StreamContext const &)
EventID const & eventID() const
Definition: StreamContext.h:59
void watchPreSourceEvent(PreSourceEvent::slot_type const &iSlot)
void preModuleEvent(edm::StreamContext const &, edm::ModuleCallingContext const &)
std::vector< const void * > ministate_
const void * decode(unsigned int index)
std::vector< unsigned int > streamLumi_
std::vector< Encoding > encPath_
std::vector< unsigned int > ministateEncoded_
FastMonitoringService(const edm::ParameterSet &, edm::ActivityRegistry &)
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal