4 using namespace Pythia8;
47 fMasterGen->readString(
"ProcessLevel:all = off");
48 fMasterGen->readString(
"ProcessLevel::resonanceDecays=on");
52 fDecayer->readString(
"ProcessLevel:all = off");
53 fDecayer->readString(
"ProcessLevel::resonanceDecays=on");
65 int NPartsBeforeDecays = pythiaEvent->size()-1;
69 int NPartsAfterDecays =
event().get()->particles_size();
71 if(NPartsAfterDecays == NPartsBeforeDecays)
return true;
75 for (
int ipart=NPartsAfterDecays; ipart>NPartsBeforeDecays; ipart-- )
80 if ( part->status() == 1 && (
fDecayer->particleData).canDecay(part->pdg_id()) )
83 Particle py8part( part->pdg_id(), 93, 0, 0, 0, 0, 0, 0,
88 part->generated_mass() );
89 HepMC::GenVertex* ProdVtx = part->production_vertex();
90 py8part.vProd( ProdVtx->position().x(), ProdVtx->position().y(),
91 ProdVtx->position().z(), ProdVtx->position().t() );
92 py8part.tau( (
fDecayer->particleData).tau0( part->pdg_id() ) );
94 int nentries =
fDecayer->event.size();
95 if ( !
fDecayer->event[nentries-1].mayDecay() )
continue;
97 int nentries1 =
fDecayer->event.size();
98 if ( nentries1 <= nentries )
continue;
131 <<
"----------------------" << std::endl;
137 <<
"----------------------" << std::endl;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::auto_ptr< Pythia8::Pythia > fMasterGen
void setFilterEfficiency(double effic)
HepMC::IO_AsciiParticles * ascii_io
bool pythiaHepMCVerbosityParticles
bool initializeForInternalPartons()
void setInternalXSec(const XSec &xsec)
virtual bool residualDecay()
static const std::vector< std::string > p8SharedResources
unsigned int pythiaPylistVerbosity
std::vector< int > fPartIDs
std::auto_ptr< HepMC::GenEvent > & event()
unsigned int maxEventsToPrint
std::auto_ptr< Pythia8::Pythia > fDecayer
bool pythiaHepMCVerbosity
HepMC::Pythia8ToHepMC toHepMC
static const std::string kPythia8
void setExternalXSecNLO(const XSec &xsec)
GenRunInfoProduct & runInfo()
void setExternalXSecLO(const XSec &xsec)