]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONMchViewApplication.h
Changing fabs into TMath::Abs
[u/mrichter/AliRoot.git] / MUON / AliMUONMchViewApplication.h
CommitLineData
90037e4e 1#ifndef ALIMUONMCHVIEWAPPLICATION_H
2#define ALIMUONMCHVIEWAPPLICATION_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5* See cxx source for full Copyright notice */
6
7// $Id$
8
9/// \ingroup graphics
10/// \class AliMUONMchViewApplication
11/// \brief Main class for the mchview program
12///
13// Author Laurent Aphecetche, Subatech
14
15#ifndef ROOT_TRint
16# include <TRint.h>
17#endif
90037e4e 18
10eb3d17 19class AliMUONPainterMasterFrame;
90037e4e 20class TGMainFrame;
21
22class AliMUONMchViewApplication : public TRint
23{
90037e4e 24public:
25 AliMUONMchViewApplication(const char* name, int* argc, char** argv,
26 Float_t wfraction, Float_t hfraction);
27 virtual ~AliMUONMchViewApplication();
28
29 void HandleMenu(Int_t i);
30
31 /// Return the version number of the mchview application
49419555 32 static const char* Version() { return "0.93"; }
90037e4e 33
10eb3d17 34 /// Return the SVN revision and version number of the mchview application
4a3224ff 35 static const char* FullVersion() { return Form("mchview Version %s ($Id$)",Version()); }
10eb3d17 36
37 void Open(const char* filename);
38
90037e4e 39private:
40 /// Not implemented
41 AliMUONMchViewApplication(const AliMUONMchViewApplication& rhs);
42 /// Not implemented
43 AliMUONMchViewApplication& operator=(const AliMUONMchViewApplication& rhs);
44
49419555 45 void CompareData();
90037e4e 46 void CreateMenuBar(UInt_t w);
47 void Save();
48 void Save(const char* filename);
49 void Open();
10eb3d17 50 void PrintAs();
49419555 51 void ReleaseNotes();
52
90037e4e 53private:
54 TGMainFrame* fMainFrame; ///< pointer to our mainframe
10eb3d17 55 AliMUONPainterMasterFrame* fPainterMasterFrame; ///< pointer to our main object
56
90037e4e 57 static const Int_t fgkFILESAVEAS; ///< File/Save As... menu
58 static const Int_t fgkFILEOPEN; ///< File/Open... menu
59 static const Int_t fgkFILEEXIT; ///< File/Exit menu
10eb3d17 60 static const Int_t fgkFILEPRINTAS; ///< File/Print As... menu
49419555 61 static const Int_t fgkABOUT; ///< About menu
62 static const Int_t fgkCOMPAREDATA; ///< Tools/Compare Data menu
63
10eb3d17 64 static const char* fgkFileTypes[]; ///< For the open menu
65
49419555 66 ClassDef(AliMUONMchViewApplication,4) // mchview application
90037e4e 67};
68
69#endif