]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/Reve/EventBase.cxx
Dummy methods DefineParticle required by the interface added.
[u/mrichter/AliRoot.git] / EVE / Reve / EventBase.cxx
CommitLineData
32ec5ec1 1// $Header$
2
3#include "EventBase.h"
4
32e219c2 5#include <TObjString.h>
6#include <TCint.h>
7
32ec5ec1 8using namespace Reve;
9
10//______________________________________________________________________
32e219c2 11// Reve::EventBase
32ec5ec1 12//
13
14ClassImp(EventBase)
15
16EventBase::EventBase(const Text_t* n, const Text_t* t) :
32e219c2 17 RenderElementList(n, t),
18 fNewEventCommands()
32ec5ec1 19{}
32e219c2 20
21/**************************************************************************/
22
23void 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
34void EventBase::AddNewEventCommand(const Text_t* cmd)
35{
36 fNewEventCommands.Add(new TObjString(cmd));
37}