G4VPVDivisionFactory.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$
00028 //
00029 //
00030 // class G4VPVDivisionFactory
00031 //
00032 // Class description:
00033 //
00034 // Abstract factory that defines interfaces for creating 
00035 // volumes divisions. 
00036 
00037 // Author: Ivana Hrivnacova, 4.5.2004  (Ivana.Hrivnacova@cern.ch)
00038 // ------------------------------------------------------------------------
00039 #ifndef G4VPVDIVISION_FACTORY_HH
00040 #define G4VPVDIVISION_FACTORY_HH
00041 
00042 #include "geomdefs.hh"
00043 
00044 class G4LogicalVolume;
00045 class G4VPhysicalVolume;
00046 class G4VPVParameterisation;
00047 
00048 class G4VPVDivisionFactory
00049 {
00050   public:  // with description
00051 
00052     virtual ~G4VPVDivisionFactory();
00053     
00054     static  G4VPVDivisionFactory* Instance();
00055     
00056     virtual G4VPhysicalVolume* CreatePVDivision(
00057                              const G4String& pName,
00058                                    G4LogicalVolume* pLogical,
00059                                    G4LogicalVolume* pMother,
00060                              const EAxis pAxis,
00061                              const G4int nReplicas,
00062                              const G4double width,
00063                              const G4double offset ) = 0;
00064       // Create division - with number of divisions and width.
00065 
00066     virtual G4VPhysicalVolume* CreatePVDivision(
00067                              const G4String& pName,
00068                                    G4LogicalVolume* pLogical,
00069                                    G4LogicalVolume* pMotherLogical,
00070                              const EAxis pAxis,
00071                              const G4int nReplicas,
00072                              const G4double offset ) = 0;
00073       // Create division - with number of divisions.
00074 
00075     virtual G4VPhysicalVolume* CreatePVDivision(
00076                              const G4String& pName,
00077                                    G4LogicalVolume* pLogical,
00078                                    G4LogicalVolume* pMotherLogical,
00079                              const EAxis pAxis,
00080                              const G4double width,
00081                              const G4double offset ) = 0;
00082       // Create division - with width.
00083 
00084     virtual G4VPhysicalVolume* CreatePVDivision(
00085                              const G4String& pName,
00086                                    G4LogicalVolume* pLogical,
00087                                    G4LogicalVolume* pMotherLogical,
00088                              const G4VPVParameterisation* param) = 0;
00089       // Create division - with parameterisation.
00090 
00091     virtual G4bool IsPVDivision(const G4VPhysicalVolume* pv) const = 0;
00092       // Returns true if pv is division.
00093 
00094   protected:
00095 
00096    G4VPVDivisionFactory();
00097 
00098   protected:
00099 
00100    static G4VPVDivisionFactory* fgInstance;
00101      
00102 };
00103 
00104 #endif

Generated on Mon May 27 17:50:20 2013 for Geant4 by  doxygen 1.4.7