Message: Re: Bearden Data Set for Deexcitation Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Bearden Data Set for Deexcitation 

Forum: Physics List
Re: Question Bearden Data Set for Deexcitation (Richard Foster)
Re: Idea Re: Bearden Data Set for Deexcitation (Vladimir Ivanchenko)
Date: 02 Nov, 2017
From: Richard Foster <Richard Foster>

OK, I stopped trying to set the Bearden directory from inside my program.

But, when I try from the UI:

Idle> /process/em/fluo true
Idle> /process/em/fluoBearden true
illegal application state -- command refused
Idle> 

If I comment out the runManager->Initialize()  in my main program
and do the following before /run/initialize, I get

PreInit> /process/em/fluo true       
command </process/em/fluo true> not found
PreInit> /process/em/fluoBearden true
command </process/em/fluoBearden true> not found
PreInit>

I think I am missing something, but not sure what.


Below is my main()
*******************

int main(int argc,char** argv) {
 
  //choose the Random engine
  G4Random::setTheEngine(new CLHEP::RanecuEngine);
  
  G4VSteppingVerbose::SetInstance(new SteppingVerbose);  

  G4RunManager* runManager = new G4RunManager;
  // set mandatory initialization classes
  runManager->SetUserInitialization(new DetectorConstruction);
  runManager->SetUserInitialization(new PhysicsList);
    
  // set user action classes
  runManager->SetUserInitialization(new ActionInitialization());
  //Initialize G4 kernel
  //runManager->Initialize();
    
  // get the pointer to the User Interface manager 
    G4UImanager* UI = G4UImanager::GetUIpointer();  

  if (argc!=1)   // batch mode  
    { 
     G4String command = "/control/execute ";
     G4String fileName = argv[1];
     UI->ApplyCommand(command+fileName);  
    }
    
  else           // define visualization and UI terminal for interactive mode 
    { 
#ifdef G4VIS_USE
     G4VisManager* visManager = new G4VisExecutive;
     visManager->Initialize();
#endif
     
#ifdef G4UI_USE
      G4UIExecutive * ui = new G4UIExecutive(argc,argv);      
      ui->SessionStart();
      delete ui;
#endif
     
#ifdef G4VIS_USE
     delete visManager;
#endif     
    }

  // job termination
  //
  delete runManager;

  return 0;
}

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

1 Idea: Re: Bearden Data Set for Deexcitation   (Vladimir Ivanchenko - 06 Nov, 2017)
(_ Sad: Re: Bearden Data Set for Deexcitation   (Richard Foster - 14 Dec, 2017)
 Add Message Add Message
to: "Re: Bearden Data Set for Deexcitation"

 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 ]