Hi @anna, thank you for your reply. Following your reply I wrote:
/**************************** START DEFINE 2 NEW CYLINDRICAL BOXES ************************/
G4Box* solidEnv =
new G4Box("Envelope", //its name
0.5*env_sizeXY, 0.5*env_sizeXY, 0.5*env_sizeZ); //its size*/
G4Tubs* solidEnv =
new G4Tubs("Envelope", //its name
pRMin, pRMax, pDz, pSPhi, pDPhi); //its size*/
G4Tubs* solidEnv2 =
new G4Tubs("Envelope2", //its name
pRMin, pRMax, pDz, pSPhi, pDPhi); //its size*/
G4LogicalVolume* logicEnv =
new G4LogicalVolume(solidEnv, //its solid
env_mat, //its material
"Envelope"); //its name
G4LogicalVolume* logicEnv2 =
new G4LogicalVolume(solidEnv, //its solid
env_mat, //its material
"Envelope2"); //its name
new G4PVPlacement(0, //no rotation
G4ThreeVector(), //at (0,0,0)
logicEnv, //its logical volume
"Envelope", //its name
logicWorld, //its mother volume
false, //no boolean operation
0, //copy number
checkOverlaps); //overlaps checking
new G4PVPlacement(0, //no rotation
G4ThreeVector(2,0,0), //at (0,0,0)
logicEnv2, //its logical volume
"Envelope2", //its name
logicWorld, //its mother volume
false, //no boolean operation
0, //copy number
checkOverlaps); //overlaps checking
/**************************** END DEFINE 2 NEW CYLINDRICAL BOXES ************************/
I didnt’ get errors …but I would like sure that I really simulated 2 targets. I checked other .cc files, but it doesn’t look like to me that I’ve to modify other files. Do you think that I got what I need (2 targets shifted 2 cm )?
In attachment my B1DetectorConstrucion.cc file
B1DetectorConstruction.cc (9.7 KB)