]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveBase/AliEveMacro.h
6173df9c18b1b90a241cef3b841ac63725215abf
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveMacro.h
1 // @(#)root/eve:$Id$
2 // Author: Matevz Tadel 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          *
7  * full copyright notice.                                                 *
8  **************************************************************************/
9
10 #ifndef AliEveMacro_H
11 #define AliEveMacro_H
12
13 #include <TObject.h>
14 #include <TString.h>
15
16 //______________________________________________________________________________
17 // Short description of AliEveMacro
18 //
19
20 class AliEveMacro : public TObject
21 {
22   friend class AliEveMacroEditor;
23
24 public:
25   enum DataSource_e { kNone = 0, kRunLoader, kESD, kESDfriend, kRawReader };
26
27   AliEveMacro(Int_t src, const TString& mac, const TString& foo,
28               const TString& args="", Bool_t act=kTRUE);
29   virtual ~AliEveMacro() {}
30
31   Int_t          GetSources() const         { return fSources; }
32   void           SetSources(Int_t x)        { fSources = x; }
33   const TString& GetMacro() const           { return fMacro; }
34   void           SetMacro(const TString& x) { fMacro = x; }
35   const TString& GetFunc() const            { return fFunc; }
36   void           SetFunc(const TString& x)  { fFunc = x; }
37   const TString& GetArgs() const            { return fArgs; }
38   void           SetArgs(const TString& x)  { fArgs = x; }
39   Bool_t         GetActive() const          { return fActive; }
40   void           SetActive(Bool_t x)        { fActive = x; }
41
42   TString        FormForExec() const;
43   TString        FormForDisplay() const;
44
45 protected:
46   Int_t   fSources;
47   TString fMacro;
48   TString fFunc;
49   TString fArgs;
50   Bool_t  fActive;
51
52 private:
53
54   ClassDef(AliEveMacro, 0); // Short description.
55 };
56
57 #endif