]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/TPCLoader.h
names changed to lower case
[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 #include <vector>
8
9 class AliRawReaderRoot;
10
11 namespace Alieve {
12
13 class TPCData;
14 class TPCSector2D;
15 class TPCSector3D;
16
17 class TPCLoader : public Reve::RenderElementList
18 {
19   friend class TPCLoaderEditor;
20
21   TPCLoader(const TPCLoader&);            // Not implemented
22   TPCLoader& operator=(const TPCLoader&); // Not implemented
23
24 protected:
25   TString           fFile;
26   Int_t             fEvent;
27   Bool_t            fDoubleSR;
28
29   TString           fTPCEquipementMap;
30   AliRawReaderRoot* fReader;
31   TPCData*          fData;
32
33   std::vector<TPCSector2D*> fSec2Ds;
34   std::vector<TPCSector3D*> fSec3Ds;
35
36   Bool_t   fSetInitSectorParams;
37   Int_t    fInitMinTime;
38   Int_t    fInitMaxTime;
39   Int_t    fInitThreshold;
40
41 public:
42   TPCLoader(const Text_t* n="TPCLoader", const Text_t* t=0);
43   virtual ~TPCLoader();
44
45   virtual void RemoveElementLocal(Reve::RenderElement* el);
46   virtual void RemoveElementsLocal();
47
48   void SetFile(const Text_t* f) { fFile = f; }
49   void SetDoubleSR(Bool_t d)    { fDoubleSR = d; }
50
51   const Text_t* GetTPCEquipementMap() const  { return fTPCEquipementMap; }
52   void SetTPCEquipementMap(const Text_t* em) { fTPCEquipementMap = em; }
53   TPCData* GetData() const { return fData; }
54   void     SetData(TPCData* d);
55
56   void OpenFile();
57   void LoadEvent();
58   void NextEvent(Bool_t rewindOnEnd=kTRUE);
59   void GotoEvent(Int_t event);
60   static void* LoopEvent(TPCLoader* loader);
61
62   void UpdateSectors(Bool_t dropNonPresent=kFALSE);
63   void ReloadSectors();
64   void CreateSectors3D();
65   void DeleteSectors3D();
66
67   void SetInitParams(Int_t mint, Int_t maxt, Int_t thr);
68
69   ClassDef(TPCLoader, 1);
70 }; // endclass TPCLoader
71
72 }
73
74 #endif