Wednesday, October 10, 2007

Visualization GEANT4

I used to say:

UI->ApplyCommand("/tracking/storeTrajectory 1");
UI->ApplyCommand("/vis/scene/notifyHandlers");
UI->ApplyCommand("/vis/scene/create");
UI->ApplyCommand("/vis/scene/endOfEventAction accumulate");
UI->ApplyCommand("/vis/scene/add/volume");
UI->ApplyCommand("/vis/sceneHandler/attach");
UI->ApplyCommand("/vis/scene/add/trajectories");

in the RunAction class but now it seems that:

UI->ApplyCommand("/vis/scene/add/trajectories");
UI->ApplyCommand("/vis/modeling/trajectories/create/drawByCharge");
UI->ApplyCommand("/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true");
UI->ApplyCommand("/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2");
UI->ApplyCommand("/vis/scene/endOfEventAction accumulate ");

is better. Also, I removed the /vis/viewer/flush command in EndOfRunAction to see my trajectories.

No comments: