G4tgrPlaceParameterisation.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: G4tgrPlaceParameterisation.hh 69803 2013-05-15 15:24:50Z gcosmo $
00028 //
00029 //
00030 // class G4tgrPlaceParameterisation
00031 //
00032 // Class description:
00033 //
00034 // Class to descripe the positioning of a G4tgrVolume inside another
00035 // G4tgrVolume as a parameterised volume. Several types are possible:
00036 // - Parameterisation of the position and rotation for each copy
00037 // - Parameterisation also of the dimensions
00038 // - Parameterisation of the solid type
00039 // Data is just stored in this class, without any calculation of the
00040 // positions of each copy 
00041 // :POS_PARAM "volu_name" copyNo "parent_name" "parametrisation_type"
00042 //            number_copies step offset extra_data(n words).
00043 
00044 // History:
00045 // - Created.                                 P.Arce, CIEMAT (November 2007)
00046 // -------------------------------------------------------------------------
00047 
00048 #ifndef G4tgrPlaceParameterisation_h
00049 #define G4tgrPlaceParameterisation_h
00050 
00051 #include "globals.hh"
00052 
00053 #include <vector>
00054 
00055 #include "G4tgrPlace.hh"
00056 
00057 class G4tgrPlaceParameterisation : public G4tgrPlace
00058 {
00059   public:  // with description
00060 
00061     G4tgrPlaceParameterisation();
00062    ~G4tgrPlaceParameterisation();
00063 
00064     G4tgrPlaceParameterisation( const std::vector<G4String>& p);
00065       // Creates an object passing the parameters
00066 
00067     // Access functions
00068 
00069     const G4String& GetParamType() const { return theParamType; }
00070      // GetType returns placement type
00071     std::vector<G4double> GetExtraData() const { return theExtraData; }
00072     const G4String& GetRotMatName() const { return theRotMatName; }
00073 
00074     friend std::ostream& operator<<(std::ostream& os,
00075                                     const G4tgrPlaceParameterisation& obj);
00076   private:
00077 
00078     G4String theParamType;
00079     std::vector<G4double> theExtraData;
00080       // Extra data not common to all parameterisations
00081 
00082     G4String theRotMatName;
00083       // The rotation matrix (by name, as the rotations
00084       // matrices are not yet created)
00085 };
00086 
00087 #endif

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