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

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