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

CVS update

Location:
trunk/documents/UserDoc
Files:
8 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/compiledcontrol.xml

    r904 r1208  
    66<!--    Changed by: Dennis Wright, 27-Nov-2001                -->
    77<!--    Converted to DocBook: Katsuya Amako, Aug-2006         -->
     8<!--    Corrected Get methods: Joseph Perl, 17-Mar-2009       -->
    89<!--                                                          -->
    910<!-- ******************************************************** -->
     
    363364  void MyEventAction::EndOfEventAction()
    364365  {
    365     const G4Event* evt = fpEventManager-&gt;get_const_currentEvent();
    366 
    367     G4SDManager * SDman = G4SDManager::get_SDMpointer();
     366    const G4Event* evt = fpEventManager-&gt;GetConstCurrentEvent();
     367
     368    G4SDManager * SDman = G4SDManager::GetSDMpointer();
    368369    G4String colNam;
    369     G4int trackerCollID = SDman-&gt;get_collectionID(colNam="TrackerCollection");
    370     G4int calorimeterCollID = SDman-&gt;get_collectionID(colNam="CalCollection");
    371 
    372     G4TrajectoryContainer * trajectoryContainer = evt-&gt;get_trajectoryContainer();
     370    G4int trackerCollID = SDman-&gt;GetCollectionID(colNam="TrackerCollection");
     371    G4int calorimeterCollID = SDman-&gt;GetCollectionID(colNam="CalCollection");
     372
     373    G4TrajectoryContainer * trajectoryContainer = evt-&gt;GetTrajectoryContainer();
    373374    G4int n_trajectories = 0;
    374375    if(trajectoryContainer)
    375376    { n_trajectories = trajectoryContainer-&gt;entries(); }
    376377
    377     G4HCofThisEvent * HCE = evt-&gt;get_HCofThisEvent();
     378    G4HCofThisEvent * HCE = evt-&gt;GetHCofThisEvent();
    378379    G4int n_hitCollection = 0;
    379380    if(HCE)
    380     { n_hitCollection = HCE-&gt;get_capacity(); }
     381    { n_hitCollection = HCE-&gt;GetCapacity(); }
    381382 
    382383    G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
     
    391392      for(G4int i=0; i &lt; n_trajectories; i++)
    392393      {
    393           (*(evt-&gt;get_trajectoryContainer()))[i]-&gt;DrawTrajectory();
     394          (*(evt-&gt;GetTrajectoryContainer()))[i]-&gt;DrawTrajectory();
    394395      }
    395396
    396397      // Construct 3D data for hits
    397398      MyTrackerHitsCollection* THC
    398         = (MyTrackerHitsCollection*)(HCE-&gt;get_HC(trackerCollID));
     399        = (MyTrackerHitsCollection*)(HCE-&gt;GetHC(trackerCollID));
    399400      if(THC) THC-&gt;DrawAllHits();
    400401      MyCalorimeterHitsCollection* CHC
    401         = (MyCalorimeterHitsCollection*)(HCE-&gt;get_HC(calorimeterCollID));
     402        = (MyCalorimeterHitsCollection*)(HCE-&gt;GetHC(calorimeterCollID));
    402403      if(CHC) CHC-&gt;DrawAllHits();
    403404
  • 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
  • trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/visTutor

    • Property svn:ignore set to
      CVS
Note: See TracChangeset for help on using the changeset viewer.