]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/Alieve/TPCData.h
Merge EVE-dev to HEAD.
[u/mrichter/AliRoot.git] / EVE / Alieve / TPCData.h
CommitLineData
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
12class TTree;
13class AliTPCRawStream;
14class AliTPCRawStreamOld;
15
16namespace Alieve {
17
18class TPCSectorData;
19
20class TPCData : public TObject, public Reve::ReferenceCount
21{
22protected:
23 std::vector<TPCSectorData*> fSectors;
24 Int_t fSectorBlockSize;
25 Short_t fLoadThreshold;
26
27public:
28 TPCData();
29 virtual ~TPCData();
30
31 void CreateSector(Int_t sector);
32 void CreateAllSectors();
33
34 TPCSectorData* GetSectorData(Int_t sector, Bool_t spawnSectors=kFALSE);
35
36 Int_t GetSectorBlockSize() const { return fSectorBlockSize; }
37 void SetSectorBlockSize(Int_t bs) { fSectorBlockSize = bs; }
38
39 Short_t GetLoadThreshold() const { return fLoadThreshold; }
40 void SetLoadThreshold(Short_t lt) { fLoadThreshold = lt; }
41
42 void LoadDigits(TTree* tree, Bool_t spawnSectors=kTRUE);
43 void LoadRaw(AliTPCRawStream& input, Bool_t spawnSectors=kTRUE);
44 void LoadRaw(AliTPCRawStreamOld& input, Bool_t spawnSectors=kTRUE, Bool_t warn=kFALSE);
45
46 ClassDef(TPCData, 1); // Manages TPC data for an event.
47}; // endclass TPCData
48
49}
50
51#endif