// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // #include "LXeWLSSlab.hh" #include "LXeWLSFiber.hh" #include "globals.hh" #include "G4LogicalSkinSurface.hh" #include "G4LogicalBorderSurface.hh" G4LogicalVolume* LXeWLSSlab::ScintSlab_log=NULL; LXeWLSSlab::LXeWLSSlab(G4RotationMatrix *pRot, const G4ThreeVector &tlate, G4LogicalVolume *pMotherLogical, G4bool pMany, G4int pCopyNo, LXeDetectorConstruction* c) :G4PVPlacement(pRot,tlate, new G4LogicalVolume(new G4Box("temp",1,1,1), G4Material::GetMaterial("Vacuum"), "temp",0,0,0), "Slab",pMotherLogical,pMany,pCopyNo),constructor(c) { CopyValues(); if(!ScintSlab_log || updated){ G4double slab_x = scint_x/2.; G4double slab_y = scint_y/2.; G4Box* ScintSlab_box = new G4Box("Slab",slab_x,slab_y,slab_z); ScintSlab_log = new G4LogicalVolume(ScintSlab_box, G4Material::GetMaterial("Polystyrene"), "Slab",0,0,0); G4double spacing = 2*slab_y/nfibers; G4RotationMatrix* rm = new G4RotationMatrix(); rm->rotateY(90*deg); //Place fibers for(G4int i=0;iGetUpdated(); scint_x=constructor->GetScintX(); scint_y=constructor->GetScintY(); scint_z=constructor->GetScintZ(); nfibers=constructor->GetNFibers(); slab_z=constructor->GetSlabZ(); }