Import Geant4 1.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:34:16 +02:00
parent ca1c8cb059
commit 103bda00c8
2654 changed files with 29719 additions and 20203 deletions
@@ -58,14 +58,14 @@ G4bool ExN04CalorimeterSD::ProcessHits(G4Step*aStep,G4TouchableHistory*ROhist)
CellID[copyIDinZ][copyIDinPhi] = icell - 1;
if(verboseLevel>0)
{ G4cout << " New Calorimeter Hit on CellID "
<< copyIDinZ << " " << copyIDinPhi << endl; }
<< copyIDinZ << " " << copyIDinPhi << G4endl; }
}
else
{
(*CalCollection)[CellID[copyIDinZ][copyIDinPhi]]->AddEdep(edep);
if(verboseLevel>0)
{ G4cout << " Energy added to CellID "
<< copyIDinZ << " " << copyIDinPhi << endl; }
<< copyIDinZ << " " << copyIDinPhi << G4endl; }
}
return true;
+5 -5
View File
@@ -45,7 +45,7 @@ void ExN04EventAction::BeginOfEventAction(const G4Event*)
void ExN04EventAction::EndOfEventAction(const G4Event* evt)
{
G4cout << ">>> Event " << evt->GetEventID() << endl;
G4cout << ">>> Event " << evt->GetEventID() << G4endl;
if(trackerCollID<0||calorimeterCollID<0||muonCollID<0) return;
@@ -64,24 +64,24 @@ void ExN04EventAction::EndOfEventAction(const G4Event* evt)
{
int n_hit = THC->entries();
G4cout << " " << n_hit
<< " hits are stored in ExN04TrackerHitsCollection." << endl;
<< " hits are stored in ExN04TrackerHitsCollection." << G4endl;
}
if(CHC)
{
int n_hit = CHC->entries();
G4cout << " " << n_hit
<< " hits are stored in ExN04CalorimeterHitsCollection." << endl;
<< " hits are stored in ExN04CalorimeterHitsCollection." << G4endl;
G4double totE = 0;
for(int i=0;i<n_hit;i++)
{ totE += (*CHC)[i]->GetEdep(); }
G4cout << " Total energy deposition in calorimeter : "
<< totE / GeV << " (GeV)" << endl;
<< totE / GeV << " (GeV)" << G4endl;
}
if(MHC)
{
int n_hit = MHC->entries();
G4cout << " " << n_hit
<< " hits are stored in ExN04MuonHitsCollection." << endl;
<< " hits are stored in ExN04MuonHitsCollection." << G4endl;
}
G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
+3 -3
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN04PhysicsList.cc,v 1.6.6.1 1999/12/07 20:47:32 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN04PhysicsList.cc,v 1.7 1999/12/15 14:49:26 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -28,7 +28,7 @@
#include "G4Material.hh"
#include "G4MaterialTable.hh"
#include "G4ios.hh"
#include <iomanip.h>
#include "g4std/iomanip"
#include "G4FastSimulationManagerProcess.hh"
@@ -70,7 +70,7 @@ G4bool ExN04StackingAction::InsideRoI(const G4Track * aTrack,G4double ang)
if(!muonHits)
{ muonHits = (ExN04MuonHitsCollection*)GetCollection("muonCollection"); }
if(!muonHits)
{ G4cerr << "muonCollection NOT FOUND" << endl;
{ G4cerr << "muonCollection NOT FOUND" << G4endl;
return true; }
G4int nhits = muonHits->entries();
@@ -111,15 +111,15 @@ void ExN04StackingAction::NewStage()
if(!muonHits)
{ muonHits = (ExN04MuonHitsCollection*)GetCollection("muonCollection"); }
if(!muonHits)
{ G4cerr << "muonCollection NOT FOUND" << endl;
{ G4cerr << "muonCollection NOT FOUND" << G4endl;
return; }
nhits = muonHits->entries();
G4cout << "Stage 0->1 : " << nhits << " hits found in the muon chamber."
<< endl;
<< G4endl;
if(nhits<reqMuon)
{
stackManager->clear();
G4cout << "++++++++ event aborted" << endl;
G4cout << "++++++++ event aborted" << G4endl;
return;
}
stackManager->ReClassify();
@@ -138,7 +138,7 @@ void ExN04StackingAction::NewStage()
if(!trkHits)
{ trkHits = (ExN04TrackerHitsCollection*)GetCollection("trackerCollection"); }
if(!trkHits)
{ G4cerr << "trackerCollection NOT FOUND" << endl;
{ G4cerr << "trackerCollection NOT FOUND" << G4endl;
return; }
G4int nTrkhits = trkHits->entries();
G4int isoMuon = 0;
@@ -153,11 +153,11 @@ void ExN04StackingAction::NewStage()
}
if(nhitIn<=reqIso) isoMuon++;
}
G4cout << "Stage 1->2 : " << isoMuon << " isolated muon found." << endl;
G4cout << "Stage 1->2 : " << isoMuon << " isolated muon found." << G4endl;
if(isoMuon<reqIsoMuon)
{
stackManager->clear();
G4cout << "++++++++ event aborted" << endl;
G4cout << "++++++++ event aborted" << G4endl;
return;
}
stackManager->ReClassify();