#include <FortranCallback.h>
Public Member Functions | |
void | fillEvent () |
void | fillHeader () |
int | getIterationsPerEvent () const |
void | resetIterationsPerEvent () |
void | setLHEEvent (lhef::LHEEvent *lhee) |
void | setLHERunInfo (lhef::LHERunInfo *lheri) |
Static Public Member Functions | |
static FortranCallback * | getInstance () |
Private Member Functions | |
FortranCallback () | |
Private Attributes | |
lhef::LHEEvent * | fEventBlock |
int | fIterationsPerEvent |
lhef::LHERunInfo * | fRunBlock |
Static Private Attributes | |
static FortranCallback * | fInstance = 0 |
Definition at line 18 of file FortranCallback.h.
gen::FortranCallback::FortranCallback | ( | ) | [private] |
Definition at line 57 of file FortranCallback.h.
Referenced by getInstance().
: fRunBlock(0), fEventBlock(0), fIterationsPerEvent(0) { }
void gen::FortranCallback::fillEvent | ( | ) |
Definition at line 83 of file FortranCallback.h.
References fEventBlock, lhef::CommonBlocks::fillHEPEUP(), fIterationsPerEvent, lhef::LHEEvent::getHEPEUP(), hepeup_, and HEPEUP_::nup.
{ //if ( fPartonLevel == 0 ) return; //const lhef::HEPEUP* hepeup = fPartonLevel->getHEPEUP(); if ( fEventBlock == 0 ) return; const lhef::HEPEUP* hepeup = fEventBlock->getHEPEUP(); if (fIterationsPerEvent++) { hepeup_.nup = 0; return; } lhef::CommonBlocks::fillHEPEUP(hepeup); return; }
void gen::FortranCallback::fillHeader | ( | ) |
Definition at line 69 of file FortranCallback.h.
References lhef::CommonBlocks::fillHEPRUP(), fRunBlock, and lhef::LHERunInfo::getHEPRUP().
{ if ( fRunBlock == 0 ) return; //const lhef::HEPRUP* heprup = &(fRunBlock->heprup()); const lhef::HEPRUP* heprup = fRunBlock->getHEPRUP(); lhef::CommonBlocks::fillHEPRUP(heprup); return; }
FortranCallback * gen::FortranCallback::getInstance | ( | ) | [static] |
Definition at line 63 of file FortranCallback.h.
References fInstance, and FortranCallback().
Referenced by gen::ExhumeHadronizer::generatePartonsAndHadronize(), gen::Pythia6Hadronizer::generatePartonsAndHadronize(), gen::Cascade2Hadronizer::generatePartonsAndHadronize(), gen::Pythia6Hadronizer::hadronize(), and gen::Pythia6Hadronizer::initializeForExternalPartons().
{ if ( fInstance == 0 ) fInstance = new FortranCallback; return fInstance; }
int gen::FortranCallback::getIterationsPerEvent | ( | ) | const [inline] |
Definition at line 34 of file FortranCallback.h.
References fIterationsPerEvent.
{ return fIterationsPerEvent; }
void gen::FortranCallback::resetIterationsPerEvent | ( | ) | [inline] |
Definition at line 29 of file FortranCallback.h.
References fIterationsPerEvent.
Referenced by gen::ExhumeHadronizer::generatePartonsAndHadronize(), gen::Pythia6Hadronizer::generatePartonsAndHadronize(), gen::Cascade2Hadronizer::generatePartonsAndHadronize(), and gen::Pythia6Hadronizer::hadronize().
{ fIterationsPerEvent = 0; }
void gen::FortranCallback::setLHEEvent | ( | lhef::LHEEvent * | lhee | ) | [inline] |
Definition at line 27 of file FortranCallback.h.
References fEventBlock.
Referenced by gen::Pythia6Hadronizer::hadronize().
{ fEventBlock=lhee; }
void gen::FortranCallback::setLHERunInfo | ( | lhef::LHERunInfo * | lheri | ) | [inline] |
Definition at line 26 of file FortranCallback.h.
References fRunBlock.
Referenced by gen::Pythia6Hadronizer::initializeForExternalPartons().
{ fRunBlock=lheri; }
lhef::LHEEvent* gen::FortranCallback::fEventBlock [private] |
Definition at line 45 of file FortranCallback.h.
Referenced by fillEvent(), and setLHEEvent().
FortranCallback * gen::FortranCallback::fInstance = 0 [static, private] |
Definition at line 48 of file FortranCallback.h.
Referenced by getInstance().
int gen::FortranCallback::fIterationsPerEvent [private] |
Definition at line 46 of file FortranCallback.h.
Referenced by fillEvent(), getIterationsPerEvent(), and resetIterationsPerEvent().
lhef::LHERunInfo* gen::FortranCallback::fRunBlock [private] |
Definition at line 44 of file FortranCallback.h.
Referenced by fillHeader(), and setLHERunInfo().