Fix bug in tracklet reconstruction and add option to AliTRDfeeParam
[u/mrichter/AliRoot.git] / TRD / AliTRDrawData.h
CommitLineData
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 16class TTree;
2cb20be6 17
b864d801 18class AliRawReader;
5990c064 19
2cb20be6 20class AliTRDdigitsManager;
8c703901 21class AliTRDgeometry;
dfd03fc3 22class AliTRDfeeParam;
625f5260 23class AliTRDdataArrayS;
2cb20be6 24
5990c064 25class AliTRDrawData : public TObject {
26
27 public:
28
29 AliTRDrawData();
8c703901 30 AliTRDrawData(const AliTRDrawData &r);
5990c064 31 virtual ~AliTRDrawData();
5990c064 32
7925de54 33 AliTRDrawData &operator=(const AliTRDrawData &/*r*/) { return *this; }
8c703901 34
7925de54 35 virtual Bool_t Digits2Raw(TTree *digits, TTree *tracks = NULL);
8c703901 36
625f5260 37 virtual AliTRDdigitsManager *Raw2Digits(AliRawReader *rawReader);
dfbb4bb9 38 virtual AliTRDdigitsManager *Raw2DigitsOLD(AliRawReader *rawReader);
5990c064 39
40 protected:
41
50378239 42 virtual Bool_t Digits2Raw(AliTRDdigitsManager* digitsManager); // for fRawVersion > 0
625f5260 43 virtual Int_t ProduceHcDataV1andV2(AliTRDdataArrayS *digits, Int_t side, Int_t det, UInt_t *buf, Int_t maxSize);
96e6312d 44 virtual Int_t ProduceHcDataV3(AliTRDdataArrayS *digits, Int_t side, Int_t det, UInt_t *buf, Int_t maxSize, Bool_t newEvent);
45 //virtual Int_t ProduceHcDataV3(AliTRDdataArrayS *digits, Int_t side, Int_t det, UInt_t *buf, Int_t maxSize);
1d93b218 46 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
50378239 47
8c703901 48 AliTRDgeometry *fGeo; //! Geometry
dfd03fc3 49 AliTRDfeeParam *fFee; //! Fee Parameters
8c703901 50 Int_t fNumberOfDDLs; // Number of DDLs
51
dfd03fc3 52 ClassDef(AliTRDrawData,5) // TRD raw data class
5990c064 53
54};
55#endif
96e6312d 56
57
58
59
60
61