GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AgataHitDisplay.h
Go to the documentation of this file.
1 #ifndef Gw_AgataHitDisplay
2 #define Gw_AgataHitDisplay
3 
4 #ifndef ROOT_TEveQuadSet
5 #include "TEveQuadSet.h"
6 #endif
7 
8 #include "GwLogMessage.h"
9 
10 namespace Gw {
11 
16 class AgataHitDisplay : public TEveQuadSet
17 {
18 
19 public:
20  AgataHitDisplay(const Text_t* name);
21  virtual ~AgataHitDisplay();
22 
24  void SetQuadWidth(Float_t w) { fQuadWidth = w;}
25  void SetQuadHeight(Float_t h) { fQuadHeight = h; }
26 
27 
29  Float_t GetQuadWidth() { return fQuadWidth; }
30  Float_t GetQuadHeight() { return fQuadHeight; }
31 
33  Int_t GetSelectedValue() { return fSelectedValue; }
34 
36  Int_t GetSelectedIdx() { return fSelectedIdx; }
37 
39  void DigitSelected(Int_t idx);
40 
42  void AddHit(Float_t e, Float_t x, Float_t y, Float_t z);
43 
45  void ResetHits();
46 
48  void SetMaxEnergy(Float_t e);
49 
51  Float_t GetMaxEnergy() { return fMaxEnergy; }
52 
53 private:
54 
55  TEveRGBAPalette *fPalette; // color palette
56 
57  Int_t fMaxEnergy; // max energy
58 
59  Float_t fQuadWidth; // width of hit quad
60  Float_t fQuadHeight; // height of hit quad
61 
62  Int_t fSelectedIdx; // selected digit index
63  Int_t fSelectedValue; // selected digit value
64 
65  mutable LogMessage fLog;
66 
67  ClassDef(AgataHitDisplay, 1);
68 };
69 
70 } // end namespace
71 
72 #endif
Base class for a Log message.
Definition: GwLogMessage.h:94
void SetQuadHeight(Float_t h)
Int_t GetSelectedIdx()
Get selected digit index.
header file for GwLogMessage.cpp
Int_t GetSelectedValue()
Get selected digit value.
void AddHit(Float_t e, Float_t x, Float_t y, Float_t z)
Add hit.
AgataHitDisplay(const Text_t *name)
Float_t GetMaxEnergy()
Get Max energy.
void SetMaxEnergy(Float_t e)
Set Max energy.
void SetQuadWidth(Float_t w)
Set width/height of quad.
void ResetHits()
Reset hits.
Float_t GetQuadWidth()
Get width/height of quad.
AgataHitDisplay a class to display hits on event.
void DigitSelected(Int_t idx)
overwrite base function