6 using namespace Pythia8;
49 fMasterGen->readString(
"ProcessLevel:all = off");
50 fMasterGen->readString(
"ProcessLevel::resonanceDecays=on");
54 fDecayer->readString(
"ProcessLevel:all = off");
55 fDecayer->readString(
"ProcessLevel::resonanceDecays=on");
67 int NPartsBeforeDecays = pythiaEvent->size()-1;
71 int NPartsAfterDecays =
event().get()->particles_size();
73 if(NPartsAfterDecays == NPartsBeforeDecays)
return true;
78 for (
int ipart=NPartsAfterDecays; ipart>NPartsBeforeDecays; ipart-- )
83 if ( part->status() == 1 && (
fDecayer->particleData).canDecay(part->pdg_id()) )
86 Particle py8part( part->pdg_id(), 93, 0, 0, 0, 0, 0, 0,
91 part->generated_mass() );
92 HepMC::GenVertex* ProdVtx = part->production_vertex();
93 py8part.vProd( ProdVtx->position().x(), ProdVtx->position().y(),
94 ProdVtx->position().z(), ProdVtx->position().t() );
95 py8part.tau( (
fDecayer->particleData).tau0( part->pdg_id() ) );
97 int nentries =
fDecayer->event.size();
98 if ( !
fDecayer->event[nentries-1].mayDecay() )
continue;
100 int nentries1 =
fDecayer->event.size();
101 if ( nentries1 <= nentries )
continue;
134 <<
"----------------------" << std::endl;
140 <<
"----------------------" << 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
static const std::string kPythia8
void setExternalXSecNLO(const XSec &xsec)
GenRunInfoProduct & runInfo()
bool append_event(Pythia8::Event &pyev, GenEvent *evt, GenParticle *rootpart, int ibarcode=-1, Pythia8::Info *pyinfo=0, Pythia8::Settings *pyset=0)
void setExternalXSecLO(const XSec &xsec)