Message: Re: How to Change a Absober in TestEm1? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: How to Change a Absober in TestEm1? 

Forum: Run Management
Re: Question How to Change a Absober in TestEm1? (Hyewon Moon)
Date: 24 Jul, 2018
From: Hyewon Moon <Hyewon Moon>

Thank you for your advice. I solved G4Element problem. However, errors are still occurring like this.

Scanning dependencies of target TestEm1
[  5%] Building CXX object CMakeFiles/TestEm1.dir/src/DetectorConstruction.cc.o
/home/won0625/examples/extended/electromagnetic/TestEm1/src/DetectorConstruction.cc: In member function ‘void DetectorConstruction::DefineMaterials()’:
/home/won0625/examples/extended/electromagnetic/TestEm1/src/DetectorConstruction.cc:102:4: error: expected initializer before ‘G4Material’
    G4Material* GaN = new G4Material("GaN", density= 6.15*g/cm3, ncomponents=2);
    ^
/home/won0625/examples/extended/electromagnetic/TestEm1/src/DetectorConstruction.cc:103:4: error: ‘GaN’ was not declared in this scope
    GaN->AddElement(Ga, natoms=1);
    ^
make[2]: *** [CMakeFiles/TestEm1.dir/src/DetectorConstruction.cc.o] error 1
make[1]: *** [CMakeFiles/TestEm1.dir/all] error 2
make: *** [all] error 2

 Add Message Add Message
to: "Re: How to Change a Absober in TestEm1?"

 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 ]