13 {
"Init",
"JobReady",
"RunGiven",
"Running",
14 "Stopping",
"Done",
"JobEnded",
"Error",
"ErrorEnded",
"End",
24 ,sleepTime_(iPS.getUntrackedParameter<int>(
"sleepTime", 1))
26 ,microstateDefPath_(iPS.getUntrackedParameter<
string>(
"microstateDefPath",
"/tmp/def.jsd"))
27 ,outputDefPath_(iPS.getUntrackedParameter<
string>(
"outputDefPath",
"/tmp/def.jsd"))
28 ,fastName_(iPS.getUntrackedParameter<
string>(
"fastName",
"states"))
29 ,slowName_(iPS.getUntrackedParameter<
string>(
"slowName",
"lumi"))
53 for(
unsigned int i = 0;
i < (
mCOUNT);
i++)
65 vector<JsonMonitorable*> monParams;
82 bool foundMonDir =
false;
86 std::cout <<
"<MON> DIR NOT FOUND!" << std::endl;
90 std::ostringstream fastFileName;
92 fastFileName <<
fastName_ <<
"_pid" << std::setfill(
'0') << std::setw(5) << getpid() <<
".fast";
94 fast /= fastFileName.str();
104 <<
"FastMonitoringService: initializing FastMonitor with microstate def path: "
135 std::cout <<
">>>>>>>>>>>>>>>>>>>>>>>>>>update path map with " << pathName << std::endl;
141 std::cout <<
"path legenda*****************" << std::endl;
154 std::ostringstream ost;
164 std::ostringstream ost;
178 std::cout <<
"path legenda*****************" << std::endl;
180 std::cout <<
"module legenda***************" << std::endl;
203 std::cout <<
"FastMonitoringService: LUMI: " << iID.
luminosityBlock() <<
" ended! Writing JSON information..." << std::endl;
212 <<
">>> >>> FastMonitoringService: processed event count for this lumi = "
217 std::stringstream slowFileName;
218 slowFileName <<
slowName_ <<
"_ls" << std::setfill(
'0') << std::setw(4)
220 << std::setw(5) << getpid() <<
".jsn";
222 slow /= slowFileName.str();
320 unsigned int FastMonitoringService::getEventsProcessedForLumi(
unsigned int lumi) {
321 return processedEventsPerLumi_[
lumi];
void watchPostBeginRun(PostBeginRun::slot_type const &iSlot)
static const edm::ModuleDescription reservedMicroStateNames[mCOUNT]
unsigned int lumisection_
void postSourceEvent(edm::StreamID)
void startedLookingForFile()
IntJ filesProcessedDuringLumi_
void preBeginLumi(edm::LuminosityBlockID const &iID, edm::Timestamp const &iTime)
boost::filesystem::path runDirectory_
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
void start(void(FastMonitoringService::*fp)(), FastMonitoringService *cp)
FastMonitoringThread fmt_
void preEventProcessing(const edm::EventID &, const edm::Timestamp &)
void watchPostModule(PostModule::slot_type const &iSlot)
void watchPreProcessEvent(PreProcessEvent::slot_type const &iSlot)
void watchPreEndLumi(PreEndLumi::slot_type const &iSlot)
std::string const & moduleName() const
void watchPostSourceEvent(PostSourceEvent::slot_type const &iSlot)
std::unordered_map< unsigned int, int > processedEventsPerLumi_
void watchPreModule(PreModule::slot_type const &iSlot)
void prePathBeginRun(const std::string &pathName)
void watchJobFailure(JobFailure::slot_type const &iSlot)
convenience function for attaching to signal
void preEndLumi(edm::LuminosityBlockID const &iID, edm::Timestamp const &iTime)
void updateReserved(void *add)
void watchPostProcessEvent(PostProcessEvent::slot_type const &iSlot)
void watchPrePathBeginRun(PrePathBeginRun::slot_type const &iSlot)
boost::shared_ptr< FastMonitor > jsonMonitor_
void setName(string name)
static const std::string nopath_
void postBeginRun(edm::Run const &, edm::EventSetup const &)
static const std::string macroStateNames[FastMonitoringThread::MCOUNT]
void watchPreModuleBeginJob(PreModuleBeginJob::slot_type const &iSlot)
void completeReservedWithDummies()
void preProcessPath(const std::string &pathName)
void preSourceEvent(edm::StreamID)
void preModule(const edm::ModuleDescription &)
LuminosityBlockNumber_t luminosityBlock() const
std::vector< double > leadTimes_
void postModule(const edm::ModuleDescription &)
std::string makePathLegenda()
void preModuleBeginJob(const edm::ModuleDescription &desc)
boost::filesystem::path workingDirectory_
void watchPreBeginLumi(PreBeginLumi::slot_type const &iSlot)
void watchPreSourceEvent(PreSourceEvent::slot_type const &iSlot)
void stoppedLookingForFile()
const void * decode(unsigned int index)
void postEventProcessing(const edm::Event &, const edm::EventSetup &)
void accummulateFileSize(unsigned long fileSize)
void watchPreProcessPath(PreProcessPath::slot_type const &iSlot)
void setMicroState(Microstate)
FastMonitoringService(const edm::ParameterSet &, edm::ActivityRegistry &)
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
string microstateDefPath_
std::string makeModuleLegenda()