]>
Commit | Line | Data |
---|---|---|
d810d0de | 1 | // $Id$ |
2 | // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 | |
3 | ||
4 | /************************************************************************** | |
5 | * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * | |
6 | * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * | |
51346b82 | 7 | * full copyright notice. * |
d810d0de | 8 | **************************************************************************/ |
9 | ||
10 | #ifndef ALIEVE_TPCSector3D_H | |
11 | #define ALIEVE_TPCSector3D_H | |
12 | ||
cb4245bb | 13 | #include <EveDet/AliEveTPCSectorViz.h> |
14 | #include <EveDet/AliEveTPCSectorData.h> | |
d810d0de | 15 | |
16 | #include <TEveBoxSet.h> | |
17 | #include <TEvePointSet.h> | |
18 | ||
19 | ||
20 | class AliEveTPCSector3D : public AliEveTPCSectorViz | |
21 | { | |
22 | friend class AliEveTPCSector3DEditor; | |
23 | friend class AliEveTPCSector3DGL; | |
24 | ||
25 | protected: | |
26 | void LoadPadrow(AliEveTPCSectorData::RowIterator& iter, | |
27 | Float_t sx, Float_t sy, Float_t pw, Float_t ph); | |
a97abca8 | 28 | void UpdateBoxesAndPoints(); |
d810d0de | 29 | void SetupPointSetArray(); |
30 | ||
a97abca8 | 31 | TEveBoxSet fBoxSet; // BoxSet used to display digits as boxes. |
32 | TEvePointSetArray fPointSetArray; // PointSet used to display digits as points. | |
33 | Float_t fPointFrac; // Fraction of signal range shown as points. | |
34 | Float_t fPointSize; // Point size. | |
35 | Bool_t fPointSetOn; // PointSet initialized. | |
36 | Int_t fPointSetMaxVal; // Maximum signal value for data in pointset. | |
d810d0de | 37 | |
a97abca8 | 38 | Float_t fDriftVel; // Drift velocity for 'z' coordinate. |
39 | Float_t fZStep; // Z width of a time-bin. | |
d810d0de | 40 | |
41 | public: | |
42 | AliEveTPCSector3D(const Text_t* n="AliEveTPCSector3D", const Text_t* t=0); | |
a97abca8 | 43 | virtual ~AliEveTPCSector3D() {} |
d810d0de | 44 | |
45 | void SetPointFrac(Float_t f) { fPointFrac = f; IncRTS(); } | |
46 | void SetPointSize(Float_t s) { fPointSize = s; } | |
47 | ||
48 | void SetDriftVel(Float_t v) { fDriftVel = v; IncRTS(); } | |
49 | void SetZStep(Float_t step) { fZStep = step; IncRTS(); } | |
50 | ||
51 | virtual void SetRnrFrame(Bool_t rf); | |
52 | ||
53 | virtual void ComputeBBox(); | |
54 | virtual void Paint(Option_t* option=""); | |
55 | ||
a97abca8 | 56 | ClassDef(AliEveTPCSector3D, 1); // Visualization of TPC raw-data in 3D. |
57 | }; | |
d810d0de | 58 | |
59 | #endif |