test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 <time.h>
9 
10 class RooGKCounter {
11 
12  public:
13  RooGKCounter();
14  RooGKCounter( const char *message );
15  RooGKCounter( unsigned long int theFirst, unsigned long int theDivider );
16  ~RooGKCounter();
17 
18  void setCounter( unsigned long int );
19  void setDivider( unsigned int );
20  void setPrintCount( bool _printCount );
21  void setNewLine( bool newLine );
22  void setMessage( const char* );
23  void count( void );
24  unsigned long int getCount( void );
25  void increment( long int _incr );
26 
27  private:
28  unsigned long int _count;
29  unsigned long int _firstCount;
30  unsigned int _divider;
31  bool printCount;
34  bool _newLine;
35 
37 
38  void init( void );
39 
40  //ClassDef(RooGKCounter,1)
41 };
42 
43 #endif
unsigned int _divider
Definition: RooGKCounter.h:30
void setPrintCount(bool _printCount)
Definition: RooGKCounter.cc:38
unsigned long int _firstCount
Definition: RooGKCounter.h:29
unsigned long int getCount(void)
time_t firstTickTime
Definition: RooGKCounter.h:36
void setNewLine(bool newLine)
Definition: RooGKCounter.cc:42
bool firstCountEntry
Definition: RooGKCounter.h:32
time_t lastTickTime
Definition: RooGKCounter.h:36
void setCounter(unsigned long int)
Definition: RooGKCounter.cc:30
void increment(long int _incr)
unsigned long int _count
Definition: RooGKCounter.h:28
void count(void)
Definition: RooGKCounter.cc:66
void init(void)
Definition: RooGKCounter.cc:50
void setDivider(unsigned int)
Definition: RooGKCounter.cc:34
std::string _message
Definition: RooGKCounter.h:33
void setMessage(const char *)
Definition: RooGKCounter.cc:46
time_t initTime
Definition: RooGKCounter.h:36
time_t lastPrintTime
Definition: RooGKCounter.h:36