source: trunk/source/geometry/navigation/test/MyMultiNavigator.hh @ 1316

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

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 3.0 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: MyMultiNavigator.hh,v 1.1 2006/11/11 01:35:38 japost Exp $
28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
29//
30// Class to help test Multi-navigator geometry
31//
32// History:
33// 7.11.06 J. Apostolakis  Adapted from MyNavigator in ApproxEqual
34
35#ifndef MYMULTINAV_HH
36#define MYMULTINAV_HH
37
38#include "globals.hh"
39#include "geomdefs.hh"
40
41#include "G4ThreeVector.hh"
42#include "G4AffineTransform.hh"
43#include "G4MultiNavigator.hh"
44
45// Derived multi-navigator class
46
47class MyMultiNavigator : public G4MultiNavigator
48{
49  public:
50 
51    MyMultiNavigator() : G4MultiNavigator() { 
52      G4ThreeVector zero(0.0, 0.0, 0.0); 
53      // PrepareNewTrack( zero, zero );
54    }
55    ~MyMultiNavigator(){}
56
57    G4ThreeVector CurrentLocalCoordinate() const
58    {
59      G4Navigator* fpMassNavigator;   
60      fpMassNavigator= G4MultiNavigator::GetNavigator(0); 
61      return fpMassNavigator->GetCurrentLocalCoordinate();
62    }
63    G4ThreeVector GetNetTranslation() const
64    {
65      G4Navigator* fpMassNavigator;   
66      // G4ThreeVector nouse= G4Navigator::NetTranslation();
67      fpMassNavigator= GetNavigator(0); 
68      return fpMassNavigator->NetTranslation(); 
69    }
70    G4RotationMatrix GetNetRotation() const
71    {
72      G4Navigator* fpMassNavigator;   
73      fpMassNavigator= GetNavigator(0); 
74      return fpMassNavigator->NetRotation();
75    }
76
77  private:
78    // G4Navigator* fpMassNavigator;   
79};
80#endif
Note: See TracBrowser for help on using the repository browser.