Ignore:
Timestamp:
Jun 14, 2010, 3:54:58 PM (14 years ago)
Author:
garnier
Message:

geant4.9.4 beta rc0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/advanced/hadrontherapy/src/HadrontherapyPrimaryGeneratorAction.cc

    r1230 r1313  
    8686  sigmaEnergy = defaultsigmaEnergy;
    8787 
    88 #ifdef ANALYSIS_USE
     88#ifdef G4ANALYSIS_USE_ROOT
    8989  // 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);
    9191#endif
    9292
     
    120120void HadrontherapyPrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
    121121{
    122 #ifdef ANALYSIS_USE
     122#ifdef G4ANALYSIS_USE_ROOT
    123123  // Increment the event counter
    124   HadrontherapyAnalysisManager::getInstance()->startNewEvent();
     124  HadrontherapyAnalysisManager::GetInstance()->startNewEvent();
    125125#endif
    126126
     
    178178{
    179179        meanKineticEnergy = val;
    180 #ifdef ANALYSIS_USE
     180#ifdef G4ANALYSIS_USE_ROOT
    181181  // Update the beam-data in the analysis manager
    182   HadrontherapyAnalysisManager::getInstance()->setBeamMetaData(meanKineticEnergy, sigmaEnergy);
     182  HadrontherapyAnalysisManager::GetInstance()->setBeamMetaData(meanKineticEnergy, sigmaEnergy);
    183183#endif
    184184
     
    188188{
    189189        sigmaEnergy = val;
    190 #ifdef ANALYSIS_USE
     190#ifdef G4ANALYSIS_USE_ROOT
    191191  // Update the sigmaenergy in the metadata.
    192   HadrontherapyAnalysisManager::getInstance()->setBeamMetaData(meanKineticEnergy, sigmaEnergy);
     192  HadrontherapyAnalysisManager::GetInstance()->setBeamMetaData(meanKineticEnergy, sigmaEnergy);
    193193#endif
    194194}
     
    217217G4double HadrontherapyPrimaryGeneratorAction::GetmeanKineticEnergy(void)
    218218{ return meanKineticEnergy;}
     219
Note: See TracChangeset for help on using the changeset viewer.