G4ParameterisationTrd.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id: G4ParameterisationTrd.hh 69784 2013-05-15 09:16:06Z gcosmo $
00028 //
00029 // classes G4ParameterisationTrdX
00030 //         G4ParameterisationTrdY
00031 //         G4ParameterisationTrdZ
00032 //
00033 // Class description:
00034 //
00035 // This class represents the parameterised positioning equivalent to 
00036 // dividing a trapezoid along one of each axis X, Y, Z.
00037 
00038 // History:
00039 // -------
00040 // 09.05.01 - P.Arce, Initial version
00041 // 08.04.04 - I.Hrivnacova, Implemented reflection
00042 // --------------------------------------------------------------------
00043 #ifndef G4ParameterisationTrd_H
00044 #define G4ParameterisationTrd_H 1
00045 
00046 #include <vector>
00047 
00048 #include "G4VDivisionParameterisation.hh"
00049 #include "G4VSolid.hh" 
00050 
00051 class G4VPhysicalVolume;
00052 
00053 // Dummy declarations to get rid of warnings ...
00054 //
00055 class G4Cons;
00056 class G4Box;
00057 class G4Sphere;
00058 class G4Orb;
00059 class G4Torus;
00060 class G4Para;
00061 class G4Hype;
00062 class G4Tubs;
00063 class G4Polycone;
00064 class G4Polyhedra;
00065 
00066 class G4VParameterisationTrd : public G4VDivisionParameterisation
00067 { 
00068   public:  // with description
00069   
00070     G4VParameterisationTrd( EAxis axis, G4int nCopies,
00071                             G4double offset, G4double step,
00072                             G4VSolid* msolid, DivisionType divType );
00073   
00074     virtual ~G4VParameterisationTrd();
00075 
00076   protected:
00077 
00078     G4bool bDivInTrap;
00079 };
00080 
00081 class G4ParameterisationTrdX : public G4VParameterisationTrd
00082 { 
00083   public:  // with description
00084 
00085     G4ParameterisationTrdX( EAxis axis, G4int nCopies,
00086                             G4double width, G4double offset,
00087                             G4VSolid* motherSolid, DivisionType divType );
00088    ~G4ParameterisationTrdX();
00089 
00090     void CheckParametersValidity();
00091 
00092     G4double GetMaxParameter() const;
00093 
00094     void ComputeTransformation(const G4int copyNo,
00095                                      G4VPhysicalVolume* physVol) const;
00096 
00097     void ComputeDimensions(G4Trd& trd, const G4int copyNo,
00098                            const G4VPhysicalVolume* pv) const;
00099 
00100     void ComputeDimensions(G4Trap& trd, const G4int copyNo,
00101                            const G4VPhysicalVolume* pv) const;
00102   
00103     G4VSolid*   ComputeSolid(const G4int, G4VPhysicalVolume *);
00104 
00105 
00106   private:  // Dummy declarations to get rid of warnings ...
00107 
00108     void ComputeDimensions (G4Cons&,const G4int,
00109                             const G4VPhysicalVolume*) const {}
00110     void ComputeDimensions (G4Box&,const G4int,
00111                             const G4VPhysicalVolume*) const {}
00112     void ComputeDimensions (G4Sphere&,const G4int,
00113                             const G4VPhysicalVolume*) const {}
00114     void ComputeDimensions (G4Orb&,const G4int,
00115                             const G4VPhysicalVolume*) const {}
00116     void ComputeDimensions (G4Torus&,const G4int,
00117                             const G4VPhysicalVolume*) const {}
00118     void ComputeDimensions (G4Para&,const G4int,
00119                             const G4VPhysicalVolume*) const {}
00120     void ComputeDimensions (G4Hype&,const G4int,
00121                             const G4VPhysicalVolume*) const {}
00122     void ComputeDimensions (G4Tubs&,const G4int,
00123                             const G4VPhysicalVolume*) const {}
00124     void ComputeDimensions (G4Polycone&,const G4int,
00125                             const G4VPhysicalVolume*) const {}
00126     void ComputeDimensions (G4Polyhedra&,const G4int,
00127                             const G4VPhysicalVolume*) const {}
00128 
00129     void ComputeTrapParams();
00130 };
00131 
00132 
00133 class G4ParameterisationTrdY : public G4VParameterisationTrd
00134 { 
00135   public:  // with description
00136 
00137     G4ParameterisationTrdY( EAxis axis, G4int nCopies,
00138                             G4double width, G4double offset,
00139                             G4VSolid* motherSolid, DivisionType divType );
00140    ~G4ParameterisationTrdY();
00141 
00142     void CheckParametersValidity();
00143 
00144     G4double GetMaxParameter() const;
00145 
00146     void ComputeTransformation(const G4int copyNo,
00147                                      G4VPhysicalVolume *physVol) const;
00148  
00149     void ComputeDimensions(G4Trd& trd, const G4int copyNo,
00150                            const G4VPhysicalVolume* pv) const;
00151 
00152   private:  // Dummy declarations to get rid of warnings ...
00153 
00154     void ComputeDimensions (G4Cons&,const G4int,
00155                             const G4VPhysicalVolume*) const {}
00156     void ComputeDimensions (G4Box&,const G4int,
00157                             const G4VPhysicalVolume*) const {}
00158     void ComputeDimensions (G4Sphere&,const G4int,
00159                             const G4VPhysicalVolume*) const {}
00160     void ComputeDimensions (G4Orb&,const G4int,
00161                             const G4VPhysicalVolume*) const {}
00162     void ComputeDimensions (G4Torus&,const G4int,
00163                             const G4VPhysicalVolume*) const {}
00164     void ComputeDimensions (G4Para&,const G4int,
00165                             const G4VPhysicalVolume*) const {}
00166     void ComputeDimensions (G4Trap&,const G4int,
00167                             const G4VPhysicalVolume*) const {}
00168     void ComputeDimensions (G4Hype&,const G4int,
00169                             const G4VPhysicalVolume*) const {}
00170     void ComputeDimensions (G4Tubs&,const G4int,
00171                             const G4VPhysicalVolume*) const {}
00172     void ComputeDimensions (G4Polycone&,const G4int,
00173                             const G4VPhysicalVolume*) const {}
00174     void ComputeDimensions (G4Polyhedra&,const G4int,
00175                             const G4VPhysicalVolume*) const {}
00176 };
00177 
00178 
00179 class G4ParameterisationTrdZ : public G4VParameterisationTrd
00180 { 
00181   public:  // with description
00182 
00183     G4ParameterisationTrdZ( EAxis axis, G4int nCopies,
00184                             G4double width, G4double offset,
00185                             G4VSolid* motherSolid, DivisionType divType );
00186    ~G4ParameterisationTrdZ();
00187 
00188     G4double GetMaxParameter() const;
00189 
00190     void ComputeTransformation(const G4int copyNo,
00191                                      G4VPhysicalVolume* physVol) const;
00192     void ComputeDimensions(G4Trd& trd, const G4int copyNo,
00193                            const G4VPhysicalVolume* pv) const;
00194 
00195   private:  // Dummy declarations to get rid of warnings ...
00196 
00197     void ComputeDimensions (G4Cons&,const G4int,
00198                             const G4VPhysicalVolume*) const {}
00199     void ComputeDimensions (G4Box&,const G4int,
00200                             const G4VPhysicalVolume*) const {}
00201     void ComputeDimensions (G4Sphere&,const G4int,
00202                             const G4VPhysicalVolume*) const {}
00203     void ComputeDimensions (G4Orb&,const G4int,
00204                             const G4VPhysicalVolume*) const {}
00205     void ComputeDimensions (G4Torus&,const G4int,
00206                             const G4VPhysicalVolume*) const {}
00207     void ComputeDimensions (G4Para&,const G4int,
00208                             const G4VPhysicalVolume*) const {}
00209     void ComputeDimensions (G4Trap&,const G4int,
00210                             const G4VPhysicalVolume*) const {}
00211     void ComputeDimensions (G4Hype&,const G4int,
00212                             const G4VPhysicalVolume*) const {}
00213     void ComputeDimensions (G4Tubs&,const G4int,
00214                             const G4VPhysicalVolume*) const {}
00215     void ComputeDimensions (G4Polycone&,const G4int,
00216                             const G4VPhysicalVolume*) const {}
00217     void ComputeDimensions (G4Polyhedra&,const G4int,
00218                             const G4VPhysicalVolume*) const {}
00219 };
00220 
00221 #endif

Generated on Mon May 27 17:49:15 2013 for Geant4 by  doxygen 1.4.7