9 #include <boost/test/unit_test.hpp>
16 #include "G4LogicalVolume.hh"
17 #include "G4PVPlacement.hh"
18 #include "G4RotationMatrix.hh"
19 #include "G4ThreeVector.hh"
23 BOOST_AUTO_TEST_SUITE(Geant4Plugin)
26 G4Box* worldS =
new G4Box(
"world", 100, 100, 100);
28 G4LogicalVolume* worldLV =
new G4LogicalVolume(worldS,
nullptr,
"World");
31 nullptr, G4ThreeVector(), worldLV,
"World",
nullptr,
false, 0,
true);
33 G4Box* boxS =
new G4Box(
"box", 10, 10, 10);
34 G4LogicalVolume* boxLV =
new G4LogicalVolume(boxS,
nullptr,
"World");
36 "Box", worldLV,
false, 0,
true);
39 BOOST_CHECK(allSelector.select(*worldPV));
40 BOOST_CHECK(allSelector.select(*boxPV));
44 BOOST_CHECK(!nameSelector.select(*worldPV));
45 BOOST_CHECK(nameSelector.select(*boxPV));
49 BOOST_CHECK(!nameSelectorE.select(*worldPV));
50 BOOST_CHECK(!nameSelectorE.select(*boxPV));
53 BOOST_AUTO_TEST_SUITE_END()