Ignore:
Timestamp:
Nov 30, 2009, 3:52:24 PM (15 years ago)
Author:
garnier
Message:

CVS update

Location:
trunk/documents/UserDoc
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/documents/UserDoc

    • Property svn:ignore set to
      CVS
  • trunk/documents/UserDoc/DocBookUsersGuides

    • Property svn:ignore set to
      CVS
  • trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper

    • Property svn:ignore set to
      CVS
  • trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml

    • Property svn:ignore set to
      CVS
  • trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization

    • Property svn:ignore set to
      CVS
  • trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/enhanceddrawing.xml

    r904 r1208  
    8181      </entry>
    8282      <entry>
    83         0
     83        2 pixels or mm*
     84      </entry>
     85    </row>
     86    <row>
     87      <entry>
     88        Auxiliary point size type
     89      </entry>
     90      <entry>
     91        screen
    8492      </entry>
    8593    </row>
     
    129137      </entry>
    130138      <entry>
    131         0
     139        2 pixels or mm*
     140      </entry>
     141    </row>
     142    <row>
     143      <entry>
     144        Step point size type
     145      </entry>
     146      <entry>
     147        screen
    132148      </entry>
    133149    </row>
     
    167183  </tgroup>
    168184</informaltable>
     185</para>
     186
     187<para>
     188* Depending on size type.  If size type == screen, pixels are assumed and no unit need be supplied.  If size type == world, a unit must be supplied, e.g., 10 cm.
    169189</para>
    170190
     
    176196    The context approach is intended to replace the configuration
    177197    through the imode parameter. The use of imode is depreciated and
    178     will be removed in Geant4 v9.0.
     198    will be removed in Geant4 v10.0.
    179199  </para></listitem>
    180200  <listitem><para>
     
    581601
    582602<para>
    583 To draw by time, you need to use a trajectory that records the
    584 track time at the beginning and end of each step. To do this, write
    585 a tracking action that sets G4RichTrajectory, for example:
    586 
    587 <informalexample>
    588 <programlisting>
    589 #include "G4UserTrackingAction.hh"
    590 class G4Track;
    591 class MyTrackingAction : public G4UserTrackingAction
    592 {
    593    public:
    594    virtual void PreUserTrackingAction(const G4Track* aTrack);
    595 };
    596 #include "G4RichTrajectory.hh"
    597 #include "G4TrackingManager.hh"
    598 #include "G4IdentityTrajectoryFilter.hh"
    599 #include "G4TransportationManager.hh"
    600 #include "G4PropagatorInField.hh"
    601 void MyTrackingAction::PreUserTrackingAction(const G4Track* aTrack)
    602 {
    603   // Require rich trajectory...
    604   fpTrackingManager-&gt;SetTrajectory(new G4RichTrajectory(aTrack));
    605 
    606   // Activate storing of auxiliary points for smoother trajectory...
    607   static G4IdentityTrajectoryFilter curvedFilter;
    608   G4TransportationManager::GetTransportationManager()-&gt;
    609     GetPropagatorInField()-&gt;SetTrajectoryFilter(&amp;curvedFilter);
    610 }
    611 </programlisting>
    612 </informalexample>
    613 
    614 and register an instance of this with the run manager (this can be
    615 done once and for all as soon as the run manager is instantiated,
    616 probably in your main program):
    617 
    618 <informalexample>
    619 <programlisting>
    620 #include "MyTrackingAction.hh"
    621 ...
    622   runManager -&gt; SetUserAction (new MyTrackingAction);
     603To draw by time, you need to use G4RichTrajectory, for example:
     604
     605<informalexample>
     606<programlisting>
     607/vis/scene/add/trajectories rich
     608</programlisting>
     609</informalexample>
     610
     611or
     612
     613<informalexample>
     614<programlisting>
     615/vis/scene/add/trajectories rich smooth
    623616</programlisting>
    624617</informalexample>
     
    648641/vis/open OGLSX
    649642/vis/drawVolume
    650 /vis/scene/add/trajectories
     643/vis/scene/add/trajectories rich
    651644/vis/ogl/set/startTime 0.5 ns
    652645/vis/ogl/set/endTime 0.8 ns
Note: See TracChangeset for help on using the changeset viewer.