source: trunk/source/geometry/navigation/src/G4GeomTestVolPoint.cc@ 1178

Last change on this file since 1178 was 921, checked in by garnier, 17 years ago

en test de gl2ps. Problemes de libraries

File size: 3.6 KB
Line 
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: G4GeomTestVolPoint.cc,v 1.3 2006/06/29 18:36:52 gunter Exp $
28// GEANT4 tag $Name: geant4-09-02-cand-01 $
29//
30// --------------------------------------------------------------------
31// GEANT 4 class source file
32//
33// G4GeomTestVolPoint
34//
35// Author: D.C.Williams, UCSC (davidw@scipp.ucsc.edu)
36// --------------------------------------------------------------------
37
38#include "G4GeomTestVolPoint.hh"
39
40//
41// Constructor (specific)
42//
43G4GeomTestVolPoint::G4GeomTestVolPoint( const G4ThreeVector &thePoint,
44 G4double theS,
45 G4bool isEntering,
46 G4int theDaughterIndex )
47 : G4GeomTestPoint( thePoint, theS, isEntering ),
48 daughterIndex(theDaughterIndex)
49{;}
50
51
52//
53// Constructor (from base)
54//
55G4GeomTestVolPoint::G4GeomTestVolPoint( const G4GeomTestPoint &base,
56 G4int theDaughterIndex )
57 : G4GeomTestPoint( base ), daughterIndex(theDaughterIndex)
58{;}
59
60
61//
62// Constructor (from base, with coordinate transformation)
63//
64G4GeomTestVolPoint::G4GeomTestVolPoint( const G4GeomTestPoint &base,
65 G4int theDaughterIndex,
66 const G4ThreeVector &translation,
67 const G4RotationMatrix *rotation )
68 : G4GeomTestPoint( base ), daughterIndex(theDaughterIndex)
69{
70 //
71 // Rotate point
72 //
73 if (rotation)
74 p = rotation->inverse()*p - translation;
75 else
76 p = p - translation;
77}
78
79
80//
81// Constructor (copy)
82//
83G4GeomTestVolPoint::G4GeomTestVolPoint( const G4GeomTestVolPoint &other )
84 : G4GeomTestPoint( other ), daughterIndex(other.daughterIndex)
85{;}
86
87
88//
89// Constructor (default)
90//
91G4GeomTestVolPoint::G4GeomTestVolPoint()
92 : daughterIndex(-1)
93{;}
94
95
96
97//
98// Destructor
99//
100G4GeomTestVolPoint::~G4GeomTestVolPoint() {;}
101
102
103//
104// Volume accessor
105//
106G4int G4GeomTestVolPoint::GetDaughterIndex() const
107{
108 return daughterIndex;
109}
Note: See TracBrowser for help on using the repository browser.