Go to the documentation of this file. 1 #ifndef EvFFastMonitoringService_H
2 #define EvFFastMonitoringService_H 1
22 #include <unordered_map>
49 class FastMonitoringThread;
51 namespace FastMonState {
207 void reportLockWait(
unsigned int ls,
double waitTime,
unsigned int lockCount);
222 void doSnapshot(
const unsigned int ls,
const bool isGlobalEOL);
227 std::shared_ptr<FastMonitoringThread>
fmt_;
std::filesystem::path workingDirectory_
void preGlobalEndLumi(edm::GlobalContext const &)
std::map< unsigned int, std::pair< double, unsigned int > > lockStatsDuringLumi_
void preStreamEndLumi(edm::StreamContext const &)
unsigned int fastMonIntervals_
std::filesystem::path runDirectory_
bool shouldWriteFiles(unsigned int lumi, unsigned int *proc=nullptr)
void doSnapshot(const unsigned int ls, const bool isGlobalEOL)
std::string getRunDirName() const
void preSourceEvent(edm::StreamID)
unsigned int getEventsProcessedForLumi(unsigned int lumi, bool *abortFlag=nullptr)
std::map< unsigned int, std::pair< unsigned int, bool > > processedEventsPerLumi_
std::string inputLegendFileJson_
std::vector< std::atomic< bool > * > collectedPathList_
static const edm::ModuleDescription reservedMicroStateNames[FastMonState::mCOUNT]
std::string moduleLegendFileJson_
void preSourceEarlyTermination(edm::TerminationOrigin)
std::vector< unsigned int > exceptionInLS_
void setInputSource(FedRawDataInputSource *inputSource)
static const std::string macroStateNames[FastMonState::MCOUNT]
FastMonitoringService(const edm::ParameterSet &, edm::ActivityRegistry &)
void accumulateFileSize(unsigned int lumi, unsigned long fileSize)
FedRawDataInputSource * inputSource_
void postStreamBeginLumi(edm::StreamContext const &)
std::vector< std::string > fastPathList_
std::map< unsigned int, timeval > lumiStartTime_
void preGlobalBeginLumi(edm::GlobalContext const &)
void preStreamBeginLumi(edm::StreamContext const &)
void postModuleEvent(edm::StreamContext const &, edm::ModuleCallingContext const &)
void postModuleEventAcquire(edm::StreamContext const &, edm::ModuleCallingContext const &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void postGlobalEndLumi(edm::GlobalContext const &)
bool getAbortFlagForLumi(unsigned int lumi)
~FastMonitoringService() override
std::vector< std::atomic< bool > * > streamCounterUpdating_
void preModuleEvent(edm::StreamContext const &, edm::ModuleCallingContext const &)
unsigned int lumiFromSource_
std::string pathLegendFile_
std::map< unsigned int, double > avgLeadTime_
void postSourceEvent(edm::StreamID)
std::atomic< bool > monInit_
void setMicroState(FastMonState::Microstate)
void preModuleBeginJob(edm::ModuleDescription const &)
unsigned int lastGlobalLumi_
void prePathEvent(edm::StreamContext const &, edm::PathContext const &)
unsigned int nOutputModules_
std::atomic< FastMonState::InputState > inputState_
void postGlobalBeginRun(edm::GlobalContext const &)
void preEvent(edm::StreamContext const &)
void reportLockWait(unsigned int ls, double waitTime, unsigned int lockCount)
void postEvent(edm::StreamContext const &)
std::atomic< bool > isInitTransition_
std::atomic< FastMonState::InputState > inputSupervisorState_
std::shared_ptr< FastMonitoringThread > fmt_
void setInState(FastMonState::InputState inputState)
static const std::string nopath_
std::string makeInputLegendaJson()
void preGlobalEarlyTermination(edm::GlobalContext const &, edm::TerminationOrigin)
static const std::string inputStateNames[FastMonState::inCOUNT]
std::map< unsigned int, unsigned long > accuSize_
std::string makePathLegendaJson()
void startedLookingForFile()
std::string makeModuleLegendaJson()
void preallocate(edm::service::SystemBounds const &)
void setExceptionDetected(unsigned int ls)
std::string pathLegendFileJson_
std::atomic< unsigned long > totalEventsProcessed_
std::string fastMicrostateDefPath_
std::vector< double > leadTimes_
std::string microstateDefPath_
std::string moduleLegendFile_
void postStreamEndLumi(edm::StreamContext const &)
std::map< unsigned int, unsigned int > filesProcessedDuringLumi_
void preStreamEarlyTermination(edm::StreamContext const &, edm::TerminationOrigin)
unsigned int snapCounter_
void stoppedLookingForFile(unsigned int lumi)
void preBeginJob(edm::PathsAndConsumesOfModulesBase const &, edm::ProcessContext const &pc)
void setInStateSup(FastMonState::InputState inputState)
void preModuleEventAcquire(edm::StreamContext const &, edm::ModuleCallingContext const &)
std::vector< bool > pathNamesReady_