2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
10 #ifndef ALIEVE_TPCLoader_H
11 #define ALIEVE_TPCLoader_H
13 #include <TEveElement.h>
16 class AliRawReaderRoot;
20 class AliEveTPCSector2D;
21 class AliEveTPCSector3D;
23 class AliEveTPCLoader : public TEveElementList
25 friend class AliEveTPCLoaderEditor;
27 AliEveTPCLoader(const AliEveTPCLoader&); // Not implemented
28 AliEveTPCLoader& operator=(const AliEveTPCLoader&); // Not implemented
35 TString fTPCEquipementMap;
36 AliRawReaderRoot* fReader;
39 std::vector<AliEveTPCSector2D*> fSec2Ds;
40 std::vector<AliEveTPCSector3D*> fSec3Ds;
42 Bool_t fSetInitSectorParams;
49 AliEveTPCLoader(const Text_t* n="AliEveTPCLoader", const Text_t* t=0);
50 virtual ~AliEveTPCLoader();
52 virtual void RemoveElementLocal(TEveElement* el);
53 virtual void RemoveElementsLocal();
55 void SetFile(const Text_t* f) { fFile = f; }
56 void SetDoubleSR(Bool_t d) { fDoubleSR = d; }
58 const Text_t* GetTPCEquipementMap() const { return fTPCEquipementMap; }
59 void SetTPCEquipementMap(const Text_t* em) { fTPCEquipementMap = em; }
60 AliRawReaderRoot* GetReader() const { return fReader; }
61 void SetReader(AliRawReaderRoot* reader) { fReader = reader; }
62 AliEveTPCData* GetData() const { return fData; }
63 void SetData(AliEveTPCData* d);
67 void NextEvent(Bool_t rewindOnEnd=kTRUE);
68 void GotoEvent(Int_t event);
69 static void* LoopEvent(AliEveTPCLoader* loader);
71 void UpdateSectors(Bool_t dropNonPresent=kFALSE);
73 void CreateSectors3D();
74 void DeleteSectors3D();
76 void SetInitParams(Int_t mint, Int_t maxt, Int_t thr, Int_t maxval=128);
78 ClassDef(AliEveTPCLoader, 1);
79 }; // endclass AliEveTPCLoader