Calculation of new variables needed for Non-id HBT added. (Z. Chajecki)
[u/mrichter/AliRoot.git] / Flugg / FluggNavigator.cxx
1 //
2 // ********************************************************************
3 // * DISCLAIMER                                                       *
4 // *                                                                  *
5 // * The following disclaimer summarizes all the specific disclaimers *
6 // * of contributors to this software. The specific disclaimers,which *
7 // * govern, are listed with their locations in:                      *
8 // *   http://cern.ch/geant4/license                                  *
9 // *                                                                  *
10 // * Neither the authors of this software system, nor their employing *
11 // * institutes,nor the agencies providing financial support for this *
12 // * work  make  any representation or  warranty, express or implied, *
13 // * regarding  this  software system or assume any liability for its *
14 // * use.                                                             *
15 // *                                                                  *
16 // * This  code  implementation is the  intellectual property  of the *
17 // * GEANT4 collaboration.                                            *
18 // * By copying,  distributing  or modifying the Program (or any work *
19 // * based  on  the Program)  you indicate  your  acceptance of  this *
20 // * statement, and all its terms.                                    *
21 // ********************************************************************
22 //
23 //
24
25 // GEANT4 tag $ Name:  $
26 // 
27 // class FluggNavigator Implementation  Paul Kent July 95/96
28
29 #include "FluggNavigator.hh"
30 #include "G4ios.hh"
31 #include <iomanip.h>
32
33 #ifdef G4GEOMETRY_DEBUG
34 # define G4DEBUG_NAVIGATION 1
35 # define G4VERBOSE 1
36 #endif
37
38 FluggNavigator::FluggNavigator() : 
39   G4Navigator()
40 {
41 #ifdef G4GEOMETRY_DEBUG
42   G4cout << "==> Flugg FluggNavigator constructor" << G4endl;
43 #endif
44
45   ResetStackAndState();
46
47 #ifdef G4GEOMETRY_DEBUG
48   G4cout << "<== Flugg FluggNavigator constructor" << G4endl;
49 #endif
50 }
51     
52 void FluggNavigator::UpdateNavigatorHistory(const G4NavigationHistory* newNavHistory)
53 {
54 #ifdef G4GEOMETRY_DEBUG
55   cout << "==> Flugg FluggNavigator::UpdateNavigatorHistory(" << newNavHistory 
56        << ")" << endl;
57   cout << "\t+fHistory=" << fHistory << ") ..." << G4endl;
58 #endif
59
60   ResetStackAndState();
61   fHistory = *newNavHistory;
62   SetupHierarchy();
63
64 #ifdef G4GEOMETRY_DEBUG
65   cout << "<== Flugg FluggNavigator::UpdateNavigatorHistory(" << newNavHistory 
66        << ")" << endl;
67 #endif
68 }