Revision 6f16f9446b79e3a3e965c1736ec277793044e1c6 authored by Rene Brun on 03 February 2002, 16:13:55 UTC, committed by Rene Brun on 03 February 2002, 16:13:55 UTC
git-svn-id: http://root.cern.ch/svn/root/trunk@3846 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 9805896
TBench.h
#ifndef ROOT_TBENCH
#define ROOT_TBENCH
#include "TClonesArray.h"
#if defined(R__SGI) && !defined(R__KCC) && !defined(R__GNU)
#include <vector.h>
#else
#include <vector>
#endif
#ifdef WIN32
using namespace std;
#endif
//-------------------------------------------------------------
class THit {
protected:
float fX; //x position at center
float fY; //y position at center
float fZ; //z position at center
int fNpulses; //Number of pulses
int *fPulses; //[fNpulses]
int fTime[10]; //time at the 10 layers
public:
THit();
THit(const THit &);
THit(int time);
virtual ~THit();
void Set (int time);
inline int Get(int i) { return fTime[i]; }
friend TBuffer &operator<<(TBuffer &b, const THit *hit);
ClassDef(THit,1) // the hit class
};
//-------------------------------------------------------------
class TObjHit : public TObject, public THit {
public:
TObjHit();
TObjHit(int time);
virtual ~TObjHit(){;}
ClassDef(TObjHit,1) // the hit class
};
//-------------------------------------------------------------
class TSTLhit {
protected:
Int_t fNhits;
vector <THit> fList1; //||
public:
TSTLhit();
TSTLhit(int nmax);
void Clear(Option_t *option="");
virtual ~TSTLhit();
void MakeEvent(int ievent);
Int_t MakeTree(int mode, int nevents, int compression, int split, float &cx);
Int_t ReadTree();
ClassDef(TSTLhit,1) // STL vector of THit
};
//-------------------------------------------------------------
class TSTLhitStar {
protected:
Int_t fNhits;
vector <THit*> fList2; //
public:
TSTLhitStar();
TSTLhitStar(int nmax);
void Clear(Option_t *option="");
virtual ~TSTLhitStar();
void MakeEvent(int ievent);
Int_t MakeTree(int mode, int nevents, int compression, int split, float &cx);
Int_t ReadTree();
ClassDef(TSTLhitStar,1) // STL vector of pointers to THit
};
//-------------------------------------------------------------
class TCloneshit {
protected:
Int_t fNhits;
TClonesArray *fList3; //->
public:
TCloneshit();
TCloneshit(int nmax);
void Clear(Option_t *option="");
virtual ~TCloneshit();
void MakeEvent(int ievent);
Int_t MakeTree(int mode, int nevents, int compression, int split, float &cx);
Int_t ReadTree();
ClassDef(TCloneshit,1) // TClonesArray of TObjHit
};
#endif
Computing file changes ...