]> git.uio.no Git - u/mrichter/AliRoot.git/blob - Flugg/NavHistWithCount.hh
Cleaning the task in the destructor if it was posted
[u/mrichter/AliRoot.git] / Flugg / NavHistWithCount.hh
1
2 // Flugg tag 
3
4 // 
5 // NavHistWithCount.hh - Sara Vanini 
6 // last modified 2/II/'99
7 // This class stores a G4NavigationHistory and it adds to it a 
8 // counter for secondary particles. 
9 //
10 //
11
12
13 #ifndef NAVHISTWITHCOUNT_HH
14 #define NAVHISTWITHCOUNT_HH
15
16 #include "G4NavigationHistory.hh"
17
18
19 class NavHistWithCount
20 {
21 public:
22    NavHistWithCount(const G4NavigationHistory &history);
23    ~NavHistWithCount();
24    void UpdateCount(G4int incrCount);
25    G4NavigationHistory* GetNavHistPtr();
26    G4int GetCount();
27    G4int GetDelateFlag();
28    G4int GetCheckInd();
29    void SaveCheckInd(G4int);
30
31 private:
32    G4int count;
33    G4NavigationHistory * fhistory;
34    G4int fDelate;
35    G4int fCheck;
36 };
37
38 #include "NavHistWithCount.icc"
39
40 #endif
41
42
43