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 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /geometry/divisions/include/G4ParameterisationPolyhedra.hh (Version 11.3.0) and /geometry/divisions/include/G4ParameterisationPolyhedra.hh (Version 4.0.p2)


  1 //                                                  1 
  2 // *******************************************    
  3 // * License and Disclaimer                       
  4 // *                                              
  5 // * The  Geant4 software  is  copyright of th    
  6 // * the Geant4 Collaboration.  It is provided    
  7 // * conditions of the Geant4 Software License    
  8 // * LICENSE and available at  http://cern.ch/    
  9 // * include a list of copyright holders.         
 10 // *                                              
 11 // * Neither the authors of this software syst    
 12 // * institutes,nor the agencies providing fin    
 13 // * work  make  any representation or  warran    
 14 // * regarding  this  software system or assum    
 15 // * use.  Please see the license in the file     
 16 // * for the full disclaimer and the limitatio    
 17 // *                                              
 18 // * This  code  implementation is the result     
 19 // * technical work of the GEANT4 collaboratio    
 20 // * By using,  copying,  modifying or  distri    
 21 // * any work based  on the software)  you  ag    
 22 // * use  in  resulting  scientific  publicati    
 23 // * acceptance of all terms of the Geant4 Sof    
 24 // *******************************************    
 25 //                                                
 26 // G4ParameterisationPolyhedra[Rho/Phi/Z]         
 27 //                                                
 28 // Class description:                             
 29 //                                                
 30 // These classes represent the parameterised p    
 31 // dividing a G4Polyhedra along one of each ax    
 32                                                   
 33 // 09.05.01 - P.Arce, Initial version             
 34 // 08.04.04 - I.Hrivnacova, Implemented reflec    
 35 //--------------------------------------------    
 36 #ifndef G4PARAMETERISATIONPOLYHEDRA_HH            
 37 #define G4PARAMETERISATIONPOLYHEDRA_HH 1          
 38                                                   
 39 #include "G4VDivisionParameterisation.hh"         
 40 #include "G4Polyhedra.hh"                         
 41                                                   
 42 class G4VPhysicalVolume;                          
 43                                                   
 44 // Dummy declarations to get rid of warnings .    
 45 //                                                
 46 class G4Trd;                                      
 47 class G4Trap;                                     
 48 class G4Cons;                                     
 49 class G4Sphere;                                   
 50 class G4Orb;                                      
 51 class G4Ellipsoid;                                
 52 class G4Torus;                                    
 53 class G4Para;                                     
 54 class G4Hype;                                     
 55 class G4Tubs;                                     
 56 class G4Polycone;                                 
 57                                                   
 58 class G4VParameterisationPolyhedra : public G4    
 59 {                                                 
 60   public:  // with description                    
 61                                                   
 62     G4VParameterisationPolyhedra( EAxis axis,     
 63                             G4double offset, G    
 64                             G4VSolid* msolid,     
 65                                                   
 66     ~G4VParameterisationPolyhedra() override;     
 67                                                   
 68   private:                                        
 69                                                   
 70     G4double ConvertRadiusFactor(const G4Polyh    
 71       // Converts radius of the sides to radiu    
 72       // r_corners = r_sides/factor               
 73 };                                                
 74                                                   
 75 //--------------------------------------------    
 76 // Class G4ParameterisationPolyhedraRho           
 77 //--------------------------------------------    
 78                                                   
 79 class G4ParameterisationPolyhedraRho : public     
 80 {                                                 
 81   public:  // with description                    
 82                                                   
 83     G4ParameterisationPolyhedraRho( EAxis axis    
 84                                     G4double o    
 85                                     G4VSolid*     
 86                                     DivisionTy    
 87    ~G4ParameterisationPolyhedraRho() override;    
 88                                                   
 89     void CheckParametersValidity() override;      
 90                                                   
 91     G4double GetMaxParameter() const override;    
 92                                                   
 93     void ComputeTransformation( const G4int co    
 94                                       G4VPhysi    
 95     void ComputeDimensions( G4Polyhedra& phedr    
 96                             const G4VPhysicalV    
 97                                                   
 98   private:  // Dummy declarations to get rid o    
 99                                                   
100     void ComputeDimensions (G4Trd&,const G4int    
101                             const G4VPhysicalV    
102     void ComputeDimensions (G4Trap&,const G4in    
103                             const G4VPhysicalV    
104     void ComputeDimensions (G4Box&,const G4int    
105                             const G4VPhysicalV    
106     void ComputeDimensions (G4Sphere&,const G4    
107                             const G4VPhysicalV    
108     void ComputeDimensions (G4Orb&,const G4int    
109                             const G4VPhysicalV    
110     void ComputeDimensions (G4Ellipsoid&,const    
111                             const G4VPhysicalV    
112     void ComputeDimensions (G4Torus&,const G4i    
113                             const G4VPhysicalV    
114     void ComputeDimensions (G4Para&,const G4in    
115                             const G4VPhysicalV    
116     void ComputeDimensions (G4Hype&,const G4in    
117                             const G4VPhysicalV    
118     void ComputeDimensions (G4Tubs&,const G4in    
119                             const G4VPhysicalV    
120     void ComputeDimensions (G4Cons&,const G4in    
121                             const G4VPhysicalV    
122     void ComputeDimensions (G4Polycone&,const     
123                             const G4VPhysicalV    
124 };                                                
125                                                   
126 //--------------------------------------------    
127 // Class G4ParameterisationPolyhedraPhi           
128 //--------------------------------------------    
129                                                   
130 class G4ParameterisationPolyhedraPhi : public     
131 {                                                 
132   public:  // with description                    
133                                                   
134     G4ParameterisationPolyhedraPhi( EAxis axis    
135                                    G4double of    
136                                    G4VSolid* m    
137                                    DivisionTyp    
138    ~G4ParameterisationPolyhedraPhi() override;    
139                                                   
140     void CheckParametersValidity() override;      
141                                                   
142     G4double GetMaxParameter() const override;    
143                                                   
144     void ComputeTransformation( const G4int co    
145                                       G4VPhysi    
146     void ComputeDimensions( G4Polyhedra& phedr    
147                             const G4VPhysicalV    
148                                                   
149   private:  // Dummy declarations to get rid o    
150                                                   
151     void ComputeDimensions (G4Trd&,const G4int    
152                             const G4VPhysicalV    
153     void ComputeDimensions (G4Trap&,const G4in    
154                             const G4VPhysicalV    
155     void ComputeDimensions (G4Box&,const G4int    
156                             const G4VPhysicalV    
157     void ComputeDimensions (G4Sphere&,const G4    
158                             const G4VPhysicalV    
159     void ComputeDimensions (G4Orb&,const G4int    
160                             const G4VPhysicalV    
161     void ComputeDimensions (G4Ellipsoid&,const    
162                             const G4VPhysicalV    
163     void ComputeDimensions (G4Torus&,const G4i    
164                             const G4VPhysicalV    
165     void ComputeDimensions (G4Para&,const G4in    
166                             const G4VPhysicalV    
167     void ComputeDimensions (G4Hype&,const G4in    
168                             const G4VPhysicalV    
169     void ComputeDimensions (G4Tubs&,const G4in    
170                             const G4VPhysicalV    
171     void ComputeDimensions (G4Cons&,const G4in    
172                             const G4VPhysicalV    
173     void ComputeDimensions (G4Polycone&,const     
174                             const G4VPhysicalV    
175 };                                                
176                                                   
177 //--------------------------------------------    
178 // Class G4ParameterisationPolyhedraZ             
179 //--------------------------------------------    
180                                                   
181 class G4ParameterisationPolyhedraZ : public G4    
182 {                                                 
183   public:  // with description                    
184                                                   
185     G4ParameterisationPolyhedraZ( EAxis axis,     
186                                   G4double off    
187                                   G4VSolid* mo    
188                                   DivisionType    
189    ~G4ParameterisationPolyhedraZ() override;      
190                                                   
191     void CheckParametersValidity() override;      
192                                                   
193     G4double GetMaxParameter() const override;    
194                                                   
195     void ComputeTransformation( const G4int co    
196                                       G4VPhysi    
197     void ComputeDimensions( G4Polyhedra& phedr    
198                             const G4VPhysicalV    
199                                                   
200   private:                                        
201                                                   
202     G4double GetR(G4double z, G4double z1, G4d    
203                   G4double z2, G4double r2) co    
204     G4double GetRmin(G4double z, G4int nsegmen    
205     G4double GetRmax(G4double z, G4int nsegmen    
206                                                   
207     // Dummy declarations to get rid of warnin    
208     void ComputeDimensions (G4Trd&,const G4int    
209                             const G4VPhysicalV    
210     void ComputeDimensions (G4Trap&,const G4in    
211                             const G4VPhysicalV    
212     void ComputeDimensions (G4Box&,const G4int    
213                             const G4VPhysicalV    
214     void ComputeDimensions (G4Sphere&,const G4    
215                             const G4VPhysicalV    
216     void ComputeDimensions (G4Orb&,const G4int    
217                             const G4VPhysicalV    
218     void ComputeDimensions (G4Ellipsoid&,const    
219                             const G4VPhysicalV    
220     void ComputeDimensions (G4Torus&,const G4i    
221                             const G4VPhysicalV    
222     void ComputeDimensions (G4Para&,const G4in    
223                             const G4VPhysicalV    
224     void ComputeDimensions (G4Hype&,const G4in    
225                             const G4VPhysicalV    
226     void ComputeDimensions (G4Tubs&,const G4in    
227                             const G4VPhysicalV    
228     void ComputeDimensions (G4Cons&,const G4in    
229                             const G4VPhysicalV    
230     void ComputeDimensions (G4Polycone&,const     
231                             const G4VPhysicalV    
232   private:                                        
233                                                   
234     G4int fNSegment = 0;                          
235     G4PolyhedraHistorical* fOrigParamMother =     
236 };                                                
237                                                   
238 #endif                                            
239