1 #ifndef EVF_FASTMONITORINGTHREAD 2 #define EVF_FASTMONITORINGTHREAD 20 namespace FastMonState {
32 m_value.store(iValue, std::memory_order_relaxed);
35 operator T() {
return m_value.load(std::memory_order_relaxed); }
61 std::unordered_map<const void*, int>::const_iterator it =
quickReference_.find((
void*)
add);
154 std::vector<ContainableAtomic<const std::string*>>
ministate_;
192 for (
unsigned int i = 0;
i < nStreams;
i++) {
209 if (nThreads <= nStreams)
232 jsonMonitor_ = std::make_unique<jsoncollector::FastMonitor>(microStateDefPath, defGroup,
false);
233 if (!fastMicroStateDefPath.empty())
234 jsonMonitor_->addFastPathDefinition(fastMicroStateDefPath, defGroup,
false);
std::vector< ContainableAtomic< unsigned char > > microstateAcqFlag_
void registerFastGlobalMonitorable(JsonMonitorable *newMonitorable)
std::vector< const void * > decoder_
void update(const void *add)
jsoncollector::IntJ fastEventsProcessedJ_
ContainableAtomic(ContainableAtomic< T > const &iOther)
ContainableAtomic(T iValue)
std::vector< ContainableAtomic< const std::string * > > ministate_
void registerStreamMonitorableUIntVecAtomic(std::string const &name, std::vector< AtomicMonUInt *> *inputs, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
void start(void(FastMonitoringService::*fp)(), FastMonitoringService *cp)
const void * decode(unsigned int index)
std::atomic< FastMonState::Macrostate > macrostate_
void updatePreinit(std::string const &add)
unsigned int microstateBins_
edm::ModuleDescription * dummiesForReserved_
jsoncollector::DoubleJ fastThroughputJ_
unsigned int varIndexThrougput_
std::unordered_map< std::string, int > quickReferencePreinit_
std::shared_ptr< std::thread > m_thread
int encodeString(const std::string *add)
constexpr int nSpecialModules
unsigned int inputstateBins_
void registerGlobalMonitorable(JsonMonitorable *newMonitorable, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
jsoncollector::IntJ fastMacrostateJ_
void registerVariables(jsoncollector::FastMonitor *fm, unsigned int nStreams, unsigned int nThreads)
std::vector< unsigned int > threadMicrostateEncoded_
virtual void setName(std::string name)
void registerStreamMonitorableUIntVec(std::string const &name, std::vector< unsigned int > *inputs, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
std::unique_ptr< jsoncollector::FastMonitor > jsonMonitor_
jsoncollector::IntJ fastFilesProcessedJ_
jsoncollector::DoubleJ fastAvgLeadTimeJ_
void resetFastMonitor(std::string const µStateDefPath, std::string const &fastMicroStateDefPath)
jsoncollector::DoubleJ fastLockWaitJ_
void commit(std::vector< unsigned int > *streamLumisPtr)
constexpr int nReservedPaths
unsigned int AtomicMonUInt
std::vector< unsigned int > microstateEncoded_
std::vector< ContainableAtomic< const void * > > threadMicrostate_
constexpr int nReservedModules
jsoncollector::IntJ fastPathProcessedJ_
void updateReserved(const void *add)
std::vector< FastMonEncoding > encPath_
std::vector< ContainableAtomic< const void * > > microstate_
void fillReserved(const void *add, unsigned int i)
void add(std::map< std::string, TH1 *> &h, TH1 *hist)
jsoncollector::IntJ fastLockCountJ_
std::atomic< bool > m_stoprequest
FastMonEncoding encModule_
std::vector< jsoncollector::AtomicMonUInt * > processed_
FastMonEncoding(unsigned int res)
int encode(const void *add) const
unsigned int macrostateBins_
std::vector< unsigned int > streamLumi_
unsigned int ministateBins_
std::vector< unsigned int > inputState_
std::vector< unsigned int > ministateEncoded_
void completeReservedWithDummies()
std::unordered_map< const void *, int > quickReference_
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)
ContainableAtomic< T > & operator=(T iValue)