]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFDDLRawData.h
Message commented out
[u/mrichter/AliRoot.git] / TOF / AliTOFDDLRawData.h
1 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice                               */
3
4 ////////////////////////////////////////////////////////////////////////////
5 // Class used for generating the files containing raw data,               //
6 // required for  Data Challenge                                           //
7 ////////////////////////////////////////////////////////////////////////////
8
9 #ifndef AliTOFDDLRAWDATA_H
10 #define AliTOFDDLRAWDATA_H
11
12 class AliTOF;
13 class TTree;
14
15 class AliTOFDDLRawData:public TObject{
16  public:
17   AliTOFDDLRawData();                               // default constructor
18   virtual ~AliTOFDDLRawData(){;}                    // destructor
19   AliTOFDDLRawData(const AliTOFDDLRawData &source); // copy constructor
20   AliTOFDDLRawData& operator=(const AliTOFDDLRawData &source); // ass. op.
21   Int_t RawDataTOF(TBranch* branch); 
22   // This method generates the files with the TOF detector data
23   void SetVerbose(Int_t Verbose){fVerbose=Verbose;}
24   // To set the verbose level
25  private:
26   void  GetDigits(TClonesArray *TOFdigits, Int_t ddl,UInt_t *buf);
27   //This method formats and stores in buf all the digits of a TOF module
28
29   /*
30   void  WriteChipHeader(Int_t ChipAddr,Int_t EventCnt,UInt_t &BaseWord);
31   void  WriteChipTrailer(UInt_t *buf,Int_t ChipHitCount,UInt_t &BaseWord);
32   //The three previous  methods are used to store the data according to the 
33   //TOF detector data format
34
35   void  ReadChipHeader(Int_t &ChipAddr,Int_t &EventCnt,UInt_t BaseWord);
36   void  ReadChipTrailer(Int_t &ChipHitCount,UInt_t BaseWord);
37   //Methods used for reading and dubugging TOF data files
38   */
39
40   Int_t fVerbose;            //Verbose level (0:no msg, 1:msg, 2:digits in txt files)
41   Int_t fIndex;              //number of 32 words to be stored into the output file
42   enum {kDDLOffset = 0x500};  //offset for DDL number
43   ClassDef(AliTOFDDLRawData,1)
44 };
45     
46 #endif