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 119 of file ELmap.cc.

119 : n(0), aggregateN(0), ignoredFlag(false), context1(""), context2(""), contextLast("") {}
std::string context2
Definition: ELmap.h:74
int aggregateN
Definition: ELmap.h:71
std::string context1
Definition: ELmap.h:73
std::string contextLast
Definition: ELmap.h:75
bool ignoredFlag
Definition: ELmap.h:72

Member Function Documentation

◆ add()

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

Definition at line 121 of file ELmap.cc.

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

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

121  {
122  ++n;
123  ++aggregateN;
124 
125  ((1 == n) ? context1 : (2 == n) ? context2 : contextLast) = std::string(context, 0, 16);
126 
127  if (!reactedTo)
128  ignoredFlag = true;
129 
130  } // add()
std::string context2
Definition: ELmap.h:74
int aggregateN
Definition: ELmap.h:71
std::string context1
Definition: ELmap.h:73
std::string contextLast
Definition: ELmap.h:75
bool ignoredFlag
Definition: ELmap.h:72

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().