CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RooGKCounter.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
3 #ifndef Roo_GKCounter
4 #define Roo_GKCounter
5 
6 #include <iostream>
7 #include <string>
8 #include <ctime>
9 
10 class RooGKCounter {
11 public:
12  RooGKCounter();
13  RooGKCounter(const char* message);
14  RooGKCounter(unsigned long int theFirst, unsigned long int theDivider);
15  ~RooGKCounter();
16 
17  void setCounter(unsigned long int);
18  void setDivider(unsigned int);
19  void setPrintCount(bool _printCount);
20  void setNewLine(bool newLine);
21  void setMessage(const char*);
22  void count(void);
23  unsigned long int getCount(void);
24  void increment(long int _incr);
25 
26 private:
27  unsigned long int _count;
28  unsigned long int _firstCount;
29  unsigned int _divider;
30  bool printCount;
33  bool _newLine;
34 
36 
37  void init(void);
38 
39  //ClassDef(RooGKCounter,1)
40 };
41 
42 #endif
unsigned int _divider
Definition: RooGKCounter.h:29
void setPrintCount(bool _printCount)
Definition: RooGKCounter.cc:33
unsigned long int _firstCount
Definition: RooGKCounter.h:28
unsigned long int getCount(void)
Definition: RooGKCounter.cc:95
time_t firstTickTime
Definition: RooGKCounter.h:35
void setNewLine(bool newLine)
Definition: RooGKCounter.cc:35
bool firstCountEntry
Definition: RooGKCounter.h:31
time_t lastTickTime
Definition: RooGKCounter.h:35
void setCounter(unsigned long int)
Definition: RooGKCounter.cc:29
void increment(long int _incr)
Definition: RooGKCounter.cc:97
unsigned long int _count
Definition: RooGKCounter.h:27
void count(void)
Definition: RooGKCounter.cc:54
void init(void)
Definition: RooGKCounter.cc:39
void setDivider(unsigned int)
Definition: RooGKCounter.cc:31
std::string _message
Definition: RooGKCounter.h:32
void setMessage(const char *)
Definition: RooGKCounter.cc:37
time_t initTime
Definition: RooGKCounter.h:35
time_t lastPrintTime
Definition: RooGKCounter.h:35