]> git.uio.no Git - u/mrichter/AliRoot.git/blob - Flugg/WrapUtils.hh
New methods and data member added by M. Horner.
[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 <iostream.h>
14 #include <iomanip>
15 #include "G4NavigationHistory.hh"
16 #include "G4ThreeVector.hh"
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 // Common print utilities used in FGeometryInit.cc
34 inline G4std::ostream& setw10(G4std::ostream& os) { return os << G4std::setw(10);}
35 inline G4std::ostream& setscientific(G4std::ostream& os) { return os << G4std::setiosflags(G4std::ios::scientific);}
36 inline G4std::ostream& setfixed(G4std::ostream& os) { return os << G4std::setiosflags(G4std::ios::fixed);}
37 G4std::ostream& PrintHeader(G4std::ostream& os, const char* title);
38 G4String ToFlukaString(G4String str);
39
40 #endif