LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 90 of file ELdestination.h.

Constructor & Destructor Documentation

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

Definition at line 204 of file ELdestination.cc.

204 {}
mf::service::ELdestination::StatsCount::StatsCount ( )

Member Function Documentation

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

Definition at line 216 of file ELdestination.cc.

References aggregateN_, context1_, context2_, contextLast_, ignoredFlag_, and n_.

217  {
218  if (reactedTo) {
219  ++n_;
220  }
221  ++aggregateN_;
222  ((n_ == 1) ? context1_ : (n_ == 2) ? context2_ : contextLast_) =
223  string(context, 0, 16);
224  if (!reactedTo) {
225  ignoredFlag_ = true;
226  }
227  }

Member Data Documentation

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

Definition at line 97 of file ELdestination.h.

Referenced by add(), and StatsCount().

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

Definition at line 99 of file ELdestination.h.

Referenced by add(), and StatsCount().

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

Definition at line 100 of file ELdestination.h.

Referenced by add(), and StatsCount().

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

Definition at line 101 of file ELdestination.h.

Referenced by add(), and StatsCount().

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

Definition at line 98 of file ELdestination.h.

Referenced by add(), and StatsCount().

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

Definition at line 96 of file ELdestination.h.

Referenced by add().


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