]> git.uio.no Git - u/mrichter/AliRoot.git/blob - VZERO/AliVZEROBuffer.h
New hybrid geometry using both new code and old parts. Improved SDD geometry (L....
[u/mrichter/AliRoot.git] / VZERO / AliVZEROBuffer.h
1 #ifndef AliVZEROBUFFER_H
2 #define AliVZEROBUFFER_H
3 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 ///////////////////////////////////////////////////////////////////
7 // Class used for storing TPC digits according to the DDLs format//
8 //////////////////////////////////////////////////////////////////
9
10 #ifdef __CINT__
11 class fstream;
12 #else
13 #include "Riostream.h"
14 #endif
15
16
17 class AliVZEROBuffer:public TObject{
18
19 public:
20   AliVZEROBuffer();
21   AliVZEROBuffer(const char* fileName); //constructor
22   virtual ~AliVZEROBuffer(); //destructor
23   AliVZEROBuffer(const AliVZEROBuffer &source); // copy constructor
24   AliVZEROBuffer& operator=(const AliVZEROBuffer &source); // ass. op.
25   void    WriteBinary(Int_t cell,Int_t ADC, Int_t Time);
26   UInt_t  GetDigNumber()const{return fNumberOfDigits;}
27   void    SetVerbose(Int_t val){fVerbose=val;}
28   Int_t   GetVerbose() const{return  fVerbose;} 
29   
30 private:
31   Int_t fVerbose; //Verbosity level: 0-silent, 1:cout msg, 2: txt files for checking
32   fstream f;      //The IO file name
33   UInt_t  fNumberOfDigits; //Number of VZERO digits
34   ClassDef(AliVZEROBuffer,1)
35 };
36
37 #endif