Command not found: "/BasicBrem/det/setAnodeMat Tungsten"

Hi everyone,

as i’m trying simulate x-rays and output the spectrum depending on source and filters i’m interested in making this attached macro file work. I’m working on the TestEm14 example and already included the necessary /score commands by adding the following line in my main():

G4ScoringManager::GetScoringManager();

However, im not able to make the /BasicBrem command work. I’ve gone through the User’s Guide: For Application Developers but could not find a solution for my problem. Does someone know a simple way as for how to activate the desired commands?