Ignore:
Timestamp:
Jun 14, 2010, 3:54:58 PM (14 years ago)
Author:
garnier
Message:

geant4.9.4 beta rc0

Location:
trunk/examples/advanced/composite_calorimeter
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/advanced/composite_calorimeter/CompositeCalorimeter.cc

    r1230 r1313  
    122122    // visCommand = "/vis/open DAWNFILE";
    123123    // visCommand = "/vis/open VRML2FILE";
    124     visCommand = "/vis/open OGLIX";
     124    visCommand = "/vis/open OGL";
    125125    UI->ApplyCommand(visCommand);
    126126
  • trunk/examples/advanced/composite_calorimeter/GNUmakefile

    r1230 r1313  
    1 # $Id: GNUmakefile,v 1.11 2008/06/15 18:13:06 cirrone Exp $
     1# $Id: GNUmakefile,v 1.12 2010/01/11 14:28:16 gcosmo Exp $
    22# --------------------------------------------------------------
    33# GNUmakefile for examples module.  Gabriele Cosmo, 06/04/98.
     
    99
    1010ifndef G4INSTALL
    11   G4INSTALL = ../../../
     11  G4INSTALL = ../..
    1212endif
    1313
  • trunk/examples/advanced/composite_calorimeter/History

    r807 r1313  
    11-------------------------------------------------------------------
    2 $Id: History,v 1.31 2006/11/14 14:39:51 ribon Exp $
     2$Id: History,v 1.35 2010/06/06 06:18:17 perl Exp $
    33-------------------------------------------------------------------
    44
     
    99                      Example History file
    1010                      ---------------------
     11
     1204.06.2010 - J.Perl (ccal-V09-03-00)
     13- Updated vis usage
     14
     1512.11.2009 - A.Ribon (ccal-V09-02-01)
     16- Use QGSP_BIC_EMY as default Physics List to test the
     17  low-energy electromagnetic.
     18
     1922.02.2009
     20 -  G.Folger;     Tag: ccal-V09-02-00
     21    Fix compilation warnings in CCalRunAction.cc and CCalEndOfEventAction.cc
     22
     2315.06.2008
     24 - G.A.P.Cirrone; Tag: ccal-V09-01-00
     25    Removed no more necessary AIDA commands from GNUmakefile
    1126
    122714.11.2006 - A.Ribon (ccal-V08-01-01)
  • trunk/examples/advanced/composite_calorimeter/README

    r807 r1313  
    11-------------------------------------------------------------------
    2 $Id: README,v 1.12 2006/07/25 11:02:56 gcosmo Exp $
     2$Id: README,v 1.14 2010/06/06 06:18:17 perl Exp $
    33-------------------------------------------------------------------
    44
     
    236236 
    237237 By the default, one of the ufficial High Energy Physics List for
    238  Calorimetry, QGSC, is used in this example. However, it is
    239  very easy to use instead either LHEP or QGSP. To do so, it is
    240  enough to comment/uncomment a line in the main CompositeCalorimeter.cc :
    241  for example, if you want to use LHEP instead of the default QGSC
    242  you have to change it as follows:
     238 Calorimetry, QGSP_BIC_EMY, is used in this example, so that it
     239 allows to test the low-energy electromagnetic.
     240 However, it is very easy to use instead either LHEP, QGSP, or QGSC.
     241 To do so, it is enough to comment/uncomment a line in the main
     242 CompositeCalorimeter.cc : for example, if you want to use LHEP
     243 instead of the default QGSP_BIC_EMY you have to change it as follows:
    243244
    244245  //***LOOKHERE*** CHOOSE THE PHYSICS LIST.
    245   runManager->SetUserInitialization(new LHEP);     // LHEP     
    246   // runManager->SetUserInitialization(new QGSP);     // QGSP   
    247   // runManager->SetUserInitialization(new QGSC);     // QGSC
     246  runManager->SetUserInitialization(new LHEP);          // LHEP     
     247  // runManager->SetUserInitialization(new QGSP);          // QGSP   
     248  // runManager->SetUserInitialization(new QGSC);          // QGSC
     249  // runManager->SetUserInitialization(new QGSP_BIC_EMY);  // QGSP_BIC_EMY
    248250  //***endLOOKHERE***
    249251
     
    251253 in which we don't even take into account the beam profile, noise
    252254 and digitization!) the faster LHEP Physics List would be good enough
    253  for calorimetry studies. However, we prefer to use, as default, the
    254  more sophisticated (but slower) QGSC Physics List for the learning
    255  purposes of this example.
     255 for calorimetry studies.
    256256
    257257
     
    438438     Idle> /run/beamOn 3
    439439
    440  Notice that, by default, OGLIX is used for the visualization,
     440 Notice that, by default, OGL is used for the visualization,
    441441 because it is quite fast and it does not produce any files in
    442442 output. However, you can always choose something else, for example
     
    448448    visCommand = "/vis/open DAWNFILE";
    449449    // visCommand = "/vis/open VRML2FILE";
    450     // visCommand = "/vis/open OGLIX";
     450    // visCommand = "/vis/open OGL";
    451451
    452452 The tracks that are shown include both charged and neutral particles
  • trunk/examples/advanced/composite_calorimeter/src/CCalEndOfEventAction.cc

    r1230 r1313  
    4848#include <map>
    4949
    50 #include "G4TrajectoryContainer.hh"
    51 #include "G4Trajectory.hh"
    52 #include "G4VVisManager.hh"
    53 
    5450#ifdef G4ANALYSIS_USE
    5551#include "CCalAnalysis.hh"
     
    247243  }
    248244#endif
    249 
    250   //A.R. Add to visualize tracks
    251   // extract the trajectories and draw them
    252   if (G4VVisManager::GetConcreteInstance()) {
    253     G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
    254     G4int n_trajectories = 0;
    255     if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
    256     for (G4int i=0; i<n_trajectories; i++) {
    257       G4Trajectory* trj = (G4Trajectory*) ((*(evt->GetTrajectoryContainer()))[i]);
    258       trj->DrawTrajectory(50); // Draw all tracks
    259       // if ( trj->GetCharge() != 0. ) trj->DrawTrajectory(50); // Draw only charged tracks
    260       // if ( trj->GetCharge() == 0. ) trj->DrawTrajectory(50); // Draw only neutral tracks
    261     }
    262   }
    263 
    264245}
    265246
  • trunk/examples/advanced/composite_calorimeter/test.g4mac

    r807 r1313  
    1616/gun/energy 100 GeV
    1717
     18#/control/execute vis.mac
     19
    1820### Simulate ten events
    1921/run/beamOn 10
Note: See TracChangeset for help on using the changeset viewer.