CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

edm::StatsCount::StatsCount ( )

Definition at line 117 of file ELmap.cc.

117 : 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

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

Definition at line 119 of file ELmap.cc.

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

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

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

int edm::StatsCount::aggregateN

Definition at line 71 of file ELmap.h.

Referenced by add().

std::string edm::StatsCount::context1

Definition at line 73 of file ELmap.h.

Referenced by add().

std::string edm::StatsCount::context2

Definition at line 74 of file ELmap.h.

Referenced by add().

std::string edm::StatsCount::contextLast

Definition at line 75 of file ELmap.h.

Referenced by add().

bool edm::StatsCount::ignoredFlag

Definition at line 72 of file ELmap.h.

Referenced by add().

int edm::StatsCount::n

Definition at line 70 of file ELmap.h.

Referenced by add().