CMS 3D CMS Logo

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)
 
void deserialize (Json::Value &root) override
 
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)
 
void serialize (Json::Value &root) const override
 
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 () override
 
- 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_ = false
 
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

◆ DataPoint() [1/2]

jsoncollector::DataPoint::DataPoint ( )
inline

Definition at line 38 of file DataPoint.h.

38 {}

◆ DataPoint() [2/2]

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

Definition at line 40 of file DataPoint.h.

41  : source_(source), definition_(definition), isFastOnly_(fast) {}

◆ ~DataPoint()

DataPoint::~DataPoint ( )
override

Definition at line 30 of file DataPoint.cc.

30  {
31  if (buf_)
32  delete[] buf_;
33 }

References buf_.

Member Function Documentation

◆ deserialize()

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

JSON deserialization procedure for this class

Implements jsoncollector::JsonSerializable.

Definition at line 52 of file DataPoint.cc.

52  {
53  source_ = root.get(SOURCE, "").asString();
54  definition_ = root.get(DEFINITION, "").asString();
55  if (root.get(DATA, "").isArray()) {
56  unsigned int size = root.get(DATA, "").size();
57  for (unsigned int i = 0; i < size; i++) {
58  data_.push_back(root.get(DATA, "")[i].asString());
59  }
60  }
61 }

References DATA, data_, DEFINITION, definition_, mps_fire::i, findQualityFiles::size, SOURCE, and source_.

◆ discardCollected()

void DataPoint::discardCollected ( unsigned int  forLumi)

Definition at line 402 of file DataPoint.cc.

402  {
403  for (unsigned int i = 0; i < streamDataMaps_.size(); i++) {
404  auto itr = streamDataMaps_[i].find(lumi);
405  if (itr != streamDataMaps_[i].end())
406  streamDataMaps_[i].erase(lumi);
407  }
408 
409  auto itr = globalDataMap_.find(lumi);
410  if (itr != globalDataMap_.end())
411  globalDataMap_.erase(lumi);
412 }

References end, globalDataMap_, mps_fire::i, and streamDataMaps_.

◆ fastOutCSV()

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

Definition at line 241 of file DataPoint.cc.

241  {
242  if (tracked_) {
243  if (isStream_) {
244  std::stringstream ss;
245  if (sid < 0) {
246  if (isAtomic_) {
247  // if ATOMIC_LEVEL>0
248  // ss << (unsigned int) (static_cast<std::vector<AtomicMonUInt*>*>(tracked_))->at(fastIndex_)->load(std::memory_order_relaxed);
249 
250  ss << (unsigned int)*((static_cast<std::vector<AtomicMonUInt *> *>(tracked_))->at(fastIndex_));
251  fastIndex_ = (fastIndex_ + 1) % (static_cast<std::vector<AtomicMonUInt *> *>(tracked_))->size();
252  } else {
253  ss << (static_cast<std::vector<unsigned int> *>(tracked_))->at(fastIndex_);
254  fastIndex_ = (fastIndex_ + 1) % (static_cast<std::vector<unsigned int> *>(tracked_))->size();
255  }
256 
257  } else {
258  if (isAtomic_)
259  ss << (unsigned int)*((static_cast<std::vector<AtomicMonUInt *> *>(tracked_))->at(unsigned(sid)));
260  else
261  ss << (static_cast<std::vector<unsigned int> *>(tracked_))->at(unsigned(sid));
262  }
263  return ss.str();
264  }
265  return (static_cast<JsonMonitorable *>(tracked_))->toString();
266  }
267  return std::string("");
268 }

References fastIndex_, createfilelist::int, isAtomic_, isStream_, findQualityFiles::size, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and tracked_.

◆ getData()

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

Definition at line 56 of file DataPoint.h.

56 { return data_; }

References data_.

◆ getDefinition()

std::string& jsoncollector::DataPoint::getDefinition ( )
inline

Definition at line 57 of file DataPoint.h.

57 { return definition_; }

References definition_.

◆ getName()

std::string const& jsoncollector::DataPoint::getName ( void  )
inline

Definition at line 109 of file DataPoint.h.

109 { return name_; }

References name_.

Referenced by plotting.Plot::draw().

