Import Geant4 7.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 12:11:21 +02:00
parent 516dbf1a58
commit d93e1e39a9
5384 changed files with 125662 additions and 82444 deletions
+16 -2
View File
@@ -1,3 +1,17 @@
A01.aida
G4Output.zip
A01Output.heprep.zip
A01Output.bheprep.zip
A01Output.heprep.gz
A01Output.bheprep.gz
A01Output.heprep.gz.no-gz
A01Output.bheprep.gz.no-gz
A01Output.heprep
A01Output.bheprep
A01Output-*.heprep.zip
A01Output-*.bheprep.zip
A01Output-*.heprep.gz
A01Output-*.bheprep.gz
A01Output-*.heprep.gz.no-gz
A01Output-*.bheprep.gz.no-gz
A01Output-*.heprep
A01Output-*.bheprep
+3 -3
View File
@@ -20,7 +20,7 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: A01app.cc,v 1.5 2003/10/13 01:55:51 asaim Exp $
// $Id: A01app.cc,v 1.6 2005/05/03 10:21:16 allison Exp $
// --------------------------------------------------------------
//
// --------------------------------------------------------------
@@ -45,7 +45,7 @@
#include "A01EventAction.hh"
#ifdef G4VIS_USE
#include "A01VisManager.hh"
#include "G4VisExecutive.hh"
#endif
int main(int argc,char** argv)
@@ -55,7 +55,7 @@ int main(int argc,char** argv)
#ifdef G4VIS_USE
// Visualization manager construction
G4VisManager* visManager = new A01VisManager();
G4VisManager* visManager = new G4VisExecutive;
visManager->Initialize();
#endif
+2 -2
View File
@@ -1,4 +1,4 @@
# $Id: GNUmakefile,v 1.8 2004/11/23 04:02:01 tkoi Exp $
# $Id: GNUmakefile,v 1.9 2005/03/31 16:04:00 duns Exp $
# --------------------------------------------------------------
# GNUmakefile for examples module
# --------------------------------------------------------------
@@ -53,5 +53,5 @@ endif
ifdef G4ANALYSIS_USE
CPPFLAGS += `aida-config --include`
LOADLIBS += `aida-config --lib`
LDLIBS += `aida-config --lib`
endif
+23 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.28 2004/12/13 16:02:49 gcosmo Exp $
$Id: History,v 1.36 2005/06/02 10:06:36 perl Exp $
-------------------------------------------------------------------
=========================================================
@@ -10,6 +10,28 @@ $Id: History,v 1.28 2004/12/13 16:02:49 gcosmo Exp $
----------------------------------------------------------
---------------------------------------------------------------------------
2 June 2005 - Joseph Perl (exampleA01-V07-00-05)
- Add G4Atts to the four hit classes.
1 June 2005 - Mark Donszelmann (exampleA01-V07-00-04)
- Updated documentation for the use of Binary HepRep.
31st May 2005 - Mark Donszelmann (exampleA01-V07-00-03)
- Added setting of initial viewpoint to macro files for heprep and bheprep.
26th May 2005 - Mark Donszelmann (exampleA01-V07-00-02)
- Fixed filling of hit histograms.
16th May 2005 - Mark Donszelmann (exampleA01-V07-00-01)
- Added bheprep example files.
3rd May 2005 John Allison (examples-V07-00-03)
- Replaced vis manager with G4VisExecutive.
31 March 2005 Mark Donszelmann (exampleA01-V07-00-00)
- Fixed linking problem with AIDA by replacing LOADLIBS with LDLIBS
which is not touched by the replacement strategy in binmake.gmk
for WIN32-VC.
13th December 2004 Gabriele Cosmo (exampleA01-V06-02-03)
- Modified hadlists.gmk to new phys-lists structure.
+9 -2
View File
@@ -1,4 +1,4 @@
$Id: README,v 1.8 2003/12/01 19:12:38 perl Exp $
$Id: README,v 1.9 2005/06/01 18:10:15 duns Exp $
=========================================================
Geant4 - an Object-Oriented Toolkit for Simulation in HEP
@@ -143,7 +143,7 @@ $Id: README,v 1.8 2003/12/01 19:12:38 perl Exp $
heprep2zip.mac outputs a single zip file that unzips to a series of
HepRep version 2 files, each each containing a single event (unzip
the single file by hand, then view the resulting individial HepRep
files in WIRED).
files in WIRED 3).
heprep2-000-zip.mac outputs a series of zipped HepRep version 2 files
each containing a single event (not yet viewable in WIRED unless you
@@ -157,6 +157,13 @@ $Id: README,v 1.8 2003/12/01 19:12:38 perl Exp $
appended to a single file in an experimental manner (not yet viewable
in WIRED).
Any of the heprep mac files above with the name bheprep (for instance
bheprep2zip.mac) will write a Binary HepRep version 2 file, readable
by WIRED 4.
WIRED 4 can read Binary HepRep and XML HepRep version 2 files without
the need for manual unzipping.
For more information on visualization with this A01 example,
see the visualization tutorials on the Geant4 Workshop Tutorial CD
available at:
+44
View File
@@ -0,0 +1,44 @@
#
# Macro file for A01app
#
# This file does visualization using the HepRep2 format.
# This format is not yet ready for general use (still being debugged).
#
/run/verbose 2
#
#
# Create empty scene ("world" is default)
#
/vis/scene/create A01Output.bheprep.gz
/vis/heprep/setEventNumberSuffix -000
#
# Create a scene handler for a specific graphics system
# Edit the next line(s) to choose another graphic system
#
/vis/open HepRepXML
/vis/viewer/set/culling global false
/vis/viewer/zoom 0.0001
/vis/viewer/set/viewpointThetaPhi 90 90.0001 deg
#/vis/scene/endOfEventAction accumulate
#
# Add volume to scene
#
/vis/scene/add/volume
#
# Add trajectories to scene
#
/vis/scene/add/trajectories
#
# Add hits to scene
#
/vis/scene/add/hits
#
# Do runs
#
/tracking/storeTrajectory 1
/mydet/armAngle 60. deg
/mydet/fieldValue 4. tesla
/mydet/momentum 2. GeV
/gun/particle e+
/run/beamOn 10
+44
View File
@@ -0,0 +1,44 @@
#
# Macro file for A01app
#
# This file does visualization using the HepRep2 format.
# This format is not yet ready for general use (still being debugged).
#
/run/verbose 2
#
#
# Create empty scene ("world" is default)
#
/vis/scene/create A01Output.bheprep.zip
/vis/heprep/setEventNumberSuffix -000
#
# Create a scene handler for a specific graphics system
# Edit the next line(s) to choose another graphic system
#
/vis/open HepRepXML
/vis/viewer/set/culling global false
/vis/viewer/zoom 0.0001
/vis/viewer/set/viewpointThetaPhi 90 90.0001 deg
#/vis/scene/endOfEventAction accumulate
#
# Add volume to scene
#
/vis/scene/add/volume
#
# Add trajectories to scene
#
/vis/scene/add/trajectories
#
# Add hits to scene
#
/vis/scene/add/hits
#
# Do runs
#
/tracking/storeTrajectory 1
/mydet/armAngle 60. deg
/mydet/fieldValue 4. tesla
/mydet/momentum 2. GeV
/gun/particle e+
/run/beamOn 10
+39
View File
@@ -0,0 +1,39 @@
#
# Macro file for A01app
#
/run/verbose 2
#
#
# Create empty scene ("world" is default)
#
/vis/scene/create A01Output.bheprep
#
# Create a scene handler for a specific graphics system
# Edit the next line(s) to choose another graphic system
#
/vis/open HepRepXML
/vis/viewer/set/culling global false
/vis/viewer/zoom 0.0001
/vis/viewer/set/viewpointThetaPhi 90 90.0001 deg
#/vis/scene/endOfEventAction accumulate
#
# Add volume to scene
#
/vis/scene/add/volume
#
# Add trajectories to scene
#
/vis/scene/add/trajectories
#
# Add hits to scene
#
/vis/scene/add/hits
#
# Do runs
#
/tracking/storeTrajectory 1
/mydet/armAngle 60. deg
/mydet/fieldValue 4. tesla
/mydet/momentum 2. GeV
/gun/particle e+
/run/beamOn 10
+41
View File
@@ -0,0 +1,41 @@
#
# Macro file for A01app
#
# This file does visualization using the HepRep2 format.
# This format is not yet ready for general use (still being debugged).
#
/run/verbose 2
#
#
# Create empty scene ("world" is default)
#
/vis/scene/create A01Output.bheprep.gz
#
# Create a scene handler for a specific graphics system
# Edit the next line(s) to choose another graphic system
#
/vis/open HepRepXML
/vis/viewer/set/culling global false
/vis/viewer/zoom 0.0001
/vis/viewer/set/viewpointThetaPhi 90 90.0001 deg
#
# Add volume to scene
#
/vis/scene/add/volume
#
# Add trajectories to scene
#
/vis/scene/add/trajectories
#
# Add hits to scene
#
/vis/scene/add/hits
#
# Do runs
#
/tracking/storeTrajectory 1
/mydet/armAngle 60. deg
/mydet/fieldValue 4. tesla
/mydet/momentum 2. GeV
/gun/particle e+
/run/beamOn 10
+42
View File
@@ -0,0 +1,42 @@
#
# Macro file for A01app
#
# This file does visualization using the HepRep2 format.
# This format is not yet ready for general use (still being debugged).
#
/run/verbose 2
#
#
# Create empty scene ("world" is default)
#
/vis/scene/create A01Output.bheprep.zip
#
# Create a scene handler for a specific graphics system
# Edit the next line(s) to choose another graphic system
#
/vis/open HepRepXML
/vis/heprep/appendGeometry true
/vis/viewer/set/culling global false
/vis/viewer/zoom 0.0001
/vis/viewer/set/viewpointThetaPhi 90 90.0001 deg
#
# Add volume to scene
#
/vis/scene/add/volume
#
# Add trajectories to scene
#
/vis/scene/add/trajectories
#
# Add hits to scene
#
/vis/scene/add/hits
#
# Do runs
#
/tracking/storeTrajectory 1
/mydet/armAngle 60. deg
/mydet/fieldValue 4. tesla
/mydet/momentum 2. GeV
/gun/particle e+
/run/beamOn 10
@@ -17,9 +17,9 @@
# Edit the next line(s) to choose another graphic system
#
/vis/open HepRepXML
/vis/heprep/setCoordinateSystem zxy
/vis/viewer/set/culling global false
/vis/viewer/zoom 0.0001
/vis/viewer/set/viewpointThetaPhi 90 90.0001 deg
#/vis/scene/endOfEventAction accumulate
#
# Add volume to scene
@@ -17,9 +17,9 @@
# Edit the next line(s) to choose another graphic system
#
/vis/open HepRepXML
/vis/heprep/setCoordinateSystem zxy
/vis/viewer/set/culling global false
/vis/viewer/zoom 0.0001
/vis/viewer/set/viewpointThetaPhi 90 90.0001 deg
#/vis/scene/endOfEventAction accumulate
#
# Add volume to scene
+1 -2
View File
@@ -12,10 +12,9 @@
# Edit the next line(s) to choose another graphic system
#
/vis/open HepRepXML
/vis/heprep/setCoordinateSystem zxy
/vis/viewer/set/culling global false
/vis/viewer/zoom 0.0001
#/vis/viewer/set/viewpointThetaPhi 20 40 deg
/vis/viewer/set/viewpointThetaPhi 90 90.0001 deg
#/vis/scene/endOfEventAction accumulate
#
# Add volume to scene
+1 -1
View File
@@ -15,9 +15,9 @@
# Edit the next line(s) to choose another graphic system
#
/vis/open HepRepXML
/vis/heprep/setCoordinateSystem zxy
/vis/viewer/set/culling global false
/vis/viewer/zoom 0.0001
/vis/viewer/set/viewpointThetaPhi 90 90.0001 deg
#
# Add volume to scene
#
@@ -15,10 +15,10 @@
# Edit the next line(s) to choose another graphic system
#
/vis/open HepRepXML
/vis/heprep/appendGeometry false
/vis/heprep/setCoordinateSystem zxy
/vis/heprep/appendGeometry true
/vis/viewer/set/culling global false
/vis/viewer/zoom 0.0001
/vis/viewer/set/viewpointThetaPhi 90 90.0001 deg
#
# Add volume to scene
#
@@ -20,7 +20,7 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: A01DriftChamberHit.hh,v 1.3 2002/12/13 11:34:28 gunter Exp $
// $Id: A01DriftChamberHit.hh,v 1.4 2005/06/02 10:06:36 perl Exp $
// --------------------------------------------------------------
//
#ifndef A01DriftChamberHit_h
@@ -34,6 +34,9 @@
#include "G4Transform3D.hh"
#include "G4RotationMatrix.hh"
class G4AttDef;
class G4AttValue;
class A01DriftChamberHit : public G4VHit
{
public:
@@ -52,6 +55,8 @@ class A01DriftChamberHit : public G4VHit
inline float y();
virtual void Draw();
virtual const std::map<G4String,G4AttDef>* GetAttDefs() const;
virtual std::vector<G4AttValue>* CreateAttValues() const;
virtual void Print();
private:
@@ -20,7 +20,7 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: A01EmCalorimeterHit.hh,v 1.3 2002/12/13 11:34:28 gunter Exp $
// $Id: A01EmCalorimeterHit.hh,v 1.4 2005/06/02 10:06:36 perl Exp $
// --------------------------------------------------------------
//
#ifndef A01EmCalorimeterHit_h
@@ -34,6 +34,9 @@
#include "G4Transform3D.hh"
#include "G4RotationMatrix.hh"
class G4AttDef;
class G4AttValue;
class A01EmCalorimeterHit : public G4VHit
{
public:
@@ -49,6 +52,8 @@ class A01EmCalorimeterHit : public G4VHit
inline void operator delete(void *aHit);
virtual void Draw();
virtual const std::map<G4String,G4AttDef>* GetAttDefs() const;
virtual std::vector<G4AttValue>* CreateAttValues() const;
virtual void Print();
private:
@@ -20,7 +20,7 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: A01HadCalorimeterHit.hh,v 1.3 2002/12/13 11:34:28 gunter Exp $
// $Id: A01HadCalorimeterHit.hh,v 1.4 2005/06/02 10:06:36 perl Exp $
// --------------------------------------------------------------
//
#ifndef A01HadCalorimeterHit_h
@@ -34,6 +34,9 @@
#include "G4Transform3D.hh"
#include "G4RotationMatrix.hh"
class G4AttDef;
class G4AttValue;
class A01HadCalorimeterHit : public G4VHit
{
public:
@@ -49,6 +52,8 @@ class A01HadCalorimeterHit : public G4VHit
inline void operator delete(void *aHit);
virtual void Draw();
virtual const std::map<G4String,G4AttDef>* GetAttDefs() const;
virtual std::vector<G4AttValue>* CreateAttValues() const;
virtual void Print();
private:
@@ -20,7 +20,7 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: A01HodoscopeHit.hh,v 1.3 2002/12/13 11:34:29 gunter Exp $
// $Id: A01HodoscopeHit.hh,v 1.4 2005/06/02 10:06:36 perl Exp $
// --------------------------------------------------------------
//
#ifndef A01HodoscopeHit_h
@@ -34,6 +34,9 @@
#include "G4Transform3D.hh"
#include "G4RotationMatrix.hh"
class G4AttDef;
class G4AttValue;
class A01HodoscopeHit : public G4VHit
{
public:
@@ -49,6 +52,8 @@ class A01HodoscopeHit : public G4VHit
inline void operator delete(void*aHit);
void Draw();
virtual const std::map<G4String,G4AttDef>* GetAttDefs() const;
virtual std::vector<G4AttValue>* CreateAttValues() const;
void Print();
private:
@@ -1,46 +0,0 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: A01VisManager.hh,v 1.3 2002/12/13 11:34:29 gunter Exp $
// --------------------------------------------------------------
//
#ifndef A01VisManager_h
#define A01VisManager_h 1
#ifdef G4VIS_USE
#include "G4VisManager.hh"
class A01VisManager: public G4VisManager
{
public:
A01VisManager ();
private:
void RegisterGraphicsSystems ();
};
#endif
#endif
@@ -20,7 +20,7 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: A01DriftChamberHit.cc,v 1.5 2003/07/11 21:32:02 duns Exp $
// $Id: A01DriftChamberHit.cc,v 1.7 2005/06/07 10:50:02 perl Exp $
// --------------------------------------------------------------
//
#include "A01DriftChamberHit.hh"
@@ -28,6 +28,11 @@
#include "G4VVisManager.hh"
#include "G4Circle.hh"
#include "G4Colour.hh"
#include "G4AttDefStore.hh"
#include "G4AttDef.hh"
#include "G4AttValue.hh"
#include "G4UIcommand.hh"
#include "G4UnitsTable.hh"
#include "G4VisAttributes.hh"
#include "G4LogicalVolume.hh"
@@ -85,6 +90,71 @@ void A01DriftChamberHit::Draw()
}
}
const std::map<G4String,G4AttDef>* A01DriftChamberHit::GetAttDefs() const
{
G4bool isNew;
std::map<G4String,G4AttDef>* store
= G4AttDefStore::GetInstance("A01DriftChamberHit",isNew);
if (isNew) {
G4String HitType("HitType");
(*store)[HitType] = G4AttDef(HitType,"Hit Type","Bookkeeping","","G4String");
G4String ID("ID");
(*store)[ID] = G4AttDef(ID,"ID","Bookkeeping","","G4int");
G4String Column("Column");
(*store)[Column] = G4AttDef(Column,"Column ID","Bookkeeping","","G4int");
G4String Row("Row");
(*store)[Row] = G4AttDef(Row,"Row ID","Bookkeeping","","G4int");
//G4String Time("Time");
//(*store)[Time] = G4AttDef(Time,"Time","Physics","G4BestUnit","G4double");
G4String Energy("Energy");
(*store)[Energy] = G4AttDef(Energy,"Energy Deposited","Physics","G4BestUnit","G4double");
G4String Pos("Pos");
(*store)[Pos] = G4AttDef(Pos, "Position",
"Physics","G4BestUnit","G4ThreeVector");
G4String LVol("LVol");
(*store)[LVol] = G4AttDef(LVol,"Logical Volume","Bookkeeping","","G4String");
}
return store;
}
std::vector<G4AttValue>* A01DriftChamberHit::CreateAttValues() const
{
std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
values->push_back(G4AttValue("HitType","DriftChamberHit",""));
values->push_back
(G4AttValue("ID",G4UIcommand::ConvertToString(layerID),""));
values->push_back
(G4AttValue("Column"," ",""));
values->push_back
(G4AttValue("Row"," ",""));
//values->push_back
// (G4AttValue("Time",G4BestUnit(time,"Time"),""));
G4double noEnergy = 0.*MeV;
values->push_back
(G4AttValue("Energy",G4BestUnit(noEnergy,"Energy"),""));
values->push_back
(G4AttValue("Pos",G4BestUnit(worldPos,"Length"),""));
values->push_back
(G4AttValue("LVol"," ",""));
return values;
}
void A01DriftChamberHit::Print()
{
G4cout << " Layer[" << layerID << "] : time " << time/ns
@@ -20,13 +20,18 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: A01EmCalorimeterHit.cc,v 1.6 2003/10/14 18:58:18 perl Exp $
// $Id: A01EmCalorimeterHit.cc,v 1.8 2005/06/07 10:50:02 perl Exp $
// --------------------------------------------------------------
//
#include "A01EmCalorimeterHit.hh"
#include "G4VVisManager.hh"
#include "G4Colour.hh"
#include "G4AttDefStore.hh"
#include "G4AttDef.hh"
#include "G4AttValue.hh"
#include "G4UIcommand.hh"
#include "G4UnitsTable.hh"
#include "G4VisAttributes.hh"
#include "G4LogicalVolume.hh"
#include "G4ios.hh"
@@ -94,6 +99,75 @@ void A01EmCalorimeterHit::Draw()
}
}
const std::map<G4String,G4AttDef>* A01EmCalorimeterHit::GetAttDefs() const
{
G4bool isNew;
std::map<G4String,G4AttDef>* store
= G4AttDefStore::GetInstance("A01EmCalorimeterHit",isNew);
if (isNew) {
G4String HitType("HitType");
(*store)[HitType] = G4AttDef(HitType,"Hit Type","Bookkeeping","","G4String");
G4String ID("ID");
(*store)[ID] = G4AttDef(ID,"ID","Bookkeeping","","G4int");
G4String Column("Column");
(*store)[Column] = G4AttDef(Column,"Column ID","Bookkeeping","","G4int");
G4String Row("Row");
(*store)[Row] = G4AttDef(Row,"Row ID","Bookkeeping","","G4int");
//G4String Time("Time");
//(*store)[Time] = G4AttDef(Time,"Time","Physics","G4BestUnit","G4double");
G4String Energy("Energy");
(*store)[Energy] = G4AttDef(Energy,"Energy Deposited","Physics","G4BestUnit","G4double");
G4String Pos("Pos");
(*store)[Pos] = G4AttDef(Pos, "Position",
"Physics","G4BestUnit","G4ThreeVector");
G4String LVol("LVol");
(*store)[LVol] = G4AttDef(LVol,"Logical Volume","Bookkeeping","","G4String");
}
return store;
}
std::vector<G4AttValue>* A01EmCalorimeterHit::CreateAttValues() const
{
std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
values->push_back(G4AttValue("HitType","EmCalorimeterHit",""));
values->push_back
(G4AttValue("ID",G4UIcommand::ConvertToString(cellID),""));
values->push_back
(G4AttValue("Column"," ",""));
values->push_back
(G4AttValue("Row"," ",""));
//G4double noTime = 0.*s;
//values->push_back
// (G4AttValue("Time",G4BestUnit(noTime,"Time"),""));
values->push_back
(G4AttValue("Energy",G4BestUnit(edep,"Energy"),""));
values->push_back
(G4AttValue("Pos",G4BestUnit(pos,"Length"),""));
if (pLogV)
values->push_back
(G4AttValue("LVol",pLogV->GetName(),""));
else
values->push_back
(G4AttValue("LVol"," ",""));
return values;
}
void A01EmCalorimeterHit::Print()
{
G4cout << " Cell[" << cellID << "] " << edep/MeV << " (MeV)" << G4endl;
@@ -20,7 +20,7 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: A01EventAction.cc,v 1.6 2003/10/13 01:55:54 asaim Exp $
// $Id: A01EventAction.cc,v 1.7 2005/05/26 05:44:24 duns Exp $
// --------------------------------------------------------------
//
@@ -148,29 +148,22 @@ void A01EventAction::EndOfEventAction(const G4Event* evt)
{
int n_hit = DHC1->entries();
dc1Hits->fill(n_hit);
for(int i2=0;i2<5;i2++)
for(int i1=0;i1<n_hit;i1++)
{
for(int i1=0;i1<n_hit;i1++)
{
A01DriftChamberHit* aHit = (*DHC1)[i1];
G4ThreeVector localPos = aHit->GetLocalPos();
if (dc1XY) dc1XY->fill(localPos.x(), localPos.y());
}
A01DriftChamberHit* aHit = (*DHC1)[i1];
G4ThreeVector localPos = aHit->GetLocalPos();
if (dc1XY) dc1XY->fill(localPos.x(), localPos.y());
}
}
if (DHC2 && dc2Hits)
{
int n_hit = DHC2->entries();
dc2Hits->fill(n_hit);
for(int i2=0;i2<5;i2++)
for(int i1=0;i1<n_hit;i1++)
{
for(int i1=0;i1<n_hit;i1++)
{
A01DriftChamberHit* aHit = (*DHC2)[i1];
G4ThreeVector localPos = aHit->GetLocalPos();
if (dc2XY) dc2XY->fill(localPos.x(), localPos.y());
}
A01DriftChamberHit* aHit = (*DHC2)[i1];
G4ThreeVector localPos = aHit->GetLocalPos();
if (dc2XY) dc2XY->fill(localPos.x(), localPos.y());
}
}
@@ -20,7 +20,7 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: A01HadCalorimeterHit.cc,v 1.5 2003/10/14 18:58:20 perl Exp $
// $Id: A01HadCalorimeterHit.cc,v 1.7 2005/06/07 10:50:02 perl Exp $
// --------------------------------------------------------------
//
@@ -31,6 +31,11 @@
#include "G4Box.hh"
#include "G4VVisManager.hh"
#include "G4Colour.hh"
#include "G4AttDefStore.hh"
#include "G4AttDef.hh"
#include "G4AttValue.hh"
#include "G4UIcommand.hh"
#include "G4UnitsTable.hh"
#include "G4VisAttributes.hh"
#include "G4LogicalVolume.hh"
#include "G4ios.hh"
@@ -94,6 +99,71 @@ void A01HadCalorimeterHit::Draw()
}
}
const std::map<G4String,G4AttDef>* A01HadCalorimeterHit::GetAttDefs() const
{
G4bool isNew;
std::map<G4String,G4AttDef>* store
= G4AttDefStore::GetInstance("A01HadCalorimeterHit",isNew);
if (isNew) {
G4String HitType("HitType");
(*store)[HitType] = G4AttDef(HitType,"Hit Type","Bookkeeping","","G4String");
G4String ID("ID");
(*store)[ID] = G4AttDef(ID,"ID","Bookkeeping","","G4int");
G4String Column("Column");
(*store)[Column] = G4AttDef(Column,"Column ID","Bookkeeping","","G4int");
G4String Row("Row");
(*store)[Row] = G4AttDef(Row,"Row ID","Bookkeeping","","G4int");
// G4String Time("Time");
//(*store)[Time] = G4AttDef(Time,"Time","Physics","G4BestUnit","G4double");
G4String Energy("Energy");
(*store)[Energy] = G4AttDef(Energy,"Energy Deposited","Physics","G4BestUnit","G4double");
G4String Pos("Pos");
(*store)[Pos] = G4AttDef(Pos, "Position",
"Physics","G4BestUnit","G4ThreeVector");
G4String LVol("LVol");
(*store)[LVol] = G4AttDef(LVol,"Logical Volume","Bookkeeping","","G4String");
}
return store;
}
std::vector<G4AttValue>* A01HadCalorimeterHit::CreateAttValues() const
{
std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
values->push_back(G4AttValue("HitType","HadCalorimeterHit",""));
values->push_back
(G4AttValue("ID"," ",""));
values->push_back
(G4AttValue("Column",G4UIcommand::ConvertToString(columnID),""));
values->push_back
(G4AttValue("Row",G4UIcommand::ConvertToString(rowID),""));
//G4double noTime = 0.*s;
//values->push_back
// (G4AttValue("Time",G4BestUnit(noTime,"Time"),""));
values->push_back
(G4AttValue("Energy",G4BestUnit(edep,"Energy"),""));
values->push_back
(G4AttValue("Pos",G4BestUnit(pos,"Length"),""));
values->push_back
(G4AttValue("LVol"," ",""));
return values;
}
void A01HadCalorimeterHit::Print()
{
G4cout << " Cell[" << rowID << ", " << columnID << "] " << edep/MeV << " (MeV) " << pos << G4endl;
@@ -20,13 +20,18 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: A01HodoscopeHit.cc,v 1.5 2003/10/14 18:58:22 perl Exp $
// $Id: A01HodoscopeHit.cc,v 1.7 2005/06/07 10:50:02 perl Exp $
// --------------------------------------------------------------
//
#include "A01HodoscopeHit.hh"
#include "G4VVisManager.hh"
#include "G4Circle.hh"
#include "G4Colour.hh"
#include "G4AttDefStore.hh"
#include "G4AttDef.hh"
#include "G4AttValue.hh"
#include "G4UIcommand.hh"
#include "G4UnitsTable.hh"
#include "G4VisAttributes.hh"
#include "G4ios.hh"
@@ -82,6 +87,75 @@ void A01HodoscopeHit::Draw()
}
}
const std::map<G4String,G4AttDef>* A01HodoscopeHit::GetAttDefs() const
{
G4bool isNew;
std::map<G4String,G4AttDef>* store
= G4AttDefStore::GetInstance("A01HodoscopeHit",isNew);
if (isNew) {
G4String HitType("HitType");
(*store)[HitType] = G4AttDef(HitType,"Hit Type","Bookkeeping","","G4String");
G4String ID("ID");
(*store)[ID] = G4AttDef(ID,"ID","Bookkeeping","","G4int");
G4String Column("Column");
(*store)[Column] = G4AttDef(Column,"Column ID","Bookkeeping","","G4int");
G4String Row("Row");
(*store)[Row] = G4AttDef(Row,"Row ID","Bookkeeping","","G4int");
//G4String Time("Time");
//(*store)[Time] = G4AttDef(Time,"Time","Physics","G4BestUnit","G4double");
G4String Energy("Energy");
(*store)[Energy] = G4AttDef(Energy,"Energy Deposited","Physics","G4BestUnit","G4double");
G4String Pos("Pos");
(*store)[Pos] = G4AttDef(Pos, "Position",
"Physics","G4BestUnit","G4ThreeVector");
G4String LVol("LVol");
(*store)[LVol] = G4AttDef(LVol,"Logical Volume","Bookkeeping","","G4String");
}
return store;
}
std::vector<G4AttValue>* A01HodoscopeHit::CreateAttValues() const
{
std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
values->push_back(G4AttValue("HitType","HodoscopeHit",""));
values->push_back
(G4AttValue("ID",G4UIcommand::ConvertToString(id),""));
values->push_back
(G4AttValue("Column"," ",""));
values->push_back
(G4AttValue("Row"," ",""));
//values->push_back
// (G4AttValue("Time",G4BestUnit(time,"Time"),""));
G4double noEnergy = 0.*MeV;
values->push_back
(G4AttValue("Energy",G4BestUnit(noEnergy,"Energy"),""));
values->push_back
(G4AttValue("Pos",G4BestUnit(pos,"Length"),""));
if (pLogV)
values->push_back
(G4AttValue("LVol",pLogV->GetName(),""));
else
values->push_back
(G4AttValue("LVol"," ",""));
return values;
}
void A01HodoscopeHit::Print()
{
G4cout << " Hodoscope[" << id << "] " << time/ns << " (nsec)" << G4endl;
@@ -1,134 +0,0 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: A01VisManager.cc,v 1.4 2003/11/13 15:10:55 johna Exp $
// --------------------------------------------------------------
//
#ifdef G4VIS_USE
#include "A01VisManager.hh"
// Supported drivers...
// Not needing external packages or libraries...
#include "G4ASCIITree.hh"
#include "G4DAWNFILE.hh"
#include "G4GAGTree.hh"
#include "G4HepRepFile.hh"
#include "G4HepRep.hh"
#include "G4RayTracer.hh"
#include "G4VRML1File.hh"
#include "G4VRML2File.hh"
// Needing external packages or libraries...
#ifdef G4VIS_USE_DAWN
#include "G4FukuiRenderer.hh"
#endif
#ifdef G4VIS_USE_OPENGLX
#include "G4OpenGLImmediateX.hh"
#include "G4OpenGLStoredX.hh"
#endif
#ifdef G4VIS_USE_OPENGLWIN32
#include "G4OpenGLImmediateWin32.hh"
#include "G4OpenGLStoredWin32.hh"
#endif
#ifdef G4VIS_USE_OPENGLXM
#include "G4OpenGLImmediateXm.hh"
#include "G4OpenGLStoredXm.hh"
#endif
#ifdef G4VIS_USE_OIX
#include "G4OpenInventorX.hh"
#endif
#ifdef G4VIS_USE_OIWIN32
#include "G4OpenInventorWin32.hh"
#endif
#ifdef G4VIS_USE_VRML
#include "G4VRML1.hh"
#include "G4VRML2.hh"
#endif
A01VisManager::A01VisManager () {}
void A01VisManager::RegisterGraphicsSystems () {
// Graphics Systems not needing external packages or libraries...
RegisterGraphicsSystem (new G4ASCIITree);
RegisterGraphicsSystem (new G4DAWNFILE);
RegisterGraphicsSystem (new G4GAGTree);
RegisterGraphicsSystem (new G4HepRepFile);
RegisterGraphicsSystem (new G4HepRep);
RegisterGraphicsSystem (new G4RayTracer);
RegisterGraphicsSystem (new G4VRML1File);
RegisterGraphicsSystem (new G4VRML2File);
// Graphics systems needing external packages or libraries...
#ifdef G4VIS_USE_DAWN
RegisterGraphicsSystem (new G4FukuiRenderer);
#endif
#ifdef G4VIS_USE_OPENGLX
RegisterGraphicsSystem (new G4OpenGLImmediateX);
RegisterGraphicsSystem (new G4OpenGLStoredX);
#endif
#ifdef G4VIS_USE_OPENGLWIN32
RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
RegisterGraphicsSystem (new G4OpenGLStoredWin32);
#endif
#ifdef G4VIS_USE_OPENGLXM
RegisterGraphicsSystem (new G4OpenGLImmediateXm);
RegisterGraphicsSystem (new G4OpenGLStoredXm);
#endif
#ifdef G4VIS_USE_OIX
RegisterGraphicsSystem (new G4OpenInventorX);
#endif
#ifdef G4VIS_USE_OIWIN32
RegisterGraphicsSystem (new G4OpenInventorWin32);
#endif
#ifdef G4VIS_USE_VRML
RegisterGraphicsSystem (new G4VRML1);
RegisterGraphicsSystem (new G4VRML2);
#endif
if (fVerbose > 0) {
G4cout <<
"\nYou have successfully chosen to use the following graphics systems."
<< G4endl;
PrintAvailableGraphicsSystems ();
}
}
#endif
+1 -1
View File
@@ -1,6 +1,6 @@
*************************************************************
Geant4 version $Name: geant4-07-00-cand-01 $ (25-June-2004)
Geant4 version $Name: geant4-07-01 $ (25-June-2004)
Copyright : Geant4 Collaboration
Reference : NIM A 506 (2003), 250-303
WWW : http://cern.ch/geant4
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01.cc,v 1.9 2003/12/03 10:33:39 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// --------------------------------------------------------------
+4 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.8 2003/12/03 10:34:02 gcosmo Exp $
$Id: History,v 1.9 2005/05/03 10:05:48 allison Exp $
--------------------------------------------------
=========================================================
@@ -15,6 +15,9 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
3rd May 2005 John Allison (examples-V07-00-03)
- Replaced vis manager with G4VisExecutive.
3rd December 2003 Gabriele Cosmo (AnaEx01-V05-02-01)
- Fixed minor compilation warnings and added 'aida-config' in
GNUmakefile, activated through G4ANALYSIS_USE.
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01AnalysisManager.hh,v 1.6 2003/06/20 14:55:44 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01CalorHit.hh,v 1.3 2003/06/20 14:55:44 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01CalorimeterSD.hh,v 1.3 2003/06/20 14:55:44 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01DetectorConstruction.hh,v 1.3 2003/06/20 14:55:44 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01DetectorMessenger.hh,v 1.3 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01EventAction.hh,v 1.5 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01PhysicsList.hh,v 1.3 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01PrimaryGeneratorAction.hh,v 1.3 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01PrimaryGeneratorMessenger.hh,v 1.3 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01RunAction.hh,v 1.5 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01SteppingAction.hh,v 1.5 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01SteppingVerbose.hh,v 1.3 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//---------------------------------------------------------------
@@ -1,70 +0,0 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: AnaEx01VisManager.hh,v 1.3 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
// Example Visualization Manager implementing virtual function
// RegisterGraphicsSystems. Exploits C-pre-processor variables
// G4VIS_USE_DAWN, etc., which are set by the GNUmakefiles if
// environment variables of the same name are set.
// So all you have to do is set environment variables and compile and
// instantiate this in your main().
// Alternatively, you can implement an empty function here and just
// register the systems you want in your main(), e.g.:
// G4VisManager* myVisManager = new MyVisManager;
// myVisManager -> RegisterGraphicsSystem (new MyGraphicsSystem);
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
#ifndef AnaEx01VisManager_h
#define AnaEx01VisManager_h 1
#ifdef G4VIS_USE
#include "G4VisManager.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class AnaEx01VisManager: public G4VisManager {
public:
AnaEx01VisManager ();
private:
void RegisterGraphicsSystems ();
};
#endif
#endif
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01AnalysisManager.cc,v 1.12 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// Guy Barrand 14th Septembre 2000.
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01CalorHit.cc,v 1.5 2003/12/03 10:33:21 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01CalorimeterSD.cc,v 1.4 2003/12/03 10:33:21 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01DetectorConstruction.cc,v 1.4 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01DetectorMessenger.cc,v 1.4 2002/12/05 00:24:22 asaim Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01EventAction.cc,v 1.5 2001/11/16 14:31:12 barrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01PhysicsList.cc,v 1.4 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01PrimaryGeneratorAction.cc,v 1.4 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01PrimaryGeneratorMessenger.cc,v 1.4 2002/12/05 00:24:22 asaim Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01RunAction.cc,v 1.6 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01SteppingAction.cc,v 1.6 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: AnaEx01SteppingVerbose.cc,v 1.6 2003/06/20 14:55:45 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
//---------------------------------------------------------------
@@ -1,145 +0,0 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: AnaEx01VisManager.cc,v 1.7 2003/10/17 10:19:57 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// John Allison 24th January 1998.
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
#ifdef G4VIS_USE
#include "AnaEx01VisManager.hh"
// Supported drivers...
// Not needing external packages or libraries...
#include "G4ASCIITree.hh"
#include "G4DAWNFILE.hh"
#include "G4GAGTree.hh"
#include "G4HepRepFile.hh"
#include "G4HepRep.hh"
#include "G4RayTracer.hh"
#include "G4VRML1File.hh"
#include "G4VRML2File.hh"
// Needing external packages or libraries...
#ifdef G4VIS_USE_DAWN
#include "G4FukuiRenderer.hh"
#endif
#ifdef G4VIS_USE_OPENGLX
#include "G4OpenGLImmediateX.hh"
#include "G4OpenGLStoredX.hh"
#endif
#ifdef G4VIS_USE_OPENGLWIN32
#include "G4OpenGLImmediateWin32.hh"
#include "G4OpenGLStoredWin32.hh"
#endif
#ifdef G4VIS_USE_OPENGLXM
#include "G4OpenGLImmediateXm.hh"
#include "G4OpenGLStoredXm.hh"
#endif
#ifdef G4VIS_USE_OIX
#include "G4OpenInventorX.hh"
#endif
#ifdef G4VIS_USE_OIWIN32
#include "G4OpenInventorWin32.hh"
#endif
#ifdef G4VIS_USE_VRML
#include "G4VRML1.hh"
#include "G4VRML2.hh"
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
AnaEx01VisManager::AnaEx01VisManager () {}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
void AnaEx01VisManager::RegisterGraphicsSystems () {
// Graphics Systems not needing external packages or libraries...
RegisterGraphicsSystem (new G4ASCIITree);
RegisterGraphicsSystem (new G4DAWNFILE);
RegisterGraphicsSystem (new G4GAGTree);
RegisterGraphicsSystem (new G4HepRepFile);
RegisterGraphicsSystem (new G4HepRep);
RegisterGraphicsSystem (new G4RayTracer);
RegisterGraphicsSystem (new G4VRML1File);
RegisterGraphicsSystem (new G4VRML2File);
// Graphics systems needing external packages or libraries...
#ifdef G4VIS_USE_DAWN
RegisterGraphicsSystem (new G4FukuiRenderer);
#endif
#ifdef G4VIS_USE_OPENGLX
RegisterGraphicsSystem (new G4OpenGLImmediateX);
RegisterGraphicsSystem (new G4OpenGLStoredX);
#endif
#ifdef G4VIS_USE_OPENGLWIN32
RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
RegisterGraphicsSystem (new G4OpenGLStoredWin32);
#endif
#ifdef G4VIS_USE_OPENGLXM
RegisterGraphicsSystem (new G4OpenGLImmediateXm);
RegisterGraphicsSystem (new G4OpenGLStoredXm);
#endif
#ifdef G4VIS_USE_OIX
RegisterGraphicsSystem (new G4OpenInventorX);
#endif
#ifdef G4VIS_USE_OIWIN32
RegisterGraphicsSystem (new G4OpenInventorWin32);
#endif
#ifdef G4VIS_USE_VRML
RegisterGraphicsSystem (new G4VRML1);
RegisterGraphicsSystem (new G4VRML2);
#endif
if (fVerbose > 0) {
G4cout <<
"\nYou have successfully chosen to use the following graphics systems."
<< G4endl;
PrintAvailableGraphicsSystems ();
}
}
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
+4 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.1 2002/11/27 19:17:54 asaim Exp $
$Id: History,v 1.2 2005/05/03 10:05:48 allison Exp $
-------------------------------------------------------------------
=========================================================
@@ -11,6 +11,9 @@ $Id: History,v 1.1 2002/11/27 19:17:54 asaim Exp $
---------------------------------------------------------------------------
3rd May 2005 John Allison (examples-V07-00-03)
- Replaced vis manager with G4VisExecutive.
27th November 2002 Makoto Asai (analysisExample-V04-01-01)
- Tag for release 5.0
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: exampleB01.cc,v 1.20 2004/03/24 10:11:25 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// --------------------------------------------------------------
+42 -38
View File
@@ -1,13 +1,11 @@
*************************************************************
Geant4 version $Name: geant4-07-00-ref-00 $ (17-December-2004)
Geant4 version Name: run-V07-00-05 (30-June-2005)
Copyright : Geant4 Collaboration
Reference : NIM A 506 (2003), 250-303
WWW : http://cern.ch/geant4
*************************************************************
phot: Total cross sections from Sandia parametrisation.
B01PhysicsList::SetCuts:CutLength : 1 (mm)
Going to assign importance: 1, to volume: cell_01
Going to assign importance: 2, to volume: cell_02
@@ -101,15 +99,18 @@ DoIt Vector:
LCapture
Decay
================================================
G4VUserPhysicsList::BuildPhysicsTable does not retrieve Cut Table but calculate
conv: Total cross sections from a parametrisation. Good description from 1.5 MeV to 100 GeV for all Z.
e+e- energies according Bethe-Heitler
PhysicsTables from 1.022 MeV to 100 GeV in 100 bins.
conv: Total cross sections has a good parametrisation from 1.5 MeV to 100 GeV for all Z;
sampling secondary e+e- according to the Bethe-Heitler model
tables are built for gamma
Lambda tables from 1.022 MeV to 100 GeV in 100 bins.
compt: Total cross sections from a parametrisation. Good description from 10 KeV to (100/Z) GeV.
Scattered gamma energy according Klein-Nishina.
PhysicsTables from 1 keV to 100 GeV in 80 bins.
compt: Total cross sections has a good parametrisation from 10 KeV to (100/Z) GeV
Sampling according Klein-Nishina model
tables are built for gamma
Lambda tables from 100 eV to 100 GeV in 90 bins.
phot: Total cross sections from Sandia parametrisation.
msc: Model variant of multiple scattering for e-
Lambda tables from 100 eV to 100 TeV in 120 bins.
@@ -118,8 +119,8 @@ msc: Model variant of multiple scattering for e-
eIoni: tables are built for e-
dE/dx and range tables from 100 eV to 100 TeV in 120 bins.
Lambda tables from threshold to 100 TeV in 120 bins.
Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 1
Delta cross sections from Moller+Bhabha, good description from 1 KeV to 100 GeV.
Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 1
eBrem: tables are built for e-
dE/dx and range tables from 100 eV to 100 TeV in 120 bins.
@@ -130,8 +131,8 @@ eBrem: tables are built for e-
eIoni: tables are built for e+
dE/dx and range tables from 100 eV to 100 TeV in 120 bins.
Lambda tables from threshold to 100 TeV in 120 bins.
Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 1
Delta cross sections from Moller+Bhabha, good description from 1 KeV to 100 GeV.
Step function: finalRange(mm)= 1, dRoverRange= 1, integral: 1
eBrem: tables are built for e+
dE/dx and range tables from 100 eV to 100 TeV in 120 bins.
@@ -139,9 +140,9 @@ eBrem: tables are built for e+
Total cross sections from a parametrisation based on the EEDL data library.
Good description from 1 KeV to 100 GeV, log scale extrapolation above 100 GeV.
annihil: Total cross section from Heilter formula(annihilation into 2 photons).
gamma energies sampled according Heitler
PhysicsTables from 10 keV to 10 TeV in 100 bins.
annihil: Heilter model of formula of annihilation into 2 photons
tables are built for e+
Lambda tables from 100 eV to 100 TeV in 120 bins.
msc: Model variant of multiple scattering for proton
Lambda tables from 100 eV to 100 TeV in 120 bins.
@@ -150,8 +151,11 @@ msc: Model variant of multiple scattering for proton
hIoni: tables are built for proton
dE/dx and range tables from 100 eV to 100 TeV in 120 bins.
Lambda tables from threshold to 100 TeV in 120 bins.
Scaling relation is used to proton dE/dx and range
Bether-Bloch model for Escaled > 2 MeV, ICRU49 parametrisation for protons below.
Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1
Bether-Bloch model for Escaled > 2 MeV, parametrisation of Bragg peak below, Integral mode 1
msc: Model variant of multiple scattering for GenericIon
msc: Model variant of multiple scattering for mu+
Lambda tables from 100 eV to 100 TeV in 120 bins.
@@ -160,9 +164,9 @@ msc: Model variant of multiple scattering for mu+
muIoni: tables are built for mu+
dE/dx and range tables from 100 eV to 100 TeV in 120 bins.
Lambda tables from threshold to 100 TeV in 120 bins.
Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1
Bether-Bloch model for E > 0.2 MeV, parametrisation of Bragg peak below,
radiative corrections for E > 1 GeV
Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1
muBrems: tables are built for mu+
dE/dx and range tables from 100 eV to 100 TeV in 120 bins.
@@ -177,9 +181,9 @@ muPairProd: tables are built for mu+
muIoni: tables are built for mu-
dE/dx and range tables from 100 eV to 100 TeV in 120 bins.
Lambda tables from threshold to 100 TeV in 120 bins.
Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1
Bether-Bloch model for E > 0.2 MeV, parametrisation of Bragg peak below,
radiative corrections for E > 1 GeV
Step function: finalRange(mm)= 1, dRoverRange= 0.2, integral: 1
muBrems: tables are built for mu-
dE/dx and range tables from 100 eV to 100 TeV in 120 bins.
@@ -195,26 +199,26 @@ msc: Model variant of multiple scattering for pi-
Lambda tables from 100 eV to 100 TeV in 120 bins.
Boundary algorithm is active with facrange= 0.199
Volume name | Importance| Tr.Entering| Population| Collisions| Coll*WGT| NumWGTedE| FluxWGTedE| Av.Tr.WGT|
cell_01_rep:0............ | 1 | 108 | 125 | 106 | 106 | 8.9027146 | 9.2574898 | 1 |
cell_02_rep:0............ | 2 | 83 | 158 | 172 | 86 | 7.8477054 | 8.5962945 | 1 |
cell_03_rep:0............ | 4 | 100 | 221 | 289 | 72.25 | 5.8844573 | 7.6603583 | 1 |
cell_04_rep:0............ | 8 | 113 | 233 | 308 | 38.5 | 5.3338753 | 7.4224318 | 1 |
cell_05_rep:0............ | 16 | 132 | 271 | 363 | 22.6875 | 5.8486835 | 7.39996 | 1 |
cell_06_rep:0............ | 32 | 150 | 317 | 482 | 15.0625 | 4.5880363 | 6.7195245 | 1 |
cell_07_rep:0............ | 64 | 175 | 350 | 508 | 7.9375 | 3.9702443 | 6.534581 | 1 |
cell_08_rep:0............ | 128 | 202 | 424 | 651 | 5.0859375 | 0.12127253 | 5.9196255 | 1 |
cell_09_rep:0............ | 256 | 232 | 479 | 880 | 3.4375 | 2.3545899 | 5.3102442 | 1 |
cell_10_rep:0............ | 512 | 258 | 523 | 941 | 1.8378906 | 2.5474441 | 5.0007586 | 1 |
cell_11_rep:0............ | 1024 | 290 | 571 | 1090 | 1.0644531 | 0.056668031 | 4.6627569 | 1 |
cell_12_rep:0............ | 2048 | 330 | 657 | 1293 | 0.63134766 | 0.087351356 | 4.5724757 | 1 |
cell_13_rep:0............ | 4096 | 380 | 762 | 1554 | 0.37939453 | 0.066828544 | 4.342442 | 1 |
cell_14_rep:0............ | 8192 | 423 | 842 | 1747 | 0.21325684 | 0.069650585 | 4.2127256 | 1 |
cell_15_rep:0............ | 16384 | 470 | 927 | 2038 | 0.12438965 | 2.0879212 | 3.8557482 | 1 |
cell_16_rep:0............ | 32768 | 524 | 1023 | 2220 | 0.067749023 | 0.050145428 | 3.7243147 | 1 |
cell_17_rep:0............ | 65536 | 570 | 1116 | 2369 | 0.036148071 | 0.60884393 | 3.6116183 | 1 |
cell_18_rep:0............ | 131072 | 507 | 1126 | 2506 | 0.019119263 | 1.9918584 | 3.4890199 | 1 |
rest_rep:0............... | 131072 | 564 | 564 | 0 | 0 | 0 | 0 | 0 |
shieldWorld_rep:0........ | 1 | 9 | 109 | 0 | 0 | 10 | 10 | 1 |
cell_01_rep:0............ | 1 | 109 | 128 | 116 | 116 | 9.0844649 | 9.5448707 | 1 |
cell_02_rep:0............ | 2 | 69 | 152 | 142 | 71 | 8.514088 | 9.1338343 | 1 |
cell_03_rep:0............ | 4 | 87 | 175 | 195 | 48.75 | 7.0706267 | 8.4721018 | 1 |
cell_04_rep:0............ | 8 | 106 | 205 | 197 | 24.625 | 6.4781545 | 8.009855 | 1 |
cell_05_rep:0............ | 16 | 125 | 265 | 325 | 20.3125 | 6.5346594 | 7.8737813 | 1 |
cell_06_rep:0............ | 32 | 147 | 300 | 382 | 11.9375 | 4.8149962 | 7.5593459 | 1 |
cell_07_rep:0............ | 64 | 151 | 322 | 410 | 6.40625 | 3.4013848 | 7.2868181 | 1 |
cell_08_rep:0............ | 128 | 174 | 376 | 499 | 3.8984375 | 4.0138152 | 7.1811682 | 1 |
cell_09_rep:0............ | 256 | 184 | 375 | 537 | 2.0976562 | 4.7452287 | 6.7490821 | 1 |
cell_10_rep:0............ | 512 | 199 | 413 | 598 | 1.1679688 | 0.12715559 | 6.6545894 | 1 |
cell_11_rep:0............ | 1024 | 209 | 427 | 670 | 0.65429688 | 3.8229542 | 5.9721558 | 1 |
cell_12_rep:0............ | 2048 | 217 | 437 | 713 | 0.34814453 | 3.6997829 | 6.0543108 | 1 |
cell_13_rep:0............ | 4096 | 232 | 475 | 720 | 0.17578125 | 3.8285283 | 5.9110234 | 1 |
cell_14_rep:0............ | 8192 | 269 | 540 | 990 | 0.12084961 | 3.4219729 | 5.4792145 | 1 |
cell_15_rep:0............ | 16384 | 291 | 584 | 1041 | 0.063537598 | 3.1097494 | 5.191823 | 1 |
cell_16_rep:0............ | 32768 | 322 | 638 | 1155 | 0.035247803 | 3.2779116 | 5.0155103 | 1 |
cell_17_rep:0............ | 65536 | 313 | 624 | 1178 | 0.017974854 | 2.8946874 | 4.807036 | 1 |
cell_18_rep:0............ | 131072 | 279 | 646 | 1252 | 0.009552002 | 0.041089375 | 4.9343901 | 1 |
rest_rep:0............... | 131072 | 301 | 301 | 0 | 0 | 0 | 0 | 0 |
shieldWorld_rep:0........ | 1 | 12 | 111 | 0 | 0 | 10 | 10 | 1 |
=== G4ProcessPlacer::RemoveProcess: for: neutron
ProcessName: MassImportanceProcess, will be removed!
The initial Vectors:
@@ -22,7 +22,7 @@
//
//
// $Id: B01DetectorConstruction.hh,v 1.6 2003/08/25 12:32:29 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#ifndef B01DetectorConstruction_hh
@@ -22,7 +22,7 @@
//
//
// $Id: B01DetectorConstruction.cc,v 1.14 2004/12/08 17:39:07 daquinog Exp $
// GEANT4 tag $Name: geant4-07-00-cand-03 $
// GEANT4 tag $Name: geant4-07-01 $
//
#include "G4Types.hh"
@@ -22,7 +22,7 @@
//
//
// $Id: B01PhysicsList.cc,v 1.5 2003/06/16 16:47:10 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#include "globals.hh"
@@ -22,7 +22,7 @@
//
//
// $Id: B01PrimaryGeneratorAction.cc,v 1.7 2002/11/07 13:48:02 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#include "globals.hh"
+8 -2
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.2 2004/06/20 17:29:30 daquinog Exp $
$Id: History,v 1.5 2005/05/03 10:05:48 allison Exp $
-------------------------------------------------------------------
=========================================================
@@ -17,10 +17,16 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
3rd May 2005 John Allison (examples-V07-00-03)
- Replaced vis manager with G4VisExecutive.
March 17th, 2005 G.Daquino - B02-V07-00-00
- porting B02 from PI working with rh73 to PI working with slc3
Jun 18th, 2004 G.Daquino - B02-V06-01-00
- porting B02 from Anaphe (Lizard) to PI. Actually, PI 1.2.1 still DOES NOT
allow the plotting in the same way, previously set in Anaphe. Therefore the
HBOOk file produced at the end of the example still needs other packages to
be displayed. However, future PI releases could contain python modules with
this property.
README file has been updated accordingly.
README file has been updated accordingly.
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: exampleB02.cc,v 1.17 2004/12/08 19:18:45 daquinog Exp $
// GEANT4 tag $Name: geant4-07-00-cand-03 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// --------------------------------------------------------------
+1 -1
View File
@@ -1,5 +1,5 @@
**********************************************
Geant4 version $Name: geant4-07-00-cand-01 $
Geant4 version $Name: geant4-07-01 $
(31-Jul-2002)
Copyright : Geant4 Collaboration
**********************************************
@@ -22,7 +22,7 @@
//
//
// $Id: B02CellScorer.hh,v 1.2 2003/06/16 16:47:12 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// ----------------------------------------------------------------------
// Class B02CellScorer
@@ -22,7 +22,7 @@
//
//
// $Id: B02CellScorerStore.hh,v 1.2 2003/06/16 16:47:14 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// ----------------------------------------------------------------------
// Class B02CellScorerStore
@@ -22,7 +22,7 @@
//
//
// $Id: B02DetectorConstruction.hh,v 1.3 2002/11/08 14:47:42 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#ifndef B02DetectorConstruction_hh
@@ -22,7 +22,7 @@
//
//
// $Id: B02ImportanceDetectorConstruction.hh,v 1.3 2003/06/16 16:47:15 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#ifndef B02ImportanceDetectorConstruction_hh
@@ -22,7 +22,7 @@
//
//
// $Id: B02ScoringDetectorConstruction.hh,v 1.2 2002/04/19 10:54:26 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#ifndef B02ScoringDetectorConstruction_hh
+9 -14
View File
@@ -3,25 +3,22 @@
#set verbose = 0
if (${?PI_BASE_DIR} == 1) then
setenv PI_VERSION 1_2_1
setenv PI_VER 1.2.1
setenv PLATF rh73_gcc32
setenv PATH ${PATH}:${PI_BASE_DIR}/${PI_VER}/app/releases/PI/PI_${PI_VER}/${PLATF}/bin
setenv PATH ${PI_BASE_DIR}/Linux-g++/bin:$PATH
setenv PI_VER 1.2.6-lite
setenv PLATF slc3_gcc323
setenv PI_DIR ${PI_BASE_DIR}/${PI_VER}/${PLATF}
setenv PATH ${PI_DIR}/bin:${PATH}
eval `aida-config -r csh`
#
# python from PI
#
setenv PYTHONVERSION 2.2
setenv PYTHON_INCLUDE_DIR ${PI_BASE_DIR}/${PI_VER}/external/Python/2.2.2/${PLATF}/include/python${PYTHONVERSION}
setenv PYTHON_LIB_DIR ${PI_BASE_DIR}/${PI_VER}/external/Python/2.2.2/${PLATF}/lib/python${PYTHONVERSION}/config
setenv PYTHON_LIB_DIR ${PI_DIR}/lib
#
# python for PI
if (${?PYTHONPATH} == 0) then
setenv PYTHONPATH
endif
setenv PYTHONPATH ${PI_BASE_DIR}/Linux-g++/python:$PYTHONPATH
setenv PYTHONPATH ${PI_BASE_DIR}/${PI_VER}/app/releases/SEAL/SEAL_1_3_4/${PLATF}/lib:$PYTHONPATH
setenv PYTHONPATH ${PI_DIR}/python:$PYTHONPATH
setenv PYTHONPATH ${PI_DIR}/lib:$PYTHONPATH
#
#
else # not using PI
@@ -54,11 +51,9 @@ endif
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${G4WORKDIR}/lib/${G4SYSTEM}
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${G4WORKDIR}/tmp/${G4SYSTEM}}/exampleB02
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${PYTHON_LIB_DIR}
setenv LD_LIBRARY_PATH ${PI_BASE_DIR}/${PI_VER}/app/releases/SEAL/SEAL_1_3_4/rh73_gcc32/lib:$LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH /afs/cern.ch/sw/lcg/external/Python/2.2.2/rh73_gcc32/lib:$LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH ${PI_BASE_DIR}/${PI_VER}/external/Boost/1.30.2/rh73_gcc32/lib:$LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH ${PI_DIR}/lib:$LD_LIBRARY_PATH
if (${?PYTHONPATH} == 0) then
setenv PYTHONPATH
endif
setenv PYTHONPATH ${PYTHONPATH}:${LD_LIBRARY_PATH}
#setenv PYTHONPATH ${PYTHONPATH}:${LD_LIBRARY_PATH}
@@ -22,7 +22,7 @@
//
//
// $Id: B02CellScorer.cc,v 1.1 2002/11/08 14:52:17 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: B02CellScorerStore.cc,v 1.1 2002/11/08 14:52:17 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -22,7 +22,7 @@
//
//
// $Id: B02DetectorConstruction.cc,v 1.10 2003/07/31 11:59:40 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#include "G4Types.hh"
#include <strstream>
@@ -22,7 +22,7 @@
//
//
// $Id: B02ImportanceDetectorConstruction.cc,v 1.6 2003/07/31 08:28:16 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#include "globals.hh"
@@ -22,7 +22,7 @@
//
//
// $Id: B02PhysicsList.cc,v 1.4 2003/06/16 16:47:20 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#include "globals.hh"
@@ -22,7 +22,7 @@
//
//
// $Id: B02PrimaryGeneratorAction.cc,v 1.5 2002/11/08 14:47:48 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#include "globals.hh"
@@ -22,7 +22,7 @@
//
//
// $Id: B02ScoringDetectorConstruction.cc,v 1.6 2003/02/19 08:24:35 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#include "globals.hh"
@@ -1,5 +1,4 @@
#! /usr/bin/env python2.2
#! /usr/bin/env python
# #!/afs/cern.ch/sw/lhcxx/specific/redhat61/gcc-2.95.2/PublicDomainPackages/2.0.0/bin/python2.2
+8 -4
View File
@@ -1,4 +1,4 @@
# $Id: GNUmakefile,v 1.12 2004/06/20 17:26:13 daquinog Exp $
# $Id: GNUmakefile,v 1.13 2005/03/17 17:20:19 daquinog Exp $
# --------------------------------------------------------------
# GNUmakefile for examples module. Gabriele Cosmo, 06/04/98.
# --------------------------------------------------------------
@@ -27,16 +27,20 @@ moduleName = B03App
MYLIBS = $(subst -l$(name),,$(LDLIBS))
SWIG = ${SWIG_BASE_DIR}/bin/swig-${SWIGVERSION}
#SWIG = ${SWIG_BASE_DIR}/bin/swig
.PHONY: clean_all all
all: $(SWIGD) $(SWIGCC) lib $(SWIGSO) bin
CPPFLAGS += -I${PI_BASE_DIR}/${PI_VER}/external/Python/2.2.2/${PLATF}/include/python${PYTHONVERSION}
CPPFLAGS += -I${PYTHON_INCLUDE_DIR}
CXXFLAGS += -w
LDFLAGS += \
-L${PI_BASE_DIR}/${PI_VER}/external/Python/2.2.2/${PLATF}/lib/python${PYTHONVERSION}/config \
-L${PYTHON_LIB_DIR} \
-llcg_AIDA_AnalysisFactory \
-llcg_PluginManager \
-llcg_SealBase \
-llcg_AIDA_Plugin \
-L/lib \
-lnsl -ldl -lreadline /lib/libtermcap.so.2 -lieee -lpthread -lutil -lexampleB03 -lpython$(PYTHONVERSION)
+8 -2
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.1 2004/06/20 17:26:14 daquinog Exp $
$Id: History,v 1.4 2005/05/03 10:05:48 allison Exp $
-------------------------------------------------------------------
=========================================================
@@ -17,10 +17,16 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
3rd May 2005 John Allison (examples-V07-00-03)
- Replaced vis manager with G4VisExecutive.
March 17th, 2005 G.Daquino - B03-V07-00-00
- porting B03 from PI working with rh73 to PI working with slc3
Jun 20th, 2004 G.Daquino - B03-V06-01-00
- porting B03 from Anaphe (Lizard) to PI. Actually, PI 1.2.1 still DOES NOT
allow the plotting in the same way, previously set in Anaphe. Therefore the
HBOOk file produced at the end of the example still needs other packages to
be displayed. However, future PI releases could contain python modules with
this property.
README file has been updated accordingly.
README file has been updated accordingly.
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: exampleB03.cc,v 1.11 2003/06/30 16:17:02 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// --------------------------------------------------------------
+1 -1
View File
@@ -1,5 +1,5 @@
**********************************************
Geant4 version $Name: geant4-07-00-cand-01 $
Geant4 version $Name: geant4-07-01 $
(31-Jul-2002)
Copyright : Geant4 Collaboration
**********************************************
@@ -21,7 +21,7 @@
// ********************************************************************
//
// $Id: B03AppBase.hh,v 1.1 2003/06/30 16:17:03 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// --------------------------------------------------------------------
#ifndef B03AppBase_hh
@@ -22,7 +22,7 @@
//
//
// $Id: B03DetectorConstruction.hh,v 1.4 2002/11/08 17:35:18 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#ifndef B03DetectorConstruction_hh
@@ -22,7 +22,7 @@
//
//
// $Id: B03ImportanceDetectorConstruction.hh,v 1.2 2003/06/16 16:47:22 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#ifndef B03ImportanceDetectorConstruction_hh
@@ -22,7 +22,7 @@
//
//
// $Id: B03PhysicsList.hh,v 1.3 2002/11/08 17:35:18 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#ifndef B03PhysicsList_h
@@ -22,7 +22,7 @@
//
//
// $Id: B03PrimaryGeneratorAction.hh,v 1.3 2002/11/08 17:35:18 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#ifndef B03PrimaryGeneratorAction_hh
+18 -15
View File
@@ -1,32 +1,35 @@
# #Id: setupPI.csh,v 1.6 2004/06/19 17:22:46 daquinog Exp $
# -------------------------------------------------------------------
# GEANT4 tag $Name: geant4-07-00-cand-01 $
# GEANT4 tag $Name: geant4-07-01 $
# -------------------------------------------------------------------
# before sourcing this script make sure you have set the
# environment variables according to the description in README
# NOTE:: B03 cannot work with PI Ultralite, because it needs the Python include files which are not comprised
# in the Ultralite version
# setting in case PI and analysis is used
if (${?PI_BASE_DIR} == 1) then
setenv PI_VERSION 1_2_1
setenv PI_VER 1.2.1
setenv PLATF rh73_gcc32
setenv PATH ${PATH}:${PI_BASE_DIR}/${PI_VER}/app/releases/PI/PI_${PI_VER}/${PLATF}/bin
setenv PATH ${PI_BASE_DIR}/Linux-g++/bin:$PATH
setenv PI_VERSION 1_3_0
setenv PI_VER 1.3.0
setenv PLATF slc3_ia32_gcc323
setenv PYTHONVERSION 2.3
setenv PI_DIR ${PI_BASE_DIR}/${PI_VER}/app/releases/PI/PI_${PI_VERSION}/${PLATF}
setenv PATH ${PATH}:${PI_DIR}/bin
setenv PATH ${PI_BASE_DIR}/${PI_VER}/external/Python/${PYTHONVERSION}.4/${PLATF}/bin:$PATH
eval `aida-config -r csh`
#
# python from PI
#
setenv PYTHONVERSION 2.2
setenv PYTHON_INCLUDE_DIR ${PI_BASE_DIR}/${PI_VER}/external/Python/2.2.2/${PLATF}/include/python${PYTHONVERSION}
setenv PYTHON_LIB_DIR ${PI_BASE_DIR}/${PI_VER}/external/Python/2.2.2/${PLATF}/lib/python${PYTHONVERSION}/config
setenv PYTHON_INCLUDE_DIR ${PI_BASE_DIR}/${PI_VER}/external/Python/${PYTHONVERSION}.4/${PLATF}/include/python${PYTHONVERSION}
setenv PYTHON_LIB_DIR ${PI_BASE_DIR}/${PI_VER}/external/Python/${PYTHONVERSION}.4/${PLATF}/lib/python${PYTHONVERSION}/config
#
# python for PI
if (${?PYTHONPATH} == 0) then
setenv PYTHONPATH
endif
setenv PYTHONPATH ${PI_BASE_DIR}/Linux-g++/python:$PYTHONPATH
setenv PYTHONPATH ${PI_BASE_DIR}/${PI_VER}/app/releases/SEAL/SEAL_1_3_4/${PLATF}/lib:$PYTHONPATH
setenv PYTHONPATH ${PI_DIR}/python:$PYTHONPATH
setenv PYTHONPATH ${PI_BASE_DIR}/${PI_VER}/app/releases/SEAL/SEAL_1_6_0/${PLATF}/python:$PYTHONPATH
#
# SWIG settings
setenv SWIGVERSION 1.3.15
@@ -60,11 +63,11 @@ endif # end settings for not using PI
if ( ${?LD_LIBRARY_PATH} == 0 ) then
setenv LD_LIBRARY_PATH
endif
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${G4WORKDIR}/lib/${G4SYSTEM}:${G4WORKDIR}/tmp/${G4SYSTEM}/exampleB03
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${G4WORKDIR}/lib/${G4SYSTEM}
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${G4WORKDIR}/tmp/${G4SYSTEM}/exampleB03
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${PYTHON_LIB_DIR}
setenv LD_LIBRARY_PATH ${PI_BASE_DIR}/${PI_VER}/app/releases/SEAL/SEAL_1_3_4/rh73_gcc32/lib:$LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH /afs/cern.ch/sw/lcg/external/Python/2.2.2/rh73_gcc32/lib:$LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH ${PI_BASE_DIR}/${PI_VER}/external/Boost/1.30.2/rh73_gcc32/lib:$LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH ${PI_BASE_DIR}/${PI_VER}/external/Python/${PYTHONVERSION}.4/${PLATF}/lib:${LD_LIBRARY_PATH}
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${PI_BASE_DIR}/${PI_VER}/external/Boost/1.31.0/${PLATF}/lib
setenv B03_BASE `pwd`
if (${?PYTHONPATH} == 0) then
setenv PYTHONPATH
@@ -21,7 +21,7 @@
// ********************************************************************
//
// $Id: B03AppBase.cc,v 1.1 2003/06/30 16:17:03 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
// --------------------------------------------------------------------
#include "B03AppBase.hh"
@@ -22,7 +22,7 @@
//
//
// $Id: B03DetectorConstruction.cc,v 1.13 2003/07/31 11:59:41 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#include "G4Types.hh"
@@ -22,7 +22,7 @@
//
//
// $Id: B03ImportanceDetectorConstruction.cc,v 1.6 2003/07/31 11:59:41 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#include "globals.hh"
@@ -22,7 +22,7 @@
//
//
// $Id: B03PhysicsList.cc,v 1.4 2003/06/16 16:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#include "globals.hh"
@@ -22,7 +22,7 @@
//
//
// $Id: B03PrimaryGeneratorAction.cc,v 1.5 2002/11/08 17:35:19 dressel Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// GEANT4 tag $Name: geant4-07-01 $
//
#include "globals.hh"
+4 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.29 2004/12/08 19:18:45 daquinog Exp $
$Id: History,v 1.30 2005/05/03 10:05:48 allison Exp $
-------------------------------------------------------------------
=========================================================
@@ -17,6 +17,9 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
3rd May 2005 John Allison (examples-V07-00-03)
- Replaced vis manager with G4VisExecutive.
Dec 8th, 2004 G. Daquino - exbiasing-V06-02-00
- B01, B02 and B03 migrated to <cmath>.
@@ -1,4 +1,4 @@
$Id: History,v 1.11 2004/12/06 12:02:41 maire Exp $
$Id: History,v 1.16 2005/06/01 13:58:22 maire Exp $
-------------------------------------------------------------------
=========================================================
@@ -15,6 +15,19 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
01-06-05 mma (muonprocesses-V07-00-01)
- HistoManager : option "--noErrors" for hbook
3rd May 2005 John Allison (examples-V07-00-03)
- Replaced vis manager with G4VisExecutive.
03-03-05 mma (muonprocesses-V07-00-00)
- HistoManager : - put a protection for the creation of analysis factory;
- file extension is fileType;
06.12.04 V.Ivant (muonprocesses-V06-02-10)
- Use PhysicsList from future 7.0
05.12.04 mma (muonprocesses-V06-02-09)
- namespace std in MuCrossSections
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: MuonProcesses.cc,v 1.2 2004/06/30 15:48:55 maire Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: MuonProcesses.cc,v 1.3 2005/05/03 10:21:16 allison Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -45,7 +45,7 @@
#include "HistoManager.hh"
#ifdef G4VIS_USE
#include "VisManager.hh"
#include "G4VisExecutive.hh"
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -70,7 +70,7 @@ int main(int argc,char** argv) {
#ifdef G4VIS_USE
// visualization manager
G4VisManager* visManager = new VisManager;
G4VisManager* visManager = new G4VisExecutive;
visManager->Initialize();
#endif
@@ -1,6 +1,6 @@
*************************************************************
Geant4 version $Name: geant4-07-00-cand-01 $ (27-July-2004)
Geant4 version $Name: geant4-07-01 $ (27-July-2004)
Copyright : Geant4 Collaboration
Reference : NIM A 506 (2003), 250-303
WWW : http://cern.ch/geant4
@@ -1,4 +1,4 @@
$Id: README,v 1.2 2004/06/23 11:28:04 maire Exp $
$Id: README,v 1.3 2005/03/03 16:50:35 maire Exp $
-------------------------------------------------------------------
=========================================================
@@ -73,11 +73,13 @@ $Id: README,v 1.2 2004/06/23 11:28:04 maire Exp $
At EndOfRun the corresponding histos for analytic calculations are
automatically created anf filled (histo 6 to 9), and the comparison
(G4 divided by theory) is done in histos 11 to 14.
The histograms can be viewed using PAW. See below the note on
ANAPHE+AIDA.
(G4 divided by theory) is done in histos 11 to 14.
One can control the name and the type of the histograms file with
the commands:
/testem/histo/setFileName name (default photonprocesses)
/testem/histo/setFileType name (default hbook)
Note that, by default, histograms are disabled. To activate them,
uncomment the flag G4ANALYSIS_USE in GNUmakefile.
@@ -110,40 +112,60 @@ $Id: README,v 1.2 2004/06/23 11:28:04 maire Exp $
....
Idle> exit
8- Using histograms
-------------------
8- USING HISTOGRAMS
By default the histograms are not activated. To activate histograms
the environment variable G4ANALYSIS_USE should be defined. For instance
uncomment the flag G4ANALYSIS_USE in GNUmakefile.
Before compilation of the example it is optimal to clean up old files:
gmake histclean
gmake
To use histograms, at least one of the AIDA implementations should be
available (see http://aida.freehep.org).
8a - PI
By default the histograms are not activated. To activate histograms
the environment variable G4ANALYSIS_USE should be defined. For instance
uncomment the flag G4ANALYSIS_USE in GNUmakefile.
A package including AIDA and extended interfaces also using Python is PI,
available from: http://cern.ch/pi
To use histograms any of implementations of AIDA interfaces should
be available (see http://aida.freehep.org).
Once installed PI or PI-Lite in a specified local area $MYPY, it is required
to add the installation path to $PATH, i.e. for example, for release 1.2.1 of
PI:
setenv PATH ${PATH}:$MYPI/1.2.1/app/releases/PI/PI_1_2_1/rh73_gcc32/bin
A package including AIDA and extended interfaces also using Python
is PI, available from: http://cern.ch/pi .
CERN users can use the PATH to the LCG area on AFS.
Before running the example the command should be issued:
eval `aida-config --runtime csh`
Once installed PI or PI-Lite in a specified local area $MYPY, it is
required to add the installation path to $PATH, i.e. for example,
for release 1.2.1 of PI:
8b - OpenScientist
OpenScientist is available at http://www.lal.in2p3.fr/OpenScientist
In OpenScientist, the AIDA implementation is the Lab package.
You have to "setup" this package before compiling (then with G4ANALYSIS_USE)
and running your Geant4 application.
On UNIX you setup, with a csh flavoured shell :
csh> setenv CMTPATH <OpenScientist install path>
csh> source <OpenScientist install path>/Lab/<version>/cmt/setup.csh
On UNIX with a sh flavoured shell :
sh> CMTPATH=<OpenScientist install path>;export CMTPATH
sh> . <OpenScientist install path>/Lab/<version>/cmt/setup.sh
On Windows :
DOS> set CMTPATH=<OpenScientist install path>
DOS> call <OpenScientist install path>/Lab/<version>/cmt/setup.bat
setenv PATH ${PATH}:$MYPI/1.2.1/app/releases/PI/PI_1_2_1/rh73_gcc32/bin
You have to use the XML or root file formats ; producing hbook files is not
supported by OpenScientist/Lab. But the three formats (hbook, AIDA-XML, root)
are readable by the interactive applications ; the Lab onx interactive
program or the OpenPAW program.
CERN users can use the PATH to the LCG area on AFS.
Before compilation of the example it is optimal to clean up old
files:
gmake histclean
gmake
Before running the example the command should be issued:
eval `aida-config --runtime csh`
It is possible to choose the format of the output file with
histograms using UI command:
/testem/histo/setFileType type
The following types are available: hbook, root, xml.
With OpenPAW, someone can view the histograms with :
OS> opaw
opaw> h/file 1 run0.aida (or opaw> h/file 1 run1.root)
opaw> zone 2 2
opaw> h/plot 1
opaw> h/plot 2
opaw> h/plot 3
@@ -1,4 +1,4 @@
# $Id: allproc.mac,v 1.2 2004/07/27 10:13:16 maire Exp $
# $Id: allproc.mac,v 1.3 2005/03/03 16:50:35 maire Exp $
#
# Macro file for "MuonProcesses.cc"
# (can be run in batch, without graphic)
@@ -18,7 +18,8 @@
/gun/particle mu+
/gun/energy 10 TeV
#
/testem/histo/setFileName allproc.paw
/testem/histo/setFileName allproc
/testem/histo/setFileType hbook
/testem/histo/setHisto 1 100 -10. 0.
/testem/histo/setHisto 2 100 -10. 0.
/testem/histo/setHisto 3 100 -10. 0.

Some files were not shown because too many files have changed in this diff Show More