#ifndef __TSCALER_H
#define __TSCALER_H
#include <iostream>
#include <TROOT.h>
#include <TBranch.h>
#include <TClonesArray.h>
#include <TH1I.h>
#include <TTree.h>
#include <TObject.h>
#include "TScalerCh.h"
#ifndef __ROOTDEFINE_H
#define __ROOTDEFINE_H
#include "rootDefine.h"
#endif
#ifndef __PACKETID_H
#define __PACKETID_H
#include "packetID.h"
#endif
using namespace std;
class TScaler : public TNamed{
protected:
public:
Long64_t startTime;
Long64_t endTime;
TH1I h_totals;
Long64_t scaler[64];
TClonesArray *fScalers;
static TClonesArray *fgScalers;
TBranch *b_startTime;
TBranch *b_endTime;
TBranch *b_fScalers;
TBranch *b_h_totals;
TTree *fChain;
TTree *fEChain;
Int_t fCurrent;
public:
TScaler() {}
~TScaler() {}
void Clear(Option_t *option="");
void DumpMap();
Bool_t DumpScalers(Option_t *fileName="NONE",
Option_t *option="RECREATE");
void DrawTotals();
void InitBranch(TTree *tree);
Bool_t InitClass();
Int_t InitTree(TTree *tree);
Bool_t LoadScalerMap(Char_t *fileName);
UShort_t* Unpack(UShort_t *p);
ClassDef(TScaler,2);
};
#endif
Last change: Sun Dec 21 12:38:59 2008
Last generated: 2008-12-21 12:38
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.