Import Geant4 4.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN05PionShowerModel.cc,v 1.4.2.1 2001/06/28 19:07:43 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: ExN05PionShowerModel.cc,v 1.7 2001/11/08 10:21:29 radoone Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
#include "ExN05PionShowerModel.hh"
|
||||
#include "ExN05EnergySpot.hh"
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "G4PionPlus.hh"
|
||||
#include "G4TransportationManager.hh"
|
||||
#include "G4VSensitiveDetector.hh"
|
||||
#include "G4VTouchable.hh"
|
||||
#include "G4TouchableHistory.hh"
|
||||
|
||||
#include "G4Colour.hh"
|
||||
|
||||
@@ -43,9 +43,9 @@ ExN05PionShowerModel::ExN05PionShowerModel(G4String modelName, G4LogicalVolume*
|
||||
fFakeStep = new G4Step();
|
||||
fFakePreStepPoint = fFakeStep->GetPreStepPoint();
|
||||
fFakePostStepPoint = fFakeStep->GetPostStepPoint();
|
||||
fpTouchable = new G4TouchableHistory();
|
||||
fpNavigator = new G4Navigator();
|
||||
fNaviSetup = false;
|
||||
fTouchableHandle = new G4TouchableHistory();
|
||||
fpNavigator = new G4Navigator();
|
||||
fNaviSetup = false;
|
||||
}
|
||||
|
||||
ExN05PionShowerModel::ExN05PionShowerModel(G4String modelName)
|
||||
@@ -54,15 +54,14 @@ ExN05PionShowerModel::ExN05PionShowerModel(G4String modelName)
|
||||
fFakeStep = new G4Step();
|
||||
fFakePreStepPoint = fFakeStep->GetPreStepPoint();
|
||||
fFakePostStepPoint = fFakeStep->GetPostStepPoint();
|
||||
fpTouchable = new G4TouchableHistory();
|
||||
fpNavigator = new G4Navigator();
|
||||
fNaviSetup = false;
|
||||
fTouchableHandle = new G4TouchableHistory();
|
||||
fpNavigator = new G4Navigator();
|
||||
fNaviSetup = false;
|
||||
}
|
||||
|
||||
ExN05PionShowerModel::~ExN05PionShowerModel()
|
||||
{
|
||||
delete fFakeStep;
|
||||
delete fpTouchable;
|
||||
delete fpNavigator;
|
||||
}
|
||||
|
||||
@@ -82,6 +81,8 @@ G4bool ExN05PionShowerModel::ModelTrigger(const G4FastTrack& fastTrack)
|
||||
void ExN05PionShowerModel::DoIt(const G4FastTrack& fastTrack,
|
||||
G4FastStep& fastStep)
|
||||
{
|
||||
G4cout << "ExN05PionShowerModel::DoIt" << G4endl;
|
||||
|
||||
// Kill the parawmeterised particle:
|
||||
fastStep.KillPrimaryTrack();
|
||||
fastStep.SetPrimaryTrackPathLength(0.0);
|
||||
@@ -146,7 +147,7 @@ void ExN05PionShowerModel::Explode(const G4FastTrack& fastTrack)
|
||||
void ExN05PionShowerModel::BuildDetectorResponse()
|
||||
{
|
||||
// Does the assignation of the energy spots to the sensitive volumes:
|
||||
for (int i = 0; i < feSpotList.size(); i++)
|
||||
for (size_t i = 0; i < feSpotList.size(); i++)
|
||||
{
|
||||
// Draw the energy spot:
|
||||
G4Colour red(1.,0.,0.);
|
||||
@@ -200,7 +201,7 @@ void ExN05PionShowerModel::FillFakeStep(const ExN05EnergySpot &eSpot)
|
||||
GetNavigatorForTracking()->GetWorldVolume());
|
||||
fpNavigator->
|
||||
LocateGlobalPointAndUpdateTouchable(eSpot.GetPosition(),
|
||||
fpTouchable,
|
||||
fTouchableHandle(),
|
||||
false);
|
||||
fNaviSetup = true;
|
||||
}
|
||||
@@ -208,14 +209,14 @@ void ExN05PionShowerModel::FillFakeStep(const ExN05EnergySpot &eSpot)
|
||||
{
|
||||
fpNavigator->
|
||||
LocateGlobalPointAndUpdateTouchable(eSpot.GetPosition(),
|
||||
fpTouchable);
|
||||
fTouchableHandle());
|
||||
}
|
||||
//--------------------------------------
|
||||
// Fills attribute of the G4Step needed
|
||||
// by our sensitive detector:
|
||||
//-------------------------------------
|
||||
// set touchable volume at PreStepPoint:
|
||||
fFakePreStepPoint->SetTouchable(fpTouchable);
|
||||
fFakePreStepPoint->SetTouchableHandle(fTouchableHandle);
|
||||
// set total energy deposit:
|
||||
fFakeStep->SetTotalEnergyDeposit(eSpot.GetEnergy());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user