]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDrawData.h
Coverity fixes.
[u/mrichter/AliRoot.git] / TRD / AliTRDrawData.h
index 4e042f4a578aa79df6bb3c91151eafbeb1b0799d..564330dbf8970e0e7529fb0b5549a2d375dcd600 100644 (file)
 #include "TObject.h"
 
 class TTree;
-class AliTRDdigitsManager;
+
+class AliRunLoader;
+
 class AliRawReader;
 
+class AliTRDdigitsManager;
+class AliTRDgeometry;
+class AliTRDfeeParam;
+class AliTRDarrayADC;
+class AliTRDdigitsParam;
+class AliTRDmcmSim;
+
 class AliTRDrawData : public TObject {
 
  public:
@@ -24,19 +33,45 @@ class AliTRDrawData : public TObject {
   AliTRDrawData();
   AliTRDrawData(const AliTRDrawData &r);
   virtual ~AliTRDrawData();
-  AliTRDrawData &operator=(const AliTRDrawData &r);
 
-  virtual void                 Copy(TObject &r);
+  AliTRDrawData &operator=(const AliTRDrawData &/*r*/) { return *this; }
 
-  virtual Bool_t               Digits2Raw(TTree *digits);
-  virtual AliTRDdigitsManager* Raw2Digits(AliRawReader* rawReader);
-  virtual void                 SetDebug(Int_t v = 1) { fDebug = v; };
+  virtual Bool_t       Digits2Raw(TTree *digits, const TTree *tracks = NULL);
+
+  virtual AliTRDdigitsManager *Raw2Digits(AliRawReader *rawReader);
+  Bool_t WriteTracklets(Int_t det);
 
  protected:
 
-  Int_t                fDebug;          //  Debug level
+  virtual Bool_t       Digits2Raw(AliTRDdigitsManager* digitsManager); // for fRawVersion > 0
+  virtual Int_t        ProduceHcData(AliTRDarrayADC *digits, Int_t side, Int_t det, UInt_t *buf, Int_t maxSize, Bool_t newEvent, Bool_t newSM);
+         void         ProduceSMIndexData(UInt_t *buf, Int_t& nw);                              // SM index words and header - real data format
+          void         WriteIntermediateWords(UInt_t *buf, Int_t& nw, Int_t& of, const Int_t& maxSize, const Int_t& det, const Int_t& side); // real data format
+                 void         AssignStackMask(UInt_t *buf, Int_t nStack);  // re-assignment of stack mask in the SM index word
+          void         AssignLinkMask(UInt_t *buf, Int_t nLayer);   // re-assignment of link mask in the stack index word
+          Int_t        AddStackIndexWords(UInt_t *buf, Int_t nStack, Int_t nMax);   // add stack index words and stack header when there is no data for the stack 
+          Bool_t       ShiftWords(UInt_t *buf, Int_t nStart, Int_t nWords, Int_t nMax); // shifts n words
+  
+  AliRunLoader        *fRunLoader;      //! Run Loader
+  AliTRDgeometry      *fGeo;            //! Geometry
+  AliTRDfeeParam      *fFee;            //! Fee Parameters
+  Int_t                fNumberOfDDLs;   //  Number of DDLs
+  TTree               *fTrackletTree;        //! Tree for tracklets
+  UInt_t              **fTrackletContainer;  //! tracklet container
+
+ private:
+
+  static       Int_t  fgDataSuppressionLevel;               // Data suppression level - 0:no su, 1: su, 2: deep suppression 
+  static const UInt_t fgkEndOfTrackletMarker  = 0x10001000; // This marks the end of tracklet data words
+  static const UInt_t fgkEndOfDataMarker      = 0x00000000; // This marks the end of HC data words
+
+  Int_t   fSMindexPos;                // Position of SM index word
+  Int_t   fStackindexPos;             // Position of SM index word
+  UInt_t  fEventCounter;              // Event counter(starting from 1)
+  AliTRDmcmSim      *fMcmSim;         //! MCM simulation for raw data output
+  AliTRDdigitsParam *fDigitsParam;    // Digits parameter
 
-  ClassDef(AliTRDrawData,1)             //  TRD raw data class
+  ClassDef(AliTRDrawData,7)             //  TRD raw data class
 
 };
 #endif