Import Geant4 10.6.0 source tree
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user