Using TGeo to retrieve the mean material budget between two points (M.Ivanov)
[u/mrichter/AliRoot.git] / Flugg / FGeometryInit.icc
1 //#include <iostream.h>
2 #include <FluggNavigator.hh>
3
4 FluggNavigator* FGeometryInit::getNavigatorForTracking() {
5   G4Navigator* g4nav = fTransportationManager->GetNavigatorForTracking();
6   return ((FluggNavigator*) g4nav);
7
8
9 void FGeometryInit::setDetConstruction(G4VUserDetectorConstruction* detector) {
10   fDetector = detector;;
11 }
12
13 void FGeometryInit::setDetector() {
14   myTopNode = fDetector->Construct(); 
15 }
16
17 void FGeometryInit::setMotherVolume() {
18   getNavigatorForTracking()->SetWorldVolume(myTopNode);
19 }
20
21 G4FieldManager * FGeometryInit::getFieldManager() {
22   return fTransportationManager->GetFieldManager();
23 }
24
25 void FGeometryInit::DelHistArray() {
26   delete[]  ptrArray;
27 }
28
29 G4int * FGeometryInit::GetHistArray() {
30   return ptrArray;
31 }
32
33 G4int * FGeometryInit::GetJrLtGeantArray() {
34   return ptrJrLtGeant;
35 }
36
37
38 G4int FGeometryInit::GetLttcFlagGeant() {
39   return flagLttcGeant;
40 }
41
42 G4TouchableHistory * FGeometryInit::GetTouchableHistory() {
43   return ptrTouchHist;
44 }
45
46 G4TouchableHistory * FGeometryInit::GetOldNavHist() {
47   return ptrOldNavHist;
48 }
49
50 G4TouchableHistory * FGeometryInit::GetTempNavHist() {
51   return ptrTempNavHist;
52 }