CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edm::StatsCount Class Reference

#include <ELmap.h>

Public Member Functions

void add (std::string_view context, bool reactedTo)
 
 StatsCount ()
 

Public Attributes

int aggregateN
 
std::string context1
 
std::string context2
 
std::string contextLast
 
bool ignoredFlag
 
int n
 

Detailed Description

Definition at line 68 of file ELmap.h.

Constructor & Destructor Documentation

◆ StatsCount()

edm::StatsCount::StatsCount ( )

Definition at line 117 of file ELmap.cc.

117 : n(0), aggregateN(0), ignoredFlag(false), context1(""), context2(""), contextLast("") {}

Member Function Documentation

◆ add()

void edm::StatsCount::add ( std::string_view  context,
bool  reactedTo 
)

Definition at line 119 of file ELmap.cc.

119  {
120  ++n;
121  ++aggregateN;
122 
123  ((1 == n) ? context1 : (2 == n) ? context2 : contextLast) = std::string(context, 0, 16);
124 
125  if (!reactedTo)
126  ignoredFlag = true;
127 
128  } // add()

References aggregateN, visDQMUpload::context, context1, context2, contextLast, ignoredFlag, n, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

Member Data Documentation

◆ aggregateN

int edm::StatsCount::aggregateN

Definition at line 71 of file ELmap.h.

Referenced by add().

◆ context1

std::string edm::StatsCount::context1

Definition at line 73 of file ELmap.h.

Referenced by add().

◆ context2

std::string edm::StatsCount::context2

Definition at line 74 of file ELmap.h.

Referenced by add().

◆ contextLast

std::string edm::StatsCount::contextLast

Definition at line 75 of file ELmap.h.

Referenced by add().

◆ ignoredFlag

bool edm::StatsCount::ignoredFlag

Definition at line 72 of file ELmap.h.

Referenced by add().

◆ n

int edm::StatsCount::n

Definition at line 70 of file ELmap.h.

Referenced by add().

edm::StatsCount::context2
std::string context2
Definition: ELmap.h:74
visDQMUpload.context
context
Definition: visDQMUpload.py:37
edm::StatsCount::n
int n
Definition: ELmap.h:70
edm::StatsCount::aggregateN
int aggregateN
Definition: ELmap.h:71
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::StatsCount::contextLast
std::string contextLast
Definition: ELmap.h:75
edm::StatsCount::context1
std::string context1
Definition: ELmap.h:73
edm::StatsCount::ignoredFlag
bool ignoredFlag
Definition: ELmap.h:72