]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Reve/EventBase.cxx
Dummy methods DefineParticle required by the interface added.
[u/mrichter/AliRoot.git] / EVE / Reve / EventBase.cxx
1 // $Header$
2
3 #include "EventBase.h"
4
5 #include <TObjString.h>
6 #include <TCint.h>
7
8 using namespace Reve;
9
10 //______________________________________________________________________
11 // Reve::EventBase
12 //
13
14 ClassImp(EventBase)
15
16 EventBase::EventBase(const Text_t* n, const Text_t* t) :
17   RenderElementList(n, t),
18   fNewEventCommands()
19 {}
20
21 /**************************************************************************/
22
23 void EventBase::AfterNewEventLoaded()
24 {
25   TIter next(&fNewEventCommands);
26   TObject* o;
27   while ((o = next())) {
28     TObjString* s = dynamic_cast<TObjString*>(o);
29     if (s)
30       gInterpreter->ProcessLine(s->String());
31   }
32 }
33
34 void EventBase::AddNewEventCommand(const Text_t* cmd)
35 {
36   fNewEventCommands.Add(new TObjString(cmd));
37 }