]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFD.h
Web frame and inner rings pointing.
[u/mrichter/AliRoot.git] / TOF / AliTOFD.h
index 257462b34e2baa3cbe17c5e17233e91755076735..1db59980e3de81a684e79daa5a56698881cb3cb4 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef TOFD_H
-#define TOFD_H
+#ifndef ALITOFD_H
+#define ALITOFD_H
 
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 class AliTOFRoc : public TObject {
 
  public:
-  Int_t   Items;
-  Int_t   Size;
-  Int_t   NRoc;
-  UInt_t  Header;
+  AliTOFRoc();
+  virtual ~AliTOFRoc();
+  Int_t   AddItem  (Int_t Fec, Int_t Tdc, Int_t Error, Float_t Charge, Float_t Time);
+//  Int_t   AddItem  (Int_t, UInt_t);
+// setters for AliTOFRoc object
+  void    SetHeader();
+  void    SetTime  (UInt_t Item, UInt_t Error, Float_t RealTime);
+  void    SetTime  (UInt_t Item, UInt_t tir);
+  void    SetCharge(UInt_t Item, UInt_t Fec,UInt_t Tdc,Float_t RealCharge);  
+  void    SetCharge(UInt_t Item, UInt_t chr);  
+// getters for AliTOFRoc object
+  Float_t GetTime  (Int_t Item,UInt_t& Error);
+  Float_t GetCharge(Int_t Item);
+  Int_t   GetTotPad(Int_t Item);
+  UInt_t  GetCheckSum();
+  UInt_t  BitCount (UInt_t x);
+  UInt_t  SetSize  ();
   
+  Int_t  GetSize()           const {return fItems*8+4;}
+  Int_t  GetItems()          const {return fItems;}
+  UInt_t GetChrgRow(Int_t i) const {return fChrgRow[i];}
+  UInt_t GetTimeRow(Int_t i) const {return fTimeRow[i];} 
+  void   SetHeader(UInt_t head){fHeader=head;}
+
+ protected:
+  Int_t   fItems; // number of items
+  Int_t   fSize;  // size
+  Int_t   fNRoc;  // Roc number
+  UInt_t  fHeader; // Roc header number
+
 /*  class ChargeRow
   {
   public:
@@ -32,7 +57,7 @@ class AliTOFRoc : public TObject {
     UInt_t TdcID:6;
     Int_t  ChADC:16;
   }Charge[1024];
-  
+
   class TimeRow
   {
   public:
@@ -40,44 +65,25 @@ class AliTOFRoc : public TObject {
     Int_t  TDC  :24;
   }Time[1024];
 */
-  UInt_t ChrgRow[1024];
-  UInt_t TimeRow[1024];
+  UInt_t fChrgRow[1024]; // adc values
+  UInt_t fTimeRow[1024]; // tdc values
+
+
 
- public:
-  AliTOFRoc();
-  virtual ~AliTOFRoc();
-  Int_t   AddItem  (Int_t, Int_t, Int_t, Float_t, Float_t);
-//  Int_t   AddItem  (Int_t, UInt_t);
-  void    SetHeader();
-  void    SetTime  (UInt_t, UInt_t, Float_t);
-  void    SetTime  (UInt_t, UInt_t);
-  void    SetCharge(UInt_t, UInt_t,UInt_t,Float_t);  
-  void    SetCharge(UInt_t, UInt_t);  
-  Float_t GetTime  (Int_t,UInt_t&);
-  Float_t GetCharge(Int_t);
-  Int_t   GetTotPad(Int_t);
-  UInt_t  GetCheckSum();
-  UInt_t  BitCount (UInt_t);
-  UInt_t  SetSize  ();
-  
-  inline Int_t  GetSize()          {return Items*8+4;}
-  inline Int_t  GetItems()         {return Items;}
-  inline UInt_t GetChrgRow(Int_t i){return ChrgRow[i];}
-  inline UInt_t GetTimeRow(Int_t i){return TimeRow[i];} 
-  inline void   SetHeader(UInt_t head){Header=head;}
   ClassDef(AliTOFRoc,2)
 };
 
 //_______________________________________________________
 class AliTOFRawDigit : public TObject{
-
-public:
-  Int_t fTreeD;
-  Int_t fRawDigits;
   
 public:
   AliTOFRawDigit();
   virtual ~AliTOFRawDigit(){};
+
+protected:
+  Int_t fTreeD;     // class under construction
+  Int_t fRawDigits; // class under construction
+
   
   ClassDef(AliTOFRawDigit,2)
 };
@@ -86,22 +92,23 @@ public:
 //_______________________________________________________
 class AliTOFRawSector : public TObject{
 
- public:
-  TClonesArray  *fRocData;
-  UInt_t        Header;
-  UInt_t        GlobalCheckSum;
-
  public:
   AliTOFRawSector();
   virtual ~AliTOFRawSector();
   void   WriteSector();
   void   ReadSector();
   
-  inline TClonesArray  *GetRocData() {return fRocData;}
-  inline void SetGlobalCS(UInt_t gcs){GlobalCheckSum=gcs;}
-  inline void SetHeader  (UInt_t hdr){Header = hdr;}
+  TClonesArray* GetRocData() const {return fRocData;}
+  void SetGlobalCS(UInt_t gcs){fGlobalCheckSum=gcs;}
+  void SetHeader  (UInt_t hdr){fHeader = hdr;}
+
+ protected:
+  TClonesArray* fRocData; // pointer to the TClonesArray of Roc Data
+  UInt_t        fHeader;    // RawSector header number
+  UInt_t        fGlobalCheckSum; // check flag
+
   
   ClassDef(AliTOFRawSector,2)
 };
 
-#endif
+#endif /* ALITOFD_H */