From Stefano:
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveBeamsInfo.h
1 // $Id$
2 // Author: Stefano Carrazza 2010
3
4 /**************************************************************************
5  * Copyright(c) 1998-2009, ALICE Experiment at CERN, all rights reserved. *
6  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
7  * full copyright notice.                                                 *
8  **************************************************************************/
9
10 #ifndef ALIEVEBEAMSINFO_H
11 #define ALIEVEBEAMSINFO_H
12
13 #include "TEveElement.h"
14
15 class AliESDEvent;
16 class AliPhysicsSelection;
17 class AliEveEventSelector;
18 class AliEveMultiView;
19
20 class TGLOverlayButton;
21 class TEveViewer;
22
23
24 //______________________________________________________________________________
25 // Display beams and triggers information on gl-viewers.
26 //
27
28 class AliEveBeamsInfo : public TEveElementList
29 {
30 public:
31   AliEveBeamsInfo(const char* name="AliEveBeamsInfo");
32   virtual ~AliEveBeamsInfo();
33
34   // Set Methods
35   void ShowEventSelection();
36
37   // Functions
38   void ShowBeamsInfo(Bool_t show, Bool_t updateonly = kFALSE);
39   void Update();
40   void SelectEventSelection(Int_t id);
41   void ShowPrevEvent();
42   void ShowNextEvent();
43
44 private:
45   AliESDEvent *fEsd;                      // esd event
46   Bool_t fShowEventsInfo;                 // determine if show events info
47   AliPhysicsSelection *fPhysicsSelection; // physics selection object
48   TGLOverlayButton *fCollisionCandidate;  // AliPhysicsSelection button output
49   TGLOverlayButton *fBeam1;               // beam 1 information
50   TGLOverlayButton *fBeam2;               // beam 2 information
51   AliEveMultiView  *fAl;                  // multiview instance
52   TEveViewer *fHisto2dv;                  // 2D lego view
53   AliEveEventSelector *fEventSelector;    // current event selector
54
55   AliEveBeamsInfo(const AliEveBeamsInfo&);            // Not implemented
56   AliEveBeamsInfo& operator=(const AliEveBeamsInfo&); // Not implemented
57
58   ClassDef(AliEveBeamsInfo, 0); // Short description.
59 };
60
61 #endif