| Message: Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0 | Not Logged In (login) |
|
Hello Mr. Allison, Thank you very much. I have another question about FastSimulation.I post my message on the forum "FastSimulation", but there is no answer till now. G4VFastSimulation is also change its arguments in Geant4.8.0, from G4LogicalVolume to G4Region. After I change the argument to G4Region, there are some warnings, I don't know why. 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? And why we change the argument of G4VFastSimulation from G4LogicalVolume to G4Region? Because we can add several RoogLogicalVolume to one Region? Thank you again. |
| Inline Depth: | Outline Depth: | Add message: |
|
to: |