◆ makeStreamLumiMap()

void DataPoint::makeStreamLumiMap ( unsigned int  size)

Definition at line 104 of file DataPoint.cc.

104  {
105  for (unsigned int i = 0; i < size; i++) {
106  streamDataMaps_.push_back(MonPtrMap());
107  }
108 }

References mps_fire::i, findQualityFiles::size, and streamDataMaps_.

Referenced by trackVectorUInt(), and trackVectorUIntAtomic().

◆ mergeAndRetrieveValue()

JsonMonitorable * DataPoint::mergeAndRetrieveValue ( unsigned int  forLumi)

Definition at line 270 of file DataPoint.cc.

270  {
271  assert(monType_ == TYPEUINT && isStream_); //for now only support UINT and SUM for stream variables
272  IntJ *newJ = new IntJ;
273  for (unsigned int i = 0; i < streamDataMaps_.size(); i++) {
274  auto itr = streamDataMaps_[i].find(lumi);
275  if (itr != streamDataMaps_[i].end()) {
276  newJ->add(static_cast<IntJ *>(itr->second.get())->value());
277  }
278  }
279  cacheI_ = newJ->value();
280  isCached_ = true;
281  return newJ; //assume the caller takes care of deleting the object
282 }

References jsoncollector::IntJ::add(), cms::cuda::assert(), cacheI_, end, mps_fire::i, isCached_, isStream_, monType_, streamDataMaps_, jsoncollector::TYPEUINT, relativeConstraints::value, and jsoncollector::IntJ::value().

◆ mergeAndSerialize()

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

Definition at line 284 of file DataPoint.cc.

284  {
285  if (initJsonValue) {
286  root[SOURCE] = source_;
288  }
289 
290  if (isDummy_) {
291  root[DATA].append("N/A");
292  return;
293  }
294  if (!isStream_) {
295  auto itr = globalDataMap_.find(lumi);
296  if (itr != globalDataMap_.end()) {
297  root[DATA].append(itr->second.get()->toString());
298  } else {
299  if (NAifZeroUpdates_)
300  root[DATA].append("N/A");
301  else if (monType_ == TYPESTRING)
302  root[DATA].append("");
303  else
304  root[DATA].append("0");
305  }
306  return;
307  } else {
309  if (isCached_) {
310  std::stringstream ss;
311  ss << cacheI_;
312  root[DATA].append(ss.str());
313  return;
314  }
315  if (opType_ != OPHISTO) { //sum is default
316  std::stringstream ss;
317  unsigned int updates = 0;
318  unsigned int sum = 0;
319  if (sid < 1)
320  for (unsigned int i = 0; i < streamDataMaps_.size(); i++) {
321  auto itr = streamDataMaps_[i].find(lumi);
322  if (itr != streamDataMaps_[i].end()) {
323  sum += static_cast<IntJ *>(itr->second.get())->value();
324  updates++;
325  }
326  }
327  else {
328  auto itr = streamDataMaps_[unsigned(sid)].find(lumi);
329  if (itr != streamDataMaps_[unsigned(sid)].end()) {
330  sum += static_cast<IntJ *>(itr->second.get())->value();
331  updates++;
332  }
333  }
334  if (!updates && NAifZeroUpdates_)
335  ss << "N/A";
336  ss << sum;
337  root[DATA].append(ss.str());
338  return;
339  }
340  if (opType_ == OPHISTO) {
341  if (nBinsPtr_ == nullptr) {
342  root[DATA].append("N/A");
343  return;
344  }
345  if (*nBinsPtr_ > bufLen_) {
346  if (buf_)
347  delete[] buf_;
348  bufLen_ = *nBinsPtr_;
349  buf_ = new uint32_t[bufLen_];
350  }
351  memset(buf_, 0, bufLen_ * sizeof(uint32_t));
352  unsigned int updates = 0;
353  if (sid < 1)
354  for (unsigned int i = 0; i < streamDataMaps_.size(); i++) {
355  auto itr = streamDataMaps_[i].find(lumi);
356  if (itr != streamDataMaps_[i].end()) {
357  HistoJ<unsigned int> *monObj = static_cast<HistoJ<unsigned int> *>(itr->second.get());
358  updates += monObj->getUpdates();
359  auto &hvec = monObj->value();
360  for (unsigned int j = 0; j < hvec.size(); j++) {
361  unsigned int thisbin = (unsigned int)hvec[j];
362  if (thisbin < *nBinsPtr_) {
363  buf_[thisbin]++;
364  }
365  }
366  }
367  }
368  else {
369  auto itr = streamDataMaps_[unsigned(sid)].find(lumi);
370  if (itr != streamDataMaps_[unsigned(sid)].end()) {
371  HistoJ<unsigned int> *monObj = static_cast<HistoJ<unsigned int> *>(itr->second.get());
372  updates += monObj->getUpdates();
373  auto &hvec = monObj->value();
374  for (unsigned int j = 0; j < hvec.size(); j++) {
375  unsigned int thisbin = (unsigned int)hvec[j];
376  if (thisbin < *nBinsPtr_) {
377  buf_[thisbin]++;
378  }
379  }
380  }
381  }
382  std::stringstream ss;
383  if (!*nBinsPtr_ || (!updates && NAifZeroUpdates_))
384  ss << "N/A";
385  else {
386  ss << "[";
387  if (*nBinsPtr_) {
388  for (unsigned int i = 0; i < *nBinsPtr_ - 1; i++) {
389  ss << buf_[i] << ",";
390  }
391  ss << buf_[*nBinsPtr_ - 1];
392  }
393  ss << "]";
394  }
395  root[DATA].append(ss.str());
396  return;
397  }
398  }
399 }

