|Message: Physics Constructor||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I am attempting to use the G4EmDNAPhysicsChemistry.cc physics list builder in Geant4.9.5_p01. I have replaced my PhysicsList.cc file with the G4EmDNAPhysicsChemistry.cc and G4EmDNAPhysicsChemistry.hh and renamed and modified the code to work with my application. I have fixed all errors except one.
When I compile my code I get the following error:
In function ‘int main(int, char**)’: Microdosimetry.cc:45:47: error: no matching function for call to ‘G4RunManager::SetUserInitialization(G4VPhysicsConstructor*&)’ Microdosimetry.cc:45:47: note: candidates are: /home/michael/Geant4_New/geant4.9.5_p01-install/include/Geant4/G4RunManager.hh:266:17: note: void G4RunManager::SetUserInitialization(G4VUserDetectorConstruction*) /home/michael/Geant4_New/geant4.9.5_p01-install/include/Geant4/G4RunManager.hh:266:17: note: no known conversion for argument 1 from ‘G4VPhysicsConstructor*’ to ‘G4VUserDetectorConstruction*’ /home/michael/Geant4_New/geant4.9.5_p01-install/include/Geant4/G4RunManager.hh:268:17: note: void G4RunManager::SetUserInitialization(G4VUserPhysicsList*) /home/michael/Geant4_New/geant4.9.5_p01-install/include/Geant4/G4RunManager.hh:268:17: note: no known conversion for argument 1 from ‘G4VPhysicsConstructor*’ to ‘G4VUserPhysicsList*’ /home/michael/Geant4_New/geant4.9.5_p01-install/include/Geant4/CLHEP/Units/PhysicalConstants.h: At global scope: /home/michael/Geant4_New/geant4.9.5_p01-install/include/Geant4/CLHEP/Units/PhysicalConstants.h:79:21: warning: ‘CLHEP::electron_charge’ defined but not used [-Wunused-variable] /home/michael/Geant4_New/geant4.9.5_p01-install/include/Geant4/CLHEP/Random/Randomize.h:59:12: warning: ‘CLHEP::HepRandomGenActive’ defined but not used [-Wunused-variable] make: *** [/home/michael/g4work/tmp/Linux-g++/Microdosimetry/exe/Microdosimetry.o] Error 1
I think it may have something to do with my Microdosimetry.cc file (main file). The problem may lie with the following lines in my code.
G4VPhysicsConstructor* physics = new PhysicsList; runManager->SetUserInitialization(detector); runManager->SetUserInitialization(physics);
I am building the application under Ubuntu and my code is an adaptation of the Microdosimetry example in the examples/extended directory.
I would appreciate any assistance that you could provide.
|Inline Depth:||Outline Depth:||Add message:|