Message: G4Cerenkov run-time warning Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question G4Cerenkov run-time warning 

Forum: Physics List
Date: 14 Jul, 2009
From: <melb>

Hello,

I am in the process of developing a simulation of a liquid-scintillator detector, and am including the Cerenkov process in my PhysicsList. My code compiles with no errors, but when I run my program I get the following message:

    G4Cerenkov::G4Cerenkov constructor
    NOTE: this is now a G4VDiscreteProcess!
    Required change in UserPhysicsList: 
    change: pmanager->AddContinuousProcess(theCerenkovProcess);
    to:     pmanager->AddProcess(theCerenkovProcess);
            pmanager->SetProcessOrdering(theCerenkovProcess,idxPostStep);

The problem is, I am already using the format that this warning tells me to! An excerpt from my code is below.

 void Sci00PhysicsList::ConstructEM()
 {
   theParticleIterator->reset();
   while( (*theParticleIterator)() ){
     G4ParticleDefinition* particle = theParticleIterator->value();
     G4ProcessManager* pmanager = particle->GetProcessManager();
     G4String particleName = particle->GetParticleName(); 

     if (particleName == "opticalphoton") {

< more stuff here ...>

     } else if (particleName == "mu+" || 
  	        particleName == "mu-") {
       G4MultipleScattering* MultipleScattering = new G4MultipleScattering;
       pmanager->AddProcess(MultipleScattering,     -1, 1, 1);
       pmanager->AddProcess(new G4MuIonisation,     -1, 2, 2);
       pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3, 3);
       pmanager->AddProcess(new G4MuPairProduction, -1, 4, 4);
       G4Cerenkov* theCerenkovProcess = new G4Cerenkov();
       pmanager->AddProcess(theCerenkovProcess);
       pmanager->SetProcessOrdering(theCerenkovProcess, idxPostStep); 
       G4Scintillation* Scintillation = new G4Scintillation();
       pmanager->AddProcess( Scintillation ); 
       pmanager->SetProcessOrderingToLast( Scintillation , idxAtRest);
       pmanager->SetProcessOrderingToLast( Scintillation , idxPostStep);

< ... >

Is this message anything to be concerned about? Or do I need to define the Cerenkov process another way?

Thank you, Melanie

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Idea: Re: G4Cerenkov run-time warning   (Vladimir Ivanchenko - 15 Jul, 2009)
(_ Ok: Re: G4Cerenkov run-time warning   (melb - 13 Aug, 2009)
 Add Message Add Message
to: "G4Cerenkov run-time warning"

 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 ]