References cms::cuda::assert(), buf_, bufLen_, cacheI_, DATA, DEFINITION, definition_, end, jsoncollector::JsonMonitorable::getUpdates(), globalDataMap_, mps_fire::i, createfilelist::int, isCached_, isDummy_, isStream_, dqmiolumiharvest::j, monType_, NAifZeroUpdates_, nBinsPtr_, jsoncollector::OPHISTO, opType_, SOURCE, source_, contentValuesCheck::ss, streamDataMaps_, jsoncollector::TYPESTRING, jsoncollector::TYPEUINT, relativeConstraints::value, and jsoncollector::HistoJ< T >::value().

◆ serialize() [1/2]

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

JSON serialization procedure for this class

Implements jsoncollector::JsonSerializable.

Definition at line 41 of file DataPoint.cc.

41  {
42  if (!source_.empty()) {
43  root[SOURCE] = source_;
44  }
45  if (!definition_.empty()) {
47  }
48  for (unsigned int i = 0; i < data_.size(); i++)
49  root[DATA].append(data_[i]);
50 }

References mps_setup::append, DATA, data_, DEFINITION, definition_, mps_fire::i, SOURCE, and source_.

◆ serialize() [2/2]

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

Functions specific to new monitoring implementation

Definition at line 110 of file DataPoint.cc.

110  {
111  if (rootInit) {
112  if (!source_.empty())
113  root[SOURCE] = source_;
114  if (!definition_.empty())
116  }
117  root[DATA].append(input);
118 }

References DATA, DEFINITION, definition_, input, SOURCE, and source_.

◆ setNBins()

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

Definition at line 107 of file DataPoint.h.

107 { nBinsPtr_ = nBins; }

References seedmultiplicitymonitor_newtracking_cfi::nBins, and nBinsPtr_.

◆ setOperation()

void jsoncollector::DataPoint::setOperation ( OperationType  op)
inline

Definition at line 89 of file DataPoint.h.

89 { opType_ = op; }

References opType_.

◆ setStreamLumiPtr()

void jsoncollector::DataPoint::setStreamLumiPtr ( std::vector< unsigned int > *  streamLumiPtr)
inline

Definition at line 92 of file DataPoint.h.

92 { streamLumisPtr_ = streamLumiPtr; }

References streamLumisPtr_.

◆ snap()

void DataPoint::snap ( unsigned int  lumi)

Definition at line 120 of file DataPoint.cc.

