Skip to content

Commit

Permalink
Merge pull request #9494 from mkirsano/remove_hepmca2
Browse files Browse the repository at this point in the history
Use pythia8 internal code to append event in residualDecays
  • Loading branch information
cmsbuild committed Jun 8, 2015
2 parents 9a9f988 + 24bb966 commit 1a39f50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 238 deletions.
230 changes: 0 additions & 230 deletions GeneratorInterface/Pythia8Interface/plugins/HepMCA2.h

This file was deleted.

Expand Up @@ -10,7 +10,6 @@

#include "Pythia8/Pythia.h"
#include "Pythia8Plugins/HepMC2.h"
#include "GeneratorInterface/Pythia8Interface/plugins/HepMCA2.h"

#include "GeneratorInterface/Pythia8Interface/interface/Py8InterfaceBase.h"

Expand Down Expand Up @@ -579,9 +578,8 @@ bool Pythia8Hadronizer::residualDecay()

if(NPartsAfterDecays == NPartsBeforeDecays) return true;

HepMC::Pythia8ToHepMCA toHepMCA;
bool result = true;

for ( int ipart=NPartsAfterDecays; ipart>NPartsBeforeDecays; ipart-- )
{

Expand Down Expand Up @@ -609,7 +607,7 @@ bool Pythia8Hadronizer::residualDecay()

part->set_status(2);

result = toHepMCA.append_event( fDecayer->event, event().get(), part);
result = toHepMC.fill_next_event( *(fDecayer.get()), event().get(), -1, true, part);

}
}
Expand Down
5 changes: 1 addition & 4 deletions GeneratorInterface/Pythia8Interface/src/Py8GunBase.cc
@@ -1,8 +1,6 @@
#include "GeneratorInterface/Pythia8Interface/interface/Py8GunBase.h"
#include "FWCore/Concurrency/interface/SharedResourceNames.h"

#include "GeneratorInterface/Pythia8Interface/plugins/HepMCA2.h"

using namespace Pythia8;

const std::vector<std::string> gen::Py8GunBase::p8SharedResources = { edm::SharedResourceNames::kPythia8 };
Expand Down Expand Up @@ -72,7 +70,6 @@ bool Py8GunBase::residualDecay()

if(NPartsAfterDecays == NPartsBeforeDecays) return true;

HepMC::Pythia8ToHepMCA toHepMCA;
bool result = true;

for ( int ipart=NPartsAfterDecays; ipart>NPartsBeforeDecays; ipart-- )
Expand Down Expand Up @@ -102,7 +99,7 @@ bool Py8GunBase::residualDecay()

part->set_status(2);

result = toHepMCA.append_event( fDecayer->event, event().get(), part);
result = toHepMC.fill_next_event( *(fDecayer.get()), event().get(), -1, true, part);

}
}
Expand Down

0 comments on commit 1a39f50

Please sign in to comment.