]>
Commit | Line | Data |
---|---|---|
5990c064 | 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 */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | // // | |
10 | // Converts TRD digits into a raw data stream // | |
11 | // // | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include "TObject.h" | |
15 | ||
b864d801 | 16 | class TTree; |
2cb20be6 | 17 | |
92c7f341 | 18 | class AliRunLoader; |
19 | ||
b864d801 | 20 | class AliRawReader; |
5990c064 | 21 | |
2cb20be6 | 22 | class AliTRDdigitsManager; |
8c703901 | 23 | class AliTRDgeometry; |
dfd03fc3 | 24 | class AliTRDfeeParam; |
b65e5048 | 25 | class AliTRDarrayADC; |
a0446ff1 | 26 | class AliTRDdigitsParam; |
50002f37 | 27 | class AliTRDmcmSim; |
2cb20be6 | 28 | |
5990c064 | 29 | class AliTRDrawData : public TObject { |
30 | ||
31 | public: | |
32 | ||
33 | AliTRDrawData(); | |
8c703901 | 34 | AliTRDrawData(const AliTRDrawData &r); |
5990c064 | 35 | virtual ~AliTRDrawData(); |
5990c064 | 36 | |
7925de54 | 37 | AliTRDrawData &operator=(const AliTRDrawData &/*r*/) { return *this; } |
8c703901 | 38 | |
037c5823 | 39 | virtual Bool_t Digits2Raw(TTree *digits, const TTree *tracks = NULL); |
8c703901 | 40 | |
625f5260 | 41 | virtual AliTRDdigitsManager *Raw2Digits(AliRawReader *rawReader); |
92c7f341 | 42 | Bool_t WriteTracklets(Int_t det); |
987ba9a3 | 43 | |
5990c064 | 44 | protected: |
45 | ||
50378239 | 46 | virtual Bool_t Digits2Raw(AliTRDdigitsManager* digitsManager); // for fRawVersion > 0 |
6a04e92b | 47 | virtual Int_t ProduceHcData(AliTRDarrayADC *digits, Int_t side, Int_t det, UInt_t *buf, Int_t maxSize, Bool_t newEvent, Bool_t newSM); |
d271a0f6 | 48 | void ProduceSMIndexData(UInt_t *buf, Int_t& nw); // SM index words and header - real data format |
49 | 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 | |
50 | void AssignStackMask(UInt_t *buf, Int_t nStack); // re-assignment of stack mask in the SM index word | |
6a04e92b | 51 | void AssignLinkMask(UInt_t *buf, Int_t nLayer); // re-assignment of link mask in the stack index word |
52 | 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 | |
53 | Bool_t ShiftWords(UInt_t *buf, Int_t nStart, Int_t nWords, Int_t nMax); // shifts n words | |
50378239 | 54 | |
92c7f341 | 55 | AliRunLoader *fRunLoader; //! Run Loader |
8c703901 | 56 | AliTRDgeometry *fGeo; //! Geometry |
dfd03fc3 | 57 | AliTRDfeeParam *fFee; //! Fee Parameters |
8c703901 | 58 | Int_t fNumberOfDDLs; // Number of DDLs |
92c7f341 | 59 | TTree *fTrackletTree; //! Tree for tracklets |
60 | UInt_t **fTrackletContainer; //! tracklet container | |
8c703901 | 61 | |
987ba9a3 | 62 | private: |
63 | ||
d271a0f6 | 64 | static Int_t fgDataSuppressionLevel; // Data suppression level - 0:no su, 1: su, 2: deep suppression |
65 | static const UInt_t fgkEndOfTrackletMarker = 0x10001000; // This marks the end of tracklet data words | |
66 | static const UInt_t fgkEndOfDataMarker = 0x00000000; // This marks the end of HC data words | |
987ba9a3 | 67 | |
d271a0f6 | 68 | Int_t fSMindexPos; // Position of SM index word |
69 | Int_t fStackindexPos; // Position of SM index word | |
70 | UInt_t fEventCounter; // Event counter(starting from 1) | |
50002f37 | 71 | AliTRDmcmSim *fMcmSim; //! MCM simulation for raw data output |
d271a0f6 | 72 | AliTRDdigitsParam *fDigitsParam; // Digits parameter |
6a04e92b | 73 | |
d271a0f6 | 74 | ClassDef(AliTRDrawData,7) // TRD raw data class |
987ba9a3 | 75 | |
5990c064 | 76 | }; |
77 | #endif |