CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
gen::FortranCallback Class Reference

#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 FortranCallbackgetInstance ()
 

Private Member Functions

 FortranCallback ()
 

Private Attributes

lhef::LHEEventfEventBlock
 
int fIterationsPerEvent
 
lhef::LHERunInfofRunBlock
 

Static Private Attributes

static FortranCallbackfInstance = 0
 

Detailed Description

Definition at line 18 of file FortranCallback.h.

Constructor & Destructor Documentation

gen::FortranCallback::FortranCallback ( )
private

Definition at line 57 of file FortranCallback.h.

Referenced by getInstance().

60 {
61 }
lhef::LHERunInfo * fRunBlock
lhef::LHEEvent * fEventBlock

Member Function Documentation

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.

Referenced by gen::Pythia6ServiceWithCallback::upEvnt().

84 {
85 
86  //if ( fPartonLevel == 0 ) return;
87  //const lhef::HEPEUP* hepeup = fPartonLevel->getHEPEUP();
88 
89  if ( fEventBlock == 0 ) return;
90 
91  const lhef::HEPEUP* hepeup = fEventBlock->getHEPEUP();
92 
93  if (fIterationsPerEvent++)
94  {
95  hepeup_.nup = 0;
96  return;
97  }
98 
100 
101  return;
102 
103 }
struct HEPEUP_ hepeup_
const HEPEUP * getHEPEUP() const
Definition: LHEEvent.h:42
static void fillHEPEUP(const HEPEUP *hepeup)
lhef::LHEEvent * fEventBlock
void gen::FortranCallback::fillHeader ( )

Definition at line 69 of file FortranCallback.h.

References lhef::CommonBlocks::fillHEPRUP(), fRunBlock, and lhef::LHERunInfo::getHEPRUP().

Referenced by gen::Pythia6ServiceWithCallback::upInit().

70 {
71 
72  if ( fRunBlock == 0 ) return;
73 
74  //const lhef::HEPRUP* heprup = &(fRunBlock->heprup());
75  const lhef::HEPRUP* heprup = fRunBlock->getHEPRUP();
76 
78 
79  return;
80 
81 }
lhef::LHERunInfo * fRunBlock
const HEPRUP * getHEPRUP() const
Definition: LHERunInfo.h:52
static void fillHEPRUP(const HEPRUP *heprup)
FortranCallback * gen::FortranCallback::getInstance ( )
static
int gen::FortranCallback::getIterationsPerEvent ( ) const
inline

Definition at line 34 of file FortranCallback.h.

References fIterationsPerEvent.

34 { return fIterationsPerEvent; }
void gen::FortranCallback::resetIterationsPerEvent ( )
inline
void gen::FortranCallback::setLHEEvent ( lhef::LHEEvent lhee)
inline

Definition at line 27 of file FortranCallback.h.

References fEventBlock.

Referenced by gen::Pythia6Hadronizer::hadronize().

27 { fEventBlock=lhee; }
lhef::LHEEvent * fEventBlock
void gen::FortranCallback::setLHERunInfo ( lhef::LHERunInfo lheri)
inline

Definition at line 26 of file FortranCallback.h.

References fRunBlock.

Referenced by gen::Pythia6Hadronizer::initializeForExternalPartons().

26 { fRunBlock=lheri; }
lhef::LHERunInfo * fRunBlock

Member Data Documentation

lhef::LHEEvent* gen::FortranCallback::fEventBlock
private

Definition at line 45 of file FortranCallback.h.

Referenced by fillEvent(), and setLHEEvent().

FortranCallback * gen::FortranCallback::fInstance = 0
staticprivate

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().