Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
@@ -307,15 +307,20 @@ void LXeDetectorConstruction::ConstructSDandField() {
// PMT SD
if (!fPmt_SD.Get()) {
LXePMTSD* pmt = fPmt_SD.Get();
if (!pmt) {
//Created here so it exists as pmts are being placed
G4cout << "Construction /LXeDet/pmtSD" << G4endl;
LXePMTSD* pmt_SD = new LXePMTSD("/LXeDet/pmtSD");
fPmt_SD.Put(pmt_SD);
pmt_SD->InitPMTs((fNx*fNy+fNx*fNz+fNy*fNz)*2); //let pmtSD know # of pmts
pmt_SD->InitPMTs();
pmt_SD->SetPmtPositions(fMainVolume->GetPmtPositions());
}
else {
pmt->InitPMTs();
pmt->SetPmtPositions(fMainVolume->GetPmtPositions());
}
G4SDManager::GetSDMpointer()->AddNewDetector(fPmt_SD.Get());
//sensitive detector is not actually on the photocathode.
//processHits gets done manually by the stepping action.