Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer << 3 // * DISCLAIMER * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th << 5 // * The following disclaimer summarizes all the specific disclaimers * 6 // * the Geant4 Collaboration. It is provided << 6 // * of contributors to this software. The specific disclaimers,which * 7 // * conditions of the Geant4 Software License << 7 // * govern, are listed with their locations in: * 8 // * LICENSE and available at http://cern.ch/ << 8 // * http://cern.ch/geant4/license * 9 // * include a list of copyright holders. << 10 // * 9 // * * 11 // * Neither the authors of this software syst 10 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 11 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 12 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 13 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file << 14 // * use. * 16 // * for the full disclaimer and the limitatio << 17 // * 15 // * * 18 // * This code implementation is the result << 16 // * This code implementation is the intellectual property of the * 19 // * technical work of the GEANT4 collaboratio << 17 // * GEANT4 collaboration. * 20 // * By using, copying, modifying or distri << 18 // * By copying, distributing or modifying the Program (or any work * 21 // * any work based on the software) you ag << 19 // * based on the Program) you indicate your acceptance of this * 22 // * use in resulting scientific publicati << 20 // * statement, and all its terms. * 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* 21 // ******************************************************************** 25 // 22 // 26 // G4PVDivisionFactory << 23 // >> 24 // $Id: G4PVDivisionFactory.hh,v 1.1 2004/05/13 14:56:30 gcosmo Exp $ >> 25 // GEANT4 tag $Name: geant4-07-01 $ >> 26 // >> 27 // >> 28 // class G4PVDivisionFactory 27 // 29 // 28 // Class description: 30 // Class description: 29 // 31 // 30 // Implementation of the interfaces for creati << 32 // Implementation of the interfaces for creating volumes divisions 31 // (defined in G4VPVDivisionFactory) for G4PVD 33 // (defined in G4VPVDivisionFactory) for G4PVDivision type. 32 34 33 // Author: Ivana Hrivnacova, 04.05.2004 (Ivan << 35 // Author: Ivana Hrivnacova, 4.5.2004 (Ivana.Hrivnacova@cern.ch) 34 // ------------------------------------------- 36 // ------------------------------------------------------------------------ 35 #ifndef G4PVDIVISION_FACTORY_HH 37 #ifndef G4PVDIVISION_FACTORY_HH 36 #define G4PVDIVISION_FACTORY_HH 38 #define G4PVDIVISION_FACTORY_HH 37 39 38 #include "geomdefs.hh" 40 #include "geomdefs.hh" 39 #include "G4VPVDivisionFactory.hh" 41 #include "G4VPVDivisionFactory.hh" 40 42 41 class G4LogicalVolume; 43 class G4LogicalVolume; 42 44 43 class G4PVDivisionFactory : public G4VPVDivisi 45 class G4PVDivisionFactory : public G4VPVDivisionFactory 44 { 46 { 45 public: << 47 public: // with description 46 48 47 ~G4PVDivisionFactory() override = default; << 49 virtual ~G4PVDivisionFactory(); 48 50 49 G4VPhysicalVolume* CreatePVDivision( << 51 virtual G4VPhysicalVolume* CreatePVDivision( 50 const G4String& p 52 const G4String& pName, 51 G4LogicalVo 53 G4LogicalVolume* pLogical, 52 G4LogicalVo 54 G4LogicalVolume* pMother, 53 const EAxis pAxis 55 const EAxis pAxis, 54 const G4int nRepl 56 const G4int nReplicas, 55 const G4double wi 57 const G4double width, 56 const G4double of << 58 const G4double offset ); 57 // Create division - with number of divi 59 // Create division - with number of divisions and width. 58 60 59 G4VPhysicalVolume* CreatePVDivision( << 61 virtual G4VPhysicalVolume* CreatePVDivision( 60 const G4String& p 62 const G4String& pName, 61 G4LogicalVo 63 G4LogicalVolume* pLogical, 62 G4LogicalVo 64 G4LogicalVolume* pMotherLogical, 63 const EAxis pAxis 65 const EAxis pAxis, 64 const G4int nRepl 66 const G4int nReplicas, 65 const G4double of << 67 const G4double offset ); 66 // Create division - with number of divi 68 // Create division - with number of divisions. 67 69 68 G4VPhysicalVolume* CreatePVDivision( << 70 virtual G4VPhysicalVolume* CreatePVDivision( 69 const G4String& p 71 const G4String& pName, 70 G4LogicalVo 72 G4LogicalVolume* pLogical, 71 G4LogicalVo 73 G4LogicalVolume* pMotherLogical, 72 const EAxis pAxis 74 const EAxis pAxis, 73 const G4double wi 75 const G4double width, 74 const G4double of << 76 const G4double offset ); 75 // Create division - with width. 77 // Create division - with width. 76 78 77 G4VPhysicalVolume* CreatePVDivision( << 79 virtual G4VPhysicalVolume* CreatePVDivision( 78 const G4String& p 80 const G4String& pName, 79 G4LogicalVo 81 G4LogicalVolume* pLogical, 80 G4LogicalVo 82 G4LogicalVolume* pMotherLogical, 81 const G4VPVParame << 83 const G4VPVParameterisation* param); 82 // Create division - with parameterisati 84 // Create division - with parameterisation. 83 85 84 G4bool IsPVDivision(const G4VPhysicalVolum << 86 virtual G4bool IsPVDivision(const G4VPhysicalVolume* pv) const; 85 // Returns true if pv is division. 87 // Returns true if pv is division. 86 88 87 static G4PVDivisionFactory* GetInstance(); 89 static G4PVDivisionFactory* GetInstance(); 88 // Create the unique instance of the sin 90 // Create the unique instance of the singleton. 89 91 90 protected: 92 protected: 91 93 92 G4PVDivisionFactory() = default; << 94 G4PVDivisionFactory(); >> 95 93 }; 96 }; 94 97 95 #endif 98 #endif 96 99