Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:38

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 // 
0029 // John Allison  26th July 1999.
0030 //
0031 // Class Description:
0032 //
0033 // Model for logical volumes.  It describes a logical volume and its
0034 // daughters to any depth - usually only the first by default.
0035 //
0036 // Inherits from G4PhysicalVolumeModel; for more information see that
0037 // class description.
0038 
0039 #ifndef G4LOGICALVOLUMEMODEL_HH
0040 #define G4LOGICALVOLUMEMODEL_HH
0041 
0042 #include "G4PhysicalVolumeModel.hh"
0043 
0044 #include "globals.hh"
0045 #include "G4Transform3D.hh"
0046 
0047 class G4LogicalVolume;
0048 class G4ModelingParameters;
0049 
0050 class G4LogicalVolumeModel: public G4PhysicalVolumeModel {
0051 
0052 public: // With description
0053 
0054   G4LogicalVolumeModel
0055   (G4LogicalVolume*,
0056    G4int soughtDepth = 1,
0057    G4bool booleans = true,
0058    G4bool voxels = true,
0059    G4bool readout = true,
0060    G4bool checkOverlaps = true,
0061    const G4Transform3D& modelTransformation = G4Transform3D(),
0062    const G4ModelingParameters* = 0);
0063 
0064   virtual ~G4LogicalVolumeModel ();
0065 
0066   void DescribeYourselfTo (G4VGraphicsScene&);
0067 
0068   G4bool Validate (G4bool) {return true;}
0069 
0070 protected:
0071 
0072   // This called from G4PhysicalVolumeModel::DescribeAndDescend by the
0073   // virtual function mechanism.
0074   void DescribeSolid
0075   (const G4Transform3D& theAT,
0076    G4VSolid* pSol,
0077    const G4VisAttributes* pVisAttribs,
0078    G4VGraphicsScene& sceneHandler);
0079 
0080   /////////////////////////////////////////////////////////
0081   // Data members...
0082 
0083   G4LogicalVolume* fpLV;
0084   G4bool fBooleans;  // Flag for drawing boolean components.
0085   G4bool fVoxels;    // Flag for drawing voxels.
0086   G4bool fReadout;   // Flag for drawing readout geometry.
0087   G4bool fCheckOverlaps;   // Flag for checking overlaps.
0088   G4bool fOverlapsPrinted; // To avoid multiple printing.
0089 
0090 };
0091 
0092 #endif