Import Geant4 5.2.0 source tree
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: hepmcEx01-clhep.cc,v 1.1 2002/11/19 10:33:00 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
**********************************************
|
||||
Geant4 version $Name: geant4-05-01 $
|
||||
Geant4 version $Name: geant4-05-02 $
|
||||
(31-Jul-2002)
|
||||
Copyright : Geant4 Collaboration
|
||||
**********************************************
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
**********************************************
|
||||
Geant4 version $Name: geant4-05-01 $
|
||||
Geant4 version $Name: geant4-05-02 $
|
||||
(31-Jul-2002)
|
||||
Copyright : Geant4 Collaboration
|
||||
**********************************************
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04EMPhysics.hh,v 1.1 2002/11/19 10:30:53 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04GeneralPhysics.hh,v 1.1 2002/11/19 10:30:53 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/vector"
|
||||
#include <vector>
|
||||
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04IonPhysics.hh,v 1.1 2002/11/19 10:30:53 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04MuonPhysics.hh,v 1.1 2002/11/19 10:30:53 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
+3
-3
@@ -23,13 +23,13 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// ExN04PrimaryGeneratorAction.hh
|
||||
// $Id: ExN04PrimaryGeneratorAction.hh,v 1.1 2002/11/19 10:30:54 murakami Exp $
|
||||
// $Id: ExN04PrimaryGeneratorAction.hh,v 1.2 2003/06/16 16:48:19 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#ifndef EXN04_PRIMARY_GENERATOR_ACTION_H
|
||||
#define EXN04_PRIMARY_GENERATOR_ACTION_H
|
||||
|
||||
#include "g4std/map"
|
||||
#include <map>
|
||||
#include "globals.hh"
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
|
||||
@@ -45,7 +45,7 @@ private:
|
||||
|
||||
G4VPrimaryGenerator* currentGenerator;
|
||||
G4String currentGeneratorName;
|
||||
G4std::map<G4String, G4VPrimaryGenerator*> gentypeMap;
|
||||
std::map<G4String, G4VPrimaryGenerator*> gentypeMap;
|
||||
|
||||
ExN04PrimaryGeneratorMessenger* messenger;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04RunAction.hh,v 1.1 2002/11/19 10:30:54 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04SteppingVerbose.hh,v 1.1 2002/11/19 10:30:54 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
// This class manages the verbose outputs in G4SteppingManager.
|
||||
// It inherits from G4SteppingVerbose.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04VisManager.hh,v 1.1 2002/11/19 10:30:55 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
+2
-2
@@ -23,7 +23,7 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// H01PythiaInterface.hh
|
||||
// $Id: H01PythiaInterface.hh,v 1.1 2002/11/19 10:30:55 murakami Exp $
|
||||
// $Id: H01PythiaInterface.hh,v 1.2 2003/06/16 16:48:20 gunter Exp $
|
||||
//
|
||||
// A generic interface class with Pythia event generator via HepMC.
|
||||
//
|
||||
@@ -74,7 +74,7 @@ public:
|
||||
|
||||
// random numbers operations
|
||||
void SetRandomSeed(G4int iseed);
|
||||
void PrintRandomStatus(G4std::ostream& ostr=G4cout) const;
|
||||
void PrintRandomStatus(std::ostream& ostr=G4cout) const;
|
||||
|
||||
// setup user parameters (empty in default).
|
||||
// Implement your parameters in a delived class if you want.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN04EMPhysics.cc,v 1.1 2002/11/19 10:31:38 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: ExN04EMPhysics.cc,v 1.2 2003/06/16 16:48:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
ExN04EMPhysics::ExN04EMPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN04GeneralPhysics.cc,v 1.1 2002/11/19 10:31:39 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: ExN04GeneralPhysics.cc,v 1.2 2003/06/16 16:48:22 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
ExN04GeneralPhysics::ExN04GeneralPhysics(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
ExN04HadronPhysics::ExN04HadronPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN04IonPhysics.cc,v 1.1 2002/11/19 10:31:39 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: ExN04IonPhysics.cc,v 1.2 2003/06/16 16:48:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
ExN04IonPhysics::ExN04IonPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN04MuonPhysics.cc,v 1.1 2002/11/19 10:31:39 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: ExN04MuonPhysics.cc,v 1.2 2003/06/16 16:48:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
ExN04MuonPhysics::ExN04MuonPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN04PhysicsList.cc,v 1.1 2002/11/19 10:31:39 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: ExN04PhysicsList.cc,v 1.2 2003/06/16 16:48:26 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include "G4Material.hh"
|
||||
#include "G4MaterialTable.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
#include "ExN04GeneralPhysics.hh"
|
||||
#include "ExN04EMPhysics.hh"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04RunAction.cc,v 1.1 2002/11/19 10:31:39 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
+53
-53
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN04SteppingVerbose.cc,v 1.1 2002/11/19 10:31:39 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: ExN04SteppingVerbose.cc,v 1.2 2003/06/16 16:48:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -54,37 +54,37 @@ void ExN04SteppingVerbose::StepInfo()
|
||||
if( verboseLevel >= 4 ) VerboseTrack();
|
||||
if( verboseLevel >= 3 ){
|
||||
G4cout << G4endl;
|
||||
G4cout << G4std::setw( 5) << "#Step#" << " "
|
||||
<< G4std::setw( 6) << "X" << " "
|
||||
<< G4std::setw( 6) << "Y" << " "
|
||||
<< G4std::setw( 6) << "Z" << " "
|
||||
<< G4std::setw( 9) << "KineE" << " "
|
||||
<< G4std::setw( 9) << "dEStep" << " "
|
||||
<< G4std::setw(10) << "StepLeng"
|
||||
<< G4std::setw(10) << "TrakLeng"
|
||||
<< G4std::setw(10) << "Volume" << " "
|
||||
<< G4std::setw(10) << "Process" << G4endl;
|
||||
G4cout << std::setw( 5) << "#Step#" << " "
|
||||
<< std::setw( 6) << "X" << " "
|
||||
<< std::setw( 6) << "Y" << " "
|
||||
<< std::setw( 6) << "Z" << " "
|
||||
<< std::setw( 9) << "KineE" << " "
|
||||
<< std::setw( 9) << "dEStep" << " "
|
||||
<< std::setw(10) << "StepLeng"
|
||||
<< std::setw(10) << "TrakLeng"
|
||||
<< std::setw(10) << "Volume" << " "
|
||||
<< std::setw(10) << "Process" << G4endl;
|
||||
}
|
||||
|
||||
G4cout << G4std::setw(5) << fTrack->GetCurrentStepNumber() << " "
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
|
||||
<< G4std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
|
||||
<< G4std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
|
||||
G4cout << std::setw(5) << fTrack->GetCurrentStepNumber() << " "
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
|
||||
<< std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
|
||||
<< std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
|
||||
|
||||
// if( fStepStatus != fWorldBoundary){
|
||||
if( fTrack->GetNextVolume() != 0 ) {
|
||||
G4cout << G4std::setw(10) << fTrack->GetVolume()->GetName();
|
||||
G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
|
||||
} else {
|
||||
G4cout << G4std::setw(10) << "OutOfWorld";
|
||||
G4cout << std::setw(10) << "OutOfWorld";
|
||||
}
|
||||
|
||||
if(fStep->GetPostStepPoint()->GetProcessDefinedStep() != NULL){
|
||||
G4cout << " "
|
||||
<< G4std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
|
||||
<< std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
|
||||
->GetProcessName();
|
||||
} else {
|
||||
G4cout << " UserLimit";
|
||||
@@ -98,27 +98,27 @@ void ExN04SteppingVerbose::StepInfo()
|
||||
fN2ndariesPostStepDoIt;
|
||||
if(tN2ndariesTot>0){
|
||||
G4cout << " :----- List of 2ndaries - "
|
||||
<< "#SpawnInStep=" << G4std::setw(3) << tN2ndariesTot
|
||||
<< "(Rest=" << G4std::setw(2) << fN2ndariesAtRestDoIt
|
||||
<< ",Along=" << G4std::setw(2) << fN2ndariesAlongStepDoIt
|
||||
<< ",Post=" << G4std::setw(2) << fN2ndariesPostStepDoIt
|
||||
<< "#SpawnInStep=" << std::setw(3) << tN2ndariesTot
|
||||
<< "(Rest=" << std::setw(2) << fN2ndariesAtRestDoIt
|
||||
<< ",Along=" << std::setw(2) << fN2ndariesAlongStepDoIt
|
||||
<< ",Post=" << std::setw(2) << fN2ndariesPostStepDoIt
|
||||
<< "), "
|
||||
<< "#SpawnTotal=" << G4std::setw(3) << (*fSecondary).size()
|
||||
<< "#SpawnTotal=" << std::setw(3) << (*fSecondary).size()
|
||||
<< " ---------------"
|
||||
<< G4endl;
|
||||
|
||||
for(size_t lp1=(*fSecondary).size()-tN2ndariesTot;
|
||||
lp1<(*fSecondary).size(); lp1++){
|
||||
G4cout << " : "
|
||||
<< G4std::setw(6)
|
||||
<< std::setw(6)
|
||||
<< G4BestUnit((*fSecondary)[lp1]->GetPosition().x(),"Length")
|
||||
<< G4std::setw(6)
|
||||
<< std::setw(6)
|
||||
<< G4BestUnit((*fSecondary)[lp1]->GetPosition().y(),"Length")
|
||||
<< G4std::setw(6)
|
||||
<< std::setw(6)
|
||||
<< G4BestUnit((*fSecondary)[lp1]->GetPosition().z(),"Length")
|
||||
<< G4std::setw(6)
|
||||
<< std::setw(6)
|
||||
<< G4BestUnit((*fSecondary)[lp1]->GetKineticEnergy(),"Energy")
|
||||
<< G4std::setw(10)
|
||||
<< std::setw(10)
|
||||
<< (*fSecondary)[lp1]->GetDefinition()->GetParticleName();
|
||||
G4cout << G4endl;
|
||||
}
|
||||
@@ -143,30 +143,30 @@ void ExN04SteppingVerbose::TrackingStarted()
|
||||
G4int prec = G4cout.precision(3);
|
||||
if( verboseLevel > 0 ){
|
||||
|
||||
G4cout << G4std::setw( 5) << "Step#" << " "
|
||||
<< G4std::setw( 6) << "X" << " "
|
||||
<< G4std::setw( 6) << "Y" << " "
|
||||
<< G4std::setw( 6) << "Z" << " "
|
||||
<< G4std::setw( 9) << "KineE" << " "
|
||||
<< G4std::setw( 9) << "dEStep" << " "
|
||||
<< G4std::setw(10) << "StepLeng"
|
||||
<< G4std::setw(10) << "TrakLeng"
|
||||
<< G4std::setw(10) << "Volume" << " "
|
||||
<< G4std::setw(10) << "Process" << G4endl;
|
||||
G4cout << std::setw( 5) << "Step#" << " "
|
||||
<< std::setw( 6) << "X" << " "
|
||||
<< std::setw( 6) << "Y" << " "
|
||||
<< std::setw( 6) << "Z" << " "
|
||||
<< std::setw( 9) << "KineE" << " "
|
||||
<< std::setw( 9) << "dEStep" << " "
|
||||
<< std::setw(10) << "StepLeng"
|
||||
<< std::setw(10) << "TrakLeng"
|
||||
<< std::setw(10) << "Volume" << " "
|
||||
<< std::setw(10) << "Process" << G4endl;
|
||||
|
||||
G4cout << G4std::setw(5) << fTrack->GetCurrentStepNumber() << " "
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
|
||||
<< G4std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
|
||||
<< G4std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
|
||||
G4cout << std::setw(5) << fTrack->GetCurrentStepNumber() << " "
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
|
||||
<< std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
|
||||
<< std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
|
||||
|
||||
if(fTrack->GetNextVolume()){
|
||||
G4cout << G4std::setw(10) << fTrack->GetVolume()->GetName();
|
||||
G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
|
||||
} else {
|
||||
G4cout << G4std::setw(10) << "OutOfWorld";
|
||||
G4cout << std::setw(10) << "OutOfWorld";
|
||||
}
|
||||
G4cout << " initStep" << G4endl;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04VisManager.cc,v 1.1 2002/11/19 10:31:40 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// John Allison 24th January 1998.
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// H01PythiaInterface.cc
|
||||
// $Id: H01PythiaInterface.cc,v 1.1 2002/11/19 10:31:40 murakami Exp $
|
||||
// $Id: H01PythiaInterface.cc,v 1.2 2003/06/16 16:48:28 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#include "H01PythiaInterface.hh"
|
||||
@@ -138,7 +138,7 @@ void H01PythiaInterface::SetRandomSeed(G4int iseed)
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
void H01PythiaInterface::PrintRandomStatus(G4std::ostream& ostr) const
|
||||
void H01PythiaInterface::PrintRandomStatus(std::ostream& ostr) const
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
{
|
||||
ostr << "# Pythia random numbers status" << G4endl;
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// H01PythiaMessenger.cc
|
||||
// $Id: H01PythiaMessenger.cc,v 1.1 2002/11/19 10:31:40 murakami Exp $
|
||||
// $Id: H01PythiaMessenger.cc,v 1.2 2003/06/16 16:48:29 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#include "H01PythiaMessenger.hh"
|
||||
#include "H01PythiaInterface.hh"
|
||||
|
||||
#include "g4std/fstream"
|
||||
#include <fstream>
|
||||
#include "G4UIdirectory.hh"
|
||||
#include "G4UIcmdWithoutParameter.hh"
|
||||
#include "G4UIcmdWithAString.hh"
|
||||
@@ -147,7 +147,7 @@ void H01PythiaMessenger::SetNewValue(G4UIcommand* command,
|
||||
|
||||
} else if (command == cpyinit) { // /pyinit ...
|
||||
const char* strvaluelist= newValues.c_str();
|
||||
G4std::istrstream is((char*)strvaluelist);
|
||||
std::istrstream is((char*)strvaluelist);
|
||||
G4String sframe, sbeam, starget; G4double dwin;
|
||||
is >> sframe >> sbeam >> starget >> dwin;
|
||||
gen-> CallPyinit(sframe, sbeam, starget, dwin);
|
||||
@@ -169,14 +169,14 @@ void H01PythiaMessenger::SetNewValue(G4UIcommand* command,
|
||||
|
||||
} else if (command == cpyrget) { // /pyrget ...
|
||||
const char* strvaluelist= newValues.c_str();
|
||||
G4std::istrstream is((char*)strvaluelist);
|
||||
std::istrstream is((char*)strvaluelist);
|
||||
G4int lun, move;
|
||||
is >> lun >> move;
|
||||
gen-> CallPyrget(lun, move);
|
||||
|
||||
} else if (command == cpyrset) { // /pyrset ...
|
||||
const char* strvaluelist= newValues.c_str();
|
||||
G4std::istrstream is((char*)strvaluelist);
|
||||
std::istrstream is((char*)strvaluelist);
|
||||
G4int lun, move;
|
||||
is >> lun >> move;
|
||||
gen-> CallPyrset(lun, move);
|
||||
@@ -187,10 +187,10 @@ void H01PythiaMessenger::SetNewValue(G4UIcommand* command,
|
||||
gen-> PrintRandomStatus();
|
||||
} else {
|
||||
// to a file (overwrite mode)
|
||||
G4std::ofstream ofs;
|
||||
ofs.open(s.c_str(), G4std::ios::out);
|
||||
std::ofstream ofs;
|
||||
ofs.open(s.c_str(), std::ios::out);
|
||||
//ofs.open(randomStatusFileName.c_str(), std::ios::out|std::ios::app);
|
||||
ofs.setf(G4std::ios::fixed | G4std::ios::showpoint);
|
||||
ofs.setf(std::ios::fixed | std::ios::showpoint);
|
||||
gen-> PrintRandomStatus(ofs);
|
||||
ofs.close();
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: hepmcEx01.cc,v 1.2 2002/11/19 10:23:46 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
**********************************************
|
||||
Geant4 version $Name: geant4-05-01 $
|
||||
Geant4 version $Name: geant4-05-02 $
|
||||
(31-Jul-2002)
|
||||
Copyright : Geant4 Collaboration
|
||||
**********************************************
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
**********************************************
|
||||
Geant4 version $Name: geant4-05-01 $
|
||||
Geant4 version $Name: geant4-05-02 $
|
||||
(31-Jul-2002)
|
||||
Copyright : Geant4 Collaboration
|
||||
**********************************************
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04EMPhysics.hh,v 1.2 2002/11/19 10:15:51 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04GeneralPhysics.hh,v 1.2 2002/11/19 10:15:51 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/vector"
|
||||
#include <vector>
|
||||
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04IonPhysics.hh,v 1.2 2002/11/19 10:15:51 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04MuonPhysics.hh,v 1.2 2002/11/19 10:15:51 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
+3
-3
@@ -23,13 +23,13 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// ExN04PrimaryGeneratorAction.hh
|
||||
// $Id: ExN04PrimaryGeneratorAction.hh,v 1.2 2002/11/19 10:15:51 murakami Exp $
|
||||
// $Id: ExN04PrimaryGeneratorAction.hh,v 1.3 2003/06/16 16:48:06 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#ifndef EXN04_PRIMARY_GENERATOR_ACTION_H
|
||||
#define EXN04_PRIMARY_GENERATOR_ACTION_H
|
||||
|
||||
#include "g4std/map"
|
||||
#include <map>
|
||||
#include "globals.hh"
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
|
||||
@@ -45,7 +45,7 @@ private:
|
||||
|
||||
G4VPrimaryGenerator* currentGenerator;
|
||||
G4String currentGeneratorName;
|
||||
G4std::map<G4String, G4VPrimaryGenerator*> gentypeMap;
|
||||
std::map<G4String, G4VPrimaryGenerator*> gentypeMap;
|
||||
|
||||
ExN04PrimaryGeneratorMessenger* messenger;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04RunAction.hh,v 1.1 2002/11/19 10:15:51 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04SteppingVerbose.hh,v 1.1 2002/11/19 10:15:52 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
// This class manages the verbose outputs in G4SteppingManager.
|
||||
// It inherits from G4SteppingVerbose.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04VisManager.hh,v 1.1 2002/11/19 10:15:52 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// HepMCG4PythiaInterface.hh
|
||||
// $Id: HepMCG4PythiaInterface.hh,v 1.2 2002/11/19 10:15:52 murakami Exp $
|
||||
// $Id: HepMCG4PythiaInterface.hh,v 1.3 2003/06/16 16:48:07 gunter Exp $
|
||||
//
|
||||
// A generic interface class with Pythia event generator via HepMC.
|
||||
//
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
void CallPygive(G4String par);
|
||||
void CallPyrget(G4int lun, G4int move);
|
||||
void CallPyrset(G4int lun, G4int move);
|
||||
void PrintRandomStatus(G4std::ostream& ostr=G4cout) const;
|
||||
void PrintRandomStatus(std::ostream& ostr=G4cout) const;
|
||||
|
||||
// setup user parameters (empty in default).
|
||||
// Implement your parameters in a delived class if you want.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN04EMPhysics.cc,v 1.2 2002/11/19 10:17:03 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: ExN04EMPhysics.cc,v 1.3 2003/06/16 16:48:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
ExN04EMPhysics::ExN04EMPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN04GeneralPhysics.cc,v 1.2 2002/11/19 10:17:04 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: ExN04GeneralPhysics.cc,v 1.3 2003/06/16 16:48:09 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
ExN04GeneralPhysics::ExN04GeneralPhysics(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
ExN04HadronPhysics::ExN04HadronPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN04IonPhysics.cc,v 1.2 2002/11/19 10:17:04 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: ExN04IonPhysics.cc,v 1.3 2003/06/16 16:48:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
ExN04IonPhysics::ExN04IonPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN04MuonPhysics.cc,v 1.2 2002/11/19 10:17:04 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: ExN04MuonPhysics.cc,v 1.3 2003/06/16 16:48:12 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
ExN04MuonPhysics::ExN04MuonPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN04PhysicsList.cc,v 1.2 2002/11/19 10:17:04 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: ExN04PhysicsList.cc,v 1.3 2003/06/16 16:48:13 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include "G4Material.hh"
|
||||
#include "G4MaterialTable.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
#include "ExN04GeneralPhysics.hh"
|
||||
#include "ExN04EMPhysics.hh"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04RunAction.cc,v 1.1 2002/11/19 10:17:05 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN04SteppingVerbose.cc,v 1.1 2002/11/19 10:17:05 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: ExN04SteppingVerbose.cc,v 1.2 2003/06/16 16:48:14 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -54,37 +54,37 @@ void ExN04SteppingVerbose::StepInfo()
|
||||
if( verboseLevel >= 4 ) VerboseTrack();
|
||||
if( verboseLevel >= 3 ){
|
||||
G4cout << G4endl;
|
||||
G4cout << G4std::setw( 5) << "#Step#" << " "
|
||||
<< G4std::setw( 6) << "X" << " "
|
||||
<< G4std::setw( 6) << "Y" << " "
|
||||
<< G4std::setw( 6) << "Z" << " "
|
||||
<< G4std::setw( 9) << "KineE" << " "
|
||||
<< G4std::setw( 9) << "dEStep" << " "
|
||||
<< G4std::setw(10) << "StepLeng"
|
||||
<< G4std::setw(10) << "TrakLeng"
|
||||
<< G4std::setw(10) << "Volume" << " "
|
||||
<< G4std::setw(10) << "Process" << G4endl;
|
||||
G4cout << std::setw( 5) << "#Step#" << " "
|
||||
<< std::setw( 6) << "X" << " "
|
||||
<< std::setw( 6) << "Y" << " "
|
||||
<< std::setw( 6) << "Z" << " "
|
||||
<< std::setw( 9) << "KineE" << " "
|
||||
<< std::setw( 9) << "dEStep" << " "
|
||||
<< std::setw(10) << "StepLeng"
|
||||
<< std::setw(10) << "TrakLeng"
|
||||
<< std::setw(10) << "Volume" << " "
|
||||
<< std::setw(10) << "Process" << G4endl;
|
||||
}
|
||||
|
||||
G4cout << G4std::setw(5) << fTrack->GetCurrentStepNumber() << " "
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
|
||||
<< G4std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
|
||||
<< G4std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
|
||||
G4cout << std::setw(5) << fTrack->GetCurrentStepNumber() << " "
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
|
||||
<< std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
|
||||
<< std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
|
||||
|
||||
// if( fStepStatus != fWorldBoundary){
|
||||
if( fTrack->GetNextVolume() != 0 ) {
|
||||
G4cout << G4std::setw(10) << fTrack->GetVolume()->GetName();
|
||||
G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
|
||||
} else {
|
||||
G4cout << G4std::setw(10) << "OutOfWorld";
|
||||
G4cout << std::setw(10) << "OutOfWorld";
|
||||
}
|
||||
|
||||
if(fStep->GetPostStepPoint()->GetProcessDefinedStep() != NULL){
|
||||
G4cout << " "
|
||||
<< G4std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
|
||||
<< std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
|
||||
->GetProcessName();
|
||||
} else {
|
||||
G4cout << " UserLimit";
|
||||
@@ -98,27 +98,27 @@ void ExN04SteppingVerbose::StepInfo()
|
||||
fN2ndariesPostStepDoIt;
|
||||
if(tN2ndariesTot>0){
|
||||
G4cout << " :----- List of 2ndaries - "
|
||||
<< "#SpawnInStep=" << G4std::setw(3) << tN2ndariesTot
|
||||
<< "(Rest=" << G4std::setw(2) << fN2ndariesAtRestDoIt
|
||||
<< ",Along=" << G4std::setw(2) << fN2ndariesAlongStepDoIt
|
||||
<< ",Post=" << G4std::setw(2) << fN2ndariesPostStepDoIt
|
||||
<< "#SpawnInStep=" << std::setw(3) << tN2ndariesTot
|
||||
<< "(Rest=" << std::setw(2) << fN2ndariesAtRestDoIt
|
||||
<< ",Along=" << std::setw(2) << fN2ndariesAlongStepDoIt
|
||||
<< ",Post=" << std::setw(2) << fN2ndariesPostStepDoIt
|
||||
<< "), "
|
||||
<< "#SpawnTotal=" << G4std::setw(3) << (*fSecondary).size()
|
||||
<< "#SpawnTotal=" << std::setw(3) << (*fSecondary).size()
|
||||
<< " ---------------"
|
||||
<< G4endl;
|
||||
|
||||
for(size_t lp1=(*fSecondary).size()-tN2ndariesTot;
|
||||
lp1<(*fSecondary).size(); lp1++){
|
||||
G4cout << " : "
|
||||
<< G4std::setw(6)
|
||||
<< std::setw(6)
|
||||
<< G4BestUnit((*fSecondary)[lp1]->GetPosition().x(),"Length")
|
||||
<< G4std::setw(6)
|
||||
<< std::setw(6)
|
||||
<< G4BestUnit((*fSecondary)[lp1]->GetPosition().y(),"Length")
|
||||
<< G4std::setw(6)
|
||||
<< std::setw(6)
|
||||
<< G4BestUnit((*fSecondary)[lp1]->GetPosition().z(),"Length")
|
||||
<< G4std::setw(6)
|
||||
<< std::setw(6)
|
||||
<< G4BestUnit((*fSecondary)[lp1]->GetKineticEnergy(),"Energy")
|
||||
<< G4std::setw(10)
|
||||
<< std::setw(10)
|
||||
<< (*fSecondary)[lp1]->GetDefinition()->GetParticleName();
|
||||
G4cout << G4endl;
|
||||
}
|
||||
@@ -143,30 +143,30 @@ void ExN04SteppingVerbose::TrackingStarted()
|
||||
G4int prec = G4cout.precision(3);
|
||||
if( verboseLevel > 0 ){
|
||||
|
||||
G4cout << G4std::setw( 5) << "Step#" << " "
|
||||
<< G4std::setw( 6) << "X" << " "
|
||||
<< G4std::setw( 6) << "Y" << " "
|
||||
<< G4std::setw( 6) << "Z" << " "
|
||||
<< G4std::setw( 9) << "KineE" << " "
|
||||
<< G4std::setw( 9) << "dEStep" << " "
|
||||
<< G4std::setw(10) << "StepLeng"
|
||||
<< G4std::setw(10) << "TrakLeng"
|
||||
<< G4std::setw(10) << "Volume" << " "
|
||||
<< G4std::setw(10) << "Process" << G4endl;
|
||||
G4cout << std::setw( 5) << "Step#" << " "
|
||||
<< std::setw( 6) << "X" << " "
|
||||
<< std::setw( 6) << "Y" << " "
|
||||
<< std::setw( 6) << "Z" << " "
|
||||
<< std::setw( 9) << "KineE" << " "
|
||||
<< std::setw( 9) << "dEStep" << " "
|
||||
<< std::setw(10) << "StepLeng"
|
||||
<< std::setw(10) << "TrakLeng"
|
||||
<< std::setw(10) << "Volume" << " "
|
||||
<< std::setw(10) << "Process" << G4endl;
|
||||
|
||||
G4cout << G4std::setw(5) << fTrack->GetCurrentStepNumber() << " "
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
|
||||
<< G4std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
|
||||
<< G4std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
|
||||
<< G4std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
|
||||
G4cout << std::setw(5) << fTrack->GetCurrentStepNumber() << " "
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
|
||||
<< std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
|
||||
<< std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
|
||||
<< std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
|
||||
|
||||
if(fTrack->GetNextVolume()){
|
||||
G4cout << G4std::setw(10) << fTrack->GetVolume()->GetName();
|
||||
G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
|
||||
} else {
|
||||
G4cout << G4std::setw(10) << "OutOfWorld";
|
||||
G4cout << std::setw(10) << "OutOfWorld";
|
||||
}
|
||||
G4cout << " initStep" << G4endl;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: ExN04VisManager.cc,v 1.1 2002/11/19 10:17:05 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// John Allison 24th January 1998.
|
||||
|
||||
@@ -23,21 +23,21 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// HepMCG4AsciiReader.cc
|
||||
// $Id: HepMCG4AsciiReader.cc,v 1.2 2002/11/19 10:17:05 murakami Exp $
|
||||
// $Id: HepMCG4AsciiReader.cc,v 1.3 2003/06/16 16:48:15 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#include "HepMCG4AsciiReader.hh"
|
||||
#include "HepMCG4AsciiReaderMessenger.hh"
|
||||
|
||||
#include "g4std/iostream"
|
||||
#include "g4std/fstream"
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
////////////////////////////////////////
|
||||
HepMCG4AsciiReader::HepMCG4AsciiReader()
|
||||
: filename("xxx.dat"), verbose(0)
|
||||
////////////////////////////////////////
|
||||
{
|
||||
asciiInput= new HepMC::IO_Ascii(filename.c_str(), G4std::ios::in);
|
||||
asciiInput= new HepMC::IO_Ascii(filename.c_str(), std::ios::in);
|
||||
|
||||
messenger= new HepMCG4AsciiReaderMessenger(this);
|
||||
}
|
||||
@@ -56,7 +56,7 @@ void HepMCG4AsciiReader::Initialize()
|
||||
{
|
||||
delete asciiInput;
|
||||
|
||||
asciiInput= new HepMC::IO_Ascii(filename.c_str(), G4std::ios::in);
|
||||
asciiInput= new HepMC::IO_Ascii(filename.c_str(), std::ios::in);
|
||||
asciiInput-> print();
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// HepMCG4PythiaInterface.cc
|
||||
// $Id: HepMCG4PythiaInterface.cc,v 1.1 2002/05/28 14:00:40 murakami Exp $
|
||||
// $Id: HepMCG4PythiaInterface.cc,v 1.2 2003/06/16 16:48:16 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#include "HepMCG4PythiaInterface.hh"
|
||||
@@ -113,7 +113,7 @@ void HepMCG4PythiaInterface::CallPyrset(G4int lun, G4int move)
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void HepMCG4PythiaInterface::PrintRandomStatus(G4std::ostream& ostr) const
|
||||
void HepMCG4PythiaInterface::PrintRandomStatus(std::ostream& ostr) const
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
{
|
||||
ostr << "# Pythia random numbers status" << G4endl;
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// HepMCG4PythiaMessenger.cc
|
||||
// $Id: HepMCG4PythiaMessenger.cc,v 1.1 2002/05/28 14:00:40 murakami Exp $
|
||||
// $Id: HepMCG4PythiaMessenger.cc,v 1.2 2003/06/16 16:48:17 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#include "HepMCG4PythiaMessenger.hh"
|
||||
#include "HepMCG4PythiaInterface.hh"
|
||||
|
||||
#include "g4std/fstream"
|
||||
#include <fstream>
|
||||
#include "G4UIdirectory.hh"
|
||||
#include "G4UIcmdWithoutParameter.hh"
|
||||
#include "G4UIcmdWithAString.hh"
|
||||
@@ -147,7 +147,7 @@ void HepMCG4PythiaMessenger::SetNewValue(G4UIcommand* command,
|
||||
|
||||
} else if (command == cpyinit) { // /pyinit ...
|
||||
const char* strvaluelist= newValues.c_str();
|
||||
G4std::istrstream is((char*)strvaluelist);
|
||||
std::istrstream is((char*)strvaluelist);
|
||||
G4String sframe, sbeam, starget; G4double dwin;
|
||||
is >> sframe >> sbeam >> starget >> dwin;
|
||||
gen-> CallPyinit(sframe, sbeam, starget, dwin);
|
||||
@@ -169,14 +169,14 @@ void HepMCG4PythiaMessenger::SetNewValue(G4UIcommand* command,
|
||||
|
||||
} else if (command == cpyrget) { // /pyrget ...
|
||||
const char* strvaluelist= newValues.c_str();
|
||||
G4std::istrstream is((char*)strvaluelist);
|
||||
std::istrstream is((char*)strvaluelist);
|
||||
G4int lun, move;
|
||||
is >> lun >> move;
|
||||
gen-> CallPyrget(lun, move);
|
||||
|
||||
} else if (command == cpyrset) { // /pyrset ...
|
||||
const char* strvaluelist= newValues.c_str();
|
||||
G4std::istrstream is((char*)strvaluelist);
|
||||
std::istrstream is((char*)strvaluelist);
|
||||
G4int lun, move;
|
||||
is >> lun >> move;
|
||||
gen-> CallPyrset(lun, move);
|
||||
@@ -187,7 +187,7 @@ void HepMCG4PythiaMessenger::SetNewValue(G4UIcommand* command,
|
||||
gen-> PrintRandomStatus();
|
||||
} else {
|
||||
// to a file (overwrite mode)
|
||||
G4std::ofstream ofs;
|
||||
std::ofstream ofs;
|
||||
ofs.open(s.c_str(), std::ios::out);
|
||||
//ofs.open(randomStatusFileName.c_str(), std::ios::out|std::ios::app);
|
||||
ofs.setf(std::ios::fixed | std::ios::showpoint);
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: hepmcEx02-clhep.cc,v 1.1 2002/11/19 10:37:08 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
**********************************************
|
||||
Geant4 version $Name: geant4-05-01 $
|
||||
Geant4 version $Name: geant4-05-02 $
|
||||
(31-Jul-2002)
|
||||
Copyright : Geant4 Collaboration
|
||||
**********************************************
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
**********************************************
|
||||
Geant4 version $Name: geant4-05-01 $
|
||||
Geant4 version $Name: geant4-05-02 $
|
||||
(31-Jul-2002)
|
||||
Copyright : Geant4 Collaboration
|
||||
**********************************************
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: H02EMPhysics.hh,v 1.1 2002/11/19 10:35:48 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: H02GeneralPhysics.hh,v 1.1 2002/11/19 10:35:48 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/vector"
|
||||
#include <vector>
|
||||
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: H02IonPhysics.hh,v 1.1 2002/11/19 10:35:49 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: H02MuonPhysics.hh,v 1.1 2002/11/19 10:35:49 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
+2
-2
@@ -23,13 +23,13 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// H02PrimaryGeneratorAction.hh
|
||||
// $Id: H02PrimaryGeneratorAction.hh,v 1.1 2002/11/19 10:35:49 murakami Exp $
|
||||
// $Id: H02PrimaryGeneratorAction.hh,v 1.2 2003/06/16 16:48:44 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#ifndef H02_PRIMARY_GENERATOR_ACTION_H
|
||||
#define H02_PRIMARY_GENERATOR_ACTION_H
|
||||
|
||||
#include "g4std/map"
|
||||
#include <map>
|
||||
#include "globals.hh"
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
|
||||
|
||||
+2
-2
@@ -23,7 +23,7 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// H02PythiaInterface.hh
|
||||
// $Id: H02PythiaInterface.hh,v 1.1 2002/11/19 10:35:49 murakami Exp $
|
||||
// $Id: H02PythiaInterface.hh,v 1.2 2003/06/16 16:48:45 gunter Exp $
|
||||
//
|
||||
// A generic interface class with Pythia event generator via HepMC.
|
||||
//
|
||||
@@ -74,7 +74,7 @@ public:
|
||||
|
||||
// random numbers operations
|
||||
void SetRandomSeed(G4int iseed);
|
||||
void PrintRandomStatus(G4std::ostream& ostr=G4cout) const;
|
||||
void PrintRandomStatus(std::ostream& ostr=G4cout) const;
|
||||
|
||||
// setup user parameters (empty in default).
|
||||
// Implement your parameters in a delived class if you want.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: H02EMPhysics.cc,v 1.1 2002/11/19 10:36:20 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: H02EMPhysics.cc,v 1.2 2003/06/16 16:48:46 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
H02EMPhysics::H02EMPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: H02GeneralPhysics.cc,v 1.1 2002/11/19 10:36:20 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: H02GeneralPhysics.cc,v 1.2 2003/06/16 16:48:47 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
H02GeneralPhysics::H02GeneralPhysics(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
H02HadronPhysics::H02HadronPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: H02IonPhysics.cc,v 1.1 2002/11/19 10:36:20 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: H02IonPhysics.cc,v 1.2 2003/06/16 16:48:49 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
H02IonPhysics::H02IonPhysics(const G4String& name)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// H02MuonHit.cc
|
||||
// $Id: H02MuonHit.cc,v 1.1 2002/11/19 10:36:20 murakami Exp $
|
||||
// $Id: H02MuonHit.cc,v 1.2 2003/06/16 16:48:50 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#include "H02MuonHit.hh"
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "G4Circle.hh"
|
||||
#include "G4Colour.hh"
|
||||
#include "G4VisAttributes.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
G4Allocator<H02MuonHit> H02MuonHitAllocator;
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: H02MuonPhysics.cc,v 1.1 2002/11/19 10:36:20 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: H02MuonPhysics.cc,v 1.2 2003/06/16 16:48:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
H02MuonPhysics::H02MuonPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: H02PhysicsList.cc,v 1.1 2002/11/19 10:36:20 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: H02PhysicsList.cc,v 1.2 2003/06/16 16:48:52 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include "G4Material.hh"
|
||||
#include "G4MaterialTable.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
#include "H02GeneralPhysics.hh"
|
||||
#include "H02EMPhysics.hh"
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// H02PythiaInterface.cc
|
||||
// $Id: H02PythiaInterface.cc,v 1.1 2002/11/19 10:36:20 murakami Exp $
|
||||
// $Id: H02PythiaInterface.cc,v 1.2 2003/06/16 16:48:53 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#include "H02PythiaInterface.hh"
|
||||
@@ -138,7 +138,7 @@ void H02PythiaInterface::SetRandomSeed(G4int iseed)
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
void H02PythiaInterface::PrintRandomStatus(G4std::ostream& ostr) const
|
||||
void H02PythiaInterface::PrintRandomStatus(std::ostream& ostr) const
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
{
|
||||
ostr << "# Pythia random numbers status" << G4endl;
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// H02PythiaMessenger.cc
|
||||
// $Id: H02PythiaMessenger.cc,v 1.1 2002/11/19 10:36:20 murakami Exp $
|
||||
// $Id: H02PythiaMessenger.cc,v 1.2 2003/06/16 16:48:54 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#include "H02PythiaMessenger.hh"
|
||||
#include "H02PythiaInterface.hh"
|
||||
|
||||
#include "g4std/fstream"
|
||||
#include <fstream>
|
||||
#include "G4UIdirectory.hh"
|
||||
#include "G4UIcmdWithoutParameter.hh"
|
||||
#include "G4UIcmdWithAString.hh"
|
||||
@@ -147,7 +147,7 @@ void H02PythiaMessenger::SetNewValue(G4UIcommand* command,
|
||||
|
||||
} else if (command == cpyinit) { // /pyinit ...
|
||||
const char* strvaluelist= newValues.c_str();
|
||||
G4std::istrstream is((char*)strvaluelist);
|
||||
std::istrstream is((char*)strvaluelist);
|
||||
G4String sframe, sbeam, starget; G4double dwin;
|
||||
is >> sframe >> sbeam >> starget >> dwin;
|
||||
gen-> CallPyinit(sframe, sbeam, starget, dwin);
|
||||
@@ -169,14 +169,14 @@ void H02PythiaMessenger::SetNewValue(G4UIcommand* command,
|
||||
|
||||
} else if (command == cpyrget) { // /pyrget ...
|
||||
const char* strvaluelist= newValues.c_str();
|
||||
G4std::istrstream is((char*)strvaluelist);
|
||||
std::istrstream is((char*)strvaluelist);
|
||||
G4int lun, move;
|
||||
is >> lun >> move;
|
||||
gen-> CallPyrget(lun, move);
|
||||
|
||||
} else if (command == cpyrset) { // /pyrset ...
|
||||
const char* strvaluelist= newValues.c_str();
|
||||
G4std::istrstream is((char*)strvaluelist);
|
||||
std::istrstream is((char*)strvaluelist);
|
||||
G4int lun, move;
|
||||
is >> lun >> move;
|
||||
gen-> CallPyrset(lun, move);
|
||||
@@ -187,7 +187,7 @@ void H02PythiaMessenger::SetNewValue(G4UIcommand* command,
|
||||
gen-> PrintRandomStatus();
|
||||
} else {
|
||||
// to a file (overwrite mode)
|
||||
G4std::ofstream ofs;
|
||||
std::ofstream ofs;
|
||||
ofs.open(s.c_str(), std::ios::out);
|
||||
//ofs.open(randomStatusFileName.c_str(), std::ios::out|std::ios::app);
|
||||
ofs.setf(std::ios::fixed | std::ios::showpoint);
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: hepmcEx02.cc,v 1.2 2002/05/28 14:19:07 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
**********************************************
|
||||
Geant4 version $Name: geant4-05-01 $
|
||||
Geant4 version $Name: geant4-05-02 $
|
||||
(31-Jul-2002)
|
||||
Copyright : Geant4 Collaboration
|
||||
**********************************************
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
**********************************************
|
||||
Geant4 version $Name: geant4-05-01 $
|
||||
Geant4 version $Name: geant4-05-02 $
|
||||
(31-Jul-2002)
|
||||
Copyright : Geant4 Collaboration
|
||||
**********************************************
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: H02EMPhysics.hh,v 1.2 2002/11/19 10:25:08 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: H02GeneralPhysics.hh,v 1.2 2002/11/19 10:25:08 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/vector"
|
||||
#include <vector>
|
||||
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: H02IonPhysics.hh,v 1.2 2002/11/19 10:25:08 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: H02MuonPhysics.hh,v 1.2 2002/11/19 10:25:08 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
+2
-2
@@ -23,13 +23,13 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// H02PrimaryGeneratorAction.hh
|
||||
// $Id: H02PrimaryGeneratorAction.hh,v 1.1 2002/05/28 14:10:53 murakami Exp $
|
||||
// $Id: H02PrimaryGeneratorAction.hh,v 1.2 2003/06/16 16:48:31 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#ifndef H02_PRIMARY_GENERATOR_ACTION_H
|
||||
#define H02_PRIMARY_GENERATOR_ACTION_H
|
||||
|
||||
#include "g4std/map"
|
||||
#include <map>
|
||||
#include "globals.hh"
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// HepMCG4PythiaInterface.hh
|
||||
// $Id: HepMCG4PythiaInterface.hh,v 1.2 2002/11/19 10:25:08 murakami Exp $
|
||||
// $Id: HepMCG4PythiaInterface.hh,v 1.3 2003/06/16 16:48:32 gunter Exp $
|
||||
//
|
||||
// A generic interface class with Pythia event generator via HepMC.
|
||||
//
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
void CallPygive(G4String par);
|
||||
void CallPyrget(G4int lun, G4int move);
|
||||
void CallPyrset(G4int lun, G4int move);
|
||||
void PrintRandomStatus(G4std::ostream& ostr=G4cout) const;
|
||||
void PrintRandomStatus(std::ostream& ostr=G4cout) const;
|
||||
|
||||
// setup user parameters (empty in default).
|
||||
// Implement your parameters in a delived class if you want.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: H02EMPhysics.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: H02EMPhysics.cc,v 1.3 2003/06/16 16:48:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
H02EMPhysics::H02EMPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: H02GeneralPhysics.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: H02GeneralPhysics.cc,v 1.3 2003/06/16 16:48:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
H02GeneralPhysics::H02GeneralPhysics(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
H02HadronPhysics::H02HadronPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: H02IonPhysics.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: H02IonPhysics.cc,v 1.3 2003/06/16 16:48:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
H02IonPhysics::H02IonPhysics(const G4String& name)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// H02MuonHit.cc
|
||||
// $Id: H02MuonHit.cc,v 1.1 2002/05/28 14:15:47 murakami Exp $
|
||||
// $Id: H02MuonHit.cc,v 1.2 2003/06/16 16:48:37 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#include "H02MuonHit.hh"
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "G4Circle.hh"
|
||||
#include "G4Colour.hh"
|
||||
#include "G4VisAttributes.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
G4Allocator<H02MuonHit> H02MuonHitAllocator;
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: H02MuonPhysics.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: H02MuonPhysics.cc,v 1.3 2003/06/16 16:48:38 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
H02MuonPhysics::H02MuonPhysics(const G4String& name)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: H02PhysicsList.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: H02PhysicsList.cc,v 1.3 2003/06/16 16:48:39 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include "G4Material.hh"
|
||||
#include "G4MaterialTable.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "g4std/iomanip"
|
||||
#include <iomanip>
|
||||
|
||||
#include "H02GeneralPhysics.hh"
|
||||
#include "H02EMPhysics.hh"
|
||||
|
||||
@@ -23,21 +23,21 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// HepMCG4AsciiReader.cc
|
||||
// $Id: HepMCG4AsciiReader.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
|
||||
// $Id: HepMCG4AsciiReader.cc,v 1.3 2003/06/16 16:48:40 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#include "HepMCG4AsciiReader.hh"
|
||||
#include "HepMCG4AsciiReaderMessenger.hh"
|
||||
|
||||
#include "g4std/iostream"
|
||||
#include "g4std/fstream"
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
////////////////////////////////////////
|
||||
HepMCG4AsciiReader::HepMCG4AsciiReader()
|
||||
: filename("xxx.dat"), verbose(0)
|
||||
////////////////////////////////////////
|
||||
{
|
||||
asciiInput= new HepMC::IO_Ascii(filename.c_str(), G4std::ios::in);
|
||||
asciiInput= new HepMC::IO_Ascii(filename.c_str(), std::ios::in);
|
||||
|
||||
messenger= new HepMCG4AsciiReaderMessenger(this);
|
||||
}
|
||||
@@ -56,7 +56,7 @@ void HepMCG4AsciiReader::Initialize()
|
||||
{
|
||||
delete asciiInput;
|
||||
|
||||
asciiInput= new HepMC::IO_Ascii(filename.c_str(), G4std::ios::in);
|
||||
asciiInput= new HepMC::IO_Ascii(filename.c_str(), std::ios::in);
|
||||
asciiInput-> print();
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// HepMCG4PythiaInterface.cc
|
||||
// $Id: HepMCG4PythiaInterface.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
|
||||
// $Id: HepMCG4PythiaInterface.cc,v 1.3 2003/06/16 16:48:41 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#include "HepMCG4PythiaInterface.hh"
|
||||
@@ -113,7 +113,7 @@ void HepMCG4PythiaInterface::CallPyrset(G4int lun, G4int move)
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void HepMCG4PythiaInterface::PrintRandomStatus(G4std::ostream& ostr) const
|
||||
void HepMCG4PythiaInterface::PrintRandomStatus(std::ostream& ostr) const
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
{
|
||||
ostr << "# Pythia random numbers status" << G4endl;
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// HepMCG4PythiaMessenger.cc
|
||||
// $Id: HepMCG4PythiaMessenger.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
|
||||
// $Id: HepMCG4PythiaMessenger.cc,v 1.3 2003/06/16 16:48:42 gunter Exp $
|
||||
//
|
||||
// ====================================================================
|
||||
#include "HepMCG4PythiaMessenger.hh"
|
||||
#include "HepMCG4PythiaInterface.hh"
|
||||
|
||||
#include "g4std/fstream"
|
||||
#include <fstream>
|
||||
#include "G4UIdirectory.hh"
|
||||
#include "G4UIcmdWithoutParameter.hh"
|
||||
#include "G4UIcmdWithAString.hh"
|
||||
@@ -147,7 +147,7 @@ void HepMCG4PythiaMessenger::SetNewValue(G4UIcommand* command,
|
||||
|
||||
} else if (command == cpyinit) { // /pyinit ...
|
||||
const char* strvaluelist= newValues.c_str();
|
||||
G4std::istrstream is((char*)strvaluelist);
|
||||
std::istrstream is((char*)strvaluelist);
|
||||
G4String sframe, sbeam, starget; G4double dwin;
|
||||
is >> sframe >> sbeam >> starget >> dwin;
|
||||
gen-> CallPyinit(sframe, sbeam, starget, dwin);
|
||||
@@ -169,14 +169,14 @@ void HepMCG4PythiaMessenger::SetNewValue(G4UIcommand* command,
|
||||
|
||||
} else if (command == cpyrget) { // /pyrget ...
|
||||
const char* strvaluelist= newValues.c_str();
|
||||
G4std::istrstream is((char*)strvaluelist);
|
||||
std::istrstream is((char*)strvaluelist);
|
||||
G4int lun, move;
|
||||
is >> lun >> move;
|
||||
gen-> CallPyrget(lun, move);
|
||||
|
||||
} else if (command == cpyrset) { // /pyrset ...
|
||||
const char* strvaluelist= newValues.c_str();
|
||||
G4std::istrstream is((char*)strvaluelist);
|
||||
std::istrstream is((char*)strvaluelist);
|
||||
G4int lun, move;
|
||||
is >> lun >> move;
|
||||
gen-> CallPyrset(lun, move);
|
||||
@@ -187,7 +187,7 @@ void HepMCG4PythiaMessenger::SetNewValue(G4UIcommand* command,
|
||||
gen-> PrintRandomStatus();
|
||||
} else {
|
||||
// to a file (overwrite mode)
|
||||
G4std::ofstream ofs;
|
||||
std::ofstream ofs;
|
||||
ofs.open(s.c_str(), std::ios::out);
|
||||
//ofs.open(randomStatusFileName.c_str(), std::ios::out|std::ios::app);
|
||||
ofs.setf(std::ios::fixed | std::ios::showpoint);
|
||||
|
||||
Reference in New Issue
Block a user