CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
HLTLogMonitorFilter::CategoryEntry Struct Reference

Public Member Functions

bool accept ()
 
 CategoryEntry (uint32_t t=0)
 

Public Attributes

uint64_t accepted
 
uint64_t counter
 
bool done
 
uint32_t prescale
 
uint32_t threshold
 

Detailed Description

Definition at line 42 of file HLTLogMonitorFilter.cc.

Constructor & Destructor Documentation

HLTLogMonitorFilter::CategoryEntry::CategoryEntry ( uint32_t  t = 0)
inline

Definition at line 49 of file HLTLogMonitorFilter.cc.

49  :
50  threshold(t), // default-constructed entries have the threshold set to 0, which means the associated Category is disabled
51  prescale(1),
52  counter(0),
53  accepted(0),
54  done(false)
55  { }

Member Function Documentation

bool HLTLogMonitorFilter::CategoryEntry::accept ( )
inline

Definition at line 57 of file HLTLogMonitorFilter.cc.

References accepted, counter, done, or, prescale, and threshold.

Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), HLTLogMonitorFilter::filter(), and esMonitoring.FDJsonServer::handle_accept().

57  {
58  if (not done) {
59  done = true;
60  ++counter;
61  }
62 
63  // fail if the prescaler is disabled (threshold == 0), or if the counter is not a multiple of the prescale
64  if ((threshold == 0) or (counter % prescale))
65  return false;
66 
67  // quasi-logarithmic increase in the prescale factor (should be safe even if threshold is 1)
68  if (counter == prescale * threshold)
69  prescale *= threshold;
70 
71  ++accepted;
72  return true;
73  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12

Member Data Documentation

uint64_t HLTLogMonitorFilter::CategoryEntry::accepted

Definition at line 46 of file HLTLogMonitorFilter.cc.

Referenced by accept().

uint64_t HLTLogMonitorFilter::CategoryEntry::counter

Definition at line 45 of file HLTLogMonitorFilter.cc.

Referenced by counter.Counters::__getitem__(), and accept().

bool HLTLogMonitorFilter::CategoryEntry::done

Definition at line 47 of file HLTLogMonitorFilter.cc.

Referenced by accept().

uint32_t HLTLogMonitorFilter::CategoryEntry::prescale

Definition at line 44 of file HLTLogMonitorFilter.cc.

Referenced by accept().

uint32_t HLTLogMonitorFilter::CategoryEntry::threshold

Definition at line 43 of file HLTLogMonitorFilter.cc.

Referenced by accept(), and utils.StatisticalTest::get_status().