120  {
121  isCached_ = false;
122  if (isStream_) {
123  if (monType_ == TYPEUINT) {
124  for (unsigned int i = 0; i < streamDataMaps_.size(); i++) {
125  unsigned int streamLumi_ = streamLumisPtr_->at(i); //get currently processed stream lumi
126  unsigned int monVal;
127 
128 #if ATOMIC_LEVEL > 0
129  if (isAtomic_)
130  monVal = (static_cast<std::vector<AtomicMonUInt *> *>(tracked_))->at(i)->load(std::memory_order_relaxed);
131 #else
132  if (isAtomic_)
133  monVal = *((static_cast<std::vector<AtomicMonUInt *> *>(tracked_))->at(i));
134 #endif
135  else
136  monVal = (static_cast<std::vector<unsigned int> *>(tracked_))->at(i);
137 
138  auto itr = streamDataMaps_[i].find(streamLumi_);
139  if (itr == streamDataMaps_[i].end()) {
140  if (opType_ == OPHISTO) {
141  if (*nBinsPtr_) {
143  nh->update(monVal);
144  streamDataMaps_[i][streamLumi_] = nh;
145  }
146  } else { //default to SUM
147  IntJ *nj = new IntJ;
148  nj->update(monVal);
149  streamDataMaps_[i][streamLumi_] = nj;
150  }
151  } else {
152  if (opType_ == OPHISTO) {
153  if (*nBinsPtr_) {
154  (static_cast<HistoJ<unsigned int> *>(itr->second.get()))->update(monVal);
155  }
156  } else {
157  *(static_cast<IntJ *>(itr->second.get())) = monVal;
158  }
159  }
160  }
161  } else
162  assert(monType_ != TYPEINT); //not yet implemented, application error
163  } else
164  snapGlobal(lumi);
165 }

References cms::cuda::assert(), end, mps_fire::i, isAtomic_, isCached_, isStream_, MAXUPDATES, monType_, nBinsPtr_, cms::cuda::nh, jsoncollector::OPHISTO, opType_, snapGlobal(), streamDataMaps_, streamLumisPtr_, tracked_, jsoncollector::TYPEINT, jsoncollector::TYPEUINT, and jsoncollector::IntJ::update().

◆ snapGlobal()

void DataPoint::snapGlobal ( unsigned int  lumi)

Definition at line 167 of file DataPoint.cc.

167  {
168  isCached_ = false;
169  if (isStream_)
170  return;
171  auto itr = globalDataMap_.find(lumi);
172  if (itr == globalDataMap_.end()) {
173  if (monType_ == TYPEINT) {
174  IntJ *ij = new IntJ;
175  ij->update((static_cast<IntJ *>(tracked_))->value());
176  globalDataMap_[lumi] = ij;
177  }
178  if (monType_ == TYPEDOUBLE) {
179  DoubleJ *dj = new DoubleJ;
180  dj->update((static_cast<DoubleJ *>(tracked_))->value());
181  globalDataMap_[lumi] = dj;
182  }
183  if (monType_ == TYPESTRING) {
184  StringJ *sj = new StringJ;
185  sj->update((static_cast<StringJ *>(tracked_))->value());
186  globalDataMap_[lumi] = sj;
187  }
188  } else {
189  if (monType_ == TYPEINT)
190  static_cast<IntJ *>(itr->second.get())->update((static_cast<IntJ *>(tracked_))->value());
191  else if (monType_ == TYPEDOUBLE)
192  static_cast<DoubleJ *>(itr->second.get())->update((static_cast<DoubleJ *>(tracked_))->value());
193  else if (monType_ == TYPESTRING)
194  static_cast<StringJ *>(itr->second.get())->concatenate((static_cast<StringJ *>(tracked_))->value());
195  }
196 }

References globalDataMap_, isCached_, isStream_, BXlumiParameters_cfi::lumi, monType_, tracked_, jsoncollector::TYPEDOUBLE, jsoncollector::TYPEINT, jsoncollector::TYPESTRING, update, jsoncollector::IntJ::update(), jsoncollector::DoubleJ::update(), jsoncollector::StringJ::update(), and relativeConstraints::value.

Referenced by snap().

◆ snapStreamAtomic()

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

Definition at line 198 of file DataPoint.cc.

