Changeset 1293 for trunk/source/tracking
- Timestamp:
- Jun 2, 2010, 10:23:13 AM (15 years ago)
- Location:
- trunk/source/tracking
- Files:
-
- 9 edited
-
History (modified) (2 diffs)
-
include/G4SmoothTrajectory.hh (modified) (2 diffs)
-
include/G4Trajectory.hh (modified) (2 diffs)
-
include/G4VTrajectory.hh (modified) (2 diffs)
-
src/G4RichTrajectory.cc (modified) (4 diffs)
-
src/G4RichTrajectoryPoint.cc (modified) (2 diffs)
-
src/G4SmoothTrajectory.cc (modified) (2 diffs)
-
src/G4Trajectory.cc (modified) (2 diffs)
-
src/G4VTrajectory.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/tracking/History
r1228 r1293 1 $Id: History,v 1.1 37 2009/11/24 10:04:14 perlExp $2 $Name: geant4-09-03 $1 $Id: History,v 1.141 2010/05/29 21:31:28 allison Exp $ 2 $Name: tracking-V09-03-03 $ 3 3 ------------------------------------------------------------------- 4 4 … … 18 18 * Reverse chronological order (last date on top), please * 19 19 ---------------------------------------------------------- 20 21 29 May 2010 John Allison (tracking-V09-03-03) 22 - G4VTrajectory: 23 o Added virtual void DrawTrajectory() in preparation for i_mode migration. 24 - G4Trajectory and G4SmoothTrajectory: followed the above. 25 o (G4RichTrajectory inherits G4Trajectory so no need to change.) 26 27 28 May 2010 John Allison (tracking-V09-03-02) 28 - G4VTrajectory.cc: Added explicit once-only i_mode deprecation warning. 29 30 13 May 2010 John Allison (tracking-V09-03-01 - needs greps-V09-03-00) 31 - G4VTrajectory.cc: Added a statement to set IsDefaultDrawTrajectory, 32 to assist deprecation of i-mode trajectory drawing parameter. After 33 10.0, it can be removed. 34 35 22 Feb 2010 John Allison (tracking-V09-03-00) 36 - G4RichTrajectory: Fixed bug in MergeTrajectory (should not invoke 37 G4Trajectory::MergeTrajectory). 38 - G4RichTrajectory and G4RichTrajectoryPoint: 39 o Eliminated spaces in G4AttValue values. 40 o G4AttValue values are "None" for attributes derived from zero pointers. 20 41 21 42 24 Nov 2009 Joseph Perl (tracking-V09-02-07) -
trunk/source/tracking/include/G4SmoothTrajectory.hh
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4SmoothTrajectory.hh,v 1.1 2 2009/11/12 09:09:56allison Exp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4SmoothTrajectory.hh,v 1.13 2010/05/29 21:31:03 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 //--------------------------------------------------------------- … … 102 102 // Other member functions 103 103 virtual void ShowTrajectory(std::ostream& os=G4cout) const; 104 virtual void DrawTrajectory(G4int i_mode=0) const; 104 virtual void DrawTrajectory() const; 105 virtual void DrawTrajectory(G4int i_mode) const; 105 106 virtual void AppendStep(const G4Step* aStep); 106 107 virtual int GetPointEntries() const { return positionRecord->size(); } -
trunk/source/tracking/include/G4Trajectory.hh
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4Trajectory.hh,v 1.2 5 2009/11/12 09:09:56allison Exp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4Trajectory.hh,v 1.26 2010/05/29 21:31:03 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 //--------------------------------------------------------------- … … 108 108 // Other member functions 109 109 virtual void ShowTrajectory(std::ostream& os=G4cout) const; 110 virtual void DrawTrajectory(G4int i_mode=0) const; 110 virtual void DrawTrajectory() const; 111 virtual void DrawTrajectory(G4int i_mode) const; 111 112 virtual void AppendStep(const G4Step* aStep); 112 113 virtual int GetPointEntries() const { return positionRecord->size(); } -
trunk/source/tracking/include/G4VTrajectory.hh
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4VTrajectory.hh,v 1.1 7 2006/06/29 21:15:51 gunterExp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4VTrajectory.hh,v 1.18 2010/05/29 21:31:03 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 //--------------------------------------------------------------- … … 90 90 // the user needs to follow with new-line or end-of-string, 91 91 // depending on the nature of os. 92 virtual void DrawTrajectory(G4int i_mode=0) const; 92 virtual void DrawTrajectory() const; 93 virtual void DrawTrajectory(G4int i_mode) const; 93 94 // Draw the trajectory. A default implementation in this base 94 95 // class may be used or may be overridden in the concrete class. -
trunk/source/tracking/src/G4RichTrajectory.cc
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4RichTrajectory.cc,v 1. 8 2009/11/24 10:04:14 perlExp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4RichTrajectory.cc,v 1.9 2010/02/22 21:26:56 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 // --------------------------------------------------------------- … … 145 145 if(!secondTrajectory) return; 146 146 147 G4Trajectory::MergeTrajectory(secondTrajectory);148 149 147 G4RichTrajectory* seco = (G4RichTrajectory*)secondTrajectory; 150 148 G4int ent = seco->GetPointEntries(); … … 245 243 values->push_back(G4AttValue("CPTN",G4VProcess::GetProcessTypeName(type),"")); 246 244 } else { 247 values->push_back(G4AttValue("CPN"," User Defined",""));248 values->push_back(G4AttValue("CPTN"," User",""));245 values->push_back(G4AttValue("CPN","None","")); 246 values->push_back(G4AttValue("CPTN","None","")); 249 247 } 250 248 … … 266 264 values->push_back(G4AttValue("EPTN",G4VProcess::GetProcessTypeName(type),"")); 267 265 } else { 268 values->push_back(G4AttValue("EPN"," User Defined",""));269 values->push_back(G4AttValue("EPTN"," User",""));266 values->push_back(G4AttValue("EPN","None","")); 267 values->push_back(G4AttValue("EPTN","None","")); 270 268 } 271 269 -
trunk/source/tracking/src/G4RichTrajectoryPoint.cc
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4RichTrajectoryPoint.cc,v 1. 5 2009/11/24 10:04:14 perlExp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4RichTrajectoryPoint.cc,v 1.6 2010/02/22 21:26:56 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 // … … 236 236 "")); 237 237 } else { 238 values->push_back 239 (G4AttValue("PDS","User Defined Limit in Current Volume","")); 240 values->push_back(G4AttValue("PTDS","User","")); 238 values->push_back(G4AttValue("PDS","None","")); 239 values->push_back(G4AttValue("PTDS","None","")); 241 240 } 242 241 -
trunk/source/tracking/src/G4SmoothTrajectory.cc
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4SmoothTrajectory.cc,v 1. 19 2009/11/12 09:09:56allison Exp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4SmoothTrajectory.cc,v 1.20 2010/05/29 21:31:03 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 // … … 120 120 } 121 121 122 void G4SmoothTrajectory::DrawTrajectory() const 123 { 124 // Invoke the default implementation in G4VTrajectory... 125 G4VTrajectory::DrawTrajectory(); 126 // ... or override with your own code here. 127 } 128 122 129 void G4SmoothTrajectory::DrawTrajectory(G4int i_mode) const 123 130 { -
trunk/source/tracking/src/G4Trajectory.cc
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4Trajectory.cc,v 1.3 3 2009/11/12 09:09:56allison Exp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4Trajectory.cc,v 1.34 2010/05/29 21:31:03 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 // --------------------------------------------------------------- … … 115 115 } 116 116 117 void G4Trajectory::DrawTrajectory() const 118 { 119 // Invoke the default implementation in G4VTrajectory... 120 G4VTrajectory::DrawTrajectory(); 121 // ... or override with your own code here. 122 } 123 117 124 void G4Trajectory::DrawTrajectory(G4int i_mode) const 118 125 { -
trunk/source/tracking/src/G4VTrajectory.cc
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4VTrajectory.cc,v 1.1 2 2006/10/16 13:45:01allison Exp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4VTrajectory.cc,v 1.15 2010/05/29 21:31:03 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 // --------------------------------------------------------------- … … 116 116 } 117 117 118 void G4VTrajectory::DrawTrajectory() const 119 { 120 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance(); 121 122 if (0 != pVVisManager) { 123 pVVisManager->DispatchToModel(*this); 124 } 125 } 126 118 127 void G4VTrajectory::DrawTrajectory(G4int i_mode) const 119 128 { 120 129 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance(); 130 131 static G4bool warnedAboutIMode = false; 132 if (!warnedAboutIMode) { 133 G4Exception 134 ("G4VTrajectory::DrawTrajectory", 135 "", 136 JustWarning, 137 "WARNING: DEPRECATED: The use of i_mode argument in DrawTrajectory" 138 "\n is deprecated and will be removed at the next major release."); 139 warnedAboutIMode = true; 140 } 121 141 122 142 if (0 != pVVisManager) {
Note:
See TracChangeset
for help on using the changeset viewer.
