Update master to aliroot
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTRDModule.h
CommitLineData
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 **************************************************************************/
fd31e9de 9
a15e6d7d 10#ifndef AliEveTRDModule_H
11#define AliEveTRDModule_H
a282bf09 12
13/////////////////////////////////////////////////////////////////////////
14//
15// - AliEVE implementation -
16// The common structure of a TRD module (SM, Stack or Chamber)
d810d0de 17// - AliEveTRDModule - structure of TRD module for visualisation
18// - AliEveTRDModuleEditor - UI
a282bf09 19//
20// by A.Bercuci (A.Bercuci@gsi.de) Fri Oct 27 2006
21///////////////////////////////////////////////////////////////////////
22
a282bf09 23#include <TNamed.h>
a282bf09 24#include <TGedFrame.h>
a282bf09 25
26class TObject;
27class TGWindow;
28class TGCheckButton;
29class TGNumberEntry;
30class TGColorSelect;
31
a282bf09 32
fd31e9de 33class AliEveTRDModule : public TNamed
34{
35 friend class AliEveTRDModuleEditor;
36 friend class AliEveTRDNode;
37 friend class AliEveTRDChamber;
38
fd31e9de 39public:
40 AliEveTRDModule(const char *typ="XXX", Int_t id=0);
41 virtual ~AliEveTRDModule() {}
42
a15e6d7d 43 virtual Bool_t GetDigitsBox() const {return fDigitsBox;}
44 virtual Bool_t GetDigitsLog() const {return fDigitsLog;}
45 virtual UShort_t GetDigitsThreshold() const {return fDigitsThreshold;}
46 virtual Int_t GetID() const {return fDet;}
fd31e9de 47
48protected:
49 // UI section
a15e6d7d 50 Bool_t fLoadHits, fRnrHits, fLoadDigits; // What to load.
51 Bool_t fRnrDigits, fDigitsLog, fDigitsBox; // What to show.
52 Bool_t fDigitsNeedRecompute; // Need to recompute digits.
fd31e9de 53
a15e6d7d 54 Bool_t fLoadRecPoints, fRnrRecPoints; // What to do with recpoints.
55 Bool_t fLoadTracklets, fRnrTracklets; // What to do with tracklets.
fd31e9de 56
57 Int_t fDet; // detector number
58 UShort_t fDigitsThreshold; // digits threshold
59
4b456ebb 60private:
61 AliEveTRDModule(const AliEveTRDModule&); // Not implemented
62 AliEveTRDModule& operator=(const AliEveTRDModule&); // Not implemented
63
64 ClassDef(AliEveTRDModule, 0); // Structure holder for TRD chamber.
fd31e9de 65};
66
67
68class AliEveTRDModuleEditor : public TGedFrame
69{
fd31e9de 70public:
71 AliEveTRDModuleEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
72 UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
a15e6d7d 73 virtual ~AliEveTRDModuleEditor() {}
fd31e9de 74
75 virtual void SetModel(TObject* obj);
76
77 void ModifyDigitsView();
78 void SetThreshold(Long_t thres);
79 void UpdateChamber();
80 void UpdateClusters(Pixel_t);
81 void UpdateHits(Pixel_t);
82
83protected:
a15e6d7d 84 AliEveTRDModule* fM; // Model object.
fd31e9de 85
86private:
a15e6d7d 87 TGCheckButton *fDisplayHits; // Hit control.
88 TGColorSelect *fHitsColor; // Hit color.
89 TGCheckButton *fDisplayDigits, *fToggleLog, *fToggleBox, *fThreshold; // Display toggles.
90 TGNumberEntry *fThresValue; // Threshold weed.
91 TGCheckButton *fDisplayClusters; // Cluster control.
92 TGColorSelect *fClustersColor; // Cluster color.
93 TGCheckButton *fDisplayTracks; // Track control.
94
4b456ebb 95 AliEveTRDModuleEditor(const AliEveTRDModuleEditor&); // Not implemented
96 AliEveTRDModuleEditor& operator=(const AliEveTRDModuleEditor&); // Not implemented
97
98 ClassDef(AliEveTRDModuleEditor, 0); // Editor for AliEveTRDModule.
fd31e9de 99};
100
a282bf09 101#endif