CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes

gen::FortranCallback Class Reference

#include <FortranCallback.h>

List of all members.

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


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.

{

   //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]
int gen::FortranCallback::getIterationsPerEvent ( ) const [inline]

Definition at line 34 of file FortranCallback.h.

References fIterationsPerEvent.

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

{ 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; }

Member Data Documentation

Definition at line 45 of file FortranCallback.h.

Referenced by fillEvent(), and setLHEEvent().

Definition at line 48 of file FortranCallback.h.

Referenced by getInstance().

Definition at line 46 of file FortranCallback.h.

Referenced by fillEvent(), getIterationsPerEvent(), and resetIterationsPerEvent().

Definition at line 44 of file FortranCallback.h.

Referenced by fillHeader(), and setLHERunInfo().