Attachment 'TArtCounter.hh'
Download#ifndef _TANACOUNTER_H_
#define _TANACOUNTER_H_
#include "TMath.h"
#include "TNamed.h"
#include <iostream>
#include <string>
#include <time.h>
class TArtCounter : public TNamed {
public:
static TArtCounter* Instance();//singleton
static TArtCounter* SetCounterFromRIDF(const char* ridfname="");
static TArtCounter* SetCounter(const unsigned int num);
~TArtCounter(){}
void Draw();
void Reset(){fCurrentNum=0;fMaxNum=0;fOldNum=0;fStartTime=0;fOldTime=0;};
void DispWithRestTime(const unsigned int n_curr,
const unsigned int n_tot,
const double t_pas, const char unit_p,
const double t_rem , const char unit_r);
std::string changeRotstring();
char Unit(double& t);
void SetMaxNum(unsigned int num){fMaxNum=num;};
unsigned int SetMaxNum(const char* ridfname);// return fMaxNum
private:
TArtCounter(){};
static TArtCounter *fCounter;// singleton
unsigned int fMaxNum;
unsigned int fCurrentNum;
unsigned int fOldNum;
time_t fStartTime;
time_t fOldTime;
int fDispIndex;
struct ridf_hdst{
int hd1;
int hd2;
};
static int ridf_ci(struct ridf_hdst hd);
static int ridf_sz(struct ridf_hdst hd);
ClassDef(TArtCounter,1);
};
#endif
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.- [get | view] (2012-10-17 06:59:08, 278.1 KB) [[attachment:ANAROOT講習会資料.pdf]]
- [get | view] (2013-06-25 06:26:53, 0.5 KB) [[attachment:CounterExample.cc]]
- [get | view] (2012-10-17 06:53:24, 1.6 KB) [[attachment:MakePlaHist.C]]
- [get | view] (2012-08-20 06:37:41, 6.2 KB) [[attachment:TArtCSVParameter.cc]]
- [get | view] (2012-08-20 06:37:53, 1.0 KB) [[attachment:TArtCSVParameter.hh]]
- [get | view] (2013-06-25 06:26:20, 5.3 KB) [[attachment:TArtCounter.cc]]
- [get | view] (2013-06-25 06:26:40, 1.2 KB) [[attachment:TArtCounter.hh]]
- [get | view] (2012-11-29 12:05:55, 4.8 KB) [[attachment:TArtParameters.cc]]
- [get | view] (2012-11-29 12:05:35, 1.0 KB) [[attachment:TArtParameters.hh]]
- [get | view] (2012-12-04 15:34:16, 6.3 KB) [[attachment:TArtUserParameters.cc]]
- [get | view] (2012-12-04 15:34:00, 1.6 KB) [[attachment:TArtUserParameters.hh]]
- [get | view] (2012-12-04 15:34:38, 1.6 KB) [[attachment:UserParameters.xml]]
- [get | view] (2012-04-19 08:38:22, 3.0 KB) [[attachment:ana-mode.el]]
- [get | view] (2012-04-20 03:38:36, 2.7 KB) [[attachment:anaroot_filter.ver1.00.jar]]
- [get | view] (2012-06-04 04:07:52, 2.6 KB) [[attachment:anaroot_filter.ver1.01.jar]]
- [get | view] (2012-06-01 17:27:17, 4.7 KB) [[attachment:calc2xml.v2.xsl]]
- [get | view] (2012-04-20 03:33:51, 6.3 KB) [[attachment:calc2xml.xsl]]
- [get | view] (2012-10-17 07:32:11, 1.0 KB) [[attachment:install-example.txt]]
- [get | view] (2012-11-29 12:06:11, 1.0 KB) [[attachment:parameters.xml]]
- [get | view] (2012-04-20 03:33:17, 3.1 KB) [[attachment:xml2calc.xsl]]
You are not allowed to attach a file to this page.