- Timestamp:
- Jun 14, 2010, 3:54:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/advanced/hadrontherapy/src/HadrontherapyPrimaryGeneratorAction.cc
r1230 r1313 86 86 sigmaEnergy = defaultsigmaEnergy; 87 87 88 #ifdef ANALYSIS_USE88 #ifdef G4ANALYSIS_USE_ROOT 89 89 // Write these values into the analysis if needed. Have to be written separately on change. 90 HadrontherapyAnalysisManager:: getInstance()->setBeamMetaData(meanKineticEnergy, sigmaEnergy);90 HadrontherapyAnalysisManager::GetInstance()->setBeamMetaData(meanKineticEnergy, sigmaEnergy); 91 91 #endif 92 92 … … 120 120 void HadrontherapyPrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent) 121 121 { 122 #ifdef ANALYSIS_USE122 #ifdef G4ANALYSIS_USE_ROOT 123 123 // Increment the event counter 124 HadrontherapyAnalysisManager:: getInstance()->startNewEvent();124 HadrontherapyAnalysisManager::GetInstance()->startNewEvent(); 125 125 #endif 126 126 … … 178 178 { 179 179 meanKineticEnergy = val; 180 #ifdef ANALYSIS_USE180 #ifdef G4ANALYSIS_USE_ROOT 181 181 // Update the beam-data in the analysis manager 182 HadrontherapyAnalysisManager:: getInstance()->setBeamMetaData(meanKineticEnergy, sigmaEnergy);182 HadrontherapyAnalysisManager::GetInstance()->setBeamMetaData(meanKineticEnergy, sigmaEnergy); 183 183 #endif 184 184 … … 188 188 { 189 189 sigmaEnergy = val; 190 #ifdef ANALYSIS_USE190 #ifdef G4ANALYSIS_USE_ROOT 191 191 // Update the sigmaenergy in the metadata. 192 HadrontherapyAnalysisManager:: getInstance()->setBeamMetaData(meanKineticEnergy, sigmaEnergy);192 HadrontherapyAnalysisManager::GetInstance()->setBeamMetaData(meanKineticEnergy, sigmaEnergy); 193 193 #endif 194 194 } … … 217 217 G4double HadrontherapyPrimaryGeneratorAction::GetmeanKineticEnergy(void) 218 218 { return meanKineticEnergy;} 219
Note: See TracChangeset
for help on using the changeset viewer.