198  {
199  if (!isStream_ || !isAtomic_)
200  return;
201  isCached_ = false;
202  if (monType_ == TYPEUINT) {
203  unsigned int monVal;
204 #if ATOMIC_LEVEL > 0
205  if (isAtomic_)
206  monVal = (static_cast<std::vector<AtomicMonUInt *> *>(tracked_))->at(streamID)->load(std::memory_order_relaxed);
207 #else
208  if (isAtomic_)
209  monVal = *((static_cast<std::vector<AtomicMonUInt *> *>(tracked_))->at(streamID));
210 #endif
211  else
212  monVal = (static_cast<std::vector<unsigned int> *>(tracked_))->at(streamID);
213 
214  auto itr = streamDataMaps_[streamID].find(lumi);
215  if (itr == streamDataMaps_[streamID].end()) //insert
216  {
217  if (opType_ == OPHISTO) {
218  if (*nBinsPtr_) {
220  h->update(monVal);
221  streamDataMaps_[streamID][lumi] = h;
222  }
223  } else { //default to SUM
224 
225  IntJ *h = new IntJ;
226  h->update(monVal);
227  streamDataMaps_[streamID][lumi] = h;
228  }
229  } else {
230  if (opType_ == OPHISTO) {
231  if (*nBinsPtr_) {
232  static_cast<HistoJ<unsigned int> *>(itr->second.get())->update(monVal);
233  }
234  } else
235  *(static_cast<IntJ *>(itr->second.get())) = monVal;
236  }
237  } else
238  assert(monType_ != TYPEINT); //not yet implemented
239 }

References cms::cuda::assert(), end, h, isAtomic_, isCached_, isStream_, BXlumiParameters_cfi::lumi, MAXUPDATES, monType_, nBinsPtr_, jsoncollector::OPHISTO, opType_, streamDataMaps_, tracked_, jsoncollector::TYPEINT, jsoncollector::TYPEUINT, and update.

◆ trackDummy()

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

Definition at line 80 of file DataPoint.h.

80  {
81  name_ = name;
82  isDummy_ = true;
83  NAifZeroUpdates_ = true;
84  }

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

Referenced by jsoncollector::FastMonitor::commit().

◆ trackMonitorable()

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

Definition at line 69 of file DataPoint.cc.

69  {
70  name_ = monitorable->getName();
71  tracked_ = (void *)monitorable;
72  if (dynamic_cast<IntJ *>(monitorable))
73  monType_ = TYPEINT;
74  else if (dynamic_cast<DoubleJ *>(monitorable))
76  else if (dynamic_cast<StringJ *>(monitorable))
78  else
79  assert(0);
80  NAifZeroUpdates_ = NAifZeroUpdates;
81 }

References cms::cuda::assert(), jsoncollector::JsonMonitorable::getName(), monType_, NAifZeroUpdates_, name_, tracked_, jsoncollector::TYPEDOUBLE, jsoncollector::TYPEINT, and jsoncollector::TYPESTRING.

◆ trackVectorUInt()

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

Definition at line 83 of file DataPoint.cc.

83  {
84  name_ = name;
85  tracked_ = (void *)monvec;
86  isStream_ = true;
88  NAifZeroUpdates_ = NAifZeroUpdates;
89  makeStreamLumiMap(monvec->size());
90 }

References isStream_, makeStreamLumiMap(), monType_, NAifZeroUpdates_, Skims_PA_cff::name, name_, tracked_, and jsoncollector::TYPEUINT.

◆ trackVectorUIntAtomic()

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

Definition at line 92 of file DataPoint.cc.

94  {
95  name_ = name;
96  tracked_ = (void *)monvec;
97  isStream_ = true;
98  isAtomic_ = true;
100  NAifZeroUpdates_ = NAifZeroUpdates;
101  makeStreamLumiMap(monvec->size());
102 }

References isAtomic_, isStream_, makeStreamLumiMap(), monType_, NAifZeroUpdates_, Skims_PA_cff::name, name_, tracked_, and jsoncollector::TYPEUINT.

◆ updateDefinition()

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

Definition at line 111 of file DataPoint.h.

111 { definition_ = definition; }

References definition_.

Member Data Documentation

◆ buf_

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

Definition at line 142 of file DataPoint.h.

Referenced by mergeAndSerialize(), and ~DataPoint().

