new option for tests in alifakedisplay
[u/mrichter/AliRoot.git] / AD / AliADBuffer.h
CommitLineData
8484394b 1#ifndef AliADBUFFER_H
2#define AliADBUFFER_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 AD digits according to the DDLs format//
8/////////////////////////////////////////////////////////////////////
9
10#ifdef __CINT__
11class fstream;
12#else
13#include "Riostream.h"
14#endif
15
16#include "AliFstream.h"
17
18class AliADBuffer:public TObject{
19
20public:
21 AliADBuffer();
22 AliADBuffer(const char* fileName); //constructor
23 virtual ~AliADBuffer(); //destructor
24
25 void WriteTriggerInfo(UInt_t trigger);
26 void WriteTriggerScalers();
27 void WriteBunchNumbers();
28
29 void WriteChannel(Int_t channel, Short_t *adc, Bool_t integrator);
30 void WriteBeamFlags();
31
32 void WriteMBInfo();
33 void WriteMBFlags();
34
35 void WriteBeamScalers();
36
37 void WriteTiming(Float_t time, Float_t width);
38
39private:
40 AliADBuffer(const AliADBuffer &source); // copy constructor
41 AliADBuffer& operator=(const AliADBuffer &source); // ass. op.
42
43 UInt_t fRemainingWord; // Remaining data word between even and odd channel's data
44 AliFstream* f; //The IO file name
45 ClassDef(AliADBuffer,2)
46};
47
48#endif