]>
Commit | Line | Data |
---|---|---|
915dabe1 | 1 | // $Header$ |
2 | ||
3 | #ifndef ALIEVE_TPCData_H | |
4 | #define ALIEVE_TPCData_H | |
5 | ||
6 | #include <Reve/Reve.h> | |
7 | ||
8 | #include <TObject.h> | |
9 | ||
10 | #include <vector> | |
11 | ||
12 | class TTree; | |
13 | class AliTPCRawStream; | |
14 | class AliTPCRawStreamOld; | |
15 | ||
16 | namespace Alieve { | |
17 | ||
18 | class TPCSectorData; | |
19 | ||
20 | class TPCData : public TObject, public Reve::ReferenceCount | |
21 | { | |
22 | protected: | |
23 | std::vector<TPCSectorData*> fSectors; | |
24 | Int_t fSectorBlockSize; | |
25 | Short_t fLoadThreshold; | |
b56d8877 | 26 | Short_t fLoadPedestal; |
d6433e5d | 27 | Bool_t fAutoPedestal; |
915dabe1 | 28 | |
29 | public: | |
30 | TPCData(); | |
31 | virtual ~TPCData(); | |
32 | ||
33 | void CreateSector(Int_t sector); | |
34 | void CreateAllSectors(); | |
092578a7 | 35 | void DropAllSectors(); |
36 | void DeleteAllSectors(); | |
915dabe1 | 37 | |
38 | TPCSectorData* GetSectorData(Int_t sector, Bool_t spawnSectors=kFALSE); | |
39 | ||
40 | Int_t GetSectorBlockSize() const { return fSectorBlockSize; } | |
41 | void SetSectorBlockSize(Int_t bs) { fSectorBlockSize = bs; } | |
42 | ||
43 | Short_t GetLoadThreshold() const { return fLoadThreshold; } | |
44 | void SetLoadThreshold(Short_t lt) { fLoadThreshold = lt; } | |
45 | ||
b56d8877 | 46 | Short_t GetLoadPedestal() const { return fLoadPedestal; } |
47 | void SetLoadPedestal(Short_t lp) { fLoadPedestal = lp; } | |
48 | ||
d6433e5d | 49 | Bool_t GetAutoPedestal() const { return fAutoPedestal; } |
50 | void SetAutoPedestal(Bool_t ap) { fAutoPedestal = ap; } | |
51 | ||
915dabe1 | 52 | void LoadDigits(TTree* tree, Bool_t spawnSectors=kTRUE); |
5987168b | 53 | void LoadRaw(AliTPCRawStream& input, Bool_t spawnSectors=kTRUE, Bool_t warn=kFALSE); |
915dabe1 | 54 | |
55 | ClassDef(TPCData, 1); // Manages TPC data for an event. | |
56 | }; // endclass TPCData | |
57 | ||
58 | } | |
59 | ||
60 | #endif |