Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -36,7 +36,7 @@ Par03ActionInitialisation::Par03ActionInitialisation(
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Par03ActionInitialisation::~Par03ActionInitialisation() {}
|
||||
Par03ActionInitialisation::~Par03ActionInitialisation() = default;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ Par03DetectorConstruction::Par03DetectorConstruction()
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Par03DetectorConstruction::~Par03DetectorConstruction() {}
|
||||
Par03DetectorConstruction::~Par03DetectorConstruction() = default;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ Par03EMShowerModel::Par03EMShowerModel(G4String aModelName)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Par03EMShowerModel::~Par03EMShowerModel() {}
|
||||
Par03EMShowerModel::~Par03EMShowerModel() = default;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -97,11 +97,11 @@ void Par03EMShowerModel::DoIt(const G4FastTrack& aFastTrack,
|
||||
{
|
||||
// Remove particle from further processing by G4
|
||||
aFastStep.KillPrimaryTrack();
|
||||
aFastStep.SetPrimaryTrackPathLength(0.0);
|
||||
aFastStep.ProposePrimaryTrackPathLength(0.0);
|
||||
G4double energy = aFastTrack.GetPrimaryTrack()->GetKineticEnergy();
|
||||
// No need to create any deposit, it will be handled by this model (and
|
||||
// G4FastSimHitMaker that will call the sensitive detector)
|
||||
aFastStep.SetTotalEnergyDeposited(0);
|
||||
aFastStep.ProposeTotalEnergyDeposited(0);
|
||||
auto particlePosition = aFastTrack.GetPrimaryTrackLocalPosition();
|
||||
auto particleDirection = aFastTrack.GetPrimaryTrackLocalDirection();
|
||||
|
||||
@@ -209,4 +209,4 @@ void Par03EMShowerModel::Print() const
|
||||
"0.5 for photons (Eq. (33.36) from PDG)."
|
||||
<< G4endl;
|
||||
G4cout << "Number of created energy deposits: " << fNbOfHits << G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ Par03EventAction::Par03EventAction(Par03DetectorConstruction* aDetector)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Par03EventAction::~Par03EventAction() {}
|
||||
Par03EventAction::~Par03EventAction() = default;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ Par03Hit::Par03Hit()
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Par03Hit::~Par03Hit() {}
|
||||
Par03Hit::~Par03Hit() = default;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ Par03RunAction::Par03RunAction(Par03DetectorConstruction* aDetector)
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Par03RunAction::~Par03RunAction() {}
|
||||
Par03RunAction::~Par03RunAction() = default;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ Par03SensitiveDetector::Par03SensitiveDetector(G4String aName, G4int aNumLayers,
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Par03SensitiveDetector::~Par03SensitiveDetector() {}
|
||||
Par03SensitiveDetector::~Par03SensitiveDetector() = default;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -71,7 +71,7 @@ void Par03SensitiveDetector::Initialize(G4HCofThisEvent* aHCE)
|
||||
for(G4int irho = 0; irho < fCellNoRho; irho++)
|
||||
for(G4int iz = 0; iz < fCellNoZ; iz++)
|
||||
{
|
||||
Par03Hit* hit = new Par03Hit();
|
||||
auto hit = new Par03Hit();
|
||||
fHitsCollection->insert(hit);
|
||||
}
|
||||
}
|
||||
@@ -84,7 +84,7 @@ G4bool Par03SensitiveDetector::ProcessHits(G4Step* aStep, G4TouchableHistory*)
|
||||
if(edep == 0.)
|
||||
return true;
|
||||
|
||||
G4TouchableHistory* aTouchable =
|
||||
auto aTouchable =
|
||||
(G4TouchableHistory*) (aStep->GetPreStepPoint()->GetTouchable());
|
||||
|
||||
auto hit = RetrieveAndSetupHit(aTouchable);
|
||||
|
||||
Reference in New Issue
Block a user