eyvaz94
November 24, 2021, 12:36pm
1
Hello, everyone.
How to add density of material:
Error: no matching function for call to ‘createMaterial(const char [34], double)’
G4Material* material = G4NCrystal::createMaterial (“ncplugin-SANSND_nanodiamond.ncmat”, 0.658 g/cm3);
Best regards,
Eyvaz
bmorgan
November 24, 2021, 1:38pm
2
This is a call to an API of the NCrystal library (https://github.com/mctools/ncrystal ) which is not part of Geant4. It’s probably best to address the question to their Issues board .
Geant4’s own API for materials is covered in the Detector/Materials section of the Application Developer Guide
eyvaz94
November 24, 2021, 11:27pm
3
Okay, thank you for your reply!
system
Closed
February 22, 2022, 11:28pm
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.