CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
jsoncollector::FastMonitor Class Reference

#include <FastMonitor.h>

Public Member Functions

void addFastPathDefinition (std::string const &defPathFast, std::string const defGroupFast, bool strict)
 
void commit (std::vector< unsigned int > *streamLumisPtr)
 
void discardCollected (unsigned int forLumi)
 
 FastMonitor (std::string const &defPath, std::string const defGroup, bool strictChecking, bool useSource=true, bool useDefinition=true)
 
 FastMonitor (DataPointDefinition *dpd, bool strictChecking, bool useSource=true, bool useDefinition=true)
 
std::string getCSVString (int sid=-1)
 
void getHostAndPID (std::string &sHPid)
 
JsonMonitorablegetMergedIntJForLumi (std::string const &name, unsigned int forLumi)
 
void outputCSV (std::string const &path, std::string const &csvString)
 
bool outputFullJSON (std::string const &path, unsigned int lumi)
 
bool outputFullJSONs (std::string const &pathstem, std::string const &ext, unsigned int lumi)
 
void registerFastGlobalMonitorable (JsonMonitorable *newMonitorable)
 
void registerGlobalMonitorable (JsonMonitorable *newMonitorable, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
 
void registerStreamMonitorableUIntVec (std::string const &name, std::vector< unsigned int > *inputs, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
 
void registerStreamMonitorableUIntVecAtomic (std::string const &name, std::vector< AtomicMonUInt * > *inputs, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
 
void setDefPath (std::string const &dpath)
 
void setNStreams (unsigned int nStreams)
 
void snap (unsigned int ls)
 
void snapGlobal (unsigned int ls)
 
void snapStreamAtomic (unsigned int ls, unsigned int streamID)
 
virtual ~FastMonitor ()
 

Private Attributes

std::vector< DataPoint * > dataPoints_
 
std::vector< DataPoint * > dataPointsFastOnly_
 
std::string defPath_
 
std::string defPathFast_
 
bool deleteDef_ =false
 
bool deleteDefFast_ =false
 
DataPointDefinitiondpd_
 
DataPointDefinitiondpdFast_
 
std::map< std::string,
unsigned int > 
dpNameMap_
 
bool fastPathStrictChecking_
 
unsigned int fregDpCount_ = 0
 
bool haveFastPath_ =false
 
std::vector< unsigned int > jsonDpIndex_
 
std::vector< DataPoint * > jsonDpIndexFast_
 
unsigned int nStreams_
 
std::vector< DataPoint * > orphanedDps_
 
unsigned int recentSnaps_ = 0
 
unsigned int recentSnapsTimer_ = 0
 
unsigned int regDpCount_ = 0
 
std::string sourceInfo_
 
bool strictChecking_
 
std::unordered_set< std::string > uids_
 
bool useDefinition_
 
bool useSource_
 

Detailed Description

Definition at line 19 of file FastMonitor.h.

Constructor & Destructor Documentation

FastMonitor::FastMonitor ( std::string const &  defPath,
std::string const  defGroup,
bool  strictChecking,
bool  useSource = true,
bool  useDefinition = true 
)

Definition at line 23 of file FastMonitor.cc.

FastMonitor::FastMonitor ( DataPointDefinition dpd,
bool  strictChecking,
bool  useSource = true,
bool  useDefinition = true 
)

Definition at line 37 of file FastMonitor.cc.

FastMonitor::~FastMonitor ( )
virtual

Definition at line 45 of file FastMonitor.cc.

Member Function Documentation

void FastMonitor::addFastPathDefinition ( std::string const &  defPathFast,
std::string const  defGroupFast,
bool  strict 
)

Definition at line 52 of file FastMonitor.cc.

void FastMonitor::commit ( std::vector< unsigned int > *  streamLumisPtr)

Definition at line 110 of file FastMonitor.cc.

void FastMonitor::discardCollected ( unsigned int  forLumi)

Definition at line 290 of file FastMonitor.cc.

std::string FastMonitor::getCSVString ( int  sid = -1)

Definition at line 218 of file FastMonitor.cc.

void FastMonitor::getHostAndPID ( std::string &  sHPid)

Definition at line 295 of file FastMonitor.cc.

JsonMonitorable * FastMonitor::getMergedIntJForLumi ( std::string const &  name,
unsigned int  forLumi 
)

Definition at line 243 of file FastMonitor.cc.

void FastMonitor::outputCSV ( std::string const &  path,
std::string const &  csvString 
)

Definition at line 232 of file FastMonitor.cc.

bool FastMonitor::outputFullJSON ( std::string const &  path,
unsigned int  lumi 
)

Definition at line 273 of file FastMonitor.cc.

bool FastMonitor::outputFullJSONs ( std::string const &  pathstem,
std::string const &  ext,
unsigned int  lumi 
)

Definition at line 250 of file FastMonitor.cc.

void FastMonitor::registerFastGlobalMonitorable ( JsonMonitorable newMonitorable)

Definition at line 76 of file FastMonitor.cc.

void FastMonitor::registerGlobalMonitorable ( JsonMonitorable newMonitorable,
bool  NAifZeroUpdates,
unsigned int *  nBins = nullptr 
)

Definition at line 63 of file FastMonitor.cc.

void FastMonitor::registerStreamMonitorableUIntVec ( std::string const &  name,
std::vector< unsigned int > *  inputs,
bool  NAifZeroUpdates,
unsigned int *  nBins = nullptr 
)

Definition at line 84 of file FastMonitor.cc.

void FastMonitor::registerStreamMonitorableUIntVecAtomic ( std::string const &  name,
std::vector< AtomicMonUInt * > *  inputs,
bool  NAifZeroUpdates,
unsigned int *  nBins = nullptr 
)

Definition at line 96 of file FastMonitor.cc.

void jsoncollector::FastMonitor::setDefPath ( std::string const &  dpath)
inline

Definition at line 30 of file FastMonitor.h.

References dataPoints_, defPath_, and reco::dp.

30 {defPath_=dpath;for (auto dp : dataPoints_) dp->updateDefinition(dpath);}
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:101
auto dp
Definition: deltaR.h:22
void jsoncollector::FastMonitor::setNStreams ( unsigned int  nStreams)
inline

Definition at line 32 of file FastMonitor.h.

References nStreams_.

32 {nStreams_=nStreams;}
void FastMonitor::snap ( unsigned int  ls)

Definition at line 191 of file FastMonitor.cc.

void FastMonitor::snapGlobal ( unsigned int  ls)

Definition at line 201 of file FastMonitor.cc.

void FastMonitor::snapStreamAtomic ( unsigned int  ls,
unsigned int  streamID 
)

Definition at line 210 of file FastMonitor.cc.

Member Data Documentation

std::vector<DataPoint*> jsoncollector::FastMonitor::dataPoints_
private

Definition at line 101 of file FastMonitor.h.

Referenced by setDefPath().

std::vector<DataPoint*> jsoncollector::FastMonitor::dataPointsFastOnly_
private

Definition at line 102 of file FastMonitor.h.

std::string jsoncollector::FastMonitor::defPath_
private

Definition at line 85 of file FastMonitor.h.

Referenced by setDefPath().

std::string jsoncollector::FastMonitor::defPathFast_
private

Definition at line 86 of file FastMonitor.h.

bool jsoncollector::FastMonitor::deleteDef_ =false
private

Definition at line 98 of file FastMonitor.h.

bool jsoncollector::FastMonitor::deleteDefFast_ =false
private

Definition at line 99 of file FastMonitor.h.

DataPointDefinition* jsoncollector::FastMonitor::dpd_
private

Definition at line 96 of file FastMonitor.h.

DataPointDefinition* jsoncollector::FastMonitor::dpdFast_
private

Definition at line 97 of file FastMonitor.h.

std::map<std::string,unsigned int> jsoncollector::FastMonitor::dpNameMap_
private

Definition at line 106 of file FastMonitor.h.

bool jsoncollector::FastMonitor::fastPathStrictChecking_
private

Definition at line 88 of file FastMonitor.h.

unsigned int jsoncollector::FastMonitor::fregDpCount_ = 0
private

Definition at line 111 of file FastMonitor.h.

bool jsoncollector::FastMonitor::haveFastPath_ =false
private

Definition at line 91 of file FastMonitor.h.

std::vector<unsigned int> jsoncollector::FastMonitor::jsonDpIndex_
private

Definition at line 103 of file FastMonitor.h.

std::vector<DataPoint*> jsoncollector::FastMonitor::jsonDpIndexFast_
private

Definition at line 104 of file FastMonitor.h.

unsigned int jsoncollector::FastMonitor::nStreams_
private

Definition at line 93 of file FastMonitor.h.

Referenced by setNStreams().

std::vector<DataPoint*> jsoncollector::FastMonitor::orphanedDps_
private

Definition at line 105 of file FastMonitor.h.

unsigned int jsoncollector::FastMonitor::recentSnaps_ = 0
private

Definition at line 108 of file FastMonitor.h.

unsigned int jsoncollector::FastMonitor::recentSnapsTimer_ = 0
private

Definition at line 109 of file FastMonitor.h.

unsigned int jsoncollector::FastMonitor::regDpCount_ = 0
private

Definition at line 110 of file FastMonitor.h.

std::string jsoncollector::FastMonitor::sourceInfo_
private

Definition at line 95 of file FastMonitor.h.

bool jsoncollector::FastMonitor::strictChecking_
private

Definition at line 87 of file FastMonitor.h.

std::unordered_set<std::string> jsoncollector::FastMonitor::uids_
private

Definition at line 113 of file FastMonitor.h.

bool jsoncollector::FastMonitor::useDefinition_
private

Definition at line 90 of file FastMonitor.h.

bool jsoncollector::FastMonitor::useSource_
private

Definition at line 89 of file FastMonitor.h.