GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BaseEventDisplay.h
Go to the documentation of this file.
1 
2 
3 
4 #ifndef Gw_BaseEventDisplay
5 #define Gw_BaseEventDisplay
6 
7 #include "GwLogMessage.h"
8 
9 #ifndef ROOT_TEveEventManager
10 #include "TEveEventManager.h"
11 #endif
12 
13 #ifndef ROOT_TGeoMatrix
14 #include "TGeoMatrix.h"
15 #endif
16 
17 class TGeoVolume;
18 
19 namespace Gw {
20 
21 class BaseEventContainer;
22 
26 class BaseEventDisplay : public TEveEventManager
27 {
28 protected:
31 
32 protected:
33  static Bool_t fgIsGeoLoaded; // flag if geometry loaded
34  static Bool_t fgIsDisplayed; // flag if a display already opened
35 
36 public:
37  virtual ~BaseEventDisplay();
38 
39  virtual void FirstEvent() { return; } //*MENU*
40  virtual void NextEvent() { return; } //*MENU*
41  virtual void PrevEvent() { return; } //*MENU*
42 
43  virtual void SetTransparency(Char_t transparency = 50); //*MENU*
44 
45  virtual void ShowDisplay() { return; }
46 
47  virtual void LoadGeometry(const Char_t* fileName);
48 
49  virtual void AddGeometry(TGeoVolume* volume, TGeoMatrix* matrix = gGeoIdentity);
50 
51  Int_t GetCurrentEventId() const { return fCurrentEventId; }
52 
53  void SetMaxEnergy(Float_t e) { fMaxEnergy = e; }
54  Float_t GetMaxEnergy() { return fMaxEnergy; }
55 
56 
57 protected:
58 
59  Int_t fCurrentEventId; // Current event id
60 
61  Bool_t fFirstEventDone; // flag for first event processed
62 
63  Float_t fMaxEnergy; // maximum energy fo palette (in keV)
64 
65  TGeoVolume* fTopVolume; // top volume of geometry
66 
67  Bool_t fDrawFloor; // flag for drawing floor
68 
69  mutable LogMessage fLog;
70 
71 
72  ClassDef(BaseEventDisplay, 1); // Base class for facilities to play with level scheme
73 };
74 
75 } // end namespace
76 
77 #endif
BaseEventDisplay base class to work on event display.
static Bool_t fgIsGeoLoaded
virtual void PrevEvent()
Base class for a Log message.
Definition: GwLogMessage.h:94
Int_t GetCurrentEventId() const
header file for GwLogMessage.cpp
ClassDef(BaseEventDisplay, 1)
log message
virtual void ShowDisplay()
virtual void LoadGeometry(const Char_t *fileName)
static Bool_t fgIsDisplayed
virtual void FirstEvent()
virtual void AddGeometry(TGeoVolume *volume, TGeoMatrix *matrix=gGeoIdentity)
BaseEventDisplay()
default constructor
void SetMaxEnergy(Float_t e)
virtual void NextEvent()
virtual void SetTransparency(Char_t transparency=50)