]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/TPCLoader.h
Remove EVE/Reve/ sub-module.
[u/mrichter/AliRoot.git] / EVE / Alieve / TPCLoader.h
1 // $Header$
2
3 #ifndef ALIEVE_TPCLoader_H
4 #define ALIEVE_TPCLoader_H
5
6 #include <TEveElement.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 TEveElementList
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   Int_t    fInitMaxVal;
41
42 public:
43   TPCLoader(const Text_t* n="TPCLoader", const Text_t* t=0);
44   virtual ~TPCLoader();
45
46   virtual void RemoveElementLocal(TEveElement* el);
47   virtual void RemoveElementsLocal();
48
49   void SetFile(const Text_t* f) { fFile = f; }
50   void SetDoubleSR(Bool_t d)    { fDoubleSR = d; }
51
52   const Text_t* GetTPCEquipementMap() const  { return fTPCEquipementMap; }
53   void SetTPCEquipementMap(const Text_t* em) { fTPCEquipementMap = em; }
54   AliRawReaderRoot* GetReader()        const { return fReader; }
55   void SetReader(AliRawReaderRoot* reader)   { fReader = reader; }
56   TPCData* GetData() const { return fData; }
57   void     SetData(TPCData* d);
58
59   void OpenFile();
60   void LoadEvent();
61   void NextEvent(Bool_t rewindOnEnd=kTRUE);
62   void GotoEvent(Int_t event);
63   static void* LoopEvent(TPCLoader* loader);
64
65   void UpdateSectors(Bool_t dropNonPresent=kFALSE);
66   void ReloadSectors();
67   void CreateSectors3D();
68   void DeleteSectors3D();
69
70   void SetInitParams(Int_t mint, Int_t maxt, Int_t thr, Int_t maxval=128);
71
72   ClassDef(TPCLoader, 1);
73 }; // endclass TPCLoader
74
75 }
76
77 #endif