]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFRawSector.h
Rewriting and cleaning up
[u/mrichter/AliRoot.git] / TOF / AliTOFRawSector.h
1 ////////////////////////////////////////////////
2 //  Digitization class for set: TOF           //
3 //  AliTOFRawSector class                     //
4 //  Interface                                 //
5 //  Description                               //
6 //*-- Authors: Pierella, Seganti, Vicinanza   //
7 //    (Bologna and Salerno University)        //
8 ////////////////////////////////////////////////
9
10 #ifndef ALITOFRAWSECTOR_H
11 #define ALITOFRAWSECTOR_H
12
13 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
14  * See cxx source for full Copyright notice                               */
15
16
17 #include "TObject.h"
18 #include "TClonesArray.h"
19
20 //_______________________________________________________
21 class AliTOFRawSector : public TObject{
22
23  public:
24   AliTOFRawSector();
25 // dtor
26   virtual ~AliTOFRawSector();
27 // copy ctor  (required also by RC10 Coding Convention)
28   AliTOFRawSector(const AliTOFRawSector& tofrawsector);
29 // assignment operator (required also by RC10 Coding Convention)
30   AliTOFRawSector& operator = (const AliTOFRawSector& tofrawsector);
31   void   WriteSector(); // write a DAQ sector
32   void   ReadSector();  // read  a DAQ sector
33
34 // getters for AliTOFRawSector object  
35   TClonesArray* GetRocData()        const {return fRocData;}
36   UInt_t        GetHeader()         const {return fHeader;}
37   UInt_t        GetGlobalCheckSum() const {return fGlobalCheckSum;}
38
39 // setters for AliTOFRawSector object
40   void SetGlobalCS(UInt_t gcs){fGlobalCheckSum=gcs;}
41   void SetHeader  (UInt_t hdr){fHeader = hdr;}
42   
43  protected:
44   TClonesArray* fRocData; // pointer to the TClonesArray of Roc Data
45   UInt_t        fHeader;    // RawSector header number   
46   UInt_t        fGlobalCheckSum; // check flag
47
48   ClassDef(AliTOFRawSector,2) // Container Class for AliTOFRoc objects
49 };
50
51 #endif /* ALITOFRAWSECTOR_H */