1 #ifndef ALITRDRAWDATA_H
2 #define ALITRDRAWDATA_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////////////////////////////////
10 // Converts TRD digits into a raw data stream //
12 ///////////////////////////////////////////////////////////////////////////////
20 class AliTRDdigitsManager;
25 class AliTRDrawData : public TObject {
30 AliTRDrawData(const AliTRDrawData &r);
31 virtual ~AliTRDrawData();
33 AliTRDrawData &operator=(const AliTRDrawData &/*r*/) { return *this; }
35 virtual Bool_t Digits2Raw(TTree *digits, TTree *tracks = NULL);
37 virtual AliTRDdigitsManager *Raw2Digits(AliRawReader *rawReader);
38 virtual AliTRDdigitsManager *Raw2DigitsOLD(AliRawReader *rawReader);
39 static void SetRawFormatVersion(Int_t iver){ fgRawFormatVersion=iver; };
49 virtual Bool_t Digits2Raw(AliTRDdigitsManager* digitsManager); // for fRawVersion > 0
50 virtual Int_t ProduceHcData(AliTRDarrayADC *digits, Int_t side, Int_t det, UInt_t *buf, Int_t maxSize, Bool_t newEvent);
51 virtual Int_t ProduceHcDataV1andV2(AliTRDarrayADC *digits, Int_t side, Int_t det, UInt_t *buf, Int_t maxSize);
52 virtual Int_t ProduceHcDataV3(AliTRDarrayADC *digits, Int_t side, Int_t det, UInt_t *buf, Int_t maxSize, Bool_t newEvent);
53 //virtual Int_t ProduceHcDataV3(AliTRDarrayADC *digits, Int_t side, Int_t det, UInt_t *buf, Int_t maxSize);
54 void ProduceSMIndexData(UInt_t *buf, Int_t& nw); // SM index words and header - real data format
55 void WriteIntermediateWords(UInt_t *buf, Int_t& nw, Int_t& of, const Int_t& maxSize, const Int_t& det, const Int_t& side); // writes tracklet-endmarker and additional words between tracklet and raw-data
56 void WriteIntermediateWordsV2(UInt_t *buf, Int_t& nw, Int_t& of, const Int_t& maxSize, const Int_t& det, const Int_t& side); // real data format
58 AliTRDgeometry *fGeo; //! Geometry
59 AliTRDfeeParam *fFee; //! Fee Parameters
60 Int_t fNumberOfDDLs; // Number of DDLs
62 ClassDef(AliTRDrawData,5) // TRD raw data class
66 static Int_t fgRawFormatVersion; // simulation raw data version - 0:old , 1:new(real data format)
67 static const UInt_t fgkEndOfTrackletMarker = 0x10001000; // This marks the end of tracklet data words