LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
mf::service::ELdestination::StatsCount Struct Reference

#include "ELdestination.h"

Public Member Functions

 ~StatsCount ()
 
 StatsCount ()
 
void add (std::string const &context, bool reactedTo)
 

Public Attributes

int n_ {}
 
int aggregateN_ {}
 
bool ignoredFlag_ {false}
 
std::string context1_ {}
 
std::string context2_ {}
 
std::string contextLast_ {}
 

Detailed Description

Definition at line 82 of file ELdestination.h.

Constructor & Destructor Documentation

mf::service::ELdestination::StatsCount::~StatsCount ( )
default
mf::service::ELdestination::StatsCount::StatsCount ( )

Member Function Documentation

void mf::service::ELdestination::StatsCount::add ( std::string const &  context,
bool  reactedTo 
)

Definition at line 204 of file ELdestination.cc.

References aggregateN_, context1_, context2_, contextLast_, ignoredFlag_, n_, and mf::service::ELdestination::MsgStatistics::Config::~Config().

205  {
206  if (reactedTo) {
207  ++n_;
208  }
209  ++aggregateN_;
210  ((n_ == 1) ? context1_ :
211  (n_ == 2) ? context2_ :
212  contextLast_) = string(context, 0, 16);
213  if (!reactedTo) {
214  ignoredFlag_ = true;
215  }
216  }

Member Data Documentation

int mf::service::ELdestination::StatsCount::aggregateN_ {}

Definition at line 88 of file ELdestination.h.

Referenced by add(), and StatsCount().

std::string mf::service::ELdestination::StatsCount::context1_ {}

Definition at line 90 of file ELdestination.h.

Referenced by add(), and StatsCount().

std::string mf::service::ELdestination::StatsCount::context2_ {}

Definition at line 91 of file ELdestination.h.

Referenced by add(), and StatsCount().

std::string mf::service::ELdestination::StatsCount::contextLast_ {}

Definition at line 92 of file ELdestination.h.

Referenced by add(), and StatsCount().

bool mf::service::ELdestination::StatsCount::ignoredFlag_ {false}

Definition at line 89 of file ELdestination.h.

Referenced by add(), and StatsCount().

int mf::service::ELdestination::StatsCount::n_ {}

Definition at line 87 of file ELdestination.h.

Referenced by add().


The documentation for this struct was generated from the following files: