-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathaction.cc
More file actions
28 lines (21 loc) · 700 Bytes
/
action.cc
File metadata and controls
28 lines (21 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "action.hh"
MyActionInitialization::MyActionInitialization()
{}
MyActionInitialization::~MyActionInitialization()
{}
void MyActionInitialization::BuildForMaster() const
{
MyRunAction *runAction = new MyRunAction();
SetUserAction(runAction);
}
void MyActionInitialization::Build() const
{
MyPrimaryGenerator *generator = new MyPrimaryGenerator();
SetUserAction(generator);
MyRunAction *runAction = new MyRunAction();
SetUserAction(runAction);
MyEventAction *eventAction = new MyEventAction(runAction);
SetUserAction(eventAction);
MySteppingAction *steppingAction = new MySteppingAction(eventAction);
SetUserAction(steppingAction);
}