jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.model
Class PDF

java.lang.Object
  extended by cedar.jetweb.model.PDF

public class PDF
extends java.lang.Object

Container for PDF information contains the pdf name and lhapdf number also contains method for converting pdf number to string and vice-versa

Author:
James Monk

Constructor Summary
PDF(java.lang.Integer member)
          Instantiates a PDF with the given PDF member number
PDF(java.lang.String name)
          Instantiates a PDF with the given name
 
Method Summary
 boolean equals(java.lang.Object pdf)
          Overload the Object.equals() method.
static java.util.Vector<PDF> getKnownPDFs()
           
 java.lang.Integer getMember()
          Gives the LHAPDF member number of the PDF
 java.lang.String getName()
          Gives the name of the PDF
 boolean isPhoton()
          Returns true if this PDF is for a photon, false otherwise.
 boolean isPion()
          Returns true if this PDF is for a pion, false otherwise.
 boolean isProton()
          Returns true if this PDF is for a proton, false otherwise.
 PDF setIsPhoton()
          Sets this PDF to be a photon PDF
 PDF setIsPion()
          Sets this PDF to be a pion PDF
 PDF setIsProton()
          Sets this PDF to be Proton PDF
 PDF setMember(java.lang.Integer member)
          Set the PDF member number
 PDF setName(java.lang.String name)
          Set the name of the PDF
 java.lang.String toString()
          Returns the PDF name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PDF

public PDF(java.lang.Integer member)
Instantiates a PDF with the given PDF member number

Parameters:
integer - the LHAPDF number of the PDF


PDF

public PDF(java.lang.String name)
Instantiates a PDF with the given name

Parameters:
String - the name of the PDF

Method Detail

getKnownPDFs

public static java.util.Vector<PDF> getKnownPDFs()

setName

public PDF setName(java.lang.String name)
Set the name of the PDF

Parameters:
String - the name of the PDF


setMember

public PDF setMember(java.lang.Integer member)
Set the PDF member number

Parameters:
Integer - the LHAPDF number of the integer


getMember

public java.lang.Integer getMember()
Gives the LHAPDF member number of the PDF


getName

public java.lang.String getName()
Gives the name of the PDF


isProton

public boolean isProton()
Returns true if this PDF is for a proton, false otherwise. If this has not been explicitly set then it is deduced from the PDF number.


isPhoton

public boolean isPhoton()
Returns true if this PDF is for a photon, false otherwise. If this has not been explicitly set then it is deduced from the PDF number.


isPion

public boolean isPion()
Returns true if this PDF is for a pion, false otherwise. If this has not been explicitly set then it is deduced from the PDF number.


setIsPhoton

public PDF setIsPhoton()
Sets this PDF to be a photon PDF


setIsProton

public PDF setIsProton()
Sets this PDF to be Proton PDF


setIsPion

public PDF setIsPion()
Sets this PDF to be a pion PDF


toString

public java.lang.String toString()
Returns the PDF name.

Overrides:
toString in class java.lang.Object


equals

public boolean equals(java.lang.Object pdf)
Overload the Object.equals() method. Uses the PDF number to compare two PDFs.

Overrides:
equals in class java.lang.Object