CMS 3D CMS Logo

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

Public Member Functions

 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 443 of file hltDiff.cc.

Constructor & Destructor Documentation

TriggerDiff::TriggerDiff ( )
inline

Definition at line 444 of file hltDiff.cc.

444 : count(0), gained(0), lost(0), internal(0) { }
unsigned int count
Definition: hltDiff.cc:446
unsigned int lost
Definition: hltDiff.cc:448
unsigned int gained
Definition: hltDiff.cc:447

Member Function Documentation

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

Definition at line 452 of file hltDiff.cc.

References jetcorrextractor::sign(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by operator<<().

452  {
453  if (value == 0)
454  return std::string("-");
455 
456  char buffer[12]; // sign, 10 digits, null
457  memset(buffer, 0, 12);
458 
459  unsigned int digit = 10;
460  while (value > 0) {
461  buffer[digit] = value % 10 + 48;
462  value /= 10;
463  --digit;
464  }
465  buffer[digit] = sign;
466 
467  return std::string(buffer + digit);
468  }
double sign(double x)

Member Data Documentation

unsigned int TriggerDiff::count

Definition at line 446 of file hltDiff.cc.

Referenced by operator<<().

unsigned int TriggerDiff::gained

Definition at line 447 of file hltDiff.cc.

Referenced by operator<<().

unsigned int TriggerDiff::internal

Definition at line 449 of file hltDiff.cc.

Referenced by operator<<().

unsigned int TriggerDiff::lost

Definition at line 448 of file hltDiff.cc.

Referenced by operator<<().