Message: Proper Physics List for Multiple Scoring Worlds Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Proper Physics List for Multiple Scoring Worlds 

Forum: Physics List
Date: 21 Jul, 2016
From: Joseph DeCunha <Joseph DeCunha>

Hi there -- I'm currently working with multiple scoring worlds (no physical interaction with the mass geometry) in my Geant program. I've registered both of my parallel worlds with my physics list and the program works as intended, but I get the exception:

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : ProcMan114
      issued by : G4ProcessManager::SetProcessOrderingToLast()
Set Ordering Last is invoked twice for scoringWorld2Proc to B+
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

I get this exception dozens of times for each type of particle "B+, B-, GenericIon" and so on.

The relevant code in my physics list currently is:

G4ParallelWorldProcess* ScoringWorldProcess = new G4ParallelWorldProcess("scoringWorldProc"); ScoringWorldProcess->SetParallelWorld("ScoringWorld");

G4ParallelWorldProcess* ScoringWorld2Process = new G4ParallelWorldProcess("scoringWorld2Proc"); ScoringWorld2Process->SetParallelWorld("ScoringWorld2");


  while ((*theParticleIterator)()) 
   G4ParticleDefinition* particle = theParticleIterator->value();
   G4ProcessManager* pmanager = particle->GetProcessManager();

   pmanager->SetProcessOrderingToLast(ScoringWorldProcess, idxAtRest);
   pmanager->SetProcessOrdering(ScoringWorldProcess, idxAlongStep, 1);
   pmanager->SetProcessOrderingToLast(ScoringWorldProcess, idxPostStep);

   pmanager->SetProcessOrderingToLast(ScoringWorld2Process, idxAtRest);
   pmanager->SetProcessOrdering(ScoringWorld2Process, idxAlongStep, 1);
   pmanager->SetProcessOrderingToLast(ScoringWorld2Process, idxPostStep);


I was wondering what I'm doing improperly and how I might be able to modify the code so the exception is no longer raised.

All the best, and thanks in advance


 Add Message Add Message
to: "Proper Physics List for Multiple Scoring Worlds"

 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 ]