]> git.uio.no Git - u/mrichter/AliRoot.git/blob - Flugg/NavHistWithCount.icc
Using TMath::Abs instead of fabs
[u/mrichter/AliRoot.git] / Flugg / NavHistWithCount.icc
1
2 // Flugg tag 
3
4 // 
5 // NavHistWithCount.icc  - Sara Vanini
6 // last modified: 2/II/1999
7 //
8 // NavHistWithCount.hh inline implementation
9 //
10 //
11
12 inline NavHistWithCount::NavHistWithCount(const G4NavigationHistory &history)
13    {
14 #ifdef G4GEOMETRY_DEBUG
15    G4cout << "NavHistWithCount::NavHistWithCount created" << G4endl;
16 #endif
17    fhistory = new G4NavigationHistory(history);
18    fDelate=0;
19    count=0;
20    }
21
22 inline NavHistWithCount::~NavHistWithCount()
23    {
24 #ifdef G4GEOMETRY_DEBUG
25    G4cout << "NavHistWithCount::NavHistWithCount deleted" << G4endl;
26 #endif
27    delete fhistory;
28    fDelate=1;
29    fhistory=0;
30    count=0;
31    }
32
33 inline void NavHistWithCount::UpdateCount(G4int incrCount)
34    {
35    count=count+incrCount;
36    }
37
38 inline G4NavigationHistory * NavHistWithCount::GetNavHistPtr()
39    {
40    return fhistory;
41    } 
42
43 inline G4int NavHistWithCount::GetCount()
44    {
45    return count;
46    }
47
48 inline G4int NavHistWithCount::GetDelateFlag()
49    {
50    return fDelate;
51    }
52
53 inline G4int NavHistWithCount::GetCheckInd()
54    {
55    return fCheck;
56    }
57
58 inline void NavHistWithCount::SaveCheckInd(G4int index)
59    {
60    fCheck=index;
61    }
62
63
64