]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/TPCLoader.h
Added member for double sampling-rate fDoubleSR; copy visualization parameter from...
[u/mrichter/AliRoot.git] / EVE / Alieve / TPCLoader.h
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
20 protected:
21   TString           fFile;
22   Int_t             fEvent;
23   Bool_t            fDoubleSR;
24
25   AliRawReaderRoot* fReader;
26   TPCData*          fData;
27
28   std::vector<TPCSector2D*> fSec2Ds;
29   std::vector<TPCSector3D*> fSec3Ds;
30
31 public:
32   TPCLoader(const Text_t* n="TPCLoader", const Text_t* t=0);
33   virtual ~TPCLoader();
34
35   virtual Bool_t CanEditMainColor() { return kFALSE; }
36
37   void SetFile(const Text_t* f) { fFile = f; }
38   void SetDoubleSR(Bool_t d)    { fDoubleSR = d; }
39
40   TPCData* GetData() const { return fData; }
41   void     SetData(TPCData* d);
42
43   void OpenFile();
44   void LoadEvent();
45   void NextEvent(Bool_t rewindOnEnd=kTRUE);
46   void GotoEvent(Int_t event);
47
48   void UpdateSectors();
49   void CreateSectors3D();
50   void DeleteSectors3D();
51
52   ClassDef(TPCLoader, 1);
53 }; // endclass TPCLoader
54
55 }
56
57 #endif