jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.model
Class RunSeries

java.lang.Object
  extended by cedar.jetweb.model.ResultSearchPattern
      extended by cedar.jetweb.model.RunSeries
All Implemented Interfaces:
java.lang.Cloneable

public class RunSeries
extends ResultSearchPattern

Unique set of parameters for a specific MCProcessType and generator. Need to update the timestamp (date) whenever a logfile is added. Renamed from Logparms class.

Version:
$Date: 2006-06-20 11:01:14 +0100 (Tue, 20 Jun 2006) $ $Revision: 1194 $
Author:
Jon Butterworth, James Monk

Field Summary
 
Fields inherited from class cedar.jetweb.model.ResultSearchPattern
generatorList, notMatching, photonpdfList, protonpdfList
 
Constructor Summary
RunSeries()
          Instantiate a new runseries object just setting defaults.
RunSeries(int newId)
          Instantiate a new runseries object based on a given unique Id.
 
Method Summary
 RunSeries addRun(Run run)
          Adds a run to the list of runs in this runseries
 java.util.Vector<Model> getConsistentModels()
          Return all models consistent with this runSeries.
 java.util.Date getDate()
          Return the last date any data was added for this set of parameters.
 Generator getGenerator()
          Returns the generator consistent with all runs in this runSeries; Returns null if runs are not consistent
 Generator getGenerator(int i)
          Override the method on ResultSearchPattern.
 int getId()
          Return the unique Id of this set of parameters.
 java.util.Vector<LogFile> getLogFiles()
          Return a Vector containing the LogFiles associated with this RunSeries
 double getLumi()
          Get the integrated luminosity available for these parameters.
 MCProcessType getMCProcessType()
          Gets MCProcessType name Returns the unique process that is compatible with only the processes in this runseries and is also valid.
 int getNLogs()
          Return the number of LogFiles associated with this RunSeries
 PDF getPhotonPDF()
          Gets photon particle density function
 java.util.Vector<PDF> getPhotonPDFList()
          Gets a list of photon particle density functions
 PDF getProtonPDF()
          Gets proton particle density function
 java.util.Vector<PDF> getProtonPDFList()
          Gets a list of proton particle density functions
 boolean isValid()
          Returns whether this runSeries contains a valid combination of Runs
 boolean retrieve()
           
 void setDate(java.util.Date date)
          Set the last date any data was added for this set of parameters.
 void setGenerator(Generator generator)
          Sets the generator of each run and hence the overall generator.
 void setId(int newrunseriesId)
          Set the unique Id of this set of parameters.
 RunSeries setLumi(double newLumi)
          Set the integrated luminosity available for these parameters.
 RunSeries setMCProcessType(MCProcessType proc)
          Sets the overall ProcessType.
 
Methods inherited from class cedar.jetweb.model.ResultSearchPattern
clone, dumpParms, getGeneratorList, getNonMatchingParameters, getParms, getPhotonPDF, getProtonPDF, getPthat, matches, matches, matches, setDefaults, setSoftDefaults
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunSeries

public RunSeries()
Instantiate a new runseries object just setting defaults. No id is set.


RunSeries

public RunSeries(int newId)
          throws JetWebException
Instantiate a new runseries object based on a given unique Id.

Parameters:
newId -
Throws:
JetWebException

Method Detail

retrieve

public boolean retrieve()
                 throws JetWebException
Throws:
JetWebException

getId

public int getId()
Return the unique Id of this set of parameters.

Returns:
runseriesId


setId

public void setId(int newrunseriesId)
Set the unique Id of this set of parameters.

Parameters:
newrunseriesId -


getDate

public java.util.Date getDate()
Return the last date any data was added for this set of parameters.

Returns:
date


setDate

public void setDate(java.util.Date date)
Set the last date any data was added for this set of parameters.

Parameters:
date -


setLumi

public RunSeries setLumi(double newLumi)
Set the integrated luminosity available for these parameters. If this runSeries object already contains one or more runs then it will maintain the relative luminosities of the different runs. If there are no existing runs then it will create one.

Parameters:
newLumi - is the new luminosity value to be set.


getLumi

public double getLumi()
Get the integrated luminosity available for these parameters. If the different runs in this Runseries have different luminosties then they are averaged. Questionable, but what else to do?


getNLogs

public int getNLogs()
Return the number of LogFiles associated with this RunSeries


getLogFiles

public java.util.Vector<LogFile> getLogFiles()
Return a Vector containing the LogFiles associated with this RunSeries


setMCProcessType

public RunSeries setMCProcessType(MCProcessType proc)
                           throws JetWebException
Sets the overall ProcessType. If you try and set a process that is not valid on its own then nothing is done. If you set a valid process that is compatible with the existing runs then additional runs (of zero lumi) are added such that the overall process is the one you asked for. If you set a process that is not compatible with even any one of the runs that already exist then the existing runs are removed but the luminosity is preserved.

Throws:
JetWebException


getMCProcessType

public MCProcessType getMCProcessType()
                               throws JetWebException
Gets MCProcessType name Returns the unique process that is compatible with only the processes in this runseries and is also valid. Returns null if no such process exists

Returns:
proc
Throws:
JetWebException


addRun

public RunSeries addRun(Run run)
Adds a run to the list of runs in this runseries


setGenerator

public void setGenerator(Generator generator)
Sets the generator of each run and hence the overall generator. If no run exists then it creates one.

Overrides:
setGenerator in class ResultSearchPattern


getGenerator

public Generator getGenerator()
                       throws JetWebException
Returns the generator consistent with all runs in this runSeries; Returns null if runs are not consistent

Overrides:
getGenerator in class ResultSearchPattern
Returns:
generator
Throws:
JetWebException


getGenerator

public Generator getGenerator(int i)
                       throws JetWebException
Override the method on ResultSearchPattern. Only works for i=0!

Overrides:
getGenerator in class ResultSearchPattern
Returns:
generator name (String)
Throws:
JetWebException


getProtonPDFList

public java.util.Vector<PDF> getProtonPDFList()
Description copied from class: ResultSearchPattern
Gets a list of proton particle density functions

Overrides:
getProtonPDFList in class ResultSearchPattern
Returns:
vector of PDF names (Strings)


getPhotonPDFList

public java.util.Vector<PDF> getPhotonPDFList()
Description copied from class: ResultSearchPattern
Gets a list of photon particle density functions

Overrides:
getPhotonPDFList in class ResultSearchPattern
Returns:
vector of PDFs


getProtonPDF

public PDF getProtonPDF()
                 throws JetWebException
Description copied from class: ResultSearchPattern
Gets proton particle density function

Overrides:
getProtonPDF in class ResultSearchPattern
Returns:
protonPDF
Throws:
JetWebException


getPhotonPDF

public PDF getPhotonPDF()
                 throws JetWebException
Description copied from class: ResultSearchPattern
Gets photon particle density function

Overrides:
getPhotonPDF in class ResultSearchPattern
Returns:
photonPDF
Throws:
JetWebException


getConsistentModels

public java.util.Vector<Model> getConsistentModels()
                                            throws JetWebException
Return all models consistent with this runSeries.

Overrides:
getConsistentModels in class ResultSearchPattern
Throws:
JetWebException


isValid

public boolean isValid()
                throws JetWebException
Returns whether this runSeries contains a valid combination of Runs

Throws:
JetWebException