| Message: questions about G4Region and FastSimulationModel | Not Logged In (login) |
|
Hello, I want to do a Fast Simulation with a PMT logical volume, part of my code is:
G4Region *PmtRegion = new G4Region("PMT-Region");
PmtRegion->AddRootLogicalVolume(pmt_log);/*the pmt_log is the
sensitive detector*/
new PMTOpticalModel( "pmt_optical_model", pmt_phys);
and the class PMTOpticalModel is inherited from G4VFastSimulationModel, its constructor is:
PMTOpticalModel::PMTOpticalModel (G4String modelName,
G4VPhysicalVolume* envelope_phys)
: G4VFastSimulationModel(modelName, envelope_phys->GetLogicalVolume()
->GetRegion())
{......
}
the program runs well and the results seems right, and there are normal output information about the optical photons in the PMT Optical Model, but there are some warnings:
WARNING - G4Region::G4Region()
Region PMT-Region already existing in store !
*** G4Exception : InvalidSetup
issued by : G4Region::G4Region()
The region has NOT been registered !
*** This is just a warning message.
G4ProcessManager::GetAttribute(): particle[GenericIon]
index out of range
#processes[2] index [-1]
G4ProcessManager::GetAttribute(): particle[GenericIon]
index out of range
#processes[2] index [-1]
What's the meaning of the warnings? if the region isn't registered, why the FastSimulationProcess, PMTOpticalModel have functions on optical photons when they hit on the PMTs? Thank you! |
| Inline Depth: | Outline Depth: | Add message: |
|
to: |