Message: Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0 

Keywords: G4VVisPrim G4VVisManager
Forum: (Graphical) User Interfaces
Re: None G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0
Re: None Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0 (John Allison)
Re: None Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0
Re: None Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0 (John Allison)
Date: 31 Mar, 2006
From: <zhongwl@ihep.ac.cn>

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:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]