Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 2.1 1998/07/15 08:24:39 allison Exp $
$Id: History,v 1.1 1999/01/07 16:04:49 gunter Exp $
-------------------------------------------------------------------
=========================================================
+23 -27
View File
@@ -1,14 +1,14 @@
OPACS as a visualization environment for G4
OPACS as a visualization environment for Geant4
-------------------------------------------
The OPACS html address is :
http://www.lal.in2p3.fr/OPACS
To have OPACS using G4 :
To have OPACS using Geant4 :
- Install the OPACS v3 by following
the web installation page.
For G4 take the group :
For Geant4 take the group :
WoXoXm if you have MOTIF
WoXoXaw if you have Xaw
For example on a UNIX with MOTIF only :
@@ -29,8 +29,7 @@ OPACS as a visualization environment for G4
UNIX> rm WoXoXm.tar
( UNIX> rm WoXoXaw.tar )
UNIX> cd OPACS/v3
UNIX> chmod u+x conf.sh
UNIX> ./conf.sh
UNIX> <edit the setup.csh, setup.sh> to handle your environment.
csh> source setup.csh
(sh> . ./setup.sh)
UNIX> make WoXo
@@ -54,44 +53,36 @@ OPACS as a visualization environment for G4
- Execute OPACS setup script :
csh> source <OPACS_HOME>/OPACS/v3/setup.csh
- Bring G4/prototype and reconstruct G4 libraries.
- Bring Geant4/source and reconstruct libraries.
- Bring G4/environments/OPACS.
- Bring Geant4/environments/OPACS.
- Reconstruct G4/environments/OPACS :
UNIX> cd <G4>/environments/OPACS/mgr
UNIX> <edit setup.csh> to change paths.
- Reconstruct Geant4/environments/OPACS :
UNIX> cd <Geant4>/environments/OPACS/mgr
UNIX> <edit setup.csh> to handle your environment.
csh> source setup.csh
(sh> . ./setup.sh)
UNIX> make <config>
( UNIX> gmake <config> )
where <config> is a compilation "configuration".
For example :
UNIX> make OSF1
UNIX> make OSF1-cxx
UNIX> make HP-UX-aCC
The compilation "configs" are defined in the file :
mgr/Config.mk
If the existing "configs" do not match your environment,
edit this file. Existing configs are :
OSF1
HP-UX
OSF1-cxx
HP-UX-aCC
ULTRIX
Linux
AIX
IRIX (not tested yet)
SunOS (not tested yet)
insure
Linux-gxx
SunOS-CC
At the end of installation you should
find in the parallel <config> directory the
G4o library and some executables :
G4o library and the executable :
EXPO.exe
TEST.exe
ATLAS.exe
Run them by doing :
Run it by doing :
UNIX> cd ../usr
UNIX> ../<config>/<app>.exe
UNIX> ../<config>/EXPO.exe
As usual, when you have something in an Xo window
you can manipulate it with :
@@ -100,9 +91,14 @@ OPACS as a visualization environment for G4
menu to do things, like changing "Ctrl" action,
setting ZBuffer, etc...
The "experiment" EXPO is a very simple example
to help starting some Geant4 application working
with OPACS. Most of the interactivity is handled
in the OPACS/usr/EXPO*odb,osh files.
NOTE : the app/TEST.cc application is for developer
testing purpose and is not reconstructed
by default.
+22 -13
View File
@@ -5,18 +5,28 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: EXPO.cc,v 2.3 1998/08/12 14:21:12 barrand Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: EXPO.cc,v 1.4 1999/05/18 13:27:23 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#include <stdlib.h>
/*G4*/
#if defined(SOLVE_TEMPLATES) && !defined(G4_SOLVE_TEMPLATES)
#define G4_SOLVE_TEMPLATES
#endif
#include <g4templates.hh> /*Before any G4 include file.*/
/*Geant4*/
#include <G4RunManager.hh>
#ifdef __sun
#include "EXPO_Templates.hh"
// This :
/*
template class RWTValOrderedVector<MyTrackerHit>;
template class RWTValOrderedVector<MyCalorimeterHit>;
template class RWTValVector<MyTrackerHit>;
template class RWTValVector<MyCalorimeterHit>;
template class G4Allocator<MyCalorimeterHit>;
template class G4Allocator<MyTrackerHit>;
*/
#endif
/*OPACS*/
/*begin Want_h*/
#include <WoWo.h>
@@ -68,8 +78,7 @@ public:
~EXPO_RunAction() {
delete timer;
}
void BeginOfRunAction(G4Run* aRun) {
aRun->SetRunID(runIDcounter++);
void BeginOfRunAction(const G4Run* aRun) {
CWarnF ("### Run %d start.\n",aRun->GetRunID());
timer->Start();
#ifdef HAS_HO
@@ -78,7 +87,7 @@ public:
myHisto2D = OHistogramGetIdentifier("HepJamesVsDRand48");
#endif /*HAS_HO*/
}
void EndOfRunAction(G4Run* aRun) {
void EndOfRunAction(const G4Run* aRun) {
timer->Stop();
if (timer->IsValid()) {
CWarnF ("number of event = %d User=%gs Real=%gs Sys=%gs\n",
@@ -112,9 +121,9 @@ public:
}
~EXPO_EventAction() {
}
void BeginOfEventAction() {
void BeginOfEventAction(const G4Event*) {
}
void EndOfEventAction() {
void EndOfEventAction(const G4Event*) {
}
};
@@ -126,7 +135,7 @@ private:
public:
EXPO_SteppingAction(){};
~EXPO_SteppingAction(){};
void UserSteppingAction() {
void UserSteppingAction(const G4Step*) {
#ifdef HAS_HO
OHistogram h1 = EXPO_RunAction::get_1d();
OHistogram h2 = EXPO_RunAction::Get2d();
+2 -6
View File
@@ -5,16 +5,12 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: TEST.cc,v 2.2 1998/08/12 14:20:24 barrand Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: TEST.cc,v 1.2 1999/04/16 10:03:17 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#include <stdlib.h>
/*G4*/
#if defined(SOLVE_TEMPLATES) && !defined(G4_SOLVE_TEMPLATES)
#define G4_SOLVE_TEMPLATES
#endif
#include <g4templates.hh> /*Before any G4 include file.*/
#include <G4RunManager.hh>
/*OPACS*/
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: EXPO_Detector.icc,v 2.1 1998/07/12 02:36:58 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: EXPO_Detector.icc,v 1.2 1999/04/16 10:03:19 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// See also G4/run/example/MyDetectorConstruction.cc.
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: EXPO_PhysicsList.hh,v 2.1 1998/07/12 02:36:58 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: EXPO_PhysicsList.hh,v 1.3 1999/05/18 10:57:12 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// ------------------------------------------------------------
@@ -15,8 +15,6 @@
// This class is a class derived from G4VUserPhysicsList
// for constructing all particles and processes.
//
// History
// first version 10 Jan. 1998 by H.Kurashige
// ------------------------------------------------------------
#ifndef EXPO_PhysicsList_h
#define EXPO_PhysicsList_h 1
@@ -36,7 +34,7 @@ class EXPO_PhysicsList: public G4VUserPhysicsList
virtual void ConstructProcess();
//
virtual void SetCuts(G4double aCut);
virtual void SetCuts();
protected:
// these methods Construct particles
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: EXPO_PhysicsList.icc,v 2.2 1998/07/13 17:29:28 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: EXPO_PhysicsList.icc,v 1.3 1999/05/18 10:57:13 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// ------------------------------------------------------------
@@ -256,8 +256,10 @@ void EXPO_PhysicsList::ConstructGeneral()
}
}
void EXPO_PhysicsList::SetCuts(G4double cut)
void EXPO_PhysicsList::SetCuts()
{
SetCutsWithDefault();
/*
if (verboseLevel >0){
G4cout << "EXPO_PhysicsList::SetCuts:";
G4cout << "CutLength : " << cut/mm << " (mm)" << endl;
@@ -279,6 +281,7 @@ void EXPO_PhysicsList::SetCuts(G4double cut)
if (verboseLevel>1) {
DumpCutValuesTable();
}
*/
}
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: EXPO_Primary.icc,v 2.1 1998/07/12 02:36:59 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: EXPO_Primary.icc,v 1.2 1999/04/16 10:03:21 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// See also G4/run/example/EXPO_PrimaryGeneratorAction.cc.
@@ -0,0 +1,142 @@
//
// I need that for SunOS-CC !!!
// G.Barrand
//
// RW :
#include "G4ApplicationState.hh"
#include "G4Element.hh"
#include "G4Event.hh"
#include "G4Isotope.hh"
#include "G4LogicalVolume.hh"
#include "G4MPVEntry.hh"
#include "G4Material.hh"
#include "G4MaterialPropertyVector.hh"
#include "G4NavigationLevel.hh"
#include "G4ParticleDefinition.hh"
#include "G4PhysicsVector.hh"
#include "G4ProcTblElement.hh"
#include "G4ProcessAttribute.hh"
#include "G4ProcessManager.hh"
#include "G4SDStructure.hh"
#include "G4SmartVoxelNode.hh"
#include "G4SmartVoxelProxy.hh"
#include "G4Track.hh"
#include "G4UIcommand.hh"
#include "G4UIcommandTree.hh"
#include "G4UImessenger.hh"
#include "G4UIparameter.hh"
#include "G4VDecayChannel.hh"
#include "G4VDigiCollection.hh"
#include "G4VHitsCollection.hh"
#include "G4VModel.hh"
#include "G4VPhysicalVolume.hh"
#include "G4VPhysicalVolume.hh"
#include "G4VProcess.hh"
#include "G4VSolid.hh"
#include "G4VStateDependent.hh"
#include "G4VTrajectory.hh"
#include "G4UnitsTable.hh"
#include "G4UItokenNum.hh"
#include "G4Trajectory.hh"
template class RWTPtrSlistDictionary<RWCString, G4MaterialPropertyVector>;
template class RWTPtrSlistDictionary<RWCString, G4ParticleDefinition>;
template class RWTPtrSlistDictionary<int, G4ParticleDefinition>;
template class RWTPtrSlistDictionaryIterator<RWCString, G4MaterialPropertyVector>;
template class RWTPtrSlistDictionaryIterator<RWCString, G4ParticleDefinition>;
template class RWTPtrSlistDictionaryIterator<int, G4ParticleDefinition>;
template class RWTValSlistDictionary<RWCString, void*>;
template class RWTValSlistDictionary<const G4ParticleDefinition*, G4EnergyLossTablesHelper>;
template class RWTValSlistDictionary<unsigned long, int>;
template class RWTValVector<yystype>;
template class RWTPtrHashDictionary<RWCString, G4MaterialPropertyVector>;
template class RWTPtrHashDictionary<RWCString, G4ParticleDefinition>;
template class RWTPtrHashDictionary<int, G4ParticleDefinition>;
template class RWTPtrHashDictionaryIterator<RWCString, G4MaterialPropertyVector>;
template class RWTPtrHashDictionaryIterator<RWCString, G4ParticleDefinition>;
template class RWTPtrHashDictionaryIterator<int, G4ParticleDefinition>;
template class RWTPtrOrderedVector<G4Element>;
template class RWTPtrOrderedVector<G4Event>;
template class RWTPtrOrderedVector<G4Isotope>;
template class RWTPtrOrderedVector<G4LogicalVolume>;
template class RWTPtrOrderedVector<G4MPVEntry>;
template class RWTPtrOrderedVector<G4Material>;
template class RWTPtrOrderedVector<G4ParticleDefinition>;
template class RWTPtrOrderedVector<G4PhysicsVector>;
template class RWTPtrOrderedVector<G4ProcTblElement>;
template class RWTPtrOrderedVector<G4ProcessAttribute>;
template class RWTPtrOrderedVector<G4ProcessManager>;
template class RWTPtrOrderedVector<G4SDStructure>;
template class RWTPtrOrderedVector<G4SmartVoxelNode>;
template class RWTPtrOrderedVector<G4SmartVoxelProxy>;
template class RWTPtrOrderedVector<G4Track>;
template class RWTPtrOrderedVector<G4UIcommand>;
template class RWTPtrOrderedVector<G4UIcommandTree>;
template class RWTPtrOrderedVector<G4UImessenger>;
template class RWTPtrOrderedVector<G4UIparameter>;
template class RWTPtrOrderedVector<G4UnitDefinition>;
template class RWTPtrOrderedVector<G4UnitsCategory>;
template class RWTPtrOrderedVector<G4VDecayChannel>;
template class RWTPtrOrderedVector<G4VDigiCollection>;
template class RWTPtrOrderedVector<G4VHitsCollection>;
template class RWTPtrOrderedVector<G4VModel>;
template class RWTPtrOrderedVector<G4VPhysicalVolume>;
template class RWTPtrOrderedVector<G4VProcess>;
template class RWTPtrOrderedVector<G4VSensitiveDetector>;
template class RWTPtrOrderedVector<G4VSolid>;
template class RWTPtrOrderedVector<G4VStateDependent>;
template class RWTPtrOrderedVector<G4VTrajectory>;
template class RWTPtrOrderedVector<G4ValVector>;
template class RWTPtrSortedVector<G4MPVEntry>;
template class RWTPtrSortedVector<G4VDecayChannel>;
template class RWTValHashDictionary<RWCString, void*>;
template class RWTValHashDictionary<const G4ParticleDefinition*, G4EnergyLossTablesHelper>;
template class RWTValHashDictionary<unsigned long, int>;
template class RWTValOrderedVector<G4ApplicationState>;
template class RWTValOrderedVector<Hep3Vector>;
//template class RWTValOrderedVector<HepPlane3D>;
template class RWTValOrderedVector<HepPoint3D>;
template class RWTValOrderedVector<RWCString>;
template class RWTValOrderedVector<double>;
template class RWTValOrderedVector<int (*)(void*)>;
template class RWTValOrderedVector<int>;
template class RWTValOrderedVector<void (*)(void)>;
template class RWTValOrderedVector<void*>;
template class RWTValOrderedVector<yystype>;
template class RWTValVector<G4ApplicationState>;
template class RWTValVector<G4NavigationLevel>;
template class RWTValVector<Hep3Vector>;
//template class RWTValVector<HepPlane3D>;
template class RWTValVector<HepPoint3D>;
template class RWTValVector<RWCString>;
template class RWTValVector<double>;
template class RWTValVector<int (*)(void*)>;
template class RWTValVector<int>;
template class RWTValVector<void (*)(void)>;
template class RWTValVector<void*>;
template class RWTPtrOrderedVector<G4VTrajectoryPoint>;
//
// G4 :
#include "G4DecayProducts.hh"
#include "G4Run.hh"
template class G4Allocator<G4DCofThisEvent>;
template class G4Allocator<G4DecayProducts>;
template class G4Allocator<G4DynamicParticle>;
template class G4Allocator<G4Event>;
template class G4Allocator<G4HCofThisEvent>;
template class G4Allocator<G4NavigationLevel>;
template class G4Allocator<G4NavigationLevelRep>;
template class G4Allocator<G4PrimaryParticle>;
template class G4Allocator<G4PrimaryVertex>;
template class G4Allocator<G4Run>;
template class G4Allocator<G4StackedTrack>;
template class G4Allocator<G4Track>;
template class G4Allocator<G4Trajectory>;
template class G4Allocator<G4TrajectoryPoint>;
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4o.h,v 2.1 1998/07/12 02:36:59 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4o.h,v 1.2 1999/04/16 10:03:22 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
/* +---------------------- Copyright notice -------------------------------+ */
/* | Copyright (C) 1995, Guy Barrand, LAL Orsay, (barrand@lal.in2p3.fr) | */
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4oCommon.hh,v 2.1 1998/07/12 02:37:00 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4oCommon.hh,v 1.2 1999/04/16 10:03:23 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
/*
Included by G4o.h.
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4oCommon.icc,v 2.2 1998/08/12 14:21:55 barrand Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4oCommon.icc,v 1.2 1999/04/16 10:03:24 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
/*
Included by G4o.cc.
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4oDrawer.hh,v 2.2 1998/09/16 12:06:17 barrand Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4oDrawer.hh,v 1.2 1999/04/16 10:03:25 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
/* +---------------------- Copyright notice -------------------------------+ */
/* | Copyright (C) 1995, Guy Barrand, LAL Orsay, (barrand@lal.in2p3.fr) | */
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4oEXPO.h,v 2.1 1998/07/12 02:37:01 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4oEXPO.h,v 1.2 1999/04/16 10:03:26 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
/* +---------------------- Copyright notice -------------------------------+ */
/* | Copyright (C) 1995, Guy Barrand, LAL Orsay, (barrand@lal.in2p3.fr) | */
+12 -10
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4oScene.hh,v 2.2 1998/07/12 02:37:01 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4oScene.hh,v 1.2 1999/04/16 10:03:27 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
/* +---------------------- Copyright notice -------------------------------+ */
/* | Copyright (C) 1995, Guy Barrand, LAL Orsay, (barrand@lal.in2p3.fr) | */
@@ -32,14 +32,16 @@ class G4LogicalVolume;
class G4oScene : public G4VGraphicsScene {
public:
//Inherited
void AddThis (const G4Box& box);
void AddThis (const G4Cons& cons);
void AddThis (const G4Tubs& tubs);
void AddThis (const G4Trd& trd);
void AddThis (const G4Trap& trap);
void AddThis (const G4Sphere& sphere);
void AddThis (const G4Para& para );
void AddThis (const G4Torus& torus );
void AddThis (const G4Box&);
void AddThis (const G4Cons&);
void AddThis (const G4Tubs&);
void AddThis (const G4Trd&);
void AddThis (const G4Trap&);
void AddThis (const G4Sphere&);
void AddThis (const G4Para&);
void AddThis (const G4Torus&);
void AddThis (const G4Polycone&);
void AddThis (const G4Polyhedra&);
void AddThis (const G4VSolid& solid); // For solids not above.
void PreAddThis (const G4Transform3D& objectTransformation,
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4oState.hh,v 2.1 1998/07/12 02:37:02 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4oState.hh,v 1.2 1999/04/16 10:03:28 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#ifndef G4oState_h
#define G4oState_h
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: WoG4o.h,v 2.1 1998/07/12 02:37:02 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: WoG4o.h,v 1.2 1999/04/16 10:03:29 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
/* +---------------------- Copyright notice -------------------------------+ */
/* | Copyright (C) 1995, Guy Barrand, LAL Orsay, (barrand@lal.in2p3.fr) | */
+26 -365
View File
@@ -1,12 +1,12 @@
#/* +---------------------- Copyright notice -------------------------------+ */
#/* | Copyright (C) 1995, Guy Barrand, LAL Orsay. (barrand@lalcls.in2p3.fr) | */
#/* | Permission to use, copy, modify, and distribute this software | */
#/* | and its documentation for any purpose and without fee is hereby | */
#/* | granted, provided that the above copyright notice appear in all | */
#/* | copies and that both that copyright notice and this permission | */
#/* | notice appear in supporting documentation. This software is | */
#/* | provided "as is" without express or implied warranty. | */
#/* +---------------------- Copyright notice -------------------------------+ */
#/*+---------------------- Copyright notice -------------------------------+ */
#/*| Copyright (C) 1995, Guy Barrand, LAL Orsay. (barrand@lalcls.in2p3.fr) | */
#/*| Permission to use, copy, modify, and distribute this software | */
#/*| and its documentation for any purpose and without fee is hereby | */
#/*| granted, provided that the above copyright notice appear in all | */
#/*| copies and that both that copyright notice and this permission | */
#/*| notice appear in supporting documentation. This software is | */
#/*| provided "as is" without express or implied warranty. | */
#/*+---------------------- Copyright notice -------------------------------+ */
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Examples :
# UNIX> make OSF1
@@ -20,67 +20,26 @@ default :
@echo " Type :"
@echo " UNIX> make <config>"
@echo " where, for the distribution, <config> could be :"
@echo " OSF1"
@echo " HP-UX"
@echo " OSF1-cxx"
@echo " HP-UX-aCC"
@echo " Linux"
@echo " ULTRIX"
@echo " AIX"
@echo " IRIX"
@echo " SunOS"
@echo " Linux-gxx = Linux compiling with g++."
@echo " insure = OSF1 + insure product."
@echo " HP-UX-9 = HP-UX A.09.05."
@echo " Linux-gxx"
@echo " SunOS-CC"
@echo " For example : "
@echo " UNIX> make OSF1"
@echo " If none of the above 'config' matches you environment,"
@echo " edit the Co/v3/mgr/Config.mk file."
# Perfect situation still never reached !!!
POSIX : This_needed
OSF1-cxx : This_needed
@CONFIG=$@;export CONFIG;MAKEFLAGS='';export MAKEFLAGS;$(MAKE) -f This.mk $(t) $(target) \
"a_or_so = so" \
"so = so" \
"CC = cc" \
"CFLAGS = -DUNIX -DHAS_DLD -O" \
"CCLD = cc" \
"CCLDFLAGS = " \
"CCLDEND = " \
"F77 = f77" \
"F77FLAGS = " \
"F77LD = f77" \
"X11_CPPFLAGS = " \
"Xext_CPPFLAGS = -I/usr/include/X11/extensions" \
"Xmu_CPPFLAGS = -I/usr/include/X11" \
"Xt_CPPFLAGS = " \
"Xaw_CPPFLAGS = " \
"Xm_CPPFLAGS = " \
"libc = -lc" \
"libm = -lm" \
"libf77 = -lf" \
"libX11 = -L/usr/lib -lX11" \
"libXext = -L/usr/lib -lXext" \
"libXt = -L/usr/lib -lXt" \
"libXmu = -L/usr/lib -lXmu" \
"libXaw = -L/usr/lib -lXaw" \
"libXm = -L/usr/lib -lXm" \
$(This_macros)
# OSF1 asa V4.0 464 alpha
# CCLDFLAGS : -non_shared to compell link with .a libs
# For cxx 5.x : APP_CXXFLAGS = -define_templates -DSOLVE_TEMPLATES
OSF1 : This_needed
@CONFIG=$@;export CONFIG;MAKEFLAGS='';export MAKEFLAGS;$(MAKE) -f This.mk $(t) $(target) \
"a_or_so = so" \
"so = so" \
"CC = cc" \
"CFLAGS = -std1 -DUNIX -DHAS_DLD -O" \
"CFLAGS = -std1 -O" \
"CCLD = cc" \
"CCLDFLAGS = -std1" \
"CCLDEND = -lots -lSM -lICE -ldnet_stub" \
"CXX = cxx" \
"CXXFLAGS = -ptr ${OREPOSITORY} -I${RWROOT}/include -g" \
"CXXFLAGS = -ptr ${OREPOSITORY} -DG4_HAVE_BOOL -g" \
"CXXLD = cxx" \
"CXXLDFLAGS = -ptr ${OREPOSITORY} -non_shared" \
"CXXLDEND = -lots -lSM -lICE -ldnet_stub" \
@@ -94,7 +53,6 @@ OSF1 : This_needed
"Xt_CPPFLAGS = " \
"Xaw_CPPFLAGS = " \
"Xm_CPPFLAGS = " \
"JAVA_CPPFLAGS = -D_OSF1_SOURCE -I/usr/local/java/include -I/usr/local/java/include/osfport/" \
"libc = -lc" \
"libm = -lm" \
"libf77 = -lfor -lFutil -lUfor" \
@@ -106,55 +64,12 @@ OSF1 : This_needed
"libXm = -L/usr/shlib -lXm" \
$(This_macros)
# HP-UX aleph B.10.20 A 9000/780 2011153535 two-user license
#"CCLDFLAGS = -Wl,-a,archive"
#"CCLDFLAGS = -Wl,-a,archive_shared"
# At least on 10.20, Xm and Xaw are incompatibles.
# At load, put "archive_shared" so that linking G4o apps with G4 libs works.
#"libXm = -L/usr/lib -lXm" is imcompatible with loading option "-Wl,-a,archive_shared" needed for linking with G4.
#"libXm = /usr/lib/Motif1.2_R6/libXm.a"
HP-UX : This_needed
@CONFIG=$@;export CONFIG;MAKEFLAGS='';export MAKEFLAGS;$(MAKE) -f This.mk $(t) $(target) \
"a_or_so = sl" \
"so = sl" \
"CC = c89" \
"CFLAGS = +Z -DUNIX -DHAS_DLD -O" \
"CCLD = c89" \
"CCLDFLAGS = " \
"CCLDEND = -ldld -lisamstub" \
"CXX = CC" \
"CXXFLAGS = +a1 +Z -pta -ptr${OREPOSITORY} -I${RWROOT}/include -O" \
"CXXLD = CC" \
"CXXLDFLAGS = +a1 +Z -pta -ptr${OREPOSITORY} -O" \
"CXXLDEND = -lisamstub" \
"APP_CXXFLAGS = -DSOLVE_TEMPLATES" \
"F77 = f77" \
"F77FLAGS = -w +ppu" \
"F77LD = fort77" \
"X11_CPPFLAGS = " \
"Xext_CPPFLAGS = -I/usr/include/X11/extensions" \
"Xmu_CPPFLAGS = -I/usr/contrib/X11R6/include/X11" \
"Xt_CPPFLAGS = " \
"Xaw_CPPFLAGS = -I/usr/contrib/X11R6/include -I/usr/contrib/X11R6/include/X11" \
"Xm_CPPFLAGS = " \
"libc = -lc" \
"libm = -lm" \
"libf77 = -lf" \
"libX11 = -L/usr/lib -lX11" \
"libXext = -L/usr/lib -lXext" \
"libXt = -L/usr/lib -lXt" \
"libXmu = -L/usr/contrib/X11R6/lib -lXmu" \
"libXaw = -L/usr/contrib/X11R6/lib -lXaw" \
"libXm = -L/usr/lib -lXm" \
$(This_macros)
# HP-UX aleph B.10.20 A 9000/780 2011153535 two-user license
HP-UX-aCC : This_needed
@CONFIG=$@;export CONFIG;MAKEFLAGS='';export MAKEFLAGS;$(MAKE) -f This.mk $(t) $(target) \
"a_or_so = sl" \
"so = sl" \
"CC = c89" \
"CFLAGS = +Z -DUNIX -DHAS_DLD -O" \
"CFLAGS = +Z -O" \
"CCLD = c89" \
"CCLDFLAGS = " \
"CCLDEND = -ldld -lisamstub" \
@@ -184,124 +99,14 @@ HP-UX-aCC : This_needed
"libXm = -L/usr/lib -lXm" \
$(This_macros)
# HP-UX cchp004 A.09.05 A 9000/770 2004200392 two-user license
#"CCLDFLAGS = -Wl,-a,archive"
#"CCLDFLAGS = -Wl,-a,archive_shared"
# At load, put "archive_shared" so that linking G4o apps with G4 libs works.
HP-UX-9 : This_needed
@CONFIG=$@;export CONFIG;MAKEFLAGS='';export MAKEFLAGS;$(MAKE) -f This.mk $(t) $(target) \
"a_or_so = sl" \
"so = sl" \
"CC = c89" \
"CFLAGS = +Z -D_HPUX_SOURCE -DUNIX -DHAS_DLD -O" \
"CCLD = c89" \
"CCLDFLAGS = " \
"CCLDEND = -ldld -lisamstub" \
"CXX = CC" \
"CXXFLAGS = +a1 +Z -pts -ptr${OREPOSITORY} -O" \
"CXXLD = CC" \
"CXXLDFLAGS = +a1 +Z -pts -ptr${OREPOSITORY} -O -Wl,-a,archive_shared" \
"CXXLDEND = " \
"APP_CXXFLAGS = -DSOLVE_TEMPLATES" \
"F77 = f77" \
"F77FLAGS = -w +ppu" \
"F77LD = fort77" \
"X11_CPPFLAGS = -I/usr/include/X11R5" \
"Xext_CPPFLAGS = -I/usr/include/X11R5/X11/extensions" \
"Xmu_CPPFLAGS = -I../usr/HP-UX/include/X11" \
"Xt_CPPFLAGS = " \
"Xaw_CPPFLAGS = -I../usr/HP-UX/include" \
"Xm_CPPFLAGS = -I/usr/include/Motif1.2" \
"libc = -lc" \
"libm = -lm" \
"libf77 = -lf" \
"libX11 = -L/usr/lib/X11R5 -lX11" \
"libXext = -L/usr/lib/X11R5 -lXext" \
"libXt = -L/usr/lib/X11R5 -lXt" \
"libXmu = /usr/lib/X11R4/libXmu.sl" \
"libXaw = /usr/lib/X11R4/libXaw.sl" \
"libXm = -L/usr/lib/Motif1.2 -lXm" \
$(This_macros)
#ULTRIX ux3 4.4 0 RISC
ULTRIX : This_needed
@CONFIG=$@;export CONFIG;MAKEFLAGS='';export MAKEFLAGS;$(MAKE) -f This.mk $(t) $(target) \
"a_or_so = a" \
"so = so" \
"CC = cc" \
"CFLAGS = -YPOSIX -DUNIX" \
"CCLD = cc" \
"CCLDFLAGS = " \
"CCLDEND = " \
"F77 = f77" \
"F77FLAGS = -w -G 3 -static -u" \
"F77LD = f77" \
"X11_CPPFLAGS = " \
"Xext_CPPFLAGS = -I/usr/include/X11/extensions" \
"Xmu_CPPFLAGS = -I/usr/include/X11" \
"Xt_CPPFLAGS = " \
"Xaw_CPPFLAGS = " \
"Xm_CPPFLAGS = " \
"libc = -lc" \
"libm = -lm" \
"libf77 = -lfor -lutil -lUfor -lots -li" \
"libX11 = -lX11" \
"libXext = -lXext" \
"libXt = -lXt" \
"libXmu = -lXmu" \
"libXaw = -lXaw" \
"libXm = -lXm" \
$(This_macros)
# "OSF1 asa V4.0 464 alpha" + insight
# Do not use shared lib to have source code visibility.
# In CXXFLAGS "-ptr ${OREPOSITORY}" should be put in a .insight file with : preprocessor_flag -ptr ${OREPOSITORY}
insure : This_needed
@CONFIG=$@;export CONFIG;MAKEFLAGS='';export MAKEFLAGS;$(MAKE) -f This.mk $(t) $(target) \
"a_or_so = so" \
"so = so" \
"CC = insight" \
"CFLAGS = -std1 -DUNIX -DHAS_DLD -g" \
"CCLD = insight" \
"CCLDFLAGS = -std1 -g" \
"CCLDEND = -lots -L/lal/insure/3.0.1/lib.alpha -ltqsiiccc" \
"CXX = insight" \
"CXXFLAGS = -ptr ${OREPOSITORY} -g" \
"CXXLD = insight" \
"CXXLDFLAGS = -ptr ${OREPOSITORY} -non_shared" \
"CXXLDEND = -lcxx -lexc -lots -lSM -lICE -ldnet_stub -L/lal/insure/3.0.1/lib.alpha -ltqsiiccc" \
"F77 = f77" \
"F77FLAGS = -w -g" \
"F77LD = f77" \
"F77LDEND = -L/lal/insure/3.0.1/lib.alpha -linsight" \
"X11_CPPFLAGS = " \
"Xext_CPPFLAGS = -I/usr/include/X11/extensions" \
"Xmu_CPPFLAGS = -I/usr/include/X11" \
"Xt_CPPFLAGS = " \
"Xaw_CPPFLAGS = " \
"Xm_CPPFLAGS = " \
"libc = -lc" \
"libm = -lm" \
"libf77 = -lfor -lFutil -lUfor" \
"libX11 = -L/usr/shlib -lX11" \
"libXext = -L/usr/shlib -lXext" \
"libXt = -L/usr/shlib -lXt" \
"libXmu = -L/usr/shlib -lXmu" \
"libXaw = -L/usr/shlib -lXaw" \
"libXm = -L/usr/shlib -lXm" \
$(This_macros)
# Linux pcbp.lal.in2p3.fr 2.0.25 #2 Thu Dec 5 09:56:01 MET 1996 i586
# CXXFLAGS dedicated to compile G4 include files.
#"CCLDFLAGS = -Wl,-Bstatic"
# Xm from XiG (previous Xinside).
Linux : This_needed
Linux-gxx : This_needed
@CONFIG=$@;export CONFIG;MAKEFLAGS='';export MAKEFLAGS;$(MAKE) -f This.mk $(t) $(target) \
"a_or_so = so" \
"so = so" \
"CC = gcc" \
"CFLAGS = -ansi -DUNIX -DHAS_DLD -O" \
"CCLD = gcc" \
"CC = g++" \
"CFLAGS = -x c++ -Wall -ansi -O" \
"CCCC = -x c" \
"CCLD = g++" \
"CCLDFLAGS = " \
"CCLDEND = " \
"CXX = g++" \
@@ -329,130 +134,20 @@ Linux : This_needed
"libXm = -L/usr/X11R6/lib -lXm" \
$(This_macros)
# Linux PC-Barrand.lal.in2p3.fr 2.0.30 #9 Mon Sep 22 17:53:05 MET DST 1997 i686 unknown
#"CCLDFLAGS = -Wl,-Bstatic"
# Xm from XiG (previous Xinside).
Linux-gxx : This_needed
@CONFIG=$@;export CONFIG;MAKEFLAGS='';export MAKEFLAGS;$(MAKE) -f This.mk $(t) $(target) \
"a_or_so = so" \
"so = so" \
"CC = g++" \
"CFLAGS = -x c++ -Wall -ansi -DUNIX -DHAS_DLD -O" \
"CCCC = -x c" \
"CCLD = g++" \
"CCLDFLAGS = " \
"CCLDEND = " \
"CXX = g++" \
"CXXFLAGS = -Wall -ansi -pipe -fno-for-scope -DGNU_GCC -DG4_HAVE_BOOL -O" \
"CXXLD = g++" \
"CXXLDFLAGS = " \
"CXXLDEND = " \
"F77 = f77" \
"F77FLAGS = " \
"F77LD = f77" \
"X11_CPPFLAGS = " \
"Xext_CPPFLAGS = -I/usr/include/X11/extensions" \
"Xmu_CPPFLAGS = -I/usr/include/X11" \
"Xt_CPPFLAGS = " \
"Xaw_CPPFLAGS = " \
"Xm_CPPFLAGS = -I/usr/X11R6/include" \
"JAVA_CPPFLAGS = -I/usr/local/JDK/jdk-1.1.3/include/ -I/usr/local/JDK/jdk-1.1.3/include/genunix" \
"libc = -lc" \
"libm = -lm" \
"libf77 = -lf" \
"libX11 = -L/usr/X11R6/lib -lX11 -lSM -lICE" \
"libXext = -L/usr/X11R6/lib -lXext" \
"libXt = -L/usr/X11R6/lib -lXt" \
"libXmu = -L/usr/X11R6/lib -lXmu" \
"libXaw = -L/usr/X11R6/lib -lXaw" \
"libXm = -L/usr/X11R6/lib -lXm" \
$(This_macros)
# AIX sp070 1 4 000171755700
# -D_ALL_SOURCE -D_BSD so that sys/types.h includes sys/select.h and then defines fd_set.
# Pb with malloc on AIX 3.2., do a :
# csh> setenv MALLOCTYPE "3.1"
# to use older version.
# -xlf90 seems now needed in addition to -lxlf.
# On some system use -bI:/usr/lpp/xlf/lib/lowsys.exp to solve reference .__divus, .__quous, .__mulh
# Can do a find/grep over *exp files to find a symbol.
AIX : This_needed
SunOS-CC : This_needed
@CONFIG=$@;export CONFIG;MAKEFLAGS='';export MAKEFLAGS;$(MAKE) -f This.mk $(t) $(target) \
"a_or_so = a" \
"so = so" \
"CC = xlc" \
"CFLAGS = -D_POSIX_SOURCE -D_ALL_SOURCE -D_BSD -DUNIX -DHAS_DLD -O" \
"CCLD = xlc" \
"CCLDFLAGS = " \
"CCLDEND = -lld" \
"F77 = xlf" \
"F77FLAGS = -w -qextname -qrndsngl" \
"F77LD = xlf" \
"X11_CPPFLAGS = " \
"Xext_CPPFLAGS = -I/usr/include/X11/extensions" \
"Xmu_CPPFLAGS = -I/usr/include/X11" \
"Xt_CPPFLAGS = " \
"Xaw_CPPFLAGS = " \
"Xm_CPPFLAGS = " \
"libc = -lc" \
"libm = -lm" \
"libf77 = -lxlf90 -lxlf" \
"libX11 = -L/usr/lib -lX11" \
"libXext = -L/usr/lib -lXext" \
"libXt = -L/usr/lib -lXt" \
"libXmu = -L/usr/lib -lXmu" \
"libXaw = -L/usr/lib -lXaw" \
"libXm = -L/usr/lib -lXm" \
$(This_macros)
# IRIX fnpspa 5.3 11091810 IP12 mips
IRIX : This_needed
@CONFIG=$@;export CONFIG;MAKEFLAGS='';export MAKEFLAGS;$(MAKE) -f This.mk $(t) $(target) \
"a_or_so = so" \
"so = so" \
"CC = cc" \
"CFLAGS = -w -DUNIX -DHAS_DLD -O" \
"CFLAGS = $(opt)" \
"CCLD = cc" \
"CCLDFLAGS = " \
"CCLDEND = " \
"CXX = CC" \
"CXXFLAGS = -ptused -O" \
"CXXFLAGS = -I/usr/include -ptr${G4WORKDIR}/tmp/$${CONFIG} $(opt)" \
"CXXLD = CC" \
"CXXLDFLAGS = " \
"CXXLDEND = " \
"F77 = f77" \
"F77FLAGS = -w +ppu" \
"F77LD = f77" \
"X11_CPPFLAGS = " \
"Xext_CPPFLAGS = -I/usr/include/X11/extensions" \
"Xmu_CPPFLAGS = -I/usr/include/X11" \
"Xt_CPPFLAGS = " \
"Xaw_CPPFLAGS = " \
"Xm_CPPFLAGS = " \
"libc = -lc" \
"libm = -lm" \
"libf77 = -lftn -lm -lc" \
"libX11 = -L/usr/lib -lX11" \
"libXext = -L/usr/lib -lXext" \
"libXt = -L/usr/lib -lXt" \
"libXmu = -L/usr/lib -lXmu" \
"libXaw = -L/usr/lib -lXaw" \
"libXm = -L/usr/lib -lXm" \
$(This_macros)
# NOT TESTED YET.
# In general SunOS is a nightmare ; cc is not ANSI by default and MOTIF is not usaully in standard place.
# We do not attempt to have shared libs !
SunOS : This_needed
@CONFIG=$@;export CONFIG;MAKEFLAGS='';export MAKEFLAGS;$(MAKE) -f This.mk $(t) $(target) \
"a_or_so = a" \
"so = so" \
"CC = acc" \
"CFLAGS = -DXTFUNCPROTO -DCOSPRINTF -DUNIX -DHAS_DLD -O" \
"CCLD = acc" \
"CCLDFLAGS = " \
"CCLDEND = " \
"CXXLDFLAGS = -ptr${G4WORKDIR}/tmp/$${CONFIG} $(opt)" \
"CXXLDEND = -lsocket -lnsl" \
"F77 = f77" \
"F77FLAGS = " \
"F77LD = f77" \
@@ -473,38 +168,4 @@ SunOS : This_needed
"libXm = -L/usr/lib -lXm" \
$(This_macros)
# LynxOS virgo_vme5.lal.in2p3.fr 2.2.2 2 VGPW2
# RAND_MAX not found in /usr/include files.
# -lc_p to find mktime which is not in libc.a.
# If gcc error 11, try to set TMPDIR to a directory
# with more place :
# UNIX> setenv TMPDIR `pwd`
LynxOS : This_needed
@CONFIG=$@;export CONFIG;MAKEFLAGS='';export MAKEFLAGS;$(MAKE) -f This.mk $(t) $(target) \
"a_or_so = a" \
"so = so" \
"CC = gcc" \
"CFLAGS = -ansi -DUNIX -DHAS_DLD -DRAND_MAX=32767" \
"CCLD = gcc" \
"CCLDFLAGS = " \
"CCLDEND = -lnetinet -lrpc -lc_p" \
"F77 = f77" \
"F77FLAGS = " \
"F77LD = f77" \
"X11_CPPFLAGS = " \
"Xext_CPPFLAGS = -I/usr/include/X11/extensions" \
"Xmu_CPPFLAGS = -I/usr/include/X11" \
"Xt_CPPFLAGS = " \
"Xaw_CPPFLAGS = " \
"Xm_CPPFLAGS = " \
"libc = -lc" \
"libm = -lm" \
"libf77 = -lf" \
"libX11 = -L/usr/X11R6/lib -lX11" \
"libXext = -L/usr/X11R6/lib -lXext" \
"libXt = -L/usr/X11R6/lib -lXt" \
"libXmu = -L/usr/X11R6/lib -lXmu" \
"libXaw = -L/usr/X11R6/lib -lXaw" \
"libXm = -L/usr/X11R6/lib -lXm" \
$(This_macros)
+7 -11
View File
@@ -2,7 +2,7 @@
begin Make
package = G4o
! has = X11 Xext GL G4 RW
has = X11 Xext Xt Xmu Xm GL RW CLHEP G4 G4TEST G4ATLAS Wo WoXm Xo
has = X11 Xext Xt Xmu Xm GL RW CLHEP G4 Wo WoXm Xo
libs = \
X11: libX11\
Xext: libXext\
@@ -11,8 +11,6 @@ Xmu: libXmu\
Xm: libXm\
GL: libGL libGLU libGLX\
G4: libg4\
G4TEST: libg4test\
G4ATLAS: libg4atlas\
RW: librw\
CLHEP: libCLHEP\
G4o: libc libm libCo libGo libG4o\
@@ -29,14 +27,6 @@ begin OModule
! distributed = no
end
!----------------------------
begin OModule
name = TEST
type = application
language = c++
libs = libg4test libg4atlas libG4o libg4 libCLHEP librw libWoGL libXo libhtmlw libWoXm libXm libWoXaw libXaw libWo libXx libXmu libXt libGo libGLX libGLU libGL libXext libX11 libHo libCo libwww libm libcxx
distributed = no
end
!----------------------------
!----------------------------
!----------------------------
begin OModule
@@ -48,23 +38,29 @@ begin OModule
name = G4o
inLib = libG4o
language = c++
extension = cc
end
!----------------------------
begin OModule
name = G4oScene
inLib = libG4o
language = c++
extension = cc
end
!----------------------------
begin OModule
name = G4oDrawer
inLib = libG4o
language = c++
extension = cc
end
!----------------------------
begin OModule
name = G4oState
inLib = libG4o
language = c++
extension = cc
end
+17 -20
View File
@@ -16,33 +16,29 @@ This_macros = \
"make_so = sh ${COROOT}/mgr/maklibs.sh" \
"G4o_CPPFLAGS = -I${COROOT}/include -I${GOROOT}/include -I../include -DHAS_HO -DHAS_G4O" \
"libG4o = -L../$${CONFIG} -lG4o" \
"RW_CPPFLAGS = -I${RWROOT}/include" \
"librw = -L${RWROOT}/lib -lrwtool" \
"RW_CPPFLAGS = ${RWFLAGS}" \
"librw = ${RWLIBS}" \
"CLHEP_CPPFLAGS = -I${CLHEPROOT}/include " \
"libCLHEP = -L${CLHEPROOT}/lib -lCLHEP" \
"GL_CPPFLAGS = -I${GLOROOT}/usr/include" \
"libGL = -L${GLOROOT}/$${CONFIG} -lGLo" \
"libGLU = -L${GLOROOT}/$${CONFIG} -lGLUo" \
"libGLX = -L${GLOROOT}/$${CONFIG} -lGLXo" \
"libGL = -L${GLOROOT}/${OCONFIG} -lGLo" \
"libGLU = -L${GLOROOT}/${OCONFIG} -lGLUo" \
"libGLX = -L${GLOROOT}/${OCONFIG} -lGLXo" \
"G4_CPPFLAGS = -I${G4INSTALL}/source/global/management/include -I${G4INSTALL}/source/global/HEPRandom/include -I${G4INSTALL}/source/global/HEPGeometry/include -I${G4INSTALL}/source/run/include -I${G4INSTALL}/source/materials/include -I${G4INSTALL}/source/particles/management/include -I${G4INSTALL}/source/particles/bosons/include -I${G4INSTALL}/source/particles/leptons/include -I${G4INSTALL}/source/particles/hadrons/barions/include -I${G4INSTALL}/source/particles/hadrons/ions/include -I${G4INSTALL}/source/particles/hadrons/mesons/include -I${G4INSTALL}/source/processes/management/include -I${G4INSTALL}/source/processes/general/include -I${G4INSTALL}/source/processes/decay/include -I${G4INSTALL}/source/processes/optical/include -I${G4INSTALL}/source/processes/transportation/include -I${G4INSTALL}/source/processes/parameterisation/include -I${G4INSTALL}/source/processes/electromagnetic/standard/include -I${G4INSTALL}/source/processes/electromagnetic/muons/include -I${G4INSTALL}/source/processes/electromagnetic/utils/include -I${G4INSTALL}/source/processes/electromagnetic/xrays/include -I${G4INSTALL}/source/processes/hadronic/management/include -I${G4INSTALL}/source/processes/hadronic/processes/include -I${G4INSTALL}/source/processes/hadronic/util/include -I${G4INSTALL}/source/processes/hadronic/cross_sections/include -I${G4INSTALL}/source/processes/hadronic/models/generator/include -I${G4INSTALL}/source/processes/hadronic/models/high_energy/include -I${G4INSTALL}/source/processes/hadronic/models/low_energy/include -I${G4INSTALL}/source/processes/hadronic/stopping/include -I${G4INSTALL}/source/geometry/management/include -I${G4INSTALL}/source/geometry/solids/CSG/include -I${G4INSTALL}/source/geometry/solids/BREPS/include -I${G4INSTALL}/source/geometry/solids/STEP/include -I${G4INSTALL}/source/geometry/volumes/include -I${G4INSTALL}/source/geometry/magneticfield/include -I${G4INSTALL}/source/track/include -I${G4INSTALL}/source/tracking/include -I${G4INSTALL}/source/digits+hits/detector/include -I${G4INSTALL}/source/digits+hits/hits/include -I${G4INSTALL}/source/digits+hits/digits/include -I${G4INSTALL}/source/readout/include -I${G4INSTALL}/source/event/include -I${G4INSTALL}/source/graphics_reps/include -I${G4INSTALL}/source/persistency/include -I${G4INSTALL}/source/intercoms/include -I${G4INSTALL}/source/visualization/modeling/include" \
"libg4 = -L${G4INSTALL}/lib/$${G4SYSTEM} -lG4modeling -lG4readout -lG4run -lG4event -lG4tracking -lG4particles -lG4processes -lG4track -lG4materials -lG4digits+hits -lG4geometry -lG4graphics_reps -lG4intercoms -lG4global" \
"G4TEST_CPPFLAGS = -I${G4INSTALL}/source/visualization/test/test_utils/include" \
"libg4test = -L${G4INSTALL}/lib/${G4SYSTEM} -lG4vis_utils" \
"G4ATLAS_CPPFLAGS = -I${G4ATLAS}//include" \
"libg4atlas = -L${G4INSTALL}/lib/${G4SYSTEM} -lG4ATLAS" \
"libg4 = -L${G4LIB}/$${G4SYSTEM} -lG4modeling -lG4run -lG4event -lG4tracking -lG4processes -lG4particles -lG4digits+hits -lG4track -lG4materials -lG4geometry -lG4graphics_reps -lG4intercoms -lG4global" \
"Wo_CPPFLAGS = -I${COROOT}/include -I${XXROOT}/include -I${WOROOT}/include" \
"libCo = -L${COROOT}/$${CONFIG} -lCo" \
"libXx = -L${XXROOT}/$${CONFIG} -lXx" \
"libWo = -L${WOROOT}/$${CONFIG} -lWo" \
"libWoGL = -L${WOROOT}/$${CONFIG} -lWoGL" \
"libCo = -L${COROOT}/${OCONFIG} -lCo" \
"libXx = -L${XXROOT}/${OCONFIG} -lXx" \
"libWo = -L${WOROOT}/${OCONFIG} -lWo" \
"libWoGL = -L${WOROOT}/${OCONFIG} -lWoGL" \
"WoXm_CPPFLAGS = -DHAS_XM" \
"libWoXm = -L${WOROOT}/$${CONFIG} -lWoXm" \
"libWoXm = -L${WOROOT}/${OCONFIG} -lWoXm" \
"Xo_CPPFLAGS = -DHAS_XO -DHAS_HTML -I${XOROOT}/include -I${GOROOT}/include -I${HOROOT}/include" \
"libXo = -L${XOROOT}/$${CONFIG} -lXo" \
"libHo = -L${HOROOT}/$${CONFIG} -lHo" \
"libGo = -L${GOROOT}/$${CONFIG} -lGo" \
"libwww = -L${W3OROOT}/$${CONFIG} -lW3o" \
"libhtmlw = -L${HTMLOROOT}/$${CONFIG} -lHTMLo"
"libXo = -L${XOROOT}/${OCONFIG} -lXo" \
"libHo = -L${HOROOT}/${OCONFIG} -lHo" \
"libGo = -L${GOROOT}/${OCONFIG} -lGo" \
"libwww = -L${W3OROOT}/${OCONFIG} -lW3o" \
"libhtmlw = -L${HTMLOROOT}/${OCONFIG} -lHTMLo"
include Config.mk
@@ -51,6 +47,7 @@ This_needed :
@if test "${COROOT}" = "" ; then echo "COROOT not set" ; exit 1 ; else exit 0 ; fi
@if test "${GOROOT}" = "" ; then echo "GOROOT not set"; exit 1 ; else exit 0 ; fi
@if test "${G4INSTALL}" = "" ; then echo "G4INSTALL not set" exit 1 ; else exit 0 ; fi
@if test "${G4LIB}" = "" ; then echo "G4LIB not set" exit 1 ; else exit 0 ; fi
@
@if test "${GLOROOT}" = "" ; then echo "GLOROOT not set" ; else exit 0 ; fi
+7 -52
View File
@@ -6,7 +6,7 @@
# from the property 'has' of the
# 'Make' object of file Make.odb.
# It had the value :
# X11 Xext Xt Xmu Xm GL RW CLHEP G4 G4TEST G4ATLAS Wo WoXm Xo
# X11 Xext Xt Xmu Xm GL RW CLHEP G4 Wo WoXm Xo
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAS_CPPFLAGS = \
$(G4o_CPPFLAGS)\
@@ -19,14 +19,12 @@ HAS_CPPFLAGS = \
$(RW_CPPFLAGS)\
$(CLHEP_CPPFLAGS)\
$(G4_CPPFLAGS)\
$(G4TEST_CPPFLAGS)\
$(G4ATLAS_CPPFLAGS)\
$(Wo_CPPFLAGS)\
$(WoXm_CPPFLAGS)\
$(Xo_CPPFLAGS)
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
all :: mkdir
all ::
@if test -d $(bin) ; then exit ; else mkdir $(bin) ; echo "$(bin) created." ; fi
clean ::
/bin/rm -f $(bin)/*.o;/bin/rm -f $(bin)/*.exe;/bin/rm -f $(bin)/*.class;/bin/rm -f $(bin)/*.a;/bin/rm -f $(bin)/*.so;/bin/rm -f $(bin)/*.sl
rmlib ::
@@ -36,35 +34,26 @@ rmo ::
rmexe ::
/bin/rm -f $(bin)/*.exe;/bin/rm -f $(bin)/*.class
mkdir :
@if test -d $(bin) ; then exit ; else mkdir $(bin) ; echo "$(bin) created." ; fi
libG4o_target = $(bin)/libG4o.a
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
all :: mkdir \
all :: \
$(libG4o_target) \
$(bin)/EXPO.exe
@echo "G4o : all ok."
libs :: mkdir \
libs :: \
$(libG4o_target)
@echo "G4o : libs ok."
apps :: mkdir \
$(bin)/EXPO.exe \
$(bin)/TEST.exe
apps :: \
$(bin)/EXPO.exe
@echo "G4o : apps ok."
#--------------------------------------------
rmexeo :
/bin/rm -f $(bin)/EXPO.o
/bin/rm -f $(bin)/TEST.o
#--------------------------------------------
EXPO : $(bin)/EXPO.exe
@echo "G4o : EXPO ok."
TEST : $(bin)/TEST.exe
@echo "G4o : TEST ok."
libG4o : $(libG4o_target)
@echo "G4o : libG4o ok."
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#--------------------------------------------
$(bin)/EXPO.exe : $(bin)/EXPO.o \
@@ -97,39 +86,6 @@ $(CXXLDEND)
$(bin)/EXPO.o : $(app)/EXPO.cc
$(CXX) $(CXXFLAGS) $(APP_CXXFLAGS) $(HAS_CPPFLAGS) -c -o $(bin)/EXPO.o $(app)/EXPO.cc
#--------------------------------------------
$(bin)/TEST.exe : $(bin)/TEST.o \
$(libG4o_target)
$(CXXLD) $(CXXLDFLAGS) $(HAS_CPPFLAGS) -o $(bin)/TEST.exe $(bin)/TEST.o \
$(libg4test) \
$(libg4atlas) \
$(libG4o) \
$(libg4) \
$(libCLHEP) \
$(librw) \
$(libWoGL) \
$(libXo) \
$(libhtmlw) \
$(libWoXm) \
$(libXm) \
$(libWo) \
$(libXx) \
$(libXmu) \
$(libXt) \
$(libGo) \
$(libGLX) \
$(libGLU) \
$(libGL) \
$(libXext) \
$(libX11) \
$(libHo) \
$(libCo) \
$(libwww) \
$(libm) \
$(CXXLDEND)
$(bin)/TEST.o : $(app)/TEST.cc
$(CXX) $(CXXFLAGS) $(APP_CXXFLAGS) $(HAS_CPPFLAGS) -c -o $(bin)/TEST.o $(app)/TEST.cc
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# libraries
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@@ -142,7 +98,6 @@ $(bin)/libG4o.a(G4oScene.o) \
$(bin)/libG4o.a(G4oDrawer.o) \
$(bin)/libG4o.a(G4oState.o)
@cd $(bin) ; if [ -f /bin/ranlib ] ; then /bin/ranlib libG4o.a ; fi ; cd $(mgr)
#--------------------------------------------
# libG4o dependencies
#--------------------------------------------
+35 -12
View File
@@ -10,29 +10,52 @@
#
# Execute OPACS setup script :
# --------------------------
source /projects/OPACS/setup.csh
source /lal/OPACS/v3/setup.csh
#
# Geant4 global path :
# ------------------
#setenv G4INSTALL /geant4/geant4beta
#setenv G4INSTALL /geant4/dev/geant4
#
# If you have one, execute your Geant4 setup script :
# -------------------------------------------------
# Mainly it should define G4INSTALL, G4SYSTEM, G4LIB, G4WORKDIR
# needed by the mgr/Makefile, Config.mk make files :
#source $G4INSTALL/mgr/setup.csh
#source $G4INSTALL/mgr/setsf.csh
#source $G4INSTALL/mgr/setiv.csh
#
# Template repository of Geant4 :
# -----------------------------
setenv OREPOSITORY $G4INSTALL/tmp/$G4SYSTEM/g4.ptrepository
# CLHEP, Rogue Wave path :
# ----------------------
if ( `uname -n` == "aleph" ) then
setenv CLHEPROOT /lal/CLHEP/1.4/HP-UX-aCC
setenv RWLIBS "-lrwtool"
endif
if ( `uname -n` == "asc" ) then
setenv CLHEPROOT /lal/CLHEP/1.4/OSF1-cxx
setenv RWROOT /lal/rogue/6.1/OSF1-cxx
setenv RWFLAGS "-I${RWROOT}"
setenv RWLIBS "-L${RWROOT}/lib -lrwtool"
endif
if ( `uname -n` == "lx1.lal.in2p3.fr" ) then
setenv CLHEPROOT /lal/CLHEP/1.4/Linux-gxx
setenv RWROOT /lal/rogue/6.1/Linux-gxx
setenv RWFLAGS "-I${RWROOT}"
setenv RWLIBS "-L${RWROOT}/lib -lrwtool"
endif
if ( `uname -n` == "papou1" ) then
setenv G4WORKDIR /geant4/dev
setenv G4INSTALL $G4WORKDIR/geant4
setenv G4LIB $G4WORKDIR/lib
setenv G4SYSTEM SunOS-CC
setenv CLHEPROOT /lal/CLHEP/1.4/SunOS-CC
setenv RWROOT /lal/rogue/6.1/SunOS-CC
setenv RWFLAGS "-I${RWROOT}"
setenv RWLIBS "-L${RWROOT}/lib -lrwtool"
endif
#
# CLHEP path :
# ----------
setenv CLHEPROOT $HOME/`uname`
#
# Rogue Wave :
# ----------
setenv RWROOT $HOME/`uname`
# Directory where to find Geant4 templates (to be able to link) :
# -------------------------------------------------------------
setenv OREPOSITORY $G4WORKDIR/tmp/$G4SYSTEM/g4.ptrepository
#
# OPACS OPATH variable for finding, at run time, environments/OPACS palettes :
# -------------------------------------------------------------------------
+14 -10
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4o.cc,v 2.3 1998/09/16 12:08:41 barrand Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4o.cc,v 1.3 1999/05/18 10:56:53 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
/*
#define DEBUG
@@ -15,20 +15,21 @@
#include <stdio.h>
#include <string.h>
/*GEANT4*/
// Geant4 :
#include <G4VPhysicalVolume.hh>
#include <G4LogicalVolume.hh>
#include <G4PhysicalVolumeStore.hh>
#include <G4PhysicalVolumeModel.hh>
#include <G4ModelingParameters.hh>
#include <G4RunManager.hh>
#include <G4Trajectory.hh>
/*For G4UI.*/
// For G4UI :
#include <G4UImanager.hh>
//#include <G4ParticleTblMessenger.hh>
#include <G4ParticleTable.hh>
/*Co*/
// Co :
#include <CPrinter.h>
#include <CMemory.h>
#include <CString.h>
@@ -39,11 +40,11 @@
#include <OShell.h>
#include <OProcess.h>
/*Go*/
// Go :
#include <Go.h>
#include <GoTypes.h>
/*G4o*/
// G4o :
#include <G4oScene.hh>
#include <G4oDrawer.hh>
#include <G4o.h>
@@ -215,7 +216,8 @@ ONode RepresentPhysicalVolume (
Class.g4oScene->SetNodeName (string);
CStringDelete (string);
G4ModelingParameters mParams (G4ModelingParameters::wireframe,
G4ModelingParameters mParams (0,
G4ModelingParameters::wireframe,
true, // Global culling.
true, // Cull invisible volumes.
false, // Density culling.
@@ -281,7 +283,8 @@ int GetTrajectoryProperty (
G4TrajectoryContainer* trajectoryContainer = event->GetTrajectoryContainer();
if(trajectoryContainer==NULL) return 0;
G4Trajectory* trajectory = (*trajectoryContainer)[(size_t)a_obj-1];
G4Trajectory* trajectory =
(G4Trajectory*)((*trajectoryContainer)[(size_t)a_obj-1]);
if(strcmp(name,"identifier")==0) {
*((Ulong*)a_addr) = (Ulong)a_obj;
@@ -323,7 +326,8 @@ ONode RepresentTrajectory (
ONode node = ONodeCreateF (11+64,"Trajectory/%lu",a_obj);
drawer->SetNode (node);
G4Trajectory* trajectory = (*trajectoryContainer)[(size_t)a_obj-1];
G4Trajectory* trajectory =
(G4Trajectory*)((*trajectoryContainer)[(size_t)a_obj-1]);
trajectory->DrawTrajectory(0);
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4oDrawer.cc,v 2.2 1998/09/16 12:08:44 barrand Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4oDrawer.cc,v 1.2 1999/04/16 10:03:36 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
/*
From geant4/visualization/management/src/G4VisManager.cc.
+30 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4oScene.cc,v 2.2 1998/07/12 02:37:06 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4oScene.cc,v 1.2 1999/04/16 10:03:38 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
/* +---------------------- Copyright notice -------------------------------+ */
/* | Copyright (C) 1995, Guy Barrand, LAL Orsay, (barrand@lal.in2p3.fr) | */
@@ -42,6 +42,8 @@
#include <G4Sphere.hh>
#include <G4Para.hh>
#include <G4Torus.hh>
#include <G4Polycone.hh>
#include <G4Polyhedra.hh>
#include <G4Polyhedron.hh>
#include <G4Polyline.hh>
#include <G4Transform3D.hh>
@@ -206,6 +208,32 @@ void G4oScene::AddThis (
AddPolyhedron (torus.CreatePolyhedron());
}
/***************************************************************************/
void G4oScene::AddThis (
const G4Polycone& polycone
)
/***************************************************************************/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
/*.........................................................................*/
#ifdef DEBUG
printf ("debug : polycone.\n");
#endif
AddPolyhedron (polycone.CreatePolyhedron());
}
/***************************************************************************/
void G4oScene::AddThis (
const G4Polyhedra& polyhedra
)
/***************************************************************************/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
/*.........................................................................*/
#ifdef DEBUG
printf ("debug : polyhedra.\n");
#endif
AddPolyhedron (polyhedra.CreatePolyhedron());
}
/***************************************************************************/
void G4oScene::AddThis (
const G4VSolid& solid
)
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4oState.cc,v 2.2 1998/07/13 17:29:32 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4oState.cc,v 1.2 1999/04/16 10:03:39 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//#define DEBUG
+14 -13
View File
@@ -218,7 +218,8 @@ end
begin OWidget
name = EXPO_EXPO_pdm
type = XmPulldownMenu
children = EXPO_startRun EXPO_nextEvent EXPO_abortRun EXPO_cyclic
children = EXPO_startRun EXPO_nextEvent EXPO_abortRun
!EXPO_cyclic
background = lightgrey
end
!----------------------------
@@ -241,18 +242,18 @@ begin OWidget
setWidgetResource EXPO_abortRun sensitive False
end
!----------------------------
begin OWidget
name = EXPO_cyclic
type = XmPushButton
labelString = Cyclic
createCallback = osh> setWidgetResource EXPO_nextEvent sensitive False
activateCallback = osh>\
isValid OCyclic/auto_next && delete OCyclic/auto_next\
delay=`ask delay(msec) 1000`\
script='G4> /run/beamOn 1'\
create OCyclic name auto_next widget `thisWidget` delay $delay script $script\
do OCyclic/auto_next start
end
!begin OWidget
! name = EXPO_cyclic
! type = XmPushButton
! labelString = Cyclic
! createCallback = osh> setWidgetResource EXPO_nextEvent sensitive False
! activateCallback = osh>\
! isValid OCyclic/auto_next && delete OCyclic/auto_next\
! delay=`ask delay(msec) 1000`\
! script='G4> /run/beamOn 1'\
! create OCyclic name auto_next widget `thisWidget` delay $delay script $script\
! do OCyclic/auto_next start
!end
!----------------------------
begin OWidget
name = EXPO_nextEvent