CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
evf::FastMonitoringService Class Reference

#include <FastMonitoringService.h>

Inheritance diagram for evf::FastMonitoringService:
evf::MicroStateService

Public Member Functions

void accumulateFileSize (unsigned int lumi, unsigned long fileSize)
 
 FastMonitoringService (const edm::ParameterSet &, edm::ActivityRegistry &)
 
bool getAbortFlagForLumi (unsigned int lumi)
 
unsigned int getEventsProcessedForLumi (unsigned int lumi, bool *abortFlag=nullptr)
 
std::string getRunDirName () const
 
void jobFailure ()
 
std::string makeInputLegendaJson ()
 
std::string makeModuleLegendaJson ()
 
std::string makePathLegendaJson ()
 
void postBeginJob ()
 
void postEndJob ()
 
void postEvent (edm::StreamContext const &)
 
void postGlobalBeginRun (edm::GlobalContext const &)
 
void postGlobalEndLumi (edm::GlobalContext const &)
 
void postModuleEvent (edm::StreamContext const &, edm::ModuleCallingContext const &)
 
void postModuleEventAcquire (edm::StreamContext const &, edm::ModuleCallingContext const &)
 
void postSourceEvent (edm::StreamID)
 
void postStreamBeginLumi (edm::StreamContext const &)
 
void postStreamEndLumi (edm::StreamContext const &)
 
void preallocate (edm::service::SystemBounds const &)
 
void preBeginJob (edm::PathsAndConsumesOfModulesBase const &, edm::ProcessContext const &pc)
 
void preEvent (edm::StreamContext const &)
 
void preGlobalBeginLumi (edm::GlobalContext const &)
 
void preGlobalEarlyTermination (edm::GlobalContext const &, edm::TerminationOrigin)
 
void preGlobalEndLumi (edm::GlobalContext const &)
 
void preModuleBeginJob (edm::ModuleDescription const &)
 
void preModuleEvent (edm::StreamContext const &, edm::ModuleCallingContext const &)
 
void preModuleEventAcquire (edm::StreamContext const &, edm::ModuleCallingContext const &)
 
void prePathEvent (edm::StreamContext const &, edm::PathContext const &)
 
void preSourceEarlyTermination (edm::TerminationOrigin)
 
void preSourceEvent (edm::StreamID)
 
void preStreamBeginLumi (edm::StreamContext const &)
 
void preStreamEarlyTermination (edm::StreamContext const &, edm::TerminationOrigin)
 
void preStreamEndLumi (edm::StreamContext const &)
 
void reportLockWait (unsigned int ls, double waitTime, unsigned int lockCount)
 
void setExceptionDetected (unsigned int ls)
 
void setInputSource (FedRawDataInputSource *inputSource)
 
void setInState (FastMonState::InputState inputState)
 
void setInStateSup (FastMonState::InputState inputState)
 
void setMicroState (edm::StreamID, FastMonState::Microstate)
 
void setMicroState (FastMonState::Microstate)
 
bool shouldWriteFiles (unsigned int lumi, unsigned int *proc=nullptr)
 
void startedLookingForFile ()
 
void stoppedLookingForFile (unsigned int lumi)
 
 ~FastMonitoringService () override
 
- Public Member Functions inherited from evf::MicroStateService
 MicroStateService (const edm::ParameterSet &, edm::ActivityRegistry &)
 
virtual ~MicroStateService ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Static Public Attributes

static const std::string inputStateNames [FastMonState::inCOUNT]
 
static const std::string macroStateNames [FastMonState::MCOUNT]
 
static const std::string nopath_ = "NoPath"
 
static const edm::ModuleDescription reservedMicroStateNames [FastMonState::mCOUNT]
 

Private Member Functions

void doSnapshot (const unsigned int ls, const bool isGlobalEOL)
 
void snapshotRunner ()
 

Private Attributes

std::map< unsigned int, unsigned long > accuSize_
 
std::map< unsigned int, double > avgLeadTime_
 
std::vector< std::atomic< bool > * > collectedPathList_
 
bool exception_detected_ = false
 
std::vector< unsigned int > exceptionInLS_
 
std::string fastMicrostateDefPath_
 
unsigned int fastMonIntervals_
 
std::string fastName_
 
std::string fastPath_
 
std::vector< std::string > fastPathList_
 
timeval fileLookStart_
 
timeval fileLookStop_
 
bool filePerFwkStream_
 
std::map< unsigned int, unsigned int > filesProcessedDuringLumi_
 
std::shared_ptr< FastMonitoringThreadfmt_
 
std::string inputLegendFileJson_
 
FedRawDataInputSourceinputSource_ = nullptr
 
std::atomic< FastMonState::InputStateinputState_ {FastMonState::InputState::inInit}
 
std::atomic< FastMonState::InputStateinputSupervisorState_ {FastMonState::InputState::inInit}
 
std::atomic< bool > isInitTransition_
 
unsigned int lastGlobalLumi_
 
std::vector< double > leadTimes_
 
std::map< unsigned int, std::pair< double, unsigned int > > lockStatsDuringLumi_
 
unsigned int lumiFromSource_
 
std::map< unsigned int, timeval > lumiStartTime_
 
std::string microstateDefPath_
 
std::string moduleLegendFile_
 
std::string moduleLegendFileJson_
 
std::atomic< bool > monInit_
 
unsigned int nOutputModules_ = 0
 
unsigned int nStreams_
 
unsigned int nThreads_
 
std::string pathLegendFile_
 
std::string pathLegendFileJson_
 
std::vector< bool > pathNamesReady_
 
std::map< unsigned int, std::pair< unsigned int, bool > > processedEventsPerLumi_
 
std::filesystem::path runDirectory_
 
int sleepTime_
 
std::string slowName_
 
unsigned int snapCounter_ = 0
 
std::vector< std::atomic< bool > * > streamCounterUpdating_
 
bool threadIDAvailable_ = false
 
std::atomic< unsigned long > totalEventsProcessed_
 
std::filesystem::path workingDirectory_
 

Detailed Description

Definition at line 155 of file FastMonitoringService.h.

Constructor & Destructor Documentation

◆ FastMonitoringService()

evf::FastMonitoringService::FastMonitoringService ( const edm::ParameterSet iPS,
edm::ActivityRegistry reg 
)

Definition at line 125 of file FastMonitoringService.cc.

126  : MicroStateService(iPS, reg),
127  fmt_(new FastMonitoringThread()),
128  nStreams_(0) //until initialized
129  ,
130  sleepTime_(iPS.getUntrackedParameter<int>("sleepTime", 1)),
131  fastMonIntervals_(iPS.getUntrackedParameter<unsigned int>("fastMonIntervals", 2)),
132  fastName_("fastmoni"),
133  slowName_("slowmoni"),
134  filePerFwkStream_(iPS.getUntrackedParameter<bool>("filePerFwkStream", false)),
136  reg.watchPreallocate(this, &FastMonitoringService::preallocate); //receiving information on number of threads
138 
143 
147 
152 
154 
155  reg.watchPreEvent(this, &FastMonitoringService::preEvent); //stream
157 
158  reg.watchPreSourceEvent(this, &FastMonitoringService::preSourceEvent); //source (with streamID of requestor)
160 
163 
166 
170 
171  //find microstate definition path (required by the module)
172  struct stat statbuf;
173  std::string microstateBaseSuffix = "src/EventFilter/Utilities/plugins/microstatedef.jsd";
174  std::string microstatePath = std::string(std::getenv("CMSSW_BASE")) + "/" + microstateBaseSuffix;
175  if (stat(microstatePath.c_str(), &statbuf)) {
176  microstatePath = std::string(std::getenv("CMSSW_RELEASE_BASE")) + "/" + microstateBaseSuffix;
177  if (stat(microstatePath.c_str(), &statbuf)) {
178  microstatePath = microstateBaseSuffix;
179  if (stat(microstatePath.c_str(), &statbuf))
180  throw cms::Exception("FastMonitoringService") << "microstate definition file not found";
181  }
182  }
183  fastMicrostateDefPath_ = microstateDefPath_ = microstatePath;
184  }

References Exception, fastMicrostateDefPath_, jobFailure(), microstateDefPath_, postBeginJob(), postEndJob(), postEvent(), postGlobalEndLumi(), postModuleEvent(), postModuleEventAcquire(), postSourceEvent(), postStreamBeginLumi(), postStreamEndLumi(), preallocate(), preBeginJob(), preEvent(), preGlobalBeginLumi(), preGlobalEarlyTermination(), preGlobalEndLumi(), preModuleBeginJob(), preModuleEvent(), preModuleEventAcquire(), prePathEvent(), preSourceEarlyTermination(), preSourceEvent(), preStreamBeginLumi(), preStreamEarlyTermination(), preStreamEndLumi(), edm_modernize_messagelogger::stat, AlCaHLTBitMon_QueryRunRegistry::string, edm::ActivityRegistry::watchJobFailure(), edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostEvent(), edm::ActivityRegistry::watchPostGlobalEndLumi(), edm::ActivityRegistry::watchPostModuleEvent(), edm::ActivityRegistry::watchPostModuleEventAcquire(), edm::ActivityRegistry::watchPostSourceEvent(), edm::ActivityRegistry::watchPostStreamBeginLumi(), edm::ActivityRegistry::watchPostStreamEndLumi(), edm::ActivityRegistry::watchPreallocate(), edm::ActivityRegistry::watchPreBeginJob(), edm::ActivityRegistry::watchPreEvent(), edm::ActivityRegistry::watchPreGlobalBeginLumi(), edm::ActivityRegistry::watchPreGlobalEarlyTermination(), edm::ActivityRegistry::watchPreGlobalEndLumi(), edm::ActivityRegistry::watchPreModuleBeginJob(), edm::ActivityRegistry::watchPreModuleEvent(), edm::ActivityRegistry::watchPreModuleEventAcquire(), edm::ActivityRegistry::watchPrePathEvent(), edm::ActivityRegistry::watchPreSourceEarlyTermination(), edm::ActivityRegistry::watchPreSourceEvent(), edm::ActivityRegistry::watchPreStreamBeginLumi(), edm::ActivityRegistry::watchPreStreamEarlyTermination(), and edm::ActivityRegistry::watchPreStreamEndLumi().

◆ ~FastMonitoringService()

evf::FastMonitoringService::~FastMonitoringService ( )
override

Definition at line 186 of file FastMonitoringService.cc.

186 {}

Member Function Documentation

◆ accumulateFileSize()

void evf::FastMonitoringService::accumulateFileSize ( unsigned int  lumi,
unsigned long  fileSize 
)

Definition at line 670 of file FastMonitoringService.cc.

670  {
671  std::lock_guard<std::mutex> lock(fmt_->monlock_);
672 
673  if (accuSize_.find(lumi) == accuSize_.end())
674  accuSize_[lumi] = fileSize;
675  else
676  accuSize_[lumi] += fileSize;
677 
680  else
682  }

References accuSize_, filesProcessedDuringLumi_, fmt_, CommonMethods::lock(), and BXlumiParameters_cfi::lumi.

Referenced by evf::EvFDaqDirector::bumpFile().

◆ doSnapshot()

void evf::FastMonitoringService::doSnapshot ( const unsigned int  ls,
const bool  isGlobalEOL 
)
private

Definition at line 817 of file FastMonitoringService.cc.

