CMS 3D CMS Logo

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

#include <DataPoint.h>

Inheritance diagram for jsoncollector::DataPoint:
jsoncollector::JsonSerializable

Public Member Functions

 DataPoint ()
 
 DataPoint (std::string const &source, std::string const &definition, bool fast=false)
 
virtual void deserialize (Json::Value &root)
 
void discardCollected (unsigned int forLumi)
 
std::string fastOutCSV (int sid=-1)
 
std::vector< std::string > & getData ()
 
std::string & getDefinition ()
 
std::string const & getName ()
 
void makeStreamLumiMap (unsigned int size)
 
JsonMonitorablemergeAndRetrieveValue (unsigned int forLumi)
 
void mergeAndSerialize (Json::Value &jsonRoot, unsigned int lumi, bool initJsonValue, int sid)
 
virtual void serialize (Json::Value &root) const
 
void serialize (Json::Value &root, bool rootInit, std::string const &input) const
 
void setNBins (unsigned int *nBins)
 
void setOperation (OperationType op)
 
void setStreamLumiPtr (std::vector< unsigned int > *streamLumiPtr)
 
void snap (unsigned int lumi)
 
void snapGlobal (unsigned int lumi)
 
void snapStreamAtomic (unsigned int lumi, unsigned int streamID)
 
void trackDummy (std::string const &name, bool setNAifZeroUpdates)
 
void trackMonitorable (JsonMonitorable *monitorable, bool NAifZeroUpdates)
 
void trackVectorUInt (std::string const &name, std::vector< unsigned int > *monvec, bool NAifZeroUpdates)
 
void trackVectorUIntAtomic (std::string const &name, std::vector< AtomicMonUInt * > *monvec, bool NAifZeroUpdates)
 
void updateDefinition (std::string const &definition)
 
 ~DataPoint ()
 
- Public Member Functions inherited from jsoncollector::JsonSerializable
virtual ~JsonSerializable ()
 

Static Public Attributes

static const std::string DATA = "data"
 
static const std::string DEFINITION = "definition"
 
static const std::string SOURCE = "source"
 

Protected Attributes

uint32_t * buf_ = nullptr
 
unsigned int bufLen_ =0
 
int cacheI_
 
std::vector< std::string > data_
 
std::string definition_
 
unsigned int fastIndex_ = 0
 
MonPtrMap globalDataMap_
 
bool isAtomic_ = false
 
bool isCached_ =0
 
bool isDummy_ = false
 
bool isFastOnly_
 
bool isStream_ = false
 
MonType monType_
 
bool NAifZeroUpdates_ = false
 
std::string name_
 
unsigned int * nBinsPtr_ = nullptr
 
OperationType opType_
 
std::string source_
 
std::vector< MonPtrMapstreamDataMaps_
 
std::vector< unsigned int > * streamLumisPtr_ = nullptr
 
void * tracked_ = nullptr
 

Detailed Description

Definition at line 36 of file DataPoint.h.

Constructor & Destructor Documentation

jsoncollector::DataPoint::DataPoint ( )
inline

Definition at line 40 of file DataPoint.h.

40 { }
jsoncollector::DataPoint::DataPoint ( std::string const &  source,
std::string const &  definition,
bool  fast = false 
)
inline

Definition at line 42 of file DataPoint.h.

42  :
43  source_(source), definition_(definition), isFastOnly_(fast) { }
std::string definition_
Definition: DataPoint.h:128
static std::string const source
Definition: EdmProvDump.cc:43
DataPoint::~DataPoint ( )

Definition at line 31 of file DataPoint.cc.

Member Function Documentation

void DataPoint::deserialize ( Json::Value root)
virtual

JSON deserialization procedure for this class

Implements jsoncollector::JsonSerializable.

Definition at line 56 of file DataPoint.cc.

void DataPoint::discardCollected ( unsigned int  forLumi)

Definition at line 413 of file DataPoint.cc.

std::string DataPoint::fastOutCSV ( int  sid = -1)

Definition at line 251 of file DataPoint.cc.

std::vector<std::string>& jsoncollector::DataPoint::getData ( void  )
inline

Definition at line 58 of file DataPoint.h.

References data_.

58 {return data_;}
std::vector< std::string > data_
Definition: DataPoint.h:129
std::string& jsoncollector::DataPoint::getDefinition ( )
inline

Definition at line 59 of file DataPoint.h.

References definition_.

59 {return definition_;}
std::string definition_
Definition: DataPoint.h:128
std::string const& jsoncollector::DataPoint::getName ( void  )
inline

Definition at line 116 of file DataPoint.h.

References name_.

116 {return name_;}
void DataPoint::makeStreamLumiMap ( unsigned int  size)

Definition at line 107 of file DataPoint.cc.

JsonMonitorable * DataPoint::mergeAndRetrieveValue ( unsigned int  forLumi)

Definition at line 283 of file DataPoint.cc.

void DataPoint::mergeAndSerialize ( Json::Value jsonRoot,
unsigned int  lumi,
bool  initJsonValue,
int  sid 
)

Definition at line 298 of file DataPoint.cc.

void DataPoint::serialize ( Json::Value root) const
virtual

JSON serialization procedure for this class

Implements jsoncollector::JsonSerializable.

Definition at line 43 of file DataPoint.cc.

void DataPoint::serialize ( Json::Value root,
bool  rootInit,
std::string const &  input 
) const

Functions specific to new monitoring implementation

Definition at line 114 of file DataPoint.cc.

void jsoncollector::DataPoint::setNBins ( unsigned int *  nBins)
inline

Definition at line 114 of file DataPoint.h.

References nBinsPtr_.

114 {nBinsPtr_ = nBins;}
unsigned int * nBinsPtr_
Definition: DataPoint.h:152
void jsoncollector::DataPoint::setOperation ( OperationType  op)
inline

Definition at line 92 of file DataPoint.h.

References opType_.

92  {
93  opType_=op;
94  }
OperationType opType_
Definition: DataPoint.h:145
void jsoncollector::DataPoint::setStreamLumiPtr ( std::vector< unsigned int > *  streamLumiPtr)
inline

Definition at line 97 of file DataPoint.h.

References streamLumisPtr_.

97  {
98  streamLumisPtr_=streamLumiPtr;
99  }
std::vector< unsigned int > * streamLumisPtr_
Definition: DataPoint.h:136
void DataPoint::snap ( unsigned int  lumi)

Definition at line 125 of file DataPoint.cc.

void DataPoint::snapGlobal ( unsigned int  lumi)

Definition at line 175 of file DataPoint.cc.

void DataPoint::snapStreamAtomic ( unsigned int  lumi,
unsigned int  streamID 
)

Definition at line 206 of file DataPoint.cc.

void jsoncollector::DataPoint::trackDummy ( std::string const &  name,
bool  setNAifZeroUpdates 
)
inline

Definition at line 82 of file DataPoint.h.

References isDummy_, NAifZeroUpdates_, mergeVDriftHistosByStation::name, and name_.

void DataPoint::trackMonitorable ( JsonMonitorable monitorable,
bool  NAifZeroUpdates 
)

Definition at line 74 of file DataPoint.cc.

void DataPoint::trackVectorUInt ( std::string const &  name,
std::vector< unsigned int > *  monvec,
bool  NAifZeroUpdates 
)

Definition at line 86 of file DataPoint.cc.

void DataPoint::trackVectorUIntAtomic ( std::string const &  name,
std::vector< AtomicMonUInt * > *  monvec,
bool  NAifZeroUpdates 
)

Definition at line 96 of file DataPoint.cc.

void jsoncollector::DataPoint::updateDefinition ( std::string const &  definition)
inline

Definition at line 118 of file DataPoint.h.

References definition_.

118 {definition_=definition;}
std::string definition_
Definition: DataPoint.h:128

Member Data Documentation

uint32_t* jsoncollector::DataPoint::buf_ = nullptr
protected

Definition at line 149 of file DataPoint.h.

unsigned int jsoncollector::DataPoint::bufLen_ =0
protected

Definition at line 150 of file DataPoint.h.

int jsoncollector::DataPoint::cacheI_
protected

Definition at line 153 of file DataPoint.h.

const std::string DataPoint::DATA = "data"
static

Definition at line 123 of file DataPoint.h.

std::vector<std::string> jsoncollector::DataPoint::data_
protected

Definition at line 129 of file DataPoint.h.

Referenced by getData().

const std::string DataPoint::DEFINITION = "definition"
static

Definition at line 122 of file DataPoint.h.

std::string jsoncollector::DataPoint::definition_
protected

Definition at line 128 of file DataPoint.h.

Referenced by getDefinition(), and updateDefinition().

unsigned int jsoncollector::DataPoint::fastIndex_ = 0
protected

Definition at line 156 of file DataPoint.h.

MonPtrMap jsoncollector::DataPoint::globalDataMap_
protected

Definition at line 132 of file DataPoint.h.

bool jsoncollector::DataPoint::isAtomic_ = false
protected

Definition at line 139 of file DataPoint.h.

bool jsoncollector::DataPoint::isCached_ =0
protected

Definition at line 154 of file DataPoint.h.

bool jsoncollector::DataPoint::isDummy_ = false
protected

Definition at line 140 of file DataPoint.h.

Referenced by trackDummy().

bool jsoncollector::DataPoint::isFastOnly_
protected

Definition at line 142 of file DataPoint.h.

bool jsoncollector::DataPoint::isStream_ = false
protected

Definition at line 138 of file DataPoint.h.

MonType jsoncollector::DataPoint::monType_
protected

Definition at line 144 of file DataPoint.h.

bool jsoncollector::DataPoint::NAifZeroUpdates_ = false
protected

Definition at line 141 of file DataPoint.h.

Referenced by trackDummy().

std::string jsoncollector::DataPoint::name_
protected

Definition at line 146 of file DataPoint.h.

Referenced by getName(), and trackDummy().

unsigned int* jsoncollector::DataPoint::nBinsPtr_ = nullptr
protected

Definition at line 152 of file DataPoint.h.

Referenced by setNBins().

OperationType jsoncollector::DataPoint::opType_
protected

Definition at line 145 of file DataPoint.h.

Referenced by setOperation().

const std::string DataPoint::SOURCE = "source"
static

Definition at line 121 of file DataPoint.h.

std::string jsoncollector::DataPoint::source_
protected

Definition at line 127 of file DataPoint.h.

std::vector<MonPtrMap> jsoncollector::DataPoint::streamDataMaps_
protected

Definition at line 131 of file DataPoint.h.

std::vector<unsigned int>* jsoncollector::DataPoint::streamLumisPtr_ = nullptr
protected

Definition at line 136 of file DataPoint.h.

Referenced by setStreamLumiPtr().

void* jsoncollector::DataPoint::tracked_ = nullptr
protected

Definition at line 133 of file DataPoint.h.