Using Boolean Solids to subtract a conical geometry from another cone

Hello, I am trying to subtract a smaller cone shape from the original cone shape of B1.
I changed the threevector coordinates and changed a few parameters as well.
Unfortunately, I keep getting at least two main errors;

E:\Geant4\Examples\B1\src\B1DetectorConstruction.cc(213,49): error C2661: ‘G4Cons::G4Cons’: no overloaded function takes 4 arguments [E:\Geant4\Examples\B1\build\exampleB1.vcxproj]

E:\Geant4\Examples\B1\src\B1DetectorConstruction.cc(214,55): error C2661: ‘G4Cons::G4Cons’: no overloaded function takes 4 arguments [E:\Geant4\Examples\B1\build\exampleB1.vcxproj]
Please, could someone help me out.

this is the way to use G4Cons:

G4Cons (const G4String &pName, G4double pRmin1, G4double pRmax1, G4double pRmin2, G4double pRmax2, G4double pDz, G4double pSPhi, G4double pDPhi)

the error message tells you that G4Cons does not take 4 arguments, but a different number (8).

Thanks a lot, Weller.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.