Skip to content
Snippets Groups Projects
Commit 83aabd9e authored by Zach Marshall's avatar Zach Marshall
Browse files

Last updates for compilation

parent 2d3399e7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment