Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: updates for geant4 v11 #5

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion g4sipm/src/OpticalPhysicsList.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@

OpticalPhysicsList::OpticalPhysicsList(int verbose, std::vector<G4OpticalProcessIndex> deactivate) {
G4OpticalPhysics* phys = new G4OpticalPhysics(verbose);
auto params = G4OpticalParameters::Instance();
// Deactivate processes
for (std::vector<G4OpticalProcessIndex>::iterator it = deactivate.begin(); it != deactivate.end(); it++) {
phys->Configure(*it, false);
params->SetProcessActivation(G4OpticalProcessName(*it), false);
}
//
RegisterPhysics(phys);
Expand Down
2 changes: 1 addition & 1 deletion g4sipm/src/housing/G4SipmHousing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ G4LogicalVolume* G4SipmHousing::build() {
// Create container.
G4Box* container = new G4Box("container", getDx() / 2., getDy() / 2., getDz() / 2.);
G4LogicalVolume * containerLv = new G4LogicalVolume(container, containerMaterial, "containerLv");
containerLv->SetVisAttributes(G4VisAttributes::Invisible);
containerLv->SetVisAttributes(G4VisAttributes::GetInvisible());
// Create the individual parts of the housing.
G4LogicalVolume* packageLv = buildPackage(containerLv);
buildWindow(packageLv);
Expand Down
2 changes: 1 addition & 1 deletion sample/src/DetectorConstruction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ G4VPhysicalVolume* DetectorConstruction::Construct() {
G4Box* world = new G4Box("world", worldDimension.x(), worldDimension.y(), worldDimension.z());
G4LogicalVolume* worldLv = new G4LogicalVolume(world, MaterialFactory::getInstance()->getAir(), "worldLv", NULL,
NULL, NULL);
worldLv->SetVisAttributes(G4VisAttributes::Invisible);
worldLv->SetVisAttributes(G4VisAttributes::GetInvisible());
G4VPhysicalVolume* worldPv = new G4PVPlacement(NULL, G4ThreeVector(), worldLv, "worldPv", NULL, false, 0);
// Set the entrance window surface of the SiPM to (0,0,0).
housing->setPosition(G4ThreeVector(0., 0., -housing->getDz() / 2.));
Expand Down