Use of AliMpSectorSegmentation changed to AliMpVSegmentation
[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 AliTRDCommonParam;
22class AliTRDcalibDB;
23class AliTRDgeometry;
24class AliTRDdataArrayI;
2cb20be6 25
5990c064 26class AliTRDrawData : public TObject {
27
28 public:
29
30 AliTRDrawData();
8c703901 31 AliTRDrawData(const AliTRDrawData &r);
5990c064 32 virtual ~AliTRDrawData();
5990c064 33
8c703901 34 AliTRDrawData &operator=(const AliTRDrawData &/*r*/) { return *this; }
35
36 virtual Bool_t Digits2Raw(TTree *digits, TTree *tracks = NULL);
37 virtual Bool_t SetRawVersion(Int_t v);
38
2cb20be6 39 virtual AliTRDdigitsManager* Raw2Digits(AliRawReader *rawReader);
5990c064 40
41 protected:
42
8c703901 43 virtual Bool_t Digits2RawV0(AliTRDdigitsManager* digitsManager);
44 virtual Bool_t Digits2RawV1(AliTRDdigitsManager* digitsManager);
45 virtual Int_t ProduceHcDataV1(AliTRDdataArrayI *digits
46 , Int_t side, Int_t det, UInt_t *buf, Int_t maxSize);
47
48 Int_t fRawVersion; // Which version of raw simulator is used
49 AliTRDCommonParam *fCommonParam; //! Common parameters
50 AliTRDcalibDB *fCalibration; //! Offline database interface
51 AliTRDgeometry *fGeo; //! Geometry
52 Int_t fNumberOfDDLs; // Number of DDLs
53
54 ClassDef(AliTRDrawData,3) // TRD raw data class
5990c064 55
56};
57#endif