◆ bufLen_

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

Definition at line 143 of file DataPoint.h.

Referenced by mergeAndSerialize().

◆ cacheI_

int jsoncollector::DataPoint::cacheI_
protected

Definition at line 146 of file DataPoint.h.

Referenced by mergeAndRetrieveValue(), and mergeAndSerialize().

◆ DATA

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

◆ data_

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

Definition at line 122 of file DataPoint.h.

Referenced by deserialize(), getData(), and serialize().

◆ DEFINITION

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

◆ definition_

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

◆ fastIndex_

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

Definition at line 149 of file DataPoint.h.

Referenced by fastOutCSV().

◆ globalDataMap_

MonPtrMap jsoncollector::DataPoint::globalDataMap_
protected

Definition at line 125 of file DataPoint.h.

Referenced by discardCollected(), mergeAndSerialize(), and snapGlobal().

◆ isAtomic_

bool jsoncollector::DataPoint::isAtomic_ = false
protected

Definition at line 132 of file DataPoint.h.

Referenced by fastOutCSV(), snap(), snapStreamAtomic(), and trackVectorUIntAtomic().

◆ isCached_

bool jsoncollector::DataPoint::isCached_ = false
protected

◆ isDummy_

bool jsoncollector::DataPoint::isDummy_ = false
protected

Definition at line 133 of file DataPoint.h.

Referenced by mergeAndSerialize(), and trackDummy().

◆ isFastOnly_

bool jsoncollector::DataPoint::isFastOnly_
protected

Definition at line 135 of file DataPoint.h.

◆ isStream_

bool jsoncollector::DataPoint::isStream_ = false
protected

◆ monType_

MonType jsoncollector::DataPoint::monType_
protected

◆ NAifZeroUpdates_

bool jsoncollector::DataPoint::NAifZeroUpdates_ = false
protected

◆ name_

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

◆ nBinsPtr_

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

Definition at line 145 of file DataPoint.h.

Referenced by mergeAndSerialize(), setNBins(), snap(), and snapStreamAtomic().

◆ opType_

OperationType jsoncollector::DataPoint::opType_
protected

Definition at line 138 of file DataPoint.h.

Referenced by mergeAndSerialize(), setOperation(), snap(), and snapStreamAtomic().

◆ SOURCE

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

◆ source_

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

◆ streamDataMaps_

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

◆ streamLumisPtr_

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

Definition at line 129 of file DataPoint.h.

Referenced by setStreamLumiPtr(), and snap().

◆ tracked_

void* jsoncollector::DataPoint::tracked_ = nullptr
protected
jsoncollector::TYPEDOUBLE
Definition: JsonMonitorable.h:21
jsoncollector::DataPoint::globalDataMap_
MonPtrMap globalDataMap_
Definition: DataPoint.h:125
jsoncollector::DataPoint::isFastOnly_
bool isFastOnly_
Definition: DataPoint.h:135
mps_fire.i
i
Definition: mps_fire.py:355
input
static const std::string input
Definition: EdmProvDump.cc:48
jsoncollector::DataPoint::tracked_
void * tracked_
Definition: DataPoint.h:126
jsoncollector::DataPoint::cacheI_
int cacheI_
Definition: DataPoint.h:146
jsoncollector::HistoJ::value
std::vector< T > & value()
Definition: JsonMonitorable.h:224
jsoncollector::DataPoint::monType_
MonType monType_
Definition: DataPoint.h:137
jsoncollector::DataPoint::fastIndex_
unsigned int fastIndex_
Definition: DataPoint.h:149
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition: L1TUtmAlgorithmRcd.h:4
jsoncollector::HistoJ< unsigned int >
cms::cuda::assert
assert(be >=bs)
jsoncollector::IntJ::update
void update(long sth)
Definition: JsonMonitorable.h:90
jsoncollector::DataPoint::isAtomic_
bool isAtomic_
Definition: DataPoint.h:132
end
#define end
Definition: vmac.h:39
jsoncollector::JsonMonitorable::getName
virtual std::string & getName()
Definition: JsonMonitorable.h:40
jsoncollector::DataPoint::nBinsPtr_
unsigned int * nBinsPtr_
Definition: DataPoint.h:145
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
jsoncollector::JsonMonitorable::getUpdates
unsigned int getUpdates()
Definition: JsonMonitorable.h:34
jsoncollector::DataPoint::isStream_
bool isStream_
Definition: DataPoint.h:131
BXlumiParameters_cfi.lumi
lumi
Definition: BXlumiParameters_cfi.py:6
jsoncollector::MonPtrMap
std::map< unsigned int, JsonMonPtr > MonPtrMap
Definition: DataPoint.h:34
jsoncollector::TYPESTRING
Definition: JsonMonitorable.h:21
jsoncollector::DataPoint::isDummy_
bool isDummy_
Definition: DataPoint.h:133
jsoncollector::DataPoint::data_
std::vector< std::string > data_
Definition: DataPoint.h:122
h
jsoncollector::DoubleJ
Definition: JsonMonitorable.h:106
jsoncollector::DataPoint::DATA
static const std::string DATA
Definition: DataPoint.h:116
cms::cuda::nh
uint32_t nh
Definition: HistoContainer.h:23
source
static const std::string source
Definition: EdmProvDump.cc:47
jsoncollector::TYPEUINT
Definition: JsonMonitorable.h:21
jsoncollector::DataPoint::makeStreamLumiMap
void makeStreamLumiMap(unsigned int size)
Definition: DataPoint.cc:104
jsoncollector::DataPoint::streamLumisPtr_
std::vector< unsigned int > * streamLumisPtr_
Definition: DataPoint.h:129
jsoncollector::DataPoint::NAifZeroUpdates_
bool NAifZeroUpdates_
Definition: DataPoint.h:134
jsoncollector::DataPoint::definition_
std::string definition_
Definition: DataPoint.h:121
seedmultiplicitymonitor_newtracking_cfi.nBins
nBins
Definition: seedmultiplicitymonitor_newtracking_cfi.py:8
jsoncollector::DataPoint::snapGlobal
void snapGlobal(unsigned int lumi)
Definition: DataPoint.cc:167
jsoncollector::TYPEINT
Definition: JsonMonitorable.h:21
jsoncollector::DataPoint::DEFINITION
static const std::string DEFINITION
Definition: DataPoint.h:115
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
jsoncollector::DataPoint::streamDataMaps_
std::vector< MonPtrMap > streamDataMaps_
Definition: DataPoint.h:124
jsoncollector::DataPoint::source_
std::string source_
Definition: DataPoint.h:120
mps_setup.append
append
Definition: mps_setup.py:85
createfilelist.int
int
Definition: createfilelist.py:10
root
Definition: RooFitFunction.h:10
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:28
jsoncollector::IntJ::value
long & value()
Definition: JsonMonitorable.h:88
jsoncollector::DataPoint::SOURCE
static const std::string SOURCE
Definition: DataPoint.h:114
jsoncollector::StringJ::update
void update(std::string const &newStr)
Definition: JsonMonitorable.h:165
relativeConstraints.value
value
Definition: relativeConstraints.py:53
jsoncollector::DataPoint::opType_
OperationType opType_
Definition: DataPoint.h:138
jsoncollector::DoubleJ::update
void update(double sth)
Definition: JsonMonitorable.h:129
jsoncollector::IntJ::add
void add(long sth)
Definition: JsonMonitorable.h:97
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
jsoncollector::IntJ
Definition: JsonMonitorable.h:66
jsoncollector::DataPoint::name_
std::string name_
Definition: DataPoint.h:139
jsoncollector::DataPoint::isCached_
bool isCached_
Definition: DataPoint.h:147
jsoncollector::OPHISTO
Definition: JsonMonitorable.h:22
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
lumi
Definition: LumiSectionData.h:20
jsoncollector::StringJ
Definition: JsonMonitorable.h:140
jsoncollector::DataPoint::bufLen_
unsigned int bufLen_
Definition: DataPoint.h:143
jsoncollector::DataPoint::buf_
uint32_t * buf_
Definition: DataPoint.h:142
update
#define update(a, b)
Definition: TrackClassifier.cc:10
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
MAXUPDATES
#define MAXUPDATES
Definition: DataPoint.cc:16