Message: Re: A01Trajectory not used in A01TrackingAction Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: A01Trajectory not used in A01TrackingAction 

Keywords: track visualization attributes A01
Forum: Documentation and Examples
Re: Question A01Trajectory not used in A01TrackingAction (Kazuyoshi Furutaka)
Date: 21 Nov, 2005
From: Joseph Perl <Joseph Perl>

Hi Kazuyoshi,

thanks for your question.

The existing situation in A01 is historical. We moved from the A01Trajectory to the default G4Trajectory to take advantage of the new HepRep attributes that are supported by the G4Trajectory. These attributes allow the WIRED and FRED visualization systems to let you pick on trajectories to see their attributes, or turn on labelling or do cuts based on these attributes.

We left the A01Trajectory there for no particular reason.

To change the attributes, the simplest thing right now is just to modify geant4/source/tracking/src/G4VTrajectory in the method DrawTrajectory.

Coming next month in release 8.0 will be a new feature to make it possible to change how trajectories are drawn from command lines.
We call this feature "enhanced trajectory drawing".  You will be able to use commands to change drawing, such as:
 /vis/modeling/trajectories/drawByCharge-0/set 1 red
 /vis/modeling/trajectories/drawByCharge-0/set -1 magenta
 /vis/modeling/trajectories/drawByCharge-0/set 0 yellow

Another command will let you declare that trajectories should be color-coded based on particle type. The facility will also be there to implement your own color-coding strategies.

I hope this helps

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: A01Trajectory not used in A01TrackingAction"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]