G4ParameterisationPara.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: G4ParameterisationPara.hh 69784 2013-05-15 09:16:06Z gcosmo $
00028 // 
00029 // classes G4ParameterisationParaX,
00030 //         G4ParameterisationParaY,
00031 //         G4ParameterisationParaZ
00032 //
00033 // Class description:
00034 //
00035 // These classes represent the parameterised positioning equivalent to 
00036 // dividing a G4Para 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 G4ParameterisationPara_H
00044 #define G4ParameterisationPara_H 1
00045 
00046 #include "G4VDivisionParameterisation.hh"
00047 
00048 class G4VSolid;
00049 class G4VPhysicalVolume;
00050 
00051 // Dummy declarations to get rid of warnings ...
00052 //
00053 class G4Cons;
00054 class G4Cons;
00055 class G4Sphere;
00056 class G4Orb;
00057 class G4Torus;
00058 class G4Trd;
00059 class G4Hype;
00060 class G4Tubs;
00061 class G4Polycone;
00062 class G4Polyhedra;
00063 
00064 class G4VParameterisationPara : public G4VDivisionParameterisation
00065 { 
00066   public:  // with description
00067   
00068     G4VParameterisationPara( EAxis axis, G4int nCopies,
00069                             G4double offset, G4double step,
00070                             G4VSolid* msolid, DivisionType divType );
00071   
00072     virtual ~G4VParameterisationPara();
00073 };
00074 
00075 class G4ParameterisationParaX : public G4VParameterisationPara
00076 { 
00077   public:  // with description
00078 
00079     G4ParameterisationParaX( EAxis axis, G4int nCopies,
00080                              G4double offset, G4double step,
00081                              G4VSolid* msolid, DivisionType divType );
00082    ~G4ParameterisationParaX();
00083 
00084     G4double GetMaxParameter() const;
00085 
00086     void ComputeTransformation( const G4int copyNo,
00087                                       G4VPhysicalVolume* physVol ) const;
00088     void ComputeDimensions(G4Para& para, const G4int copyNo,
00089                            const G4VPhysicalVolume* pv) const;
00090 
00091   
00092   private:  // Dummy declarations to get rid of warnings ...
00093 
00094     void ComputeDimensions (G4Cons&,const G4int,
00095                             const G4VPhysicalVolume*) const {}
00096     void ComputeDimensions (G4Box&,const G4int,
00097                             const G4VPhysicalVolume*) const {}
00098     void ComputeDimensions (G4Sphere&,const G4int,
00099                             const G4VPhysicalVolume*) const {}
00100     void ComputeDimensions (G4Orb&,const G4int,
00101                             const G4VPhysicalVolume*) const {}
00102     void ComputeDimensions (G4Torus&,const G4int,
00103                             const G4VPhysicalVolume*) const {}
00104     void ComputeDimensions (G4Trd&,const G4int,
00105                             const G4VPhysicalVolume*) const {}
00106     void ComputeDimensions (G4Trap&,const G4int,
00107                             const G4VPhysicalVolume*) const {}
00108     void ComputeDimensions (G4Hype&,const G4int,
00109                             const G4VPhysicalVolume*) const {}
00110     void ComputeDimensions (G4Tubs&,const G4int,
00111                             const G4VPhysicalVolume*) const {}
00112     void ComputeDimensions (G4Polycone&,const G4int,
00113                             const G4VPhysicalVolume*) const {}
00114     void ComputeDimensions (G4Polyhedra&,const G4int,
00115                             const G4VPhysicalVolume*) const {}
00116 };
00117 
00118 
00119 class G4ParameterisationParaY : public G4VParameterisationPara
00120 { 
00121   public:  // with description
00122 
00123     G4ParameterisationParaY( EAxis axis, G4int nCopies,
00124                              G4double offset, G4double step,
00125                              G4VSolid* msolid, DivisionType divType );
00126    ~G4ParameterisationParaY();
00127   
00128     G4double GetMaxParameter() const;
00129 
00130     void ComputeTransformation( const G4int copyNo,
00131                                       G4VPhysicalVolume* physVol ) const;
00132     void ComputeDimensions(G4Para& para, const G4int copyNo,
00133                            const G4VPhysicalVolume* pv) const;
00134 
00135   
00136   private:  // Dummy declarations to get rid of warnings ...
00137 
00138     void ComputeDimensions (G4Cons&,const G4int,
00139                             const G4VPhysicalVolume*) const {}
00140     void ComputeDimensions (G4Box&,const G4int,
00141                             const G4VPhysicalVolume*) const {}
00142     void ComputeDimensions (G4Sphere&,const G4int,
00143                             const G4VPhysicalVolume*) const {}
00144     void ComputeDimensions (G4Orb&,const G4int,
00145                             const G4VPhysicalVolume*) const {}
00146     void ComputeDimensions (G4Torus&,const G4int,
00147                             const G4VPhysicalVolume*) const {}
00148     void ComputeDimensions (G4Trd&,const G4int,
00149                             const G4VPhysicalVolume*) const {}
00150     void ComputeDimensions (G4Trap&,const G4int,
00151                             const G4VPhysicalVolume*) const {}
00152     void ComputeDimensions (G4Hype&,const G4int,
00153                             const G4VPhysicalVolume*) const {}
00154     void ComputeDimensions (G4Tubs&,const G4int,
00155                             const G4VPhysicalVolume*) const {}
00156     void ComputeDimensions (G4Polycone&,const G4int,
00157                             const G4VPhysicalVolume*) const {}
00158     void ComputeDimensions (G4Polyhedra&,const G4int,
00159                             const G4VPhysicalVolume*) const {}
00160 };
00161 
00162 
00163 class G4ParameterisationParaZ : public G4VParameterisationPara
00164 { 
00165   public:  // with description
00166 
00167     G4ParameterisationParaZ( EAxis axis, G4int nCopies,
00168                              G4double offset, G4double step,
00169                              G4VSolid* msolid, DivisionType divType );
00170    ~G4ParameterisationParaZ();
00171 
00172     G4double GetMaxParameter() const;
00173 
00174     void ComputeTransformation( const G4int copyNo,
00175                                       G4VPhysicalVolume* physVol ) const;
00176     void ComputeDimensions(G4Para& para, const G4int copyNo,
00177                            const G4VPhysicalVolume* pv) const;
00178 
00179   
00180   private:  // Dummy declarations to get rid of warnings ...
00181 
00182     void ComputeDimensions (G4Cons&,const G4int,
00183                             const G4VPhysicalVolume*) const {}
00184     void ComputeDimensions (G4Box&,const G4int,
00185                             const G4VPhysicalVolume*) const {}
00186     void ComputeDimensions (G4Sphere&,const G4int,
00187                             const G4VPhysicalVolume*) const {}
00188     void ComputeDimensions (G4Orb&,const G4int,
00189                             const G4VPhysicalVolume*) const {}
00190     void ComputeDimensions (G4Torus&,const G4int,
00191                             const G4VPhysicalVolume*) const {}
00192     void ComputeDimensions (G4Trd&,const G4int,
00193                             const G4VPhysicalVolume*) const {}
00194     void ComputeDimensions (G4Trap&,const G4int,
00195                             const G4VPhysicalVolume*) const {}
00196     void ComputeDimensions (G4Hype&,const G4int,
00197                             const G4VPhysicalVolume*) const {}
00198     void ComputeDimensions (G4Tubs&,const G4int,
00199                             const G4VPhysicalVolume*) const {}
00200     void ComputeDimensions (G4Polycone&,const G4int,
00201                             const G4VPhysicalVolume*) const {}
00202     void ComputeDimensions (G4Polyhedra&,const G4int,
00203                             const G4VPhysicalVolume*) const {}
00204 };
00205 
00206 #endif

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