Import Geant4 8.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:55:03 +02:00
parent 216a75eeb1
commit fe73f43734
6714 changed files with 118229 additions and 68144 deletions
@@ -0,0 +1,23 @@
$Id: History,v 1.2 2006/11/18 02:44:26 asaim Exp $
-------------------------------------------------------------------
=========================================================
Geant4 - an Object-Oriented Toolkit for Simulation in HEP
=========================================================
Example RE02 History file
------------------------
This file should be used by the G4 example coordinator to briefly
summarize all major modifications introduced in the code and keep
track of all tags.
----------------------------------------------------------
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
Nov. 17, 06 M.Asai (exampleRE01-V08-01-01)
- History file is created though the example has been here since two years.
- Fix a bug in RE01CalorimeterSD::ProcessHits() concerning about the
transformation vector and rotation materix of the calorimater cell
in the readoout geometry.
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: RE01.cc,v 1.3 2006/06/29 17:42:25 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
//
// --------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: RE01BosonPhysics.hh,v 1.2 2006/06/29 17:42:27 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#ifndef RE01BosonPhysics_h
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01CalorimeterHit.hh,v 1.3 2006/06/29 17:42:29 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01CalorimeterParametrisation.hh,v 1.2 2006/06/29 17:42:31 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01CalorimeterROGeometry.hh,v 1.2 2006/06/29 17:42:33 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01CalorimeterSD.hh,v 1.2 2006/06/29 17:42:35 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -25,7 +25,7 @@
//
//
// $Id: RE01DecayPhysics.hh,v 1.2 2006/06/29 17:42:37 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01DetectorConstruction.hh,v 1.2 2006/06/29 17:42:39 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01DetectorParameterDef.hh,v 1.2 2006/06/29 17:42:41 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
G4double expHall_x;
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01DummySD.hh,v 1.2 2006/06/29 17:42:44 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01EventAction.hh,v 1.2 2006/06/29 17:42:46 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01Field.hh,v 1.2 2006/06/29 17:42:48 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -25,7 +25,7 @@
//
//
// $Id: RE01HadronPhysics.hh,v 1.2 2006/06/29 17:42:50 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#ifndef RE01HadronPhysics_h
@@ -25,7 +25,7 @@
//
//
// $Id: RE01IonPhysics.hh,v 1.2 2006/06/29 17:42:53 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#ifndef RE01IonPhysics_h
@@ -25,7 +25,7 @@
//
//
// $Id: RE01LeptonPhysics.hh,v 1.2 2006/06/29 17:42:58 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
//
@@ -25,7 +25,7 @@
//
//
// $Id: RE01PhysicsList.hh,v 1.2 2006/06/29 17:43:01 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01PrimaryGeneratorAction.hh,v 1.2 2006/06/29 17:43:03 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01PrimaryGeneratorMessenger.hh,v 1.2 2006/06/29 17:43:05 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -25,7 +25,7 @@
//
//
// $Id: RE01RegionInformation.hh,v 1.2 2006/06/29 17:43:08 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#ifndef RE01RegionInformation_H
@@ -25,7 +25,7 @@
//
//
// $Id: RE01RunAction.hh,v 1.2 2006/06/29 17:43:11 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#ifndef RE01RunAction_h
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01StackingAction.hh,v 1.2 2006/06/29 17:43:14 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01SteppingAction.hh,v 1.2 2006/06/29 17:43:17 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -25,7 +25,7 @@
//
//
// $Id: RE01TrackInformation.hh,v 1.2 2006/06/29 17:43:19 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#ifndef RE01TrackInformation_h
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01TrackerHit.hh,v 1.3 2006/06/29 17:43:21 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01TrackerParametrisation.hh,v 1.2 2006/06/29 17:43:24 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01TrackerSD.hh,v 1.2 2006/06/29 17:43:26 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01TrackingAction.hh,v 1.2 2006/06/29 17:43:28 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#ifndef RE01TrackingAction_h
@@ -25,7 +25,7 @@
//
//
// $Id: RE01Trajectory.hh,v 1.3 2006/06/29 17:43:31 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#ifndef RE01Trajectory_h
@@ -1,6 +1,6 @@
*************************************************************
Geant4 version $Name: geant4-08-01 $ (25-June-2004)
Geant4 version $Name: geant4-08-02 $ (25-June-2004)
Copyright : Geant4 Collaboration
Reference : NIM A 506 (2003), 250-303
WWW : http://cern.ch/geant4
@@ -25,7 +25,7 @@
//
//
// $Id: RE01BosonPhysics.cc,v 1.2 2006/06/29 17:43:33 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
//
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: RE01CalorimeterHit.cc,v 1.4 2006/06/29 17:43:35 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// $Id: RE01CalorimeterHit.cc,v 1.5 2006/11/14 07:07:38 perl Exp $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -108,16 +108,13 @@ const std::map<G4String,G4AttDef>* RE01CalorimeterHit::GetAttDefs() const
= G4AttDefStore::GetInstance("RE01CalorimeterHit",isNew);
if (isNew) {
G4String HitType("HitType");
(*store)[HitType] = G4AttDef(HitType,"Hit Type","Bookkeeping","","G4String");
G4String TrackID("TrackID");
(*store)[TrackID] = G4AttDef(TrackID,"Track ID","Bookkeeping","","G4int");
(*store)[HitType] = G4AttDef(HitType,"Hit Type","Physics","","G4String");
G4String ZCellID("ZCellID");
(*store)[ZCellID] = G4AttDef(ZCellID,"Z Cell ID","Bookkeeping","","G4int");
(*store)[ZCellID] = G4AttDef(ZCellID,"Z Cell ID","Physics","","G4int");
G4String PhiCellID("PhiCellID");
(*store)[PhiCellID] = G4AttDef(PhiCellID,"Phi Cell ID","Bookkeeping","","G4int");
(*store)[PhiCellID] = G4AttDef(PhiCellID,"Phi Cell ID","Physics","","G4int");
G4String Energy("Energy");
(*store)[Energy] = G4AttDef(Energy,"Energy Deposited","Physics","G4BestUnit","G4double");
@@ -130,7 +127,7 @@ const std::map<G4String,G4AttDef>* RE01CalorimeterHit::GetAttDefs() const
"Physics","G4BestUnit","G4ThreeVector");
G4String LVol("LVol");
(*store)[LVol] = G4AttDef(LVol,"Logical Volume","Bookkeeping","","G4String");
(*store)[LVol] = G4AttDef(LVol,"Logical Volume","Physics","","G4String");
}
return store;
}
@@ -141,9 +138,6 @@ std::vector<G4AttValue>* RE01CalorimeterHit::CreateAttValues() const
values->push_back(G4AttValue("HitType","RE01CalorimeterHit",""));
values->push_back
(G4AttValue("TrackID"," ",""));
values->push_back
(G4AttValue("ZCellID",G4UIcommand::ConvertToString(ZCellID),""));
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01CalorimeterParametrisation.cc,v 1.2 2006/06/29 17:43:37 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01CalorimeterROGeometry.cc,v 1.2 2006/06/29 17:43:39 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "RE01CalorimeterROGeometry.hh"
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RE01CalorimeterSD.cc,v 1.2 2006/06/29 17:43:41 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// $Id: RE01CalorimeterSD.cc,v 1.3 2006/11/18 02:42:27 asaim Exp $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -83,11 +83,11 @@ G4bool RE01CalorimeterSD::ProcessHits(G4Step*aStep,G4TouchableHistory*ROhist)
RE01CalorimeterHit* calHit
= new RE01CalorimeterHit
(physVol->GetLogicalVolume(),copyIDinZ,copyIDinPhi);
G4RotationMatrix rotM;
if(physVol->GetObjectRotation()) rotM = *(physVol->GetObjectRotation());
calHit->SetEdep( edep );
calHit->SetPos( physVol->GetTranslation() );
calHit->SetRot( rotM );
G4AffineTransform aTrans = ROhist->GetHistory()->GetTopTransform();
aTrans.Invert();
calHit->SetPos(aTrans.NetTranslation());
calHit->SetRot(aTrans.NetRotation());
calHit->SetTrackInformation(aStep->GetTrack());
G4int icell = CalCollection->insert( calHit );
CellID[copyIDinZ][copyIDinPhi] = icell - 1;
@@ -25,7 +25,7 @@
//
//
// $Id: RE01DecayPhysics.cc,v 1.2 2006/06/29 17:43:43 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "RE01DecayPhysics.hh"
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01DetectorConstruction.cc,v 1.3 2006/06/29 17:43:46 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01DetectorParameterDef.icc,v 1.2 2006/06/29 17:43:49 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01DummySD.cc,v 1.2 2006/06/29 17:43:52 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
//
// Dummy sensitive used only to flag sensitivity
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01EventAction.cc,v 1.2 2006/06/29 17:43:55 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01Field.cc,v 1.3 2006/06/29 17:43:58 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -25,7 +25,7 @@
//
//
// $Id: RE01HadronPhysics.cc,v 1.2 2006/06/29 17:44:00 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "RE01HadronPhysics.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: RE01IonPhysics.cc,v 1.2 2006/06/29 17:44:02 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "RE01IonPhysics.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: RE01LeptonPhysics.cc,v 1.2 2006/06/29 17:44:04 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "RE01LeptonPhysics.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: RE01PhysicsList.cc,v 1.2 2006/06/29 17:44:07 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "RE01PhysicsList.hh"
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01PrimaryGeneratorAction.cc,v 1.2 2006/06/29 17:44:10 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01PrimaryGeneratorMessenger.cc,v 1.2 2006/06/29 17:44:12 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -25,7 +25,7 @@
//
//
// $Id: RE01RegionInformation.cc,v 1.2 2006/06/29 17:44:15 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "RE01RegionInformation.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: RE01RunAction.cc,v 1.2 2006/06/29 17:44:17 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "RE01RunAction.hh"
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01StackingAction.cc,v 1.2 2006/06/29 17:44:20 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01SteppingAction.cc,v 1.2 2006/06/29 17:44:23 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -25,7 +25,7 @@
//
//
// $Id: RE01TrackInformation.cc,v 1.2 2006/06/29 17:44:25 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "RE01TrackInformation.hh"
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: RE01TrackerHit.cc,v 1.4 2006/06/29 17:44:28 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// $Id: RE01TrackerHit.cc,v 1.5 2006/11/14 07:07:38 perl Exp $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -91,16 +91,10 @@ const std::map<G4String,G4AttDef>* RE01TrackerHit::GetAttDefs() const
= G4AttDefStore::GetInstance("RE01TrackerHit",isNew);
if (isNew) {
G4String HitType("HitType");
(*store)[HitType] = G4AttDef(HitType,"Hit Type","Bookkeeping","","G4String");
(*store)[HitType] = G4AttDef(HitType,"Hit Type","Physics","","G4String");
G4String TrackID("TrackID");
(*store)[TrackID] = G4AttDef(TrackID,"Track ID","Bookkeeping","","G4int");
G4String ZCellID("ZCellID");
(*store)[ZCellID] = G4AttDef(ZCellID,"Z Cell ID","Bookkeeping","","G4int");
G4String PhiCellID("PhiCellID");
(*store)[PhiCellID] = G4AttDef(PhiCellID,"Phi Cell ID","Bookkeeping","","G4int");
(*store)[TrackID] = G4AttDef(TrackID,"Track ID","Physics","","G4int");
G4String Energy("Energy");
(*store)[Energy] = G4AttDef(Energy,"Energy Deposited","Physics","G4BestUnit","G4double");
@@ -111,9 +105,6 @@ const std::map<G4String,G4AttDef>* RE01TrackerHit::GetAttDefs() const
G4String Pos("Pos");
(*store)[Pos] = G4AttDef(Pos, "Position",
"Physics","G4BestUnit","G4ThreeVector");
G4String LVol("LVol");
(*store)[LVol] = G4AttDef(LVol,"Logical Volume","Bookkeeping","","G4String");
}
return store;
}
@@ -127,12 +118,6 @@ std::vector<G4AttValue>* RE01TrackerHit::CreateAttValues() const
values->push_back
(G4AttValue("TrackID",G4UIcommand::ConvertToString(trackID),""));
values->push_back
(G4AttValue("ZCellID"," ",""));
values->push_back
(G4AttValue("PhiCellID"," ",""));
values->push_back
(G4AttValue("Energy",G4BestUnit(edep,"Energy"),""));
@@ -142,9 +127,6 @@ std::vector<G4AttValue>* RE01TrackerHit::CreateAttValues() const
values->push_back
(G4AttValue("Pos",G4BestUnit(pos,"Length"),""));
values->push_back
(G4AttValue("LVol"," ",""));
return values;
}
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01TrackerParametrisation.cc,v 1.2 2006/06/29 17:44:30 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01TrackerSD.cc,v 1.2 2006/06/29 17:44:32 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: RE01TrackingAction.cc,v 1.2 2006/06/29 17:44:34 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
@@ -25,7 +25,7 @@
//
//
// $Id: RE01Trajectory.cc,v 1.3 2006/06/29 17:44:37 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//