ATLAS Offline Software
Loading...
Searching...
No Matches
StatInt Class Reference

#include <TileTBStat.h>

Collaboration diagram for StatInt:

Public Member Functions

 StatInt ()
void addValue (int Value)
void print (const char *s, bool minMaxOnly=false)

Public Attributes

std::map< int, int > checkOut

Detailed Description

Definition at line 68 of file TileTBStat.h.

Constructor & Destructor Documentation

◆ StatInt()

StatInt::StatInt ( )

Definition at line 96 of file TileTBStat.cxx.

96 {
97}

Member Function Documentation

◆ addValue()

void StatInt::addValue ( int Value)

Definition at line 99 of file TileTBStat.cxx.

99 {
100 ++checkOut[Value];
101}
std::map< int, int > checkOut
Definition TileTBStat.h:73

◆ print()

void StatInt::print ( const char * s,
bool minMaxOnly = false )

Definition at line 103 of file TileTBStat.cxx.

103 {
104 std::cout << s << " ";
105 std::map<int, int>::const_iterator min = checkOut.begin();
106 std::map<int, int>::const_iterator max = checkOut.end();
107 if (min == max) { // empty map
108 std::cout << " ---";
109 } else {
110 --max;
111 if (min == max) { // one value only
112 std::cout << " " << min->first;
113 } else {
114 if (minMaxOnly) {
115 std::cout << " " << min->first << " - " << max->first;
116 } else {
117 for (++max; min != max; ++min)
118 std::cout << " " << min->first << "(" << min->second << ")";
119 }
120 }
121 }
122 std::cout << std::endl;
123}
#define min(a, b)
Definition cfImp.cxx:40
#define max(a, b)
Definition cfImp.cxx:41

Member Data Documentation

◆ checkOut

std::map<int, int> StatInt::checkOut

Definition at line 73 of file TileTBStat.h.


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