Revision: | 1.1 |
Committed: | Tue Nov 11 23:01:21 2008 UTC (16 years, 5 months ago) by kukartse |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | V00-03-01, ZMorph_BASE_20100408, gak040610_morphing, V00-02-02, gak011410, gak010310, ejterm2010_25nov2009, V00-02-01, V00-02-00, gak112409, CMSSW_22X_branch_base, segala101609, V00-01-15, V00-01-14, V00-01-13, V00-01-12, V00-01-11, V00-01-10, gak031009, gak030509, gak022309, gak021209, gak040209, gak012809, V00-01-09, V00-01-08, V00-01-07, V00-01-06, V00-01-05, V00-01-04, V00-00-07, V00-00-06, V00-00-05, V00-00-04, V00-01-03, V00-00-02, V00-00-01, HEAD |
Branch point for: | ZMorph-V00-03-01, CMSSW_22X_branch |
Log Message: | initial creation of a package for LJMET multivariate analysis |
# | User | Rev | Content |
---|---|---|---|
1 | kukartse | 1.1 | /* -*- mode: c++ -*- */ |
2 | |||
3 | #ifndef Roo_GKCounter | ||
4 | #define Roo_GKCounter | ||
5 | |||
6 | #include <iostream> | ||
7 | #include <string> | ||
8 | #include <time.h> | ||
9 | using namespace std; | ||
10 | |||
11 | class RooGKCounter { | ||
12 | |||
13 | public: | ||
14 | RooGKCounter(); | ||
15 | RooGKCounter( const char *message ); | ||
16 | RooGKCounter( unsigned long int theFirst, unsigned long int theDivider ); | ||
17 | ~RooGKCounter(); | ||
18 | |||
19 | void setCounter( unsigned long int ); | ||
20 | void setDivider( unsigned int ); | ||
21 | void setPrintCount( bool _printCount ); | ||
22 | void setNewLine( bool newLine ); | ||
23 | void setMessage( const char* ); | ||
24 | void count( void ); | ||
25 | unsigned long int getCount( void ); | ||
26 | double getCountDouble( void ); | ||
27 | void increment( long int _incr ); | ||
28 | void incrementDouble( double _incr ); | ||
29 | |||
30 | private: | ||
31 | unsigned long int _count; | ||
32 | double _count_double_type; | ||
33 | unsigned long int _firstCount; | ||
34 | unsigned int _divider; | ||
35 | bool printCount; | ||
36 | bool firstCountEntry; | ||
37 | string _message; | ||
38 | bool _newLine; | ||
39 | |||
40 | time_t initTime, firstTickTime, lastPrintTime, lastTickTime; | ||
41 | |||
42 | void init( void ); | ||
43 | |||
44 | //ClassDef(RooGKCounter,1) | ||
45 | }; | ||
46 | |||
47 | #endif |