1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // |
---|
27 | // $Id: G4VPVDivisionFactory.hh,v 1.2 2006/06/29 18:32:31 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: HEAD $ |
---|
29 | // |
---|
30 | // |
---|
31 | // class G4VPVDivisionFactory |
---|
32 | // |
---|
33 | // Class description: |
---|
34 | // |
---|
35 | // Abstract factory that defines interfaces for creating |
---|
36 | // volumes divisions. |
---|
37 | |
---|
38 | // Author: Ivana Hrivnacova, 4.5.2004 (Ivana.Hrivnacova@cern.ch) |
---|
39 | // ------------------------------------------------------------------------ |
---|
40 | #ifndef G4VPVDIVISION_FACTORY_HH |
---|
41 | #define G4VPVDIVISION_FACTORY_HH |
---|
42 | |
---|
43 | #include "geomdefs.hh" |
---|
44 | |
---|
45 | class G4LogicalVolume; |
---|
46 | class G4VPhysicalVolume; |
---|
47 | class G4VPVParameterisation; |
---|
48 | |
---|
49 | class G4VPVDivisionFactory |
---|
50 | { |
---|
51 | public: // with description |
---|
52 | |
---|
53 | virtual ~G4VPVDivisionFactory(); |
---|
54 | |
---|
55 | static G4VPVDivisionFactory* Instance(); |
---|
56 | |
---|
57 | virtual G4VPhysicalVolume* CreatePVDivision( |
---|
58 | const G4String& pName, |
---|
59 | G4LogicalVolume* pLogical, |
---|
60 | G4LogicalVolume* pMother, |
---|
61 | const EAxis pAxis, |
---|
62 | const G4int nReplicas, |
---|
63 | const G4double width, |
---|
64 | const G4double offset ) = 0; |
---|
65 | // Create division - with number of divisions and width. |
---|
66 | |
---|
67 | virtual G4VPhysicalVolume* CreatePVDivision( |
---|
68 | const G4String& pName, |
---|
69 | G4LogicalVolume* pLogical, |
---|
70 | G4LogicalVolume* pMotherLogical, |
---|
71 | const EAxis pAxis, |
---|
72 | const G4int nReplicas, |
---|
73 | const G4double offset ) = 0; |
---|
74 | // Create division - with number of divisions. |
---|
75 | |
---|
76 | virtual G4VPhysicalVolume* CreatePVDivision( |
---|
77 | const G4String& pName, |
---|
78 | G4LogicalVolume* pLogical, |
---|
79 | G4LogicalVolume* pMotherLogical, |
---|
80 | const EAxis pAxis, |
---|
81 | const G4double width, |
---|
82 | const G4double offset ) = 0; |
---|
83 | // Create division - with width. |
---|
84 | |
---|
85 | virtual G4VPhysicalVolume* CreatePVDivision( |
---|
86 | const G4String& pName, |
---|
87 | G4LogicalVolume* pLogical, |
---|
88 | G4LogicalVolume* pMotherLogical, |
---|
89 | const G4VPVParameterisation* param) = 0; |
---|
90 | // Create division - with parameterisation. |
---|
91 | |
---|
92 | virtual G4bool IsPVDivision(const G4VPhysicalVolume* pv) const = 0; |
---|
93 | // Returns true if pv is division. |
---|
94 | |
---|
95 | protected: |
---|
96 | |
---|
97 | G4VPVDivisionFactory(); |
---|
98 | |
---|
99 | protected: |
---|
100 | |
---|
101 | static G4VPVDivisionFactory* fgInstance; |
---|
102 | |
---|
103 | }; |
---|
104 | |
---|
105 | #endif |
---|