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] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /processes/electromagnetic/dna/management/src/G4ITNavigatorState2.cc (Version 11.3.0) and /processes/electromagnetic/dna/management/src/G4ITNavigatorState2.cc (Version 9.4)


  1 //                                                  1 
  2 // *******************************************    
  3 // * License and Disclaimer                       
  4 // *                                              
  5 // * The  Geant4 software  is  copyright of th    
  6 // * the Geant4 Collaboration.  It is provided    
  7 // * conditions of the Geant4 Software License    
  8 // * LICENSE and available at  http://cern.ch/    
  9 // * include a list of copyright holders.         
 10 // *                                              
 11 // * Neither the authors of this software syst    
 12 // * institutes,nor the agencies providing fin    
 13 // * work  make  any representation or  warran    
 14 // * regarding  this  software system or assum    
 15 // * use.  Please see the license in the file     
 16 // * for the full disclaimer and the limitatio    
 17 // *                                              
 18 // * This  code  implementation is the result     
 19 // * technical work of the GEANT4 collaboratio    
 20 // * By using,  copying,  modifying or  distri    
 21 // * any work based  on the software)  you  ag    
 22 // * use  in  resulting  scientific  publicati    
 23 // * acceptance of all terms of the Geant4 Sof    
 24 // *******************************************    
 25 //                                                
 26 /*                                                
 27  * G4ITNavigatorState2.cc                         
 28  *                                                
 29  *  Created on: 25 févr. 2014                    
 30  *      Author: kara                              
 31  */                                               
 32                                                   
 33 #include "G4ITNavigator.hh"                       
 34 //#include "G4ITNavigator2.hh"                    
 35                                                   
 36 // !>                                             
 37                                                   
 38 G4ITNavigator2 ::G4NavigatorState::G4Navigator    
 39 {                                                 
 40   ResetState();                                   
 41 }                                                 
 42                                                   
 43 void G4ITNavigator2::G4NavigatorState::ResetSt    
 44 {                                                 
 45   fHistory.Reset();                               
 46 }                                                 
 47                                                   
 48 void G4ITNavigator2::G4NavigatorState::ResetSt    
 49 {                                                 
 50   fCalculatedExitNormal = false;                  
 51   fChangedGrandMotherRefFrame = false;            
 52   fLastTriedStepComputation = false;              
 53   fWasLimitedByGeometry = false;                  
 54   fEntering = false;                              
 55   fExiting = false;                               
 56   fLocatedOnEdge = false;                         
 57   fLastStepWasZero = false;                       
 58   fEnteredDaughter = false;                       
 59   fExitedMother = false;                          
 60   fPushed = false;                                
 61                                                   
 62   fValidExitNormal = false;                       
 63   fExitNormal = G4ThreeVector(0, 0, 0);           
 64                                                   
 65   fPreviousSftOrigin = G4ThreeVector(0, 0, 0);    
 66   fPreviousSafety = 0.0;                          
 67                                                   
 68   fNumberZeroSteps = 0;                           
 69                                                   
 70   fStepEndPoint = G4ThreeVector(kInfinity, kIn    
 71   fLastStepEndPointLocal = G4ThreeVector(kInfi    
 72                                                   
 73   fBlockedPhysicalVolume = nullptr;               
 74   fBlockedReplicaNo = -1;                         
 75                                                   
 76   fLastLocatedPointLocal = G4ThreeVector(kInfi    
 77   fLocatedOutsideWorld = false;                   
 78 }                                                 
 79                                                   
 80 G4ITNavigator2 ::G4NavigatorState::G4Navigator    
 81 {                                                 
 82   fExitNormal = rhs.fExitNormal;                  
 83   fValidExitNormal = rhs.fValidExitNormal;        
 84   fExiting = rhs.fExiting;                        
 85   fEntering = rhs.fEntering;                      
 86                                                   
 87   fBlockedPhysicalVolume = rhs.fBlockedPhysica    
 88   fBlockedReplicaNo = rhs.fBlockedReplicaNo,      
 89                                                   
 90   fLastStepWasZero = rhs.fLastStepWasZero;        
 91                                                   
 92   fLocatedOutsideWorld = rhs.fLocatedOutsideWo    
 93   fLastLocatedPointLocal = rhs.fLastLocatedPoi    
 94   fEnteredDaughter = rhs.fEnteredDaughter;        
 95   fExitedMother = rhs.fExitedMother;              
 96   fWasLimitedByGeometry = rhs.fWasLimitedByGeo    
 97                                                   
 98   fPreviousSftOrigin = rhs.fPreviousSftOrigin;    
 99   fPreviousSafety = rhs.fPreviousSafety;          
100                                                   
101   fLastTriedStepComputation = rhs.fLastTriedSt    
102   fChangedGrandMotherRefFrame = rhs.fChangedGr    
103   fCalculatedExitNormal = rhs.fCalculatedExitN    
104                                                   
105   fNumberZeroSteps = rhs.fNumberZeroSteps;        
106   fLocatedOnEdge = rhs.fLocatedOnEdge;            
107   fPushed = rhs.fPushed;                          
108   fNumberZeroSteps = rhs.fNumberZeroSteps;        
109 }                                                 
110                                                   
111 G4ITNavigator2::G4NavigatorState&                 
112 G4ITNavigator2::G4NavigatorState::operator=(co    
113 {                                                 
114   if (this == &rhs) return *this;                 
115   fExitNormal = rhs.fExitNormal;                  
116   fValidExitNormal = rhs.fValidExitNormal;        
117   fExiting = rhs.fExiting;                        
118   fEntering = rhs.fEntering;                      
119                                                   
120   fBlockedPhysicalVolume = rhs.fBlockedPhysica    
121   fBlockedReplicaNo = rhs.fBlockedReplicaNo;      
122   fCalculatedExitNormal = rhs.fCalculatedExitN    
123                                                   
124   fLastStepWasZero = rhs.fLastStepWasZero;        
125   fLastTriedStepComputation = rhs.fLastTriedSt    
126   fChangedGrandMotherRefFrame = rhs.fChangedGr    
127                                                   
128   fPreviousSftOrigin = rhs.fPreviousSftOrigin;    
129   fPreviousSafety = rhs.fPreviousSafety;          
130   fNumberZeroSteps = rhs.fNumberZeroSteps;        
131   fLocatedOnEdge = rhs.fLocatedOnEdge;            
132   fWasLimitedByGeometry = rhs.fWasLimitedByGeo    
133   fPushed = rhs.fPushed;                          
134   fNumberZeroSteps = rhs.fNumberZeroSteps;        
135   fEnteredDaughter = rhs.fEnteredDaughter;        
136   fExitedMother = rhs.fExitedMother;              
137                                                   
138   fLastLocatedPointLocal = rhs.fLastLocatedPoi    
139   fLocatedOutsideWorld = rhs.fLocatedOutsideWo    
140                                                   
141   return *this;                                   
142 }                                                 
143                                                   
144 G4ITNavigator2 ::G4SaveNavigatorState::G4SaveN    
145 {                                                 
146                                                   
147   sWasLimitedByGeometry = false;                  
148   sEntering = false;                              
149   sExiting = false;                               
150   sLastStepWasZero = 0;                           
151   sEnteredDaughter = false;                       
152   sExitedMother = false;                          
153                                                   
154                                                   
155   sValidExitNormal = false;                       
156   sExitNormal = G4ThreeVector(0, 0, 0);           
157                                                   
158   sPreviousSftOrigin = G4ThreeVector(0, 0, 0);    
159   sPreviousSafety = 0.0;                          
160                                                   
161 //  sLocatedOnEdge = false;                       
162 //  sPushed = false;                              
163 //  sNumberZeroSteps = 0;                         
164                                                   
165   spBlockedPhysicalVolume = nullptr;              
166   sBlockedReplicaNo = -1;                         
167                                                   
168   sLastLocatedPointLocal = G4ThreeVector(kInfi    
169   sLocatedOutsideWorld = false;                   
170 }                                                 
171                                                   
172 G4ITNavigator2 ::G4SaveNavigatorState::G4SaveN    
173 {                                                 
174   sExitNormal = rhs->fExitNormal;                 
175   sValidExitNormal = rhs->fValidExitNormal;       
176   sExiting = rhs->fExiting;                       
177   sEntering = rhs->fEntering;                     
178                                                   
179   spBlockedPhysicalVolume = rhs->fBlockedPhysi    
180   sBlockedReplicaNo = rhs->fBlockedReplicaNo;     
181                                                   
182   sLastStepWasZero = static_cast<G4int>(rhs->f    
183                                                   
184   sPreviousSftOrigin = rhs->fPreviousSftOrigin    
185   sPreviousSafety = rhs->fPreviousSafety;         
186                                                   
187   sWasLimitedByGeometry = rhs->fWasLimitedByGe    
188                                                   
189 //  sLocatedOnEdge = rhs->fLocatedOnEdge;         
190 //  sPushed = rhs->fPushed;                       
191 //  sNumberZeroSteps = rhs->fNumberZeroSteps;     
192                                                   
193   sEnteredDaughter = rhs->fEnteredDaughter;       
194   sExitedMother = rhs->fExitedMother;             
195                                                   
196   sLastLocatedPointLocal = rhs->fLastLocatedPo    
197   sLocatedOutsideWorld = rhs->fLocatedOutsideW    
198 }                                                 
199                                                   
200 G4ITNavigator2::G4NavigatorState& G4ITNavigato    
201 {                                                 
202   fExitNormal = rhs.sExitNormal;                  
203   fValidExitNormal = rhs.sValidExitNormal;        
204   fExiting = rhs.sExiting;                        
205   fEntering = rhs.sEntering;                      
206                                                   
207   fBlockedPhysicalVolume = rhs.spBlockedPhysic    
208   fBlockedReplicaNo = rhs.sBlockedReplicaNo;      
209 //  fCalculatedExitNormal = rhs.sCalculatedExi    
210                                                   
211   fLastStepWasZero = (rhs.sLastStepWasZero !=     
212 //  fLastTriedStepComputation =rhs.sLastTriedS    
213 //  fChangedGrandMotherRefFrame = rhs.sChanged    
214                                                   
215   fPreviousSftOrigin = rhs.sPreviousSftOrigin;    
216   fPreviousSafety = rhs.sPreviousSafety;          
217 //  fNumberZeroSteps = rhs.sNumberZeroSteps;      
218 //  fLocatedOnEdge = rhs.sLocatedOnEdge;          
219 //  fPushed = rhs.sPushed;                        
220   fWasLimitedByGeometry = rhs.sWasLimitedByGeo    
221                                                   
222   fEnteredDaughter = rhs.sEnteredDaughter;        
223   fExitedMother = rhs.sExitedMother;              
224                                                   
225   fLastLocatedPointLocal = rhs.sLastLocatedPoi    
226   fLocatedOutsideWorld = rhs.sLocatedOutsideWo    
227   return *this;                                   
228 }                                                 
229