817  {
818  // update macrostate
819  fmt_->m_data.fastMacrostateJ_ = fmt_->m_data.macrostate_;
820 
821  std::vector<const void*> microstateCopy(fmt_->m_data.microstate_.begin(), fmt_->m_data.microstate_.end());
822  std::vector<unsigned char> microstateAcqCopy(fmt_->m_data.microstateAcqFlag_.begin(),
823  fmt_->m_data.microstateAcqFlag_.end());
824 
825  if (!isInitTransition_) {
826  auto itd = avgLeadTime_.find(ls);
827  if (itd != avgLeadTime_.end())
828  fmt_->m_data.fastAvgLeadTimeJ_ = itd->second;
829  else
830  fmt_->m_data.fastAvgLeadTimeJ_ = 0.;
831 
832  auto iti = filesProcessedDuringLumi_.find(ls);
833  if (iti != filesProcessedDuringLumi_.end())
834  fmt_->m_data.fastFilesProcessedJ_ = iti->second;
835  else
836  fmt_->m_data.fastFilesProcessedJ_ = 0;
837 
838  auto itrd = lockStatsDuringLumi_.find(ls);
839  if (itrd != lockStatsDuringLumi_.end()) {
840  fmt_->m_data.fastLockWaitJ_ = itrd->second.first;
841  fmt_->m_data.fastLockCountJ_ = itrd->second.second;
842  } else {
843  fmt_->m_data.fastLockWaitJ_ = 0.;
844  fmt_->m_data.fastLockCountJ_ = 0.;
845  }
846  }
847 
848  for (unsigned int i = 0; i < nStreams_; i++) {
849  fmt_->m_data.ministateEncoded_[i] = fmt_->m_data.encPath_[i].encodeString(fmt_->m_data.ministate_[i]);
850  if (microstateAcqCopy[i])
851  fmt_->m_data.microstateEncoded_[i] =
852  fmt_->m_data.microstateBins_ + fmt_->m_data.encModule_.encode(microstateCopy[i]);
853  else
854  fmt_->m_data.microstateEncoded_[i] = fmt_->m_data.encModule_.encode(microstateCopy[i]);
855  }
856 
857  bool inputStatePerThread = false;
858 
860  switch (inputSupervisorState_) {
862  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput_fileLimit;
863  break;
865  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput_waitFreeChunk;
866  break;
868  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput_waitFreeChunkCopying;
869  break;
871  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput_waitFreeThread;
872  break;
874  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput_waitFreeThreadCopying;
875  break;
877  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput_busy;
878  break;
880  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput_lockPolling;
881  break;
883  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput_lockPollingCopying;
884  break;
886  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput_runEnd;
887  break;
889  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput_noFile;
890  break;
892  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput_newFile;
893  break;
896  break;
898  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput_newFileWaitThread;
899  break;
902  break;
904  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput_newFileWaitChunk;
905  break;
906  default:
907  fmt_->m_data.inputState_[0] = FastMonState::inWaitInput;
908  }
909  } else if (inputState_ == FastMonState::inWaitChunk) {
910  switch (inputSupervisorState_) {
912  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk_fileLimit;
913  break;
915  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk_waitFreeChunk;
916  break;
918  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk_waitFreeChunkCopying;
919  break;
921  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk_waitFreeThread;
922  break;
924  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk_waitFreeThreadCopying;
925  break;
927  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk_busy;
928  break;
930  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk_lockPolling;
931  break;
933  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk_lockPollingCopying;
934  break;
936  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk_runEnd;
937  break;
939  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk_noFile;
940  break;
942  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk_newFile;
943  break;
946  break;
948  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk_newFileWaitThread;
949  break;
952  break;
954  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk_newFileWaitChunk;
955  break;
956  default:
957  fmt_->m_data.inputState_[0] = FastMonState::inWaitChunk;
958  }
959  } else if (inputState_ == FastMonState::inNoRequest) {
960  inputStatePerThread = true;
961  for (unsigned int i = 0; i < nStreams_; i++) {
962  if (microstateCopy[i] == &reservedMicroStateNames[FastMonState::mIdle])
963  fmt_->m_data.inputState_[i] = FastMonState::inNoRequestWithIdleThreads;
964  else if (microstateCopy[i] == &reservedMicroStateNames[FastMonState::mEoL] ||
965  microstateCopy[i] == &reservedMicroStateNames[FastMonState::mFwkEoL])
966  fmt_->m_data.inputState_[i] = FastMonState::inNoRequestWithEoLThreads;
967  else
968  fmt_->m_data.inputState_[i] = FastMonState::inNoRequest;
969  }
970  } else if (inputState_ == FastMonState::inNewLumi) {
971  inputStatePerThread = true;
972  for (unsigned int i = 0; i < nStreams_; i++) {
973  if (microstateCopy[i] == &reservedMicroStateNames[FastMonState::mEoL] ||
974  microstateCopy[i] == &reservedMicroStateNames[FastMonState::mFwkEoL])
975  fmt_->m_data.inputState_[i] = FastMonState::inNewLumi;
976  }
978  //apply directly throttled state from supervisor
979  fmt_->m_data.inputState_[0] = inputSupervisorState_;
980  } else
981  fmt_->m_data.inputState_[0] = inputState_;
982 
983  //this is same for all streams
984  if (!inputStatePerThread)
985  for (unsigned int i = 1; i < nStreams_; i++)
986  fmt_->m_data.inputState_[i] = fmt_->m_data.inputState_[0];
987 
988  if (isGlobalEOL) { //only update global variables
989  fmt_->jsonMonitor_->snapGlobal(ls);
990  } else
991  fmt_->jsonMonitor_->snap(ls);
992  }

References avgLeadTime_, filesProcessedDuringLumi_, fmt_, mps_fire::i, if(), evf::FastMonState::inNewLumi, evf::FastMonState::inNoRequest, evf::FastMonState::inNoRequestWithEoLThreads, evf::FastMonState::inNoRequestWithIdleThreads, inputState_, inputSupervisorState_, evf::FastMonState::inRunEnd, evf::FastMonState::inSupBusy, evf::FastMonState::inSupFileLimit, evf::FastMonState::inSupLockPolling, evf::FastMonState::inSupLockPollingCopying, evf::FastMonState::inSupNewFile, evf::FastMonState::inSupNewFileWaitChunk, evf::FastMonState::inSupNewFileWaitChunkCopying, evf::FastMonState::inSupNewFileWaitThread, evf::FastMonState::inSupNewFileWaitThreadCopying, evf::FastMonState::inSupNoFile, evf::FastMonState::inSupThrottled, evf::FastMonState::inSupWaitFreeChunk, evf::FastMonState::inSupWaitFreeChunkCopying, evf::FastMonState::inSupWaitFreeThread, evf::FastMonState::inSupWaitFreeThreadCopying, evf::FastMonState::inWaitChunk, evf::FastMonState::inWaitChunk_busy, evf::FastMonState::inWaitChunk_fileLimit, evf::FastMonState::inWaitChunk_lockPolling, evf::FastMonState::inWaitChunk_lockPollingCopying, evf::FastMonState::inWaitChunk_newFile, evf::FastMonState::inWaitChunk_newFileWaitChunk, evf::FastMonState::inWaitChunk_newFileWaitChunkCopying, evf::FastMonState::inWaitChunk_newFileWaitThread, evf::FastMonState::inWaitChunk_newFileWaitThreadCopying, evf::FastMonState::inWaitChunk_noFile, evf::FastMonState::inWaitChunk_runEnd, evf::FastMonState::inWaitChunk_waitFreeChunk, evf::FastMonState::inWaitChunk_waitFreeChunkCopying, evf::FastMonState::inWaitChunk_waitFreeThread, evf::FastMonState::inWaitChunk_waitFreeThreadCopying, evf::FastMonState::inWaitInput, evf::FastMonState::inWaitInput_busy, evf::FastMonState::inWaitInput_fileLimit, evf::FastMonState::inWaitInput_lockPolling, evf::FastMonState::inWaitInput_lockPollingCopying, evf::FastMonState::inWaitInput_newFile, evf::FastMonState::inWaitInput_newFileWaitChunk, evf::FastMonState::inWaitInput_newFileWaitChunkCopying, evf::FastMonState::inWaitInput_newFileWaitThread, evf::FastMonState::inWaitInput_newFileWaitThreadCopying, evf::FastMonState::inWaitInput_noFile, evf::FastMonState::inWaitInput_runEnd, evf::FastMonState::inWaitInput_waitFreeChunk, evf::FastMonState::inWaitInput_waitFreeChunkCopying, evf::FastMonState::inWaitInput_waitFreeThread, evf::FastMonState::inWaitInput_waitFreeThreadCopying, isInitTransition_, lockStatsDuringLumi_, eostools::ls(), evf::FastMonState::mEoL, evf::FastMonState::mFwkEoL, evf::FastMonState::mIdle, nStreams_, and reservedMicroStateNames.

Referenced by preGlobalEndLumi(), and snapshotRunner().

◆ fillDescriptions()

void evf::FastMonitoringService::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 188 of file FastMonitoringService.cc.

188  {
190  desc.setComment("Service for File-based DAQ monitoring and event accounting");
191  desc.addUntracked<int>("sleepTime", 1)->setComment("Sleep time of the monitoring thread");
192  desc.addUntracked<unsigned int>("fastMonIntervals", 2)
193  ->setComment("Modulo of sleepTime intervals on which fastmon file is written out");
194  desc.addUntracked<bool>("filePerFwkStream", false)
195  ->setComment("Switches on monitoring output per framework stream");
196  desc.setAllowAnything();
197  descriptions.add("FastMonitoringService", desc);
198  }

References edm::ConfigurationDescriptions::add(), and submitPVResolutionJobs::desc.

◆ getAbortFlagForLumi()

bool evf::FastMonitoringService::getAbortFlagForLumi ( unsigned int  lumi)

Definition at line 744 of file FastMonitoringService.cc.

744  {
745  std::lock_guard<std::mutex> lock(fmt_->monlock_);
746 
747  auto it = processedEventsPerLumi_.find(lumi);
748  if (it != processedEventsPerLumi_.end()) {
749  unsigned int abortFlag = it->second.second;
750  return abortFlag;
751  } else {
752  throw cms::Exception("FastMonitoringService")
753  << "output module wants already deleted (or never reported by SOURCE) lumisection status for LUMI -: "
754  << lumi;
755  return false;
756  }
757  }

References Exception, fmt_, CommonMethods::lock(), BXlumiParameters_cfi::lumi, and processedEventsPerLumi_.

Referenced by shouldWriteFiles().

◆ getEventsProcessedForLumi()

unsigned int evf::FastMonitoringService::getEventsProcessedForLumi ( unsigned int  lumi,
bool *  abortFlag = nullptr 
)

Definition at line 726 of file FastMonitoringService.cc.

726  {
727  std::lock_guard<std::mutex> lock(fmt_->monlock_);
728 
729  auto it = processedEventsPerLumi_.find(lumi);
730  if (it != processedEventsPerLumi_.end()) {
731  unsigned int proc = it->second.first;
732  if (abortFlag)
733  *abortFlag = it->second.second;
734  return proc;
735  } else {
736  throw cms::Exception("FastMonitoringService")
737  << "output module wants already deleted (or never reported by SOURCE) lumisection event count for LUMI -: "
738  << lumi;
739  return 0;
740  }
741  }

References Exception, fmt_, CommonMethods::lock(), BXlumiParameters_cfi::lumi, ValidateTausOnZEEFastSim_cff::proc, and processedEventsPerLumi_.

Referenced by dqm::DQMFileSaverPB::fillJson(), dqmfilesaver::fillJson(), evf::EvFOutputModule::globalEndLuminosityBlock(), evf::GlobalEvFOutputModule::globalEndLuminosityBlock(), dqm::DQMFileSaverPB::saveLumi(), and shouldWriteFiles().

◆ getRunDirName()

std::string evf::FastMonitoringService::getRunDirName ( ) const
inline

Definition at line 218 of file FastMonitoringService.h.

218 { return runDirectory_.stem().string(); }

References runDirectory_.

◆ jobFailure()

void evf::FastMonitoringService::jobFailure ( )

Definition at line 426 of file FastMonitoringService.cc.

426 { fmt_->m_data.macrostate_ = FastMonState::sError; }

References fmt_, and evf::FastMonState::sError.

Referenced by FastMonitoringService().

◆ makeInputLegendaJson()

std::string evf::FastMonitoringService::makeInputLegendaJson ( )

Definition at line 233 of file FastMonitoringService.cc.

233  {
234  Json::Value legendaVector(Json::arrayValue);
235  for (int i = 0; i < FastMonState::inCOUNT; i++)
236  legendaVector.append(Json::Value(inputStateNames[i]));
237  Json::Value moduleLegend;
238  moduleLegend["names"] = legendaVector;
240  return writer.write(moduleLegend);
241  }

References Json::Value::append(), Json::arrayValue, mps_fire::i, evf::FastMonState::inCOUNT, inputStateNames, and cscNeutronWriter_cfi::writer.

Referenced by postBeginJob().

◆ makeModuleLegendaJson()

std::string evf::FastMonitoringService::makeModuleLegendaJson ( )

Definition at line 212 of file FastMonitoringService.cc.

212  {
213  Json::Value legendaVector(Json::arrayValue);
214  for (int i = 0; i < fmt_->m_data.encModule_.current_; i++)
215  legendaVector.append(
216  Json::Value((static_cast<const edm::ModuleDescription*>(fmt_->m_data.encModule_.decode(i)))->moduleLabel()));
217  //duplicate modules adding a list for acquire states (not all modules actually have it)
218  for (int i = 0; i < fmt_->m_data.encModule_.current_; i++)
219  legendaVector.append(Json::Value(
220  (static_cast<const edm::ModuleDescription*>(fmt_->m_data.encModule_.decode(i)))->moduleLabel() + "__ACQ"));
221  Json::Value valReserved(nReservedModules);
222  Json::Value valSpecial(nSpecialModules);
223  Json::Value valOutputModules(nOutputModules_);
224  Json::Value moduleLegend;
225  moduleLegend["names"] = legendaVector;
226  moduleLegend["reserved"] = valReserved;
227  moduleLegend["special"] = valSpecial;
228  moduleLegend["output"] = valOutputModules;
230  return writer.write(moduleLegend);
231  }

References Json::Value::append(), Json::arrayValue, fmt_, mps_fire::i, nOutputModules_, evf::nReservedModules, evf::nSpecialModules, and cscNeutronWriter_cfi::writer.

Referenced by postBeginJob().

◆ makePathLegendaJson()

std::string evf::FastMonitoringService::makePathLegendaJson ( )

Definition at line 200 of file FastMonitoringService.cc.

200  {
201  Json::Value legendaVector(Json::arrayValue);
202  for (int i = 0; i < fmt_->m_data.encPath_[0].current_; i++)
203  legendaVector.append(Json::Value(*(static_cast<const std::string*>(fmt_->m_data.encPath_[0].decode(i)))));
204  Json::Value valReserved(nReservedPaths);
205  Json::Value pathLegend;
206  pathLegend["names"] = legendaVector;
207  pathLegend["reserved"] = valReserved;
209  return writer.write(pathLegend);
210  }

References Json::Value::append(), Json::arrayValue, fmt_, mps_fire::i, evf::nReservedPaths, and cscNeutronWriter_cfi::writer.

Referenced by postBeginJob().

◆ postBeginJob()

void evf::FastMonitoringService::postBeginJob ( )

Definition at line 444 of file FastMonitoringService.cc.

444  {
445  std::string&& moduleLegStrJson = makeModuleLegendaJson();
446  FileIO::writeStringToFile(moduleLegendFileJson_, moduleLegStrJson);
447 
448  std::string inputLegendStrJson = makeInputLegendaJson();
449  FileIO::writeStringToFile(inputLegendFileJson_, inputLegendStrJson);
450 
451  std::string pathLegendStrJson = makePathLegendaJson();
452  FileIO::writeStringToFile(pathLegendFileJson_, pathLegendStrJson);
453 
454  fmt_->m_data.macrostate_ = FastMonState::sJobReady;
455 
456  //update number of entries in module histogram
457  std::lock_guard<std::mutex> lock(fmt_->monlock_);
458  //double the size to add post-acquire states
459  fmt_->m_data.microstateBins_ = fmt_->m_data.encModule_.vecsize() * 2;
460  }

References fmt_, inputLegendFileJson_, CommonMethods::lock(), makeInputLegendaJson(), makeModuleLegendaJson(), makePathLegendaJson(), moduleLegendFileJson_, pathLegendFileJson_, evf::FastMonState::sJobReady, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by FastMonitoringService().

◆ postEndJob()

void evf::FastMonitoringService::postEndJob ( )

Definition at line 462 of file FastMonitoringService.cc.

462  {
463  fmt_->m_data.macrostate_ = FastMonState::sJobEnded;
464  fmt_->stop();
465  }

References fmt_, and evf::FastMonState::sJobEnded.

Referenced by FastMonitoringService().

◆ postEvent()

void evf::FastMonitoringService::postEvent ( edm::StreamContext const &  sc)

Definition at line 615 of file FastMonitoringService.cc.

615  {
616  fmt_->m_data.microstate_[sc.streamID()] = &reservedMicroStateNames[FastMonState::mIdle];
617 
618  fmt_->m_data.ministate_[sc.streamID()] = &nopath_;
619 
620  (*(fmt_->m_data.processed_[sc.streamID()]))++;
621 
622  //fast path counter (events accumulated in a run)
623  unsigned long res = totalEventsProcessed_.fetch_add(1, std::memory_order_relaxed);
624  fmt_->m_data.fastPathProcessedJ_ = res + 1;
625  }

References fmt_, evf::FastMonState::mIdle, nopath_, reservedMicroStateNames, edm::StreamContext::streamID(), and totalEventsProcessed_.

Referenced by FastMonitoringService().

◆ postGlobalBeginRun()

void evf::FastMonitoringService::postGlobalBeginRun ( edm::GlobalContext const &  gc)

Definition at line 467 of file FastMonitoringService.cc.

467  {
468  fmt_->m_data.macrostate_ = FastMonState::sRunning;
469  isInitTransition_ = false;
470  }

References fmt_, isInitTransition_, and evf::FastMonState::sRunning.

◆ postGlobalEndLumi()

void evf::FastMonitoringService::postGlobalEndLumi ( edm::GlobalContext const &  gc)

Definition at line 565 of file FastMonitoringService.cc.

565  {
566  std::lock_guard<std::mutex> lock(fmt_->monlock_);
567  unsigned int lumi = gc.luminosityBlockID().luminosityBlock();
568  //LS monitoring snapshot with input source data has been taken in previous callback
569  avgLeadTime_.erase(lumi);
571  lockStatsDuringLumi_.erase(lumi);
572 
573  //output module already used this in end lumi (this could be migrated to EvFDaqDirector as it is essential for FFF bookkeeping)
575  }

References avgLeadTime_, filesProcessedDuringLumi_, fmt_, CommonMethods::lock(), lockStatsDuringLumi_, edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), and processedEventsPerLumi_.

Referenced by FastMonitoringService().

◆ postModuleEvent()

void evf::FastMonitoringService::postModuleEvent ( edm::StreamContext const &  sc,
edm::ModuleCallingContext const &  mcc 
)

Definition at line 651 of file FastMonitoringService.cc.

651  {
652  fmt_->m_data.microstate_[sc.streamID().value()] = &reservedMicroStateNames[FastMonState::mFwkOvhMod];
653  }

References fmt_, evf::FastMonState::mFwkOvhMod, reservedMicroStateNames, edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by FastMonitoringService().

◆ postModuleEventAcquire()

void evf::FastMonitoringService::postModuleEventAcquire ( edm::StreamContext const &  sc,
edm::ModuleCallingContext const &  mcc 
)

Definition at line 640 of file FastMonitoringService.cc.

641  {
642  //fmt_->m_data.microstate_[sc.streamID().value()] = (void*)(mcc.moduleDescription());
643  fmt_->m_data.microstateAcqFlag_[sc.streamID().value()] = 1;
644  }

References fmt_, edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by FastMonitoringService().

◆ postSourceEvent()

void evf::FastMonitoringService::postSourceEvent ( edm::StreamID  sid)

Definition at line 631 of file FastMonitoringService.cc.

631  {
632  fmt_->m_data.microstate_[sid.value()] = &reservedMicroStateNames[FastMonState::mFwkOvhSrc];
633  }

References fmt_, evf::FastMonState::mFwkOvhSrc, reservedMicroStateNames, and edm::StreamID::value().

Referenced by FastMonitoringService().

◆ postStreamBeginLumi()

void evf::FastMonitoringService::postStreamBeginLumi ( edm::StreamContext const &  sc)

Definition at line 590 of file FastMonitoringService.cc.

590  {
591  fmt_->m_data.microstate_[sc.streamID().value()] = &reservedMicroStateNames[FastMonState::mIdle];
592  }

References fmt_, evf::FastMonState::mIdle, reservedMicroStateNames, edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by FastMonitoringService().

◆ postStreamEndLumi()

void evf::FastMonitoringService::postStreamEndLumi ( edm::StreamContext const &  sc)

Definition at line 605 of file FastMonitoringService.cc.

605  {
606  fmt_->m_data.microstate_[sc.streamID().value()] = &reservedMicroStateNames[FastMonState::mFwkEoL];
607  }

References fmt_, evf::FastMonState::mFwkEoL, reservedMicroStateNames, edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by FastMonitoringService().

◆ preallocate()

void evf::FastMonitoringService::preallocate ( edm::service::SystemBounds const &  bounds)

Definition at line 243 of file FastMonitoringService.cc.

243  {
244  nStreams_ = bounds.maxNumberOfStreams();
245  nThreads_ = bounds.maxNumberOfThreads();
246  //this should already be >=1
247  if (nStreams_ == 0)
248  nStreams_ = 1;
249  if (nThreads_ == 0)
250  nThreads_ = 1;
251  }

References edm::service::SystemBounds::maxNumberOfStreams(), edm::service::SystemBounds::maxNumberOfThreads(), nStreams_, and nThreads_.

Referenced by FastMonitoringService().

◆ preBeginJob()

void evf::FastMonitoringService::preBeginJob ( edm::PathsAndConsumesOfModulesBase const &  pathsInfo,
edm::ProcessContext const &  pc 
)

Definition at line 253 of file FastMonitoringService.cc.

254  {
255  // FIND RUN DIRECTORY
256  // The run dir should be set via the configuration of EvFDaqDirector
257 
258  if (edm::Service<evf::EvFDaqDirector>().operator->() == nullptr) {
259  throw cms::Exception("FastMonitoringService") << "EvFDaqDirector is not present";
260  }
261  std::filesystem::path runDirectory{edm::Service<evf::EvFDaqDirector>()->baseRunDir()};
262  workingDirectory_ = runDirectory_ = runDirectory;
263  workingDirectory_ /= "mon";
264 
265  if (!std::filesystem::is_directory(workingDirectory_)) {
266  LogDebug("FastMonitoringService") << "<MON> DIR NOT FOUND! Trying to create -: " << workingDirectory_.string();
267  std::filesystem::create_directories(workingDirectory_);
268  if (!std::filesystem::is_directory(workingDirectory_))
269  edm::LogWarning("FastMonitoringService") << "Unable to create <MON> DIR -: " << workingDirectory_.string()
270  << ". No monitoring data will be written.";
271  }
272 
273  std::ostringstream fastFileName;
274 
275  fastFileName << fastName_ << "_pid" << std::setfill('0') << std::setw(5) << getpid() << ".fast";
277  fast /= fastFileName.str();
278  fastPath_ = fast.string();
279  if (filePerFwkStream_)
280  for (unsigned int i = 0; i < nStreams_; i++) {
281  std::ostringstream fastFileNameTid;
282  fastFileNameTid << fastName_ << "_pid" << std::setfill('0') << std::setw(5) << getpid() << "_tid" << i
283  << ".fast";
285  fastTid /= fastFileNameTid.str();
286  fastPathList_.push_back(fastTid.string());
287  }
288 
289  std::ostringstream moduleLegFile;
290  std::ostringstream moduleLegFileJson;
291  moduleLegFile << "microstatelegend_pid" << std::setfill('0') << std::setw(5) << getpid() << ".leg";
292  moduleLegFileJson << "microstatelegend_pid" << std::setfill('0') << std::setw(5) << getpid() << ".jsn";
293  moduleLegendFile_ = (workingDirectory_ / moduleLegFile.str()).string();
294  moduleLegendFileJson_ = (workingDirectory_ / moduleLegFileJson.str()).string();
295 
296  std::ostringstream pathLegFile;
297  std::ostringstream pathLegFileJson;
298  pathLegFile << "pathlegend_pid" << std::setfill('0') << std::setw(5) << getpid() << ".leg";
299  pathLegendFile_ = (workingDirectory_ / pathLegFile.str()).string();
300  pathLegFileJson << "pathlegend_pid" << std::setfill('0') << std::setw(5) << getpid() << ".jsn";
301  pathLegendFileJson_ = (workingDirectory_ / pathLegFileJson.str()).string();
302 
303  std::ostringstream inputLegFileJson;
304  inputLegFileJson << "inputlegend_pid" << std::setfill('0') << std::setw(5) << getpid() << ".jsn";
305  inputLegendFileJson_ = (workingDirectory_ / inputLegFileJson.str()).string();
306 
307  LogDebug("FastMonitoringService") << "Initializing FastMonitor with microstate def path -: " << microstateDefPath_;
308  //<< encPath_.current_ + 1 << " " << encModule_.current_ + 1
309 
310  /*
311  * initialize the fast monitor with:
312  * vector of pointers to monitorable parameters
313  * path to definition
314  *
315  */
316 
317  fmt_->m_data.macrostate_ = FastMonState::sInit;
318 
319  for (unsigned int i = 0; i < (FastMonState::mCOUNT); i++)
320  fmt_->m_data.encModule_.updateReserved(static_cast<const void*>(reservedMicroStateNames + i));
321  fmt_->m_data.encModule_.completeReservedWithDummies();
322 
323  for (unsigned int i = 0; i < nStreams_; i++) {
324  fmt_->m_data.ministate_.emplace_back(&nopath_);
325  fmt_->m_data.microstate_.emplace_back(&reservedMicroStateNames[FastMonState::mInvalid]);
326  fmt_->m_data.microstateAcqFlag_.push_back(0);
327 
328  //for synchronization
329  streamCounterUpdating_.push_back(new std::atomic<bool>(false));
330 
331  //path (mini) state
332  fmt_->m_data.encPath_.emplace_back(0);
333  fmt_->m_data.encPath_[i].update(static_cast<const void*>(&nopath_));
334 
335  for (auto& path : pathsInfo.paths()) {
336  fmt_->m_data.encPath_[i].updatePreinit(path);
337  }
338  for (auto& endPath : pathsInfo.endPaths()) {
339  fmt_->m_data.encPath_[i].updatePreinit(endPath);
340  }
341  }
342  //for (unsigned int i=0;i<nThreads_;i++)
343  // threadMicrostate_.push_back(&reservedMicroStateNames[mInvalid]);
344 
345  //initial size until we detect number of bins
346  fmt_->m_data.macrostateBins_ = FastMonState::MCOUNT;
347  fmt_->m_data.microstateBins_ = 0;
348  fmt_->m_data.inputstateBins_ = FastMonState::inCOUNT;
349  fmt_->m_data.ministateBins_ = fmt_->m_data.encPath_[0].vecsize();
350 
351  lastGlobalLumi_ = 0;
352  isInitTransition_ = true;
353  lumiFromSource_ = 0;
354 
355  //startup monitoring
356  fmt_->resetFastMonitor(microstateDefPath_, fastMicrostateDefPath_);
357  fmt_->jsonMonitor_->setNStreams(nStreams_);
358  fmt_->m_data.registerVariables(fmt_->jsonMonitor_.get(), nStreams_, threadIDAvailable_ ? nThreads_ : 0);
359  monInit_.store(false, std::memory_order_release);
360  if (sleepTime_ > 0)
362 
363  //this definition needs: #include "tbb/compat/thread"
364  //however this would results in TBB imeplementation replacing std::thread
365  //(both supposedly call pthread_self())
366  //number of threads created in process could be obtained from /proc,
367  //assuming that all posix threads are true kernel threads capable of running in parallel
368 
369  //#if TBB_IMPLEMENT_CPP0X
371  //threadIDAvailable_=true;
372  //#endif
373  }

References edm::PathsAndConsumesOfModulesBase::endPaths(), Exception, fastMicrostateDefPath_, fastName_, fastPath_, fastPathList_, filePerFwkStream_, fmt_, mps_fire::i, evf::FastMonState::inCOUNT, inputLegendFileJson_, isInitTransition_, lastGlobalLumi_, LogDebug, lumiFromSource_, evf::FastMonState::mCOUNT, evf::FastMonState::MCOUNT, microstateDefPath_, evf::FastMonState::mInvalid, moduleLegendFile_, moduleLegendFileJson_, monInit_, nopath_, nStreams_, nThreads_, Utilities::operator, castor_dqm_sourceclient_file_cfg::path, pathLegendFile_, pathLegendFileJson_, edm::PathsAndConsumesOfModulesBase::paths(), reservedMicroStateNames, runDirectory_, evf::FastMonState::sInit, sleepTime_, snapshotRunner(), streamCounterUpdating_, threadIDAvailable_, and workingDirectory_.

Referenced by FastMonitoringService().

◆ preEvent()

void evf::FastMonitoringService::preEvent ( edm::StreamContext const &  sc)

Definition at line 613 of file FastMonitoringService.cc.

613 {}

Referenced by FastMonitoringService().

◆ preGlobalBeginLumi()

void evf::FastMonitoringService::preGlobalBeginLumi ( edm::GlobalContext const &  gc)

Definition at line 472 of file FastMonitoringService.cc.

472  {
473  timeval lumiStartTime;
474  gettimeofday(&lumiStartTime, nullptr);
475  unsigned int newLumi = gc.luminosityBlockID().luminosityBlock();
476  lastGlobalLumi_ = newLumi;
477 
478  std::lock_guard<std::mutex> lock(fmt_->monlock_);
479  lumiStartTime_[newLumi] = lumiStartTime;
480  }

References fmt_, lastGlobalLumi_, CommonMethods::lock(), edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), and lumiStartTime_.

Referenced by FastMonitoringService().

◆ preGlobalEarlyTermination()

void evf::FastMonitoringService::preGlobalEarlyTermination ( edm::GlobalContext const &  gc,
edm::TerminationOrigin  to 
)

Definition at line 390 of file FastMonitoringService.cc.

390  {
393  context = " FromThisContext ";
395  context = " FromAnotherContext";
397  context = " FromExternalSignal";
398  edm::LogWarning("FastMonitoringService")
399  << " GLOBAL "
400  << "earlyTermination -: LS:" << gc.luminosityBlockID().luminosityBlock() << " " << context;
401  std::lock_guard<std::mutex> lock(fmt_->monlock_);
402  exceptionInLS_.push_back(gc.luminosityBlockID().luminosityBlock());
403  }

References visDQMUpload::context, edm::ExceptionFromAnotherContext, edm::ExceptionFromThisContext, exceptionInLS_, edm::ExternalSignal, fmt_, CommonMethods::lock(), edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by FastMonitoringService().

◆ preGlobalEndLumi()

void evf::FastMonitoringService::preGlobalEndLumi ( edm::GlobalContext const &  gc)

Definition at line 482 of file FastMonitoringService.cc.

482  {
483  unsigned int lumi = gc.luminosityBlockID().luminosityBlock();
484  LogDebug("FastMonitoringService") << "Lumi ended. Writing JSON information. LUMI -: " << lumi;
485  timeval lumiStopTime;
486  gettimeofday(&lumiStopTime, nullptr);
487 
488  std::lock_guard<std::mutex> lock(fmt_->monlock_);
489 
490  // Compute throughput
491  timeval stt = lumiStartTime_[lumi];
492  lumiStartTime_.erase(lumi);
493  unsigned long usecondsForLumi = (lumiStopTime.tv_sec - stt.tv_sec) * 1000000 + (lumiStopTime.tv_usec - stt.tv_usec);
494  unsigned long accuSize = accuSize_.find(lumi) == accuSize_.end() ? 0 : accuSize_[lumi];
495  accuSize_.erase(lumi);
496  double throughput = throughputFactor() * double(accuSize) / double(usecondsForLumi);
497  //store to registered variable
498  fmt_->m_data.fastThroughputJ_.value() = throughput;
499 
500  //update
501  doSnapshot(lumi, true);
502 
503  //retrieve one result we need (todo: sanity check if it's found)
504  IntJ* lumiProcessedJptr = dynamic_cast<IntJ*>(fmt_->jsonMonitor_->getMergedIntJForLumi("Processed", lumi));
505  if (!lumiProcessedJptr)
506  throw cms::Exception("FastMonitoringService") << "Internal error: got null pointer from FastMonitor";
507  processedEventsPerLumi_[lumi] = std::pair<unsigned int, bool>(lumiProcessedJptr->value(), false);
508 
509  //checking if exception has been thrown (in case of Global/Stream early termination, for this LS)
510  bool exception_detected = exception_detected_;
511  for (auto ex : exceptionInLS_)
512  if (lumi == ex)
513  exception_detected = true;
514 
515  if (edm::shutdown_flag || exception_detected) {
516  edm::LogInfo("FastMonitoringService")
517  << "Run interrupted. Skip writing EoL information -: " << processedEventsPerLumi_[lumi].first
518  << " events were processed in LUMI " << lumi;
519  //this will prevent output modules from producing json file for possibly incomplete lumi
520  processedEventsPerLumi_[lumi].first = 0;
521  processedEventsPerLumi_[lumi].second = true;
522  //disable this exception, so service can be used standalone (will be thrown if output module asks for this information)
523  //throw cms::Exception("FastMonitoringService") << "SOURCE did not send update for lumi block. LUMI -:" << lumi;
524  return;
525  }
526 
527  if (inputSource_) {
528  auto sourceReport = inputSource_->getEventReport(lumi, true);
529  if (sourceReport.first) {
530  if (sourceReport.second != processedEventsPerLumi_[lumi].first) {
531  throw cms::Exception("FastMonitoringService") << "MISMATCH with SOURCE update. LUMI -: " << lumi
532  << ", events(processed):" << processedEventsPerLumi_[lumi].first
533  << " events(source):" << sourceReport.second;
534  }
535  }
536  }
537  edm::LogInfo("FastMonitoringService")
538  << "Statistics for lumisection -: lumi = " << lumi << " events = " << lumiProcessedJptr->value()
539  << " time = " << usecondsForLumi / 1000000 << " size = " << accuSize << " thr = " << throughput;
540  delete lumiProcessedJptr;
541 
542  //full global and stream merge&output for this lumi
543 
544  // create file name for slow monitoring file
545  bool output = sleepTime_ > 0;
546  if (filePerFwkStream_) {
547  std::stringstream slowFileNameStem;
548  slowFileNameStem << slowName_ << "_ls" << std::setfill('0') << std::setw(4) << lumi << "_pid" << std::setfill('0')
549  << std::setw(5) << getpid();
551  slow /= slowFileNameStem.str();
552  fmt_->jsonMonitor_->outputFullJSONs(slow.string(), ".jsn", lumi, output);
553  } else {
554  std::stringstream slowFileName;
555  slowFileName << slowName_ << "_ls" << std::setfill('0') << std::setw(4) << lumi << "_pid" << std::setfill('0')
556  << std::setw(5) << getpid() << ".jsn";
558  slow /= slowFileName.str();
559  //full global and stream merge and JSON write for this lumi
560  fmt_->jsonMonitor_->outputFullJSON(slow.string(), lumi, output);
561  }
562  fmt_->jsonMonitor_->discardCollected(lumi); //we don't do further updates for this lumi
563  }

References accuSize_, doSnapshot(), Exception, exception_detected_, exceptionInLS_, filePerFwkStream_, fmt_, FedRawDataInputSource::getEventReport(), inputSource_, CommonMethods::lock(), LogDebug, BXlumiParameters_cfi::lumi, edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), lumiStartTime_, convertSQLitetoXML_cfg::output, castor_dqm_sourceclient_file_cfg::path, processedEventsPerLumi_, edm::shutdown_flag, sleepTime_, slowName_, throughputFactor(), jsoncollector::IntJ::value(), and workingDirectory_.

Referenced by FastMonitoringService().

◆ preModuleBeginJob()

void evf::FastMonitoringService::preModuleBeginJob ( edm::ModuleDescription const &  desc)

Definition at line 429 of file FastMonitoringService.cc.

429  {
430  std::lock_guard<std::mutex> lock(fmt_->monlock_);
431  //std::cout << " Pre module Begin Job module: " << desc.moduleName() << std::endl;
432 
433  //build a map of modules keyed by their module description address
434  //here we need to treat output modules in a special way so they can be easily singled out
435  if (desc.moduleName() == "Stream" || desc.moduleName() == "ShmStreamConsumer" ||
436  desc.moduleName() == "EvFOutputModule" || desc.moduleName() == "EventStreamFileWriter" ||
437  desc.moduleName() == "PoolOutputModule") {
438  fmt_->m_data.encModule_.updateReserved((void*)&desc);
439  nOutputModules_++;
440  } else
441  fmt_->m_data.encModule_.update((void*)&desc);
442  }

References submitPVResolutionJobs::desc, fmt_, CommonMethods::lock(), and nOutputModules_.

Referenced by FastMonitoringService().

◆ preModuleEvent()

void evf::FastMonitoringService::preModuleEvent ( edm::StreamContext const &  sc,
edm::ModuleCallingContext const &  mcc 
)

Definition at line 646 of file FastMonitoringService.cc.

646  {
647  fmt_->m_data.microstate_[sc.streamID().value()] = (void*)(mcc.moduleDescription());
648  fmt_->m_data.microstateAcqFlag_[sc.streamID().value()] = 0;
649  }

References fmt_, edm::ModuleCallingContext::moduleDescription(), edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by FastMonitoringService().

◆ preModuleEventAcquire()

void evf::FastMonitoringService::preModuleEventAcquire ( edm::StreamContext const &  sc,
edm::ModuleCallingContext const &  mcc 
)

Definition at line 635 of file FastMonitoringService.cc.

636  {
637  fmt_->m_data.microstate_[sc.streamID().value()] = (void*)(mcc.moduleDescription());
638  }

References fmt_, edm::ModuleCallingContext::moduleDescription(), edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by FastMonitoringService().

◆ prePathEvent()

void evf::FastMonitoringService::prePathEvent ( edm::StreamContext const &  sc,
edm::PathContext const &  pc 
)

Definition at line 609 of file FastMonitoringService.cc.

609  {
610  fmt_->m_data.ministate_[sc.streamID()] = &(pc.pathName());
611  }

References fmt_, edm::PathContext::pathName(), and edm::StreamContext::streamID().

Referenced by FastMonitoringService().

◆ preSourceEarlyTermination()

void evf::FastMonitoringService::preSourceEarlyTermination ( edm::TerminationOrigin  to)

Definition at line 405 of file FastMonitoringService.cc.

405  {
408  context = " FromThisContext ";
410  context = " FromAnotherContext";
412  context = " FromExternalSignal";
413  edm::LogWarning("FastMonitoringService") << " SOURCE "
414  << "earlyTermination -: " << context;
415  std::lock_guard<std::mutex> lock(fmt_->monlock_);
416  exception_detected_ = true;
417  }

References visDQMUpload::context, exception_detected_, edm::ExceptionFromAnotherContext, edm::ExceptionFromThisContext, edm::ExternalSignal, fmt_, CommonMethods::lock(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by FastMonitoringService().

◆ preSourceEvent()

void evf::FastMonitoringService::preSourceEvent ( edm::StreamID  sid)

Definition at line 627 of file FastMonitoringService.cc.

627  {
628  fmt_->m_data.microstate_[sid.value()] = &reservedMicroStateNames[FastMonState::mInput];
629  }

References fmt_, evf::FastMonState::mInput, reservedMicroStateNames, and edm::StreamID::value().

Referenced by FastMonitoringService().

◆ preStreamBeginLumi()

void evf::FastMonitoringService::preStreamBeginLumi ( edm::StreamContext const &  sc)

Definition at line 577 of file FastMonitoringService.cc.

577  {
578  unsigned int sid = sc.streamID().value();
579 
580  std::lock_guard<std::mutex> lock(fmt_->monlock_);
581  fmt_->m_data.streamLumi_[sid] = sc.eventID().luminosityBlock();
582 
583  //reset collected values for this stream
584  *(fmt_->m_data.processed_[sid]) = 0;
585 
586  fmt_->m_data.ministate_[sid] = &nopath_;
587  fmt_->m_data.microstate_[sid] = &reservedMicroStateNames[FastMonState::mBoL];
588  }

References edm::StreamContext::eventID(), fmt_, CommonMethods::lock(), edm::EventID::luminosityBlock(), evf::FastMonState::mBoL, nopath_, reservedMicroStateNames, edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by FastMonitoringService().

◆ preStreamEarlyTermination()

void evf::FastMonitoringService::preStreamEarlyTermination ( edm::StreamContext const &  sc,
edm::TerminationOrigin  to 
)

Definition at line 375 of file FastMonitoringService.cc.

375  {
378  context = " FromThisContext ";
380  context = " FromAnotherContext";
382  context = " FromExternalSignal";
383  edm::LogWarning("FastMonitoringService")
384  << " STREAM " << sc.streamID().value() << " earlyTermination -: ID:" << sc.eventID()
385  << " LS:" << sc.eventID().luminosityBlock() << " " << context;
386  std::lock_guard<std::mutex> lock(fmt_->monlock_);
387  exceptionInLS_.push_back(sc.eventID().luminosityBlock());
388  }

References visDQMUpload::context, edm::StreamContext::eventID(), edm::ExceptionFromAnotherContext, edm::ExceptionFromThisContext, exceptionInLS_, edm::ExternalSignal, fmt_, CommonMethods::lock(), edm::EventID::luminosityBlock(), edm::StreamContext::streamID(), AlCaHLTBitMon_QueryRunRegistry::string, and edm::StreamID::value().

Referenced by FastMonitoringService().

◆ preStreamEndLumi()

void evf::FastMonitoringService::preStreamEndLumi ( edm::StreamContext const &  sc)

Definition at line 594 of file FastMonitoringService.cc.

594  {
595  unsigned int sid = sc.streamID().value();
596  std::lock_guard<std::mutex> lock(fmt_->monlock_);
597 
598  //update processed count to be complete at this time
599  //doStreamEOLSnapshot(sc.eventID().luminosityBlock(), sid);
600  fmt_->jsonMonitor_->snapStreamAtomic(sc.eventID().luminosityBlock(), sid);
601  //reset this in case stream does not get notified of next lumi (we keep processed events only)
602  fmt_->m_data.ministate_[sid] = &nopath_;
603  fmt_->m_data.microstate_[sid] = &reservedMicroStateNames[FastMonState::mEoL];
604  }

References edm::StreamContext::eventID(), fmt_, CommonMethods::lock(), edm::EventID::luminosityBlock(), evf::FastMonState::mEoL, nopath_, reservedMicroStateNames, edm::StreamContext::streamID(), and edm::StreamID::value().

Referenced by FastMonitoringService().

◆ reportLockWait()

void evf::FastMonitoringService::reportLockWait ( unsigned int  ls,
double  waitTime,
unsigned int  lockCount 
)

Definition at line 720 of file FastMonitoringService.cc.

720  {
721  std::lock_guard<std::mutex> lock(fmt_->monlock_);
722  lockStatsDuringLumi_[ls] = std::pair<double, unsigned int>(waitTime, lockCount);
723  }

References fmt_, CommonMethods::lock(), lockStatsDuringLumi_, and eostools::ls().

Referenced by FedRawDataInputSource::readSupervisor().

◆ setExceptionDetected()

void evf::FastMonitoringService::setExceptionDetected ( unsigned int  ls)

Definition at line 419 of file FastMonitoringService.cc.

419  {
420  if (!ls)
421  exception_detected_ = true;
422  else
423  exceptionInLS_.push_back(ls);
424  }

References exception_detected_, exceptionInLS_, and eostools::ls().

Referenced by FedRawDataInputSource::getNextEvent().

◆ setInputSource()

void evf::FastMonitoringService::setInputSource ( FedRawDataInputSource inputSource)
inline

Definition at line 219 of file FastMonitoringService.h.

219 { inputSource_ = inputSource; }

References inputSource_.

Referenced by FedRawDataInputSource::FedRawDataInputSource().

◆ setInState()

void evf::FastMonitoringService::setInState ( FastMonState::InputState  inputState)
inline

Definition at line 220 of file FastMonitoringService.h.

220 { inputState_ = inputState; }

References inputState_.

Referenced by FedRawDataInputSource::FedRawDataInputSource(), and FedRawDataInputSource::setMonState().

◆ setInStateSup()

void evf::FastMonitoringService::setInStateSup ( FastMonState::InputState  inputState)
inline

◆ setMicroState() [1/2]

void evf::FastMonitoringService::setMicroState ( edm::StreamID  sid,
FastMonState::Microstate  m 
)

Definition at line 665 of file FastMonitoringService.cc.

665  {
666  fmt_->m_data.microstate_[sid] = &reservedMicroStateNames[m];
667  }

References fmt_, visualization-live-secondInstance_cfg::m, and reservedMicroStateNames.

◆ setMicroState() [2/2]

void evf::FastMonitoringService::setMicroState ( FastMonState::Microstate  m)

Definition at line 659 of file FastMonitoringService.cc.

659  {
660  for (unsigned int i = 0; i < nStreams_; i++)
661  fmt_->m_data.microstate_[i] = &reservedMicroStateNames[m];
662  }

References fmt_, mps_fire::i, visualization-live-secondInstance_cfg::m, nStreams_, and reservedMicroStateNames.

◆ shouldWriteFiles()

bool evf::FastMonitoringService::shouldWriteFiles ( unsigned int  lumi,
unsigned int *  proc = nullptr 
)
inline

◆ snapshotRunner()

void evf::FastMonitoringService::snapshotRunner ( )
private

Definition at line 760 of file FastMonitoringService.cc.

760  {
761  monInit_.exchange(true, std::memory_order_acquire);
762  while (!fmt_->m_stoprequest) {
763  std::vector<std::vector<unsigned int>> lastEnc;
764  {
765  std::lock_guard<std::mutex> lock(fmt_->monlock_);
766 
767  doSnapshot(lastGlobalLumi_, false);
768 
769  lastEnc.emplace_back(fmt_->m_data.ministateEncoded_);
770  lastEnc.emplace_back(fmt_->m_data.microstateEncoded_);
771 
773  if (filePerFwkStream_) {
774  std::vector<std::string> CSVv;
775  for (unsigned int i = 0; i < nStreams_; i++) {
776  CSVv.push_back(fmt_->jsonMonitor_->getCSVString((int)i));
777  }
778  fmt_->monlock_.unlock();
779  for (unsigned int i = 0; i < nStreams_; i++) {
780  if (!CSVv[i].empty())
781  fmt_->jsonMonitor_->outputCSV(fastPathList_[i], CSVv[i]);
782  }
783  } else {
784  std::string CSV = fmt_->jsonMonitor_->getCSVString();
785  //release mutex before writing out fast path file
786  fmt_->monlock_.unlock();
787  if (!CSV.empty())
788  fmt_->jsonMonitor_->outputCSV(fastPath_, CSV);
789  }
790  }
791  snapCounter_++;
792  }
793 
794  std::stringstream accum;
795  std::function<void(std::vector<unsigned int>)> f = [&](std::vector<unsigned int> p) {
796  for (unsigned int i = 0; i < nStreams_; i++) {
797  if (i == 0)
798  accum << "[" << p[i] << ",";
799  else if (i <= nStreams_ - 1)
800  accum << p[i] << ",";
801  else
802  accum << p[i] << "]";
803  }
804  };
805 
806  accum << "Current states: Ms=" << fmt_->m_data.fastMacrostateJ_.value() << " ms=";
807  f(lastEnc[0]);
808  accum << " us=";
809  f(lastEnc[1]);
810  accum << " is=" << inputStateNames[inputState_] << " iss=" << inputStateNames[inputSupervisorState_];
811  edm::LogInfo("FastMonitoringService") << accum.str();
812 
813  ::sleep(sleepTime_);
814  }
815  }

References doSnapshot(), relativeConstraints::empty, f, fastMonIntervals_, fastPath_, fastPathList_, filePerFwkStream_, fmt_, HiBiasedCentrality_cfi::function, mps_fire::i, inputState_, inputStateNames, inputSupervisorState_, lastGlobalLumi_, CommonMethods::lock(), monInit_, nStreams_, AlCaHLTBitMon_ParallelJobs::p, sleepTime_, snapCounter_, AlCaHLTBitMon_QueryRunRegistry::string, and funct::void.

Referenced by preBeginJob().

◆ startedLookingForFile()

void evf::FastMonitoringService::startedLookingForFile ( )

Definition at line 684 of file FastMonitoringService.cc.

684  {
685  gettimeofday(&fileLookStart_, nullptr);
686  /*
687  std::cout << "Started looking for .raw file at: s=" << fileLookStart_.tv_sec << ": ms = "
688  << fileLookStart_.tv_usec / 1000.0 << std::endl;
689  */
690  }

References fileLookStart_.

Referenced by FedRawDataInputSource::readSupervisor().

◆ stoppedLookingForFile()

void evf::FastMonitoringService::stoppedLookingForFile ( unsigned int  lumi)

Definition at line 692 of file FastMonitoringService.cc.

692  {
693  gettimeofday(&fileLookStop_, nullptr);
694  /*
695  std::cout << "Stopped looking for .raw file at: s=" << fileLookStop_.tv_sec << ": ms = "
696  << fileLookStop_.tv_usec / 1000.0 << std::endl;
697  */
698  std::lock_guard<std::mutex> lock(fmt_->monlock_);
699 
700  if (lumi > lumiFromSource_) {
702  leadTimes_.clear();
703  }
704  unsigned long elapsedTime = (fileLookStop_.tv_sec - fileLookStart_.tv_sec) * 1000000 // sec to us
705  + (fileLookStop_.tv_usec - fileLookStart_.tv_usec); // us
706  // add this to lead times for this lumi
707  leadTimes_.push_back((double)elapsedTime);
708 
709  // recompute average lead time for this lumi
710  if (leadTimes_.size() == 1)
712  else {
713  double totTime = 0;
714  for (unsigned int i = 0; i < leadTimes_.size(); i++)
715  totTime += leadTimes_[i];
716  avgLeadTime_[lumi] = 0.001 * (totTime / leadTimes_.size());
717  }
718  }

References avgLeadTime_, fileLookStart_, fileLookStop_, fmt_, mps_fire::i, leadTimes_, CommonMethods::lock(), BXlumiParameters_cfi::lumi, and lumiFromSource_.

Referenced by FedRawDataInputSource::readSupervisor().

Member Data Documentation

◆ accuSize_

std::map<unsigned int, unsigned long> evf::FastMonitoringService::accuSize_
private

Definition at line 259 of file FastMonitoringService.h.

Referenced by accumulateFileSize(), and preGlobalEndLumi().

◆ avgLeadTime_

std::map<unsigned int, double> evf::FastMonitoringService::avgLeadTime_
private

Definition at line 256 of file FastMonitoringService.h.

Referenced by doSnapshot(), postGlobalEndLumi(), and stoppedLookingForFile().

◆ collectedPathList_

std::vector<std::atomic<bool>*> evf::FastMonitoringService::collectedPathList_
private

Definition at line 270 of file FastMonitoringService.h.

◆ exception_detected_

bool evf::FastMonitoringService::exception_detected_ = false
private

◆ exceptionInLS_

std::vector<unsigned int> evf::FastMonitoringService::exceptionInLS_
private

◆ fastMicrostateDefPath_

std::string evf::FastMonitoringService::fastMicrostateDefPath_
private

Definition at line 241 of file FastMonitoringService.h.

Referenced by FastMonitoringService(), and preBeginJob().

◆ fastMonIntervals_

unsigned int evf::FastMonitoringService::fastMonIntervals_
private

Definition at line 239 of file FastMonitoringService.h.

Referenced by snapshotRunner().

◆ fastName_

std::string evf::FastMonitoringService::fastName_
private

Definition at line 242 of file FastMonitoringService.h.

Referenced by preBeginJob().

◆ fastPath_

std::string evf::FastMonitoringService::fastPath_
private

Definition at line 242 of file FastMonitoringService.h.

Referenced by preBeginJob(), and snapshotRunner().

◆ fastPathList_

std::vector<std::string> evf::FastMonitoringService::fastPathList_
private

Definition at line 289 of file FastMonitoringService.h.

Referenced by preBeginJob(), and snapshotRunner().

◆ fileLookStart_

timeval evf::FastMonitoringService::fileLookStart_
private

Definition at line 248 of file FastMonitoringService.h.

Referenced by startedLookingForFile(), and stoppedLookingForFile().

◆ fileLookStop_

timeval evf::FastMonitoringService::fileLookStop_
private

Definition at line 248 of file FastMonitoringService.h.

Referenced by stoppedLookingForFile().

◆ filePerFwkStream_

bool evf::FastMonitoringService::filePerFwkStream_
private

Definition at line 243 of file FastMonitoringService.h.

Referenced by preBeginJob(), preGlobalEndLumi(), and snapshotRunner().

◆ filesProcessedDuringLumi_

std::map<unsigned int, unsigned int> evf::FastMonitoringService::filesProcessedDuringLumi_
private

Definition at line 257 of file FastMonitoringService.h.

Referenced by accumulateFileSize(), doSnapshot(), and postGlobalEndLumi().

◆ fmt_

std::shared_ptr<FastMonitoringThread> evf::FastMonitoringService::fmt_
private

◆ inputLegendFileJson_

std::string evf::FastMonitoringService::inputLegendFileJson_
private

Definition at line 283 of file FastMonitoringService.h.

Referenced by postBeginJob(), and preBeginJob().

◆ inputSource_

FedRawDataInputSource* evf::FastMonitoringService::inputSource_ = nullptr
private

Definition at line 232 of file FastMonitoringService.h.

Referenced by preGlobalEndLumi(), and setInputSource().

◆ inputState_

std::atomic<FastMonState::InputState> evf::FastMonitoringService::inputState_ {FastMonState::InputState::inInit}
private

Definition at line 233 of file FastMonitoringService.h.

Referenced by doSnapshot(), setInState(), and snapshotRunner().

◆ inputStateNames

const std::string evf::FastMonitoringService::inputStateNames
static

Definition at line 160 of file FastMonitoringService.h.

Referenced by makeInputLegendaJson(), and snapshotRunner().

◆ inputSupervisorState_

std::atomic<FastMonState::InputState> evf::FastMonitoringService::inputSupervisorState_ {FastMonState::InputState::inInit}
private

Definition at line 234 of file FastMonitoringService.h.

Referenced by doSnapshot(), setInStateSup(), and snapshotRunner().

◆ isInitTransition_

std::atomic<bool> evf::FastMonitoringService::isInitTransition_
private

Definition at line 251 of file FastMonitoringService.h.

Referenced by doSnapshot(), postGlobalBeginRun(), and preBeginJob().

◆ lastGlobalLumi_

unsigned int evf::FastMonitoringService::lastGlobalLumi_
private

Definition at line 250 of file FastMonitoringService.h.

Referenced by preBeginJob(), preGlobalBeginLumi(), and snapshotRunner().

◆ leadTimes_

std::vector<double> evf::FastMonitoringService::leadTimes_
private

Definition at line 260 of file FastMonitoringService.h.

Referenced by stoppedLookingForFile().

◆ lockStatsDuringLumi_

std::map<unsigned int, std::pair<double, unsigned int> > evf::FastMonitoringService::lockStatsDuringLumi_
private

Definition at line 261 of file FastMonitoringService.h.

Referenced by doSnapshot(), postGlobalEndLumi(), and reportLockWait().

◆ lumiFromSource_

unsigned int evf::FastMonitoringService::lumiFromSource_
private

Definition at line 252 of file FastMonitoringService.h.

Referenced by preBeginJob(), and stoppedLookingForFile().

◆ lumiStartTime_

std::map<unsigned int, timeval> evf::FastMonitoringService::lumiStartTime_
private

Definition at line 247 of file FastMonitoringService.h.

Referenced by preGlobalBeginLumi(), and preGlobalEndLumi().

◆ macroStateNames

const std::string evf::FastMonitoringService::macroStateNames
static
Initial value:
= {"Init",
"JobReady",
"RunGiven",
"Running",
"Stopping",
"Done",
"JobEnded",
"Error",
"ErrorEnded",
"End",
"Invalid"}

Definition at line 159 of file FastMonitoringService.h.

◆ microstateDefPath_

std::string evf::FastMonitoringService::microstateDefPath_
private

Definition at line 241 of file FastMonitoringService.h.

Referenced by FastMonitoringService(), and preBeginJob().

◆ moduleLegendFile_

std::string evf::FastMonitoringService::moduleLegendFile_
private

Definition at line 279 of file FastMonitoringService.h.

Referenced by preBeginJob().

◆ moduleLegendFileJson_

std::string evf::FastMonitoringService::moduleLegendFileJson_
private

Definition at line 280 of file FastMonitoringService.h.

Referenced by postBeginJob(), and preBeginJob().

◆ monInit_

std::atomic<bool> evf::FastMonitoringService::monInit_
private

Definition at line 286 of file FastMonitoringService.h.

Referenced by preBeginJob(), and snapshotRunner().

◆ nopath_

const std::string evf::FastMonitoringService::nopath_ = "NoPath"
static

◆ nOutputModules_

unsigned int evf::FastMonitoringService::nOutputModules_ = 0
private

Definition at line 284 of file FastMonitoringService.h.

Referenced by makeModuleLegendaJson(), and preModuleBeginJob().

◆ nStreams_

unsigned int evf::FastMonitoringService::nStreams_
private

◆ nThreads_

unsigned int evf::FastMonitoringService::nThreads_
private

Definition at line 237 of file FastMonitoringService.h.

Referenced by preallocate(), and preBeginJob().

◆ pathLegendFile_

std::string evf::FastMonitoringService::pathLegendFile_
private

Definition at line 281 of file FastMonitoringService.h.

Referenced by preBeginJob().

◆ pathLegendFileJson_

std::string evf::FastMonitoringService::pathLegendFileJson_
private

Definition at line 282 of file FastMonitoringService.h.

Referenced by postBeginJob(), and preBeginJob().

◆ pathNamesReady_

std::vector<bool> evf::FastMonitoringService::pathNamesReady_
private

Definition at line 271 of file FastMonitoringService.h.

◆ processedEventsPerLumi_

std::map<unsigned int, std::pair<unsigned int, bool> > evf::FastMonitoringService::processedEventsPerLumi_
private

◆ reservedMicroStateNames

const edm::ModuleDescription evf::FastMonitoringService::reservedMicroStateNames
static
Initial value:
= {
edm::ModuleDescription("Dummy", "Invalid"),
edm::ModuleDescription("Dummy", "Idle"),
edm::ModuleDescription("Dummy", "FwkOvhSrc"),
edm::ModuleDescription("Dummy", "FwkOvhMod"),
edm::ModuleDescription("Dummy", "FwkEoL"),
edm::ModuleDescription("Dummy", "Input"),
edm::ModuleDescription("Dummy", "DQM"),
edm::ModuleDescription("Dummy", "BoL"),
edm::ModuleDescription("Dummy", "EoL"),
edm::ModuleDescription("Dummy", "GlobalEoL")}

Definition at line 158 of file FastMonitoringService.h.

Referenced by doSnapshot(), postEvent(), postModuleEvent(), postSourceEvent(), postStreamBeginLumi(), postStreamEndLumi(), preBeginJob(), preSourceEvent(), preStreamBeginLumi(), preStreamEndLumi(), and setMicroState().

◆ runDirectory_

std::filesystem::path evf::FastMonitoringService::runDirectory_
private

Definition at line 273 of file FastMonitoringService.h.

Referenced by getRunDirName(), and preBeginJob().

◆ sleepTime_

int evf::FastMonitoringService::sleepTime_
private

Definition at line 238 of file FastMonitoringService.h.

Referenced by preBeginJob(), preGlobalEndLumi(), and snapshotRunner().

◆ slowName_

std::string evf::FastMonitoringService::slowName_
private

Definition at line 242 of file FastMonitoringService.h.

Referenced by preGlobalEndLumi().

◆ snapCounter_

unsigned int evf::FastMonitoringService::snapCounter_ = 0
private

Definition at line 240 of file FastMonitoringService.h.

Referenced by snapshotRunner().

◆ streamCounterUpdating_

std::vector<std::atomic<bool>*> evf::FastMonitoringService::streamCounterUpdating_
private

Definition at line 268 of file FastMonitoringService.h.

Referenced by preBeginJob().

◆ threadIDAvailable_

bool evf::FastMonitoringService::threadIDAvailable_ = false
private

Definition at line 275 of file FastMonitoringService.h.

Referenced by preBeginJob().

◆ totalEventsProcessed_

std::atomic<unsigned long> evf::FastMonitoringService::totalEventsProcessed_
private

Definition at line 277 of file FastMonitoringService.h.

Referenced by postEvent().

◆ workingDirectory_

std::filesystem::path evf::FastMonitoringService::workingDirectory_
private

Definition at line 273 of file FastMonitoringService.h.

Referenced by preBeginJob(), and preGlobalEndLumi().

evf::FastMonitoringService::workingDirectory_
std::filesystem::path workingDirectory_
Definition: FastMonitoringService.h:273
evf::FastMonitoringService::preGlobalEndLumi
void preGlobalEndLumi(edm::GlobalContext const &)
Definition: FastMonitoringService.cc:482
evf::FastMonState::inSupWaitFreeThreadCopying
Definition: FastMonitoringService.h:107
eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
evf::FastMonState::inWaitChunk_lockPolling
Definition: FastMonitoringService.h:140
edm::ActivityRegistry::watchPostStreamEndLumi
void watchPostStreamEndLumi(PostStreamEndLumi::slot_type const &iSlot)
Definition: ActivityRegistry.h:466
edm::ActivityRegistry::watchPreSourceEarlyTermination
void watchPreSourceEarlyTermination(PreSourceEarlyTermination::slot_type const &iSlot)
Definition: ActivityRegistry.h:517
evf::FastMonitoringService::exception_detected_
bool exception_detected_
Definition: FastMonitoringService.h:287
edm::TerminationOrigin::ExceptionFromThisContext
mps_fire.i
i
Definition: mps_fire.py:428
evf::FastMonitoringService::lockStatsDuringLumi_
std::map< unsigned int, std::pair< double, unsigned int > > lockStatsDuringLumi_
Definition: FastMonitoringService.h:261
evf::FastMonitoringService::preStreamEndLumi
void preStreamEndLumi(edm::StreamContext const &)
Definition: FastMonitoringService.cc:594
evf::FastMonState::inSupNewFileWaitChunkCopying
Definition: FastMonitoringService.h:115
evf::FastMonitoringService::fastMonIntervals_
unsigned int fastMonIntervals_
Definition: FastMonitoringService.h:239
evf::FastMonitoringService::runDirectory_
std::filesystem::path runDirectory_
Definition: FastMonitoringService.h:273
evf::FastMonState::inWaitChunk
Definition: FastMonitoringService.h:92
evf::FastMonitoringService::doSnapshot
void doSnapshot(const unsigned int ls, const bool isGlobalEOL)
Definition: FastMonitoringService.cc:817
evf::FastMonState::inSupThrottled
Definition: FastMonitoringService.h:149
evf::FastMonState::inNoRequestWithIdleThreads
Definition: FastMonitoringService.h:99
evf::FastMonitoringService::preSourceEvent
void preSourceEvent(edm::StreamID)
Definition: FastMonitoringService.cc:627
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
evf::nSpecialModules
constexpr int nSpecialModules
Definition: FastMonitoringThread.h:17
evf::FastMonitoringService::getEventsProcessedForLumi
unsigned int getEventsProcessedForLumi(unsigned int lumi, bool *abortFlag=nullptr)
Definition: FastMonitoringService.cc:726
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
evf::FastMonitoringService::processedEventsPerLumi_
std::map< unsigned int, std::pair< unsigned int, bool > > processedEventsPerLumi_
Definition: FastMonitoringService.h:264
evf::FastMonState::inSupNewFileWaitThread
Definition: FastMonitoringService.h:114
Json::arrayValue
array value (ordered list)
Definition: value.h:30
evf::FastMonState::inNoRequest
Definition: FastMonitoringService.h:98
evf::FastMonState::inSupNewFileWaitChunk
Definition: FastMonitoringService.h:116
edm::TerminationOrigin::ExternalSignal
evf::FastMonitoringService::inputLegendFileJson_
std::string inputLegendFileJson_
Definition: FastMonitoringService.h:283
edm::ActivityRegistry::watchPostGlobalEndLumi
void watchPostGlobalEndLumi(PostGlobalEndLumi::slot_type const &iSlot)
Definition: ActivityRegistry.h:426
evf::FastMonitoringService::reservedMicroStateNames
static const edm::ModuleDescription reservedMicroStateNames[FastMonState::mCOUNT]
Definition: FastMonitoringService.h:158
edm::ActivityRegistry::watchJobFailure
void watchJobFailure(JobFailure::slot_type const &iSlot)
convenience function for attaching to signal
Definition: ActivityRegistry.h:178
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
if
if(0==first)
Definition: CAHitNtupletGeneratorKernelsImpl.h:58
to
evf::FastMonitoringService::moduleLegendFileJson_
std::string moduleLegendFileJson_
Definition: FastMonitoringService.h:280
evf::FastMonState::inWaitChunk_noFile
Definition: FastMonitoringService.h:143
cscNeutronWriter_cfi.writer
writer
Definition: cscNeutronWriter_cfi.py:6
evf::FastMonitoringService::fastPath_
std::string fastPath_
Definition: FastMonitoringService.h:242
evf::FastMonitoringService::preSourceEarlyTermination
void preSourceEarlyTermination(edm::TerminationOrigin)
Definition: FastMonitoringService.cc:405
evf::FastMonState::sRunning
Definition: FastMonitoringService.h:71
evf::nReservedPaths
constexpr int nReservedPaths
Definition: FastMonitoringThread.h:18
evf::FastMonitoringService::exceptionInLS_
std::vector< unsigned int > exceptionInLS_
Definition: FastMonitoringService.h:288
throughputFactor
constexpr double throughputFactor()
Definition: FastMonitoringService.cc:29
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
edm::StreamID::value
unsigned int value() const
Definition: StreamID.h:43
evf::FastMonitoringService::postBeginJob
void postBeginJob()
Definition: FastMonitoringService.cc:444
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
evf::FastMonState::inWaitInput_lockPollingCopying
Definition: FastMonitoringService.h:125
evf::FastMonState::inWaitChunk_newFileWaitThreadCopying
Definition: FastMonitoringService.h:145
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
evf::FastMonState::inSupWaitFreeThread
Definition: FastMonitoringService.h:106
evf::FastMonState::sError
Definition: FastMonitoringService.h:76
FedRawDataInputSource::getEventReport
std::pair< bool, unsigned int > getEventReport(unsigned int lumi, bool erase)
Definition: FedRawDataInputSource.cc:1529
edm::ModuleDescription
Definition: ModuleDescription.h:21
evf::FastMonState::sJobReady
Definition: FastMonitoringService.h:69
evf::FastMonState::inWaitChunk_runEnd
Definition: FastMonitoringService.h:142
Utilities.operator
operator
Definition: Utilities.py:24
evf::FastMonitoringService::nThreads_
unsigned int nThreads_
Definition: FastMonitoringService.h:237
evf::FastMonState::inWaitInput_noFile
Definition: FastMonitoringService.h:127
evf::FastMonitoringService::nStreams_
unsigned int nStreams_
Definition: FastMonitoringService.h:236
evf::FastMonState::mFwkEoL
Definition: FastMonitoringService.h:58
edm::ActivityRegistry::watchPostSourceEvent
void watchPostSourceEvent(PostSourceEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:190
evf::FastMonState::inWaitInput_lockPolling
Definition: FastMonitoringService.h:124
visDQMUpload.context
context
Definition: visDQMUpload.py:37
evf::FastMonState::inWaitInput_waitFreeChunk
Definition: FastMonitoringService.h:119
evf::FastMonState::inWaitChunk_fileLimit
Definition: FastMonitoringService.h:134
BXlumiParameters_cfi.lumi
lumi
Definition: BXlumiParameters_cfi.py:6
evf::FastMonitoringService::inputSource_
FedRawDataInputSource * inputSource_
Definition: FastMonitoringService.h:232
evf::FastMonitoringService::postStreamBeginLumi
void postStreamBeginLumi(edm::StreamContext const &)
Definition: FastMonitoringService.cc:590
evf::FastMonState::inNoRequestWithEoLThreads
Definition: FastMonitoringService.h:101
evf::FastMonitoringService::fastPathList_
std::vector< std::string > fastPathList_
Definition: FastMonitoringService.h:289
edm::ActivityRegistry::watchPostEndJob
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
Definition: ActivityRegistry.h:170
edm::ActivityRegistry::watchPreStreamBeginLumi
void watchPreStreamBeginLumi(PreStreamBeginLumi::slot_type const &iSlot)
Definition: ActivityRegistry.h:447
evf::FastMonState::inWaitChunk_waitFreeChunkCopying
Definition: FastMonitoringService.h:136
evf::FastMonitoringService::fastName_
std::string fastName_
Definition: FastMonitoringService.h:242
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
evf::FastMonitoringService::lumiStartTime_
std::map< unsigned int, timeval > lumiStartTime_
Definition: FastMonitoringService.h:247
evf::FastMonitoringService::preGlobalBeginLumi
void preGlobalBeginLumi(edm::GlobalContext const &)
Definition: FastMonitoringService.cc:472
evf::FastMonState::inWaitInput
Definition: FastMonitoringService.h:86
evf::FastMonState::inNewLumi
Definition: FastMonitoringService.h:87
edm::ActivityRegistry::watchPreBeginJob
void watchPreBeginJob(PreBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
Definition: ActivityRegistry.h:151
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:78
evf::FastMonState::inWaitChunk_lockPollingCopying
Definition: FastMonitoringService.h:141
evf::FastMonState::mCOUNT
Definition: FastMonitoringService.h:64
evf::FastMonState::inWaitInput_busy
Definition: FastMonitoringService.h:123
edm::ActivityRegistry::watchPreEvent
void watchPreEvent(PreEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:474
evf::FastMonitoringService::fileLookStart_
timeval fileLookStart_
Definition: FastMonitoringService.h:248
evf::FastMonitoringService::preStreamBeginLumi
void preStreamBeginLumi(edm::StreamContext const &)
Definition: FastMonitoringService.cc:577
evf::FastMonitoringService::postModuleEvent
void postModuleEvent(edm::StreamContext const &, edm::ModuleCallingContext const &)
Definition: FastMonitoringService.cc:651
evf::nReservedModules
constexpr int nReservedModules
Definition: FastMonitoringThread.h:16
evf::FastMonState::inSupFileLimit
Definition: FastMonitoringService.h:103
edm::ActivityRegistry::watchPostBeginJob
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
Definition: ActivityRegistry.h:158
evf::FastMonState::inWaitInput_fileLimit
Definition: FastMonitoringService.h:118
Json::StyledWriter
Writes a Value in JSON format in a human friendly way.
Definition: writer.h:63
evf::FastMonState::inSupBusy
Definition: FastMonitoringService.h:108
evf::FastMonState::inWaitInput_runEnd
Definition: FastMonitoringService.h:126
evf::FastMonState::inWaitInput_waitFreeChunkCopying
Definition: FastMonitoringService.h:120
evf::FastMonitoringService::postModuleEventAcquire
void postModuleEventAcquire(edm::StreamContext const &, edm::ModuleCallingContext const &)
Definition: FastMonitoringService.cc:640
evf::FastMonState::inWaitChunk_newFileWaitChunk
Definition: FastMonitoringService.h:148
evf::FastMonitoringService::postGlobalEndLumi
void postGlobalEndLumi(edm::GlobalContext const &)
Definition: FastMonitoringService.cc:565
evf::MicroStateService::MicroStateService
MicroStateService(const edm::ParameterSet &, edm::ActivityRegistry &)
Definition: FastMonitoringService.cc:995
evf::FastMonitoringService::getAbortFlagForLumi
bool getAbortFlagForLumi(unsigned int lumi)
Definition: FastMonitoringService.cc:744
evf::FastMonState::inSupNewFile
Definition: FastMonitoringService.h:112
evf::FastMonState::mEoL
Definition: FastMonitoringService.h:62
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
edm::ActivityRegistry::watchPostEvent
void watchPostEvent(PostEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:480
ValidateTausOnZEEFastSim_cff.proc
proc
Definition: ValidateTausOnZEEFastSim_cff.py:6
evf::FastMonitoringService::streamCounterUpdating_
std::vector< std::atomic< bool > * > streamCounterUpdating_
Definition: FastMonitoringService.h:268
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
evf::FastMonState::inWaitChunk_busy
Definition: FastMonitoringService.h:139
evf::FastMonState::inSupLockPolling
Definition: FastMonitoringService.h:109
evf::FastMonitoringService::preModuleEvent
void preModuleEvent(edm::StreamContext const &, edm::ModuleCallingContext const &)
Definition: FastMonitoringService.cc:646
CommonMethods.lock
def lock()
Definition: CommonMethods.py:81
edm::ActivityRegistry::watchPreStreamEndLumi
void watchPreStreamEndLumi(PreStreamEndLumi::slot_type const &iSlot)
Definition: ActivityRegistry.h:461
evf::FastMonState::inWaitChunk_waitFreeChunk
Definition: FastMonitoringService.h:135
evf::FastMonState::inWaitInput_waitFreeThread
Definition: FastMonitoringService.h:121
edm::shutdown_flag
volatile std::atomic< bool > shutdown_flag
Definition: UnixSignalHandlers.cc:22
evf::FastMonitoringService::lumiFromSource_
unsigned int lumiFromSource_
Definition: FastMonitoringService.h:252
edm::ActivityRegistry::watchPreStreamEarlyTermination
void watchPreStreamEarlyTermination(PreStreamEarlyTermination::slot_type const &iSlot)
Definition: ActivityRegistry.h:499
evf::FastMonState::inWaitChunk_waitFreeThread
Definition: FastMonitoringService.h:137
evf::FastMonitoringService::pathLegendFile_
std::string pathLegendFile_
Definition: FastMonitoringService.h:281
evf::FastMonState::MCOUNT
Definition: FastMonitoringService.h:80
evf::FastMonitoringService::avgLeadTime_
std::map< unsigned int, double > avgLeadTime_
Definition: FastMonitoringService.h:256
evf::FastMonitoringService::postSourceEvent
void postSourceEvent(edm::StreamID)
Definition: FastMonitoringService.cc:631
edm::Service
Definition: Service.h:30
evf::FastMonState::inWaitInput_newFile
Definition: FastMonitoringService.h:128
evf::FastMonitoringService::monInit_
std::atomic< bool > monInit_
Definition: FastMonitoringService.h:286
evf::FastMonState::inSupWaitFreeChunk
Definition: FastMonitoringService.h:104
evf::FastMonitoringService::preModuleBeginJob
void preModuleBeginJob(edm::ModuleDescription const &)
Definition: FastMonitoringService.cc:429
evf::FastMonState::inWaitInput_newFileWaitThread
Definition: FastMonitoringService.h:130
evf::FastMonitoringService::lastGlobalLumi_
unsigned int lastGlobalLumi_
Definition: FastMonitoringService.h:250
evf::FastMonitoringService::jobFailure
void jobFailure()
Definition: FastMonitoringService.cc:426
evf::FastMonitoringService::prePathEvent
void prePathEvent(edm::StreamContext const &, edm::PathContext const &)
Definition: FastMonitoringService.cc:609
evf::FastMonitoringService::nOutputModules_
unsigned int nOutputModules_
Definition: FastMonitoringService.h:284
evf::FastMonState::mFwkOvhSrc
Definition: FastMonitoringService.h:56
evf::FastMonitoringService::inputState_
std::atomic< FastMonState::InputState > inputState_
Definition: FastMonitoringService.h:233
res
Definition: Electron.h:6
evf::FastMonitoringService::slowName_
std::string slowName_
Definition: FastMonitoringService.h:242
evf::FastMonitoringService::preEvent
void preEvent(edm::StreamContext const &)
Definition: FastMonitoringService.cc:613
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
jsoncollector::IntJ::value
long & value()
Definition: JsonMonitorable.h:88
evf::FastMonState::inWaitChunk_waitFreeThreadCopying
Definition: FastMonitoringService.h:138
evf::FastMonitoringService::postEvent
void postEvent(edm::StreamContext const &)
Definition: FastMonitoringService.cc:615
evf::FastMonState::inSupNoFile
Definition: FastMonitoringService.h:111
evf::FastMonState::sJobEnded
Definition: FastMonitoringService.h:75
evf::FastMonitoringService::isInitTransition_
std::atomic< bool > isInitTransition_
Definition: FastMonitoringService.h:251
edm::ActivityRegistry::watchPreGlobalEndLumi
void watchPreGlobalEndLumi(PreGlobalEndLumi::slot_type const &iSlot)
Definition: ActivityRegistry.h:421
evf::FastMonitoringService::inputSupervisorState_
std::atomic< FastMonState::InputState > inputSupervisorState_
Definition: FastMonitoringService.h:234
edm::ActivityRegistry::watchPreallocate
void watchPreallocate(Preallocate::slot_type const &iSlot)
Definition: ActivityRegistry.h:144
edm::ActivityRegistry::watchPreGlobalEarlyTermination
void watchPreGlobalEarlyTermination(PreGlobalEarlyTermination::slot_type const &iSlot)
Definition: ActivityRegistry.h:508
evf::FastMonitoringService::fmt_
std::shared_ptr< FastMonitoringThread > fmt_
Definition: FastMonitoringService.h:229
edm::ActivityRegistry::watchPostStreamBeginLumi
void watchPostStreamBeginLumi(PostStreamBeginLumi::slot_type const &iSlot)
Definition: ActivityRegistry.h:454
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
evf::FastMonitoringService::nopath_
static const std::string nopath_
Definition: FastMonitoringService.h:162
evf::FastMonitoringService::fileLookStop_
timeval fileLookStop_
Definition: FastMonitoringService.h:248
edm::ActivityRegistry::watchPreGlobalBeginLumi
void watchPreGlobalBeginLumi(PreGlobalBeginLumi::slot_type const &iSlot)
Definition: ActivityRegistry.h:407
evf::FastMonState::inWaitInput_newFileWaitChunk
Definition: FastMonitoringService.h:132
evf::FastMonitoringService::makeInputLegendaJson
std::string makeInputLegendaJson()
Definition: FastMonitoringService.cc:233
edm::TerminationOrigin::ExceptionFromAnotherContext
edm::ActivityRegistry::watchPreModuleBeginJob
void watchPreModuleBeginJob(PreModuleBeginJob::slot_type const &iSlot)
Definition: ActivityRegistry.h:749
evf::FastMonitoringService::preGlobalEarlyTermination
void preGlobalEarlyTermination(edm::GlobalContext const &, edm::TerminationOrigin)
Definition: FastMonitoringService.cc:390
evf::FastMonitoringService::inputStateNames
static const std::string inputStateNames[FastMonState::inCOUNT]
Definition: FastMonitoringService.h:160
edm::ActivityRegistry::watchPostModuleEvent
void watchPostModuleEvent(PostModuleEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:799
evf::FastMonState::mBoL
Definition: FastMonitoringService.h:61
evf::FastMonitoringService::accuSize_
std::map< unsigned int, unsigned long > accuSize_
Definition: FastMonitoringService.h:259
relativeConstraints.empty
bool empty
Definition: relativeConstraints.py:46
edm::ActivityRegistry::watchPostModuleEventAcquire
void watchPostModuleEventAcquire(PostModuleEventAcquire::slot_type const &iSlot)
Definition: ActivityRegistry.h:813
evf::FastMonitoringService::makePathLegendaJson
std::string makePathLegendaJson()
Definition: FastMonitoringService.cc:200
Exception
Definition: hltDiff.cc:245
edm::ActivityRegistry::watchPreSourceEvent
void watchPreSourceEvent(PreSourceEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:184
evf::FastMonitoringService::threadIDAvailable_
bool threadIDAvailable_
Definition: FastMonitoringService.h:275
evf::FastMonitoringService::filePerFwkStream_
bool filePerFwkStream_
Definition: FastMonitoringService.h:243
HiBiasedCentrality_cfi.function
function
Definition: HiBiasedCentrality_cfi.py:4
evf::FastMonState::inSupNewFileWaitThreadCopying
Definition: FastMonitoringService.h:113
evf::FastMonitoringService::makeModuleLegendaJson
std::string makeModuleLegendaJson()
Definition: FastMonitoringService.cc:212
evf::FastMonState::mIdle
Definition: FastMonitoringService.h:55
evf::FastMonState::sInit
Definition: FastMonitoringService.h:68
evf::FastMonitoringService::preallocate
void preallocate(edm::service::SystemBounds const &)
Definition: FastMonitoringService.cc:243
evf::FastMonState::inCOUNT
Definition: FastMonitoringService.h:151
jsoncollector::IntJ
Definition: JsonMonitorable.h:66
funct::void
TEMPL(T2) struct Divides void
Definition: Factorize.h:24
evf::FastMonState::inRunEnd
Definition: FastMonitoringService.h:90
evf::FastMonitoringService::pathLegendFileJson_
std::string pathLegendFileJson_
Definition: FastMonitoringService.h:282
evf::FastMonitoringService::totalEventsProcessed_
std::atomic< unsigned long > totalEventsProcessed_
Definition: FastMonitoringService.h:277
evf::FastMonState::inWaitChunk_newFile
Definition: FastMonitoringService.h:144
evf::FastMonState::mInvalid
Definition: FastMonitoringService.h:54
evf::FastMonState::inWaitChunk_newFileWaitThread
Definition: FastMonitoringService.h:146
evf::FastMonState::mFwkOvhMod
Definition: FastMonitoringService.h:57
evf::FastMonState::mInput
Definition: FastMonitoringService.h:59
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
evf::FastMonitoringService::fastMicrostateDefPath_
std::string fastMicrostateDefPath_
Definition: FastMonitoringService.h:241
evf::FastMonState::inSupWaitFreeChunkCopying
Definition: FastMonitoringService.h:105
evf::FastMonState::inWaitInput_newFileWaitChunkCopying
Definition: FastMonitoringService.h:131
evf::FastMonitoringService::leadTimes_
std::vector< double > leadTimes_
Definition: FastMonitoringService.h:260
evf::FastMonitoringService::microstateDefPath_
std::string microstateDefPath_
Definition: FastMonitoringService.h:241
edm::ActivityRegistry::watchPrePathEvent
void watchPrePathEvent(PrePathEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:486
evf::FastMonitoringService::moduleLegendFile_
std::string moduleLegendFile_
Definition: FastMonitoringService.h:279
evf::FastMonitoringService::postStreamEndLumi
void postStreamEndLumi(edm::StreamContext const &)
Definition: FastMonitoringService.cc:605
edm_modernize_messagelogger.stat
stat
Definition: edm_modernize_messagelogger.py:27
evf::FastMonitoringService::filesProcessedDuringLumi_
std::map< unsigned int, unsigned int > filesProcessedDuringLumi_
Definition: FastMonitoringService.h:257
evf::FastMonitoringService::preStreamEarlyTermination
void preStreamEarlyTermination(edm::StreamContext const &, edm::TerminationOrigin)
Definition: FastMonitoringService.cc:375
evf::FastMonitoringService::snapCounter_
unsigned int snapCounter_
Definition: FastMonitoringService.h:240
evf::FastMonitoringService::postEndJob
void postEndJob()
Definition: FastMonitoringService.cc:462
evf::FastMonitoringService::preBeginJob
void preBeginJob(edm::PathsAndConsumesOfModulesBase const &, edm::ProcessContext const &pc)
Definition: FastMonitoringService.cc:253
edm::ActivityRegistry::watchPreModuleEventAcquire
void watchPreModuleEventAcquire(PreModuleEventAcquire::slot_type const &iSlot)
Definition: ActivityRegistry.h:805
lumi
Definition: LumiSectionData.h:20
evf::FastMonState::inSupLockPollingCopying
Definition: FastMonitoringService.h:110
evf::FastMonState::inWaitInput_waitFreeThreadCopying
Definition: FastMonitoringService.h:122
evf::FastMonitoringService::preModuleEventAcquire
void preModuleEventAcquire(edm::StreamContext const &, edm::ModuleCallingContext const &)
Definition: FastMonitoringService.cc:635
evf::FastMonitoringService::snapshotRunner
void snapshotRunner()
Definition: FastMonitoringService.cc:760
evf::FastMonitoringService::sleepTime_
int sleepTime_
Definition: FastMonitoringService.h:238
edm::ActivityRegistry::watchPreModuleEvent
void watchPreModuleEvent(PreModuleEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:793
Json::Value
Represents a JSON value.
Definition: value.h:99
evf::FastMonState::inWaitInput_newFileWaitThreadCopying
Definition: FastMonitoringService.h:129
evf::FastMonState::inWaitChunk_newFileWaitChunkCopying
Definition: FastMonitoringService.h:147