]>
Commit | Line | Data |
---|---|---|
e9a38ea3 | 1 | // $Header$ |
2 | ||
3 | #ifndef ALIEVE_TPCLoader_H | |
4 | #define ALIEVE_TPCLoader_H | |
5 | ||
6 | #include <Reve/RenderElement.h> | |
7 | ||
8 | class AliRawReaderRoot; | |
9 | ||
10 | namespace Alieve { | |
11 | ||
12 | class TPCData; | |
13 | class TPCSector2D; | |
14 | class TPCSector3D; | |
15 | ||
16 | class TPCLoader : public Reve::RenderElementList | |
17 | { | |
18 | friend class TPCLoaderEditor; | |
19 | ||
265ecb21 | 20 | TPCLoader(const TPCLoader&); // Not implemented |
21 | TPCLoader& operator=(const TPCLoader&); // Not implemented | |
22 | ||
e9a38ea3 | 23 | protected: |
24 | TString fFile; | |
25 | Int_t fEvent; | |
8f50aad8 | 26 | Bool_t fDoubleSR; |
e9a38ea3 | 27 | |
47bd7081 | 28 | TString fTPCEquipementMap; |
e9a38ea3 | 29 | AliRawReaderRoot* fReader; |
30 | TPCData* fData; | |
31 | ||
32 | std::vector<TPCSector2D*> fSec2Ds; | |
33 | std::vector<TPCSector3D*> fSec3Ds; | |
34 | ||
e7c8d6ca | 35 | Bool_t fSetInitSectorParams; |
36 | Int_t fInitMinTime; | |
37 | Int_t fInitMaxTime; | |
38 | Int_t fInitThreshold; | |
39 | ||
e9a38ea3 | 40 | public: |
41 | TPCLoader(const Text_t* n="TPCLoader", const Text_t* t=0); | |
42 | virtual ~TPCLoader(); | |
43 | ||
4a378d74 | 44 | virtual void RemoveElementLocal(Reve::RenderElement* el); |
45 | virtual void RemoveElements(); | |
e9a38ea3 | 46 | |
47 | void SetFile(const Text_t* f) { fFile = f; } | |
8f50aad8 | 48 | void SetDoubleSR(Bool_t d) { fDoubleSR = d; } |
e9a38ea3 | 49 | |
47bd7081 | 50 | const Text_t* GetTPCEquipementMap() const { return fTPCEquipementMap; } |
51 | void SetTPCEquipementMap(const Text_t* em) { fTPCEquipementMap = em; } | |
e9a38ea3 | 52 | TPCData* GetData() const { return fData; } |
53 | void SetData(TPCData* d); | |
54 | ||
55 | void OpenFile(); | |
56 | void LoadEvent(); | |
57 | void NextEvent(Bool_t rewindOnEnd=kTRUE); | |
58 | void GotoEvent(Int_t event); | |
59 | ||
60 | void UpdateSectors(); | |
61 | void CreateSectors3D(); | |
62 | void DeleteSectors3D(); | |
63 | ||
e7c8d6ca | 64 | void SetInitParams(Int_t mint, Int_t maxt, Int_t thr); |
65 | ||
e9a38ea3 | 66 | ClassDef(TPCLoader, 1); |
67 | }; // endclass TPCLoader | |
68 | ||
69 | } | |
70 | ||
71 | #endif |