diff --git a/Generators/Pythia8_i/Pythia8_i/Pythia8_i.h b/Generators/Pythia8_i/Pythia8_i/Pythia8_i.h index 101697c36a2c1a8ebb934edfca719f74629e8770..82982f907bb29f65b7badf25487e79f5532d779b 100644 --- a/Generators/Pythia8_i/Pythia8_i/Pythia8_i.h +++ b/Generators/Pythia8_i/Pythia8_i/Pythia8_i.h @@ -79,6 +79,8 @@ public: double pythiaVersion()const; static std::string pythia_stream; + + static std::string xmlpath(); protected: @@ -89,9 +91,7 @@ protected: HepMC::Pythia8ToHepMC m_pythiaToHepMC; private: - - static std::string xmlpath(); - + static std::string findValue(const std::string &command, const std::string &key); int m_internal_event_number; diff --git a/Simulation/G4Extensions/RHadrons/src/RHadronsPhysicsTool.cxx b/Simulation/G4Extensions/RHadrons/src/RHadronsPhysicsTool.cxx index 5679703ba868c4a8a8fd795ac99bef6c637be638..b66fb96a3dea7411a42b59a11805ccc624549d33 100644 --- a/Simulation/G4Extensions/RHadrons/src/RHadronsPhysicsTool.cxx +++ b/Simulation/G4Extensions/RHadrons/src/RHadronsPhysicsTool.cxx @@ -82,7 +82,8 @@ void RHadronsPhysicsTool::ConstructProcess() ATH_MSG_DEBUG("RHadronProcessDefinition::ConstructProcess() called"); G4Decay* theDecayProcess = new G4Decay(); theDecayProcess->SetExtDecayer( new RHadronPythiaDecayer("RHadronPythiaDecayer") ); - PARTICLEITERATOR->reset(); + G4ParticleTable::G4PTblDicIterator* aParticleIterator = G4ParticleTable::GetParticleTable()->GetIterator(); + aParticleIterator->reset(); //First deal with the standard particles that G4 doesn't know about... //G4Etac::Definition(); @@ -221,8 +222,8 @@ void RHadronsPhysicsTool::ConstructProcess() // Now add RHadrons... Keep a vector of those we've already dealt with std::vector<int> handled; // Use the G4 particle iterator - while((*PARTICLEITERATOR)()) { - G4ParticleDefinition *particle = PARTICLEITERATOR->value(); + while((*aParticleIterator)()) { + G4ParticleDefinition *particle = aParticleIterator->value(); if(CustomParticleFactory::isCustomParticle(particle)) { if(find(handled.begin(),handled.end(),particle->GetPDGEncoding())==handled.end()) { handled.push_back(particle->GetPDGEncoding());