source: trunk/source/geometry/solids/specific/include/G4EnclosingCylinder.hh@ 1316

Last change on this file since 1316 was 1228, checked in by garnier, 16 years ago

update geant4.9.3 tag

File size: 3.7 KB
RevLine 
[831]1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27// $Id: G4EnclosingCylinder.hh,v 1.8 2006/06/29 18:46:58 gunter Exp $
[1228]28// GEANT4 tag $Name: geant4-09-03 $
[831]29//
30//
31// --------------------------------------------------------------------
32// GEANT 4 class header file
33//
34// G4EnclosingCylinder
35//
36// Class description:
37//
38// Definition of a utility class for quickly deciding if a point
39// is clearly outside a polyhedra or polycone or deciding if
40// a trajectory is clearly going to miss those shapes.
41
42// Author:
43// David C. Williams (davidw@scipp.ucsc.edu)
44// --------------------------------------------------------------------
45#ifndef G4EnclosingCylinder_hh
46#define G4EnclosingCylinder_hh
47
48#include "G4Types.hh"
49#include "geomdefs.hh"
50#include "G4ThreeVector.hh"
51
52class G4ReduciblePolygon;
53
54class G4EnclosingCylinder
55{
56 public: // with description
57
58 G4EnclosingCylinder( const G4ReduciblePolygon *rz,
59 G4bool phiIsOpen,
60 G4double startPhi, G4double totalPhi );
61 ~G4EnclosingCylinder();
62
63 G4bool MustBeOutside( const G4ThreeVector &p ) const;
64 // Decide very rapidly if the point is outside the cylinder.
65 // If one is not certain, return false.
66
67 G4bool ShouldMiss( const G4ThreeVector &p, const G4ThreeVector &v ) const;
68 // Decide very rapidly if the trajectory is going to miss the cylinder.
69 // If one is not sure, return false.
70
71 public: // without description
72
73 G4EnclosingCylinder(__void__&);
74 // Fake default constructor for usage restricted to direct object
75 // persistency for clients requiring preallocation of memory for
76 // persistifiable objects.
77
78 protected:
79
80 G4double radius; // radius of our cylinder
81 G4double zLo, zHi; // z extent
82
83 G4bool phiIsOpen; // true if there is a phi segment
84 G4double startPhi, // for isPhiOpen==true, starting of phi segment
85 totalPhi; // for isPhiOpen==true, size of phi segment
86
87 G4double rx1, ry1,
88 dx1, dy1;
89 G4double rx2, ry2,
90 dx2, dy2;
91
92 G4bool concave; // true, if x/y cross section is concave
93
94};
95
96#endif
Note: See TracBrowser for help on using the repository browser.