jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.generator
Class Pythia

java.lang.Object
  extended by cedar.jetweb.generator.Generator
      extended by cedar.jetweb.generator.Pythia

public class Pythia
extends Generator

Class containing everything JetWeb needs to know about Pythia.


Field Summary
 
Fields inherited from class cedar.jetweb.generator.Generator
generatorName, generatorVersion, intArrayNames, intNames, intParameterArrays, intParameters, realArrayNames, realNames, realParameterArrays, realParameters
 
Constructor Summary
Pythia(java.lang.String version)
          Create new instance of Pythia (6 or below) with a String specifying the version.
 
Method Summary
 boolean checkParameters()
          Perform any generator-specific consistency checks.
 java.lang.String getMCProcessName(java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.Integer,java.lang.Integer>> parameters)
          Return an MCProcessType deduced from the input map of parameters.
protected  java.lang.String getParticleName(java.lang.String pName)
          Send it the JetWeb standard name for a particle and return the name required by the specific generator in the control cards.
 java.lang.String getProcessSelector(MCProcessType proc)
          Return the appropriate String to set the process(es) to be generated.
 java.lang.Double getPthat()
          Return the minimum hard transverse momemtum for partonic scatters.
static void init()
          Build lists of the colliders which are irrelevant to PYTHIA mstp, parp, mstj and parj arrays.
 boolean inModel(java.lang.String pName)
          Exclude MSUB and KFIN from the model.
 boolean inProcessType(java.lang.String pName)
          Include MSUB, KFIN and MSTP in the processtype.
 void writeSteering(java.io.BufferedWriter ofile, Model model, MCProcessType proc)
          Write out the steering for this generator
 
Methods inherited from class cedar.jetweb.generator.Generator
allNames, allVersions, defaultName, defaultVersion, getIntArrayNames, getIntNames, getIntParameterArrays, getIntParameters, getIsRelevantToPhoton, getIsRelevantToPhoton, getIsRelevantToProton, getIsRelevantToProton, getMaxIndex, getMinIndex, getName, getRealArrayNames, getRealNames, getRealParameterArrays, getRealParameters, getVersion, isConsistentWith, isRelevant, isRelevant, Maker, Maker, setDefaults, setIntElement, setIntParameterArrays, setIntParameters, setParameter, setParameter, setRealElement, setRealParameterArrays, setRealParameters, setSoftDefaults, toString, union, writeCommonFFKey, writeGenFFKey, writePapersFFKey, writePDFFFKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pythia

public Pythia(java.lang.String version)
Create new instance of Pythia (6 or below) with a String specifying the version.

Method Detail

getProcessSelector

public java.lang.String getProcessSelector(MCProcessType proc)
Return the appropriate String to set the process(es) to be generated. For PYTHIA, this means a list of FFKEY cards giving the MSTP(14) or MSUB numbers. DIS and annhilation processes not yet implemented.

Specified by:
getProcessSelector in class Generator


getMCProcessName

public java.lang.String getMCProcessName(java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.Integer,java.lang.Integer>> parameters)
                                  throws JetWebException
Return an MCProcessType deduced from the input map of parameters.

Specified by:
getMCProcessName in class Generator
Throws:
JetWebException


checkParameters

public boolean checkParameters()
Description copied from class: Generator
Perform any generator-specific consistency checks. Return true if everything has been set consistent, false if its broken and we don't know how to fix it.

Specified by:
checkParameters in class Generator


getParticleName

protected java.lang.String getParticleName(java.lang.String pName)
Description copied from class: Generator
Send it the JetWeb standard name for a particle and return the name required by the specific generator in the control cards.

Specified by:
getParticleName in class Generator


writeSteering

public void writeSteering(java.io.BufferedWriter ofile,
                          Model model,
                          MCProcessType proc)
                   throws JetWebException
Description copied from class: Generator
Write out the steering for this generator

Specified by:
writeSteering in class Generator
Throws:
JetWebException


inModel

public boolean inModel(java.lang.String pName)
Exclude MSUB and KFIN from the model. Everything else is in.

Overrides:
inModel in class Generator


inProcessType

public boolean inProcessType(java.lang.String pName)
Include MSUB, KFIN and MSTP in the processtype. Everything else is out.

Overrides:
inProcessType in class Generator


getPthat

public java.lang.Double getPthat()
Description copied from class: Generator
Return the minimum hard transverse momemtum for partonic scatters.

Specified by:
getPthat in class Generator


init

public static void init()
Build lists of the colliders which are irrelevant to PYTHIA mstp, parp, mstj and parj arrays.

See Also:
#checkMstpRelevance(MCProcessType, Integer), #checkParpRelevance(MCProcessType, Integer), #checkMstjRelevance(MCProcessType, Integer), #checkParjRelevance(MCProcessType, Integer)