First implementation. Needs cleanup.
[u/mrichter/AliRoot.git] / Flugg / WrapUtils.hh
1
2 // Flugg tag 
3
4 ///////////////////////////////////////////////////////////////////
5 //
6 // Some utility methods used for several wrapped functions
7 //
8 ///////////////////////////////////////////////////////////////////
9
10 #ifndef WrapUtils_hh
11 #define WrapUtils_hh 1
12
13 #include "G4NavigationHistory.hh"
14 #include "G4ThreeVector.hh"
15 #include <iostream.h>
16 #include <iomanip.h>
17
18 //Forward declarations
19
20 //StepAndLocation declaration. Used in:
21 // - WrapG1.cc
22 // - WrapNorml.cc
23 G4int StepAndLocation(G4ThreeVector &, const G4ThreeVector &, 
24                       const G4double &, G4double &, G4double &, G4bool &,
25                       G4bool &, const G4int &);
26
27 //EqualHistories declaration: true if histories are identical, otherwise false.
28 //Used in:
29 // - WrapG1.cc
30 bool EqualHistories(const G4NavigationHistory*, 
31                     const G4NavigationHistory*);
32
33 // Commonly printed things used in FGeometryInit.cc
34 inline ostream& setw10(ostream& os) { return os << G4std::setw(10);}
35 inline ostream& setscientific(ostream& os) { return os << G4std::setiosflags(G4std::ios::scientific);}
36 inline ostream& setfixed(ostream& os) { return os << G4std::setiosflags(G4std::ios::fixed);}
37 ostream& PrintHeader(ostream& os, const char* title);
38 ostream& PrintMaterial(ostream& os, const char* title,
39                        G4double Z, G4double A,
40                        G4double density,
41                        G4double index,
42                        G4double N,
43                        const char* name);
44 ostream& PrintCompound(ostream& os, const char* title,
45                        G4int count,
46                        const char* name,
47                        G4double fraction,
48                        G4double index);
49
50 #endif