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