Ignore:
Timestamp:
Nov 5, 2010, 4:08:39 PM (14 years ago)
Author:
garnier
Message:

update ti head

Location:
trunk/examples/extended/geometry/olap
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/geometry/olap/History

    r1337 r1342  
    1 $Id: History,v 1.11 2010/05/12 20:38:24 allison Exp $
     1$Id: History,v 1.15 2010/10/27 10:41:33 gcosmo Exp $
    22-------------------------------------------------------------------
    33
     
    1717     * Reverse chronological order (last date on top), please *
    1818     ----------------------------------------------------------
     19
     20October 27th, 2010  G.Cosmo - olapex-V09-03-02
     21- Set primary-generator action after physics-list to run-manager.
     22- Fixed compilation warnings for unused parameters.
     23
     24August 24th, 2010  G.Cosmo - olapex-V09-03-01
     25- Fixed compilation error for setting of kRadTolerance.
     26
     27August 16th, 2010  H.Kurashige
     28- Removed inclusion of G4ParticleWithCuts header.
    1929
    2030May 12th, 2010  J.Allison - olapex-V09-03-00
  • trunk/examples/extended/geometry/olap/include/OlapEventAction.hh

    r1337 r1342  
    2525//
    2626//
    27 // $Id: OlapEventAction.hh,v 1.3 2006/06/29 17:22:02 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: OlapEventAction.hh,v 1.5 2010/10/27 10:29:12 gcosmo Exp $
     28// GEANT4 tag $Name: examples-V09-03-09 $
    2929//
    3030//
     
    5959            G4int a=0,
    6060            G4LogicalVolume* original=0) :
    61             hist1(h1), hist2(h2), v1(p1), v2(p2),axis(a)
     61            hist1(h1), hist2(h2), v1(p1), v2(p2),axis(a),
     62            originalMother(original)
    6263            {};
    6364   
  • trunk/examples/extended/geometry/olap/include/OlapManager.hh

    r1337 r1342  
    2525//
    2626//
    27 // $Id: OlapManager.hh,v 1.4 2006/06/29 17:22:08 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: OlapManager.hh,v 1.5 2010/10/27 10:25:26 gcosmo Exp $
     28// GEANT4 tag $Name: examples-V09-03-09 $
    2929//
    3030//
     
    8989   void notifyNewWorld(G4LogicalVolume*);
    9090   void notifyOlaps(const std::vector<OlapInfo*> &);
    91    void deRegisterNotification(OlapNotify*n) { ; }
     91   void deRegisterNotification(OlapNotify*) { ; }
    9292   // FIXME: handle completly different in next redesign!
    9393   std::map<G4LogicalVolume *, G4bool> NoOlapMap;
  • trunk/examples/extended/geometry/olap/olapex.cc

    r1337 r1342  
    2525//
    2626//
    27 // $Id: olapex.cc,v 1.4 2010/05/12 20:38:24 allison Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: olapex.cc,v 1.5 2010/10/27 10:40:21 gcosmo Exp $
     28// GEANT4 tag $Name: examples-V09-03-09 $
    2929//
    3030//
     
    7171  G4RunManager * runManager = new G4RunManager;
    7272 
    73   // particle-generator must be the first useraction!!!
    74   runManager->SetUserAction(new OlapGenerator);
    75  
    7673  // put the user-geometry here
    7774  G4VUserDetectorConstruction * origGeom = new RandomDetector(0);
    7875  OlapDetConstr * olapGeom = new OlapDetConstr(origGeom);
    7976  runManager->SetUserInitialization(olapGeom);
     77
    8078  runManager->SetUserInitialization(new OlapPhysicsList);
     79  runManager->SetUserAction(new OlapGenerator);
    8180 
    8281  // initialize G4
  • trunk/examples/extended/geometry/olap/src/OlapManager.cc

    r1337 r1342  
    2525//
    2626//
    27 // $Id: OlapManager.cc,v 1.3 2006/06/29 17:23:00 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: OlapManager.cc,v 1.4 2010/08/24 07:57:14 gcosmo Exp $
     28// GEANT4 tag $Name: examples-V09-03-09 $
    2929//
    3030//
     
    4646#include "OlapEventAction.hh"
    4747#include "G4GeoNav.hh"
     48#include "G4GeometryTolerance.hh"
    4849#include "G4RunManager.hh"
    4950#include "globals.hh"
     
    5152OlapManager * OlapManager::theInstance = 0;
    5253
    53 OlapManager::OlapManager() :
    54   olapGenerator(0), delta( kRadTolerance ),
    55   eventsPerRun(27), lvPos(0), polyMode(false),
    56   interrupt(false)
     54OlapManager::OlapManager()
     55  : olapGenerator(0), eventsPerRun(27), lvPos(0),
     56    polyMode(false), interrupt(false)
    5757{
    5858   theMessenger = new OlapManagerMessenger(this);
     
    6262   //G4LogicalVolumeStore::iterator aIt = theLVStore->begin();
    6363
     64   delta = G4GeometryTolerance::GetInstance()->GetAngularTolerance();
    6465   theRunManager = G4RunManager::GetRunManager();
    6566   const G4VUserDetectorConstruction * aTmp =
  • trunk/examples/extended/geometry/olap/src/OlapManagerMessenger.cc

    r1337 r1342  
    2525//
    2626//
    27 // $Id: OlapManagerMessenger.cc,v 1.3 2006/06/29 17:23:02 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: OlapManagerMessenger.cc,v 1.4 2010/08/24 07:57:14 gcosmo Exp $
     28// GEANT4 tag $Name: examples-V09-03-09 $
    2929//
    3030//
     
    4040#include "OlapLogManager.hh"
    4141
     42#include "G4GeometryTolerance.hh"
    4243#include "G4UIdirectory.hh"
    4344#include "G4UIcmdWithAString.hh"
     
    5455
    5556  theLogManager = OlapLogManager::GetOlapLogManager();
     57
     58  G4double delta = G4GeometryTolerance::GetInstance()->GetAngularTolerance();
    5659
    5760  theOlapDir = new G4UIdirectory("/olap/");
     
    7881  theDeltaCmd = new G4UIcmdWithADoubleAndUnit("/olap/delta",this);
    7982  theDeltaCmd->SetGuidance("set boundary tolerance for overlaps in units of length");
    80   theDeltaCmd->SetDefaultValue(kRadTolerance);
     83  theDeltaCmd->SetDefaultValue(delta);
    8184  theDeltaCmd->SetParameterName("delta",true);
    8285  theDeltaCmd->SetRange("delta>=1.e-9"); // current G4-accuracy
  • trunk/examples/extended/geometry/olap/src/OlapPhysicsList.cc

    r1337 r1342  
    2525//
    2626//
    27 // $Id: OlapPhysicsList.cc,v 1.2 2006/06/29 17:23:07 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: OlapPhysicsList.cc,v 1.3 2010/08/16 08:23:55 kurasige Exp $
     28// GEANT4 tag $Name: examples-V09-03-09 $
    2929//
    3030//
     
    3939
    4040#include "G4ios.hh"             
    41 #include "G4ParticleDefinition.hh"
    42 #include "G4ParticleWithCuts.hh"
    4341#include "G4ProcessManager.hh"
    4442#include "G4ProcessVector.hh"
Note: See TracChangeset for help on using the changeset viewer.