CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
TriggerDiff Struct Reference

Public Member Functions

unsigned int total () const
 
 TriggerDiff ()
 

Static Public Member Functions

static std::string format (unsigned int value, char sign= '+')
 

Public Attributes

unsigned int count
 
unsigned int gained
 
unsigned int internal
 
unsigned int lost
 

Detailed Description

Definition at line 433 of file hltDiff.cc.

Constructor & Destructor Documentation

TriggerDiff::TriggerDiff ( )
inline

Definition at line 434 of file hltDiff.cc.

434 : count(0), gained(0), lost(0), internal(0) { }
unsigned int count
Definition: hltDiff.cc:436
unsigned int lost
Definition: hltDiff.cc:438
unsigned int gained
Definition: hltDiff.cc:437

Member Function Documentation

static std::string TriggerDiff::format ( unsigned int  value,
char  sign = '+' 
)
inlinestatic

Definition at line 442 of file hltDiff.cc.

References Validation_hcalonly_cfi::sign, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by operator<<().

442  {
443  if (value == 0)
444  return std::string("-");
445 
446  char buffer[12]; // sign, 10 digits, null
447  memset(buffer, 0, 12);
448 
449  unsigned int digit = 10;
450  while (value > 0) {
451  buffer[digit] = value % 10 + 48;
452  value /= 10;
453  --digit;
454  }
455  buffer[digit] = sign;
456 
457  return std::string(buffer + digit);
458  }
Definition: value.py:1
unsigned int TriggerDiff::total ( ) const
inline

Definition at line 460 of file hltDiff.cc.

460  {
461  return this->gained + this->lost + this->internal;
462  }
unsigned int lost
Definition: hltDiff.cc:438
unsigned int gained
Definition: hltDiff.cc:437

Member Data Documentation

unsigned int TriggerDiff::count

Definition at line 436 of file hltDiff.cc.

Referenced by operator<<().

unsigned int TriggerDiff::gained

Definition at line 437 of file hltDiff.cc.

Referenced by operator<<().

unsigned int TriggerDiff::internal

Definition at line 439 of file hltDiff.cc.

Referenced by operator<<().

unsigned int TriggerDiff::lost

Definition at line 438 of file hltDiff.cc.

Referenced by operator<<().