jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.model.plots
Class FittedPlot

java.lang.Object
  extended by cedar.jetweb.model.plots.DataPlot
      extended by cedar.jetweb.model.plots.FittedPlot
All Implemented Interfaces:
java.io.Serializable

public class FittedPlot
extends DataPlot

Plot of predicted data which has been compared to a set of Real Data (comparison plot). Normalisation factor and Chi2 values indicate quality of the match.

Author:
Jon Butterworth, UCL.
See Also:
getCompPlot(), Serialized Form

Field Summary
 
Fields inherited from class cedar.jetweb.model.plots.DataPlot
chi2, collisionId, csnId, dataPoints, ecms, FITTED, hasdata, number, paperId, PREDICTED, proc, procIdWanted, REAL, shape, sysScale, title
 
Constructor Summary
FittedPlot(int plotId, Fit fitIn)
          Instantiate a FittedPlot based upon a predicted plot and a fitId.
FittedPlot(PredictedPlot predictedPlot, Fit fitIn)
          Instantiate a FittedPlot based upon a predicted plot and a fitId.
FittedPlot(RealPlot realPlot, Fit fitIn)
          Instantiate a FittedPlot based upon a real plot and a fitId.
 
Method Summary
 double[] getChi2()
          Return a double array [chi2,dof] - comparison between this plot and another.
 DataPlot getCompPlot()
          Comparison DataPlot - a Real data set to be compared to this one - which should not itself be real.
 Fit getFit()
          Get the fit
 MCProcessType getMCProcessType()
          Return the MCProcessType used to generate this plot.
 int getProcIdWanted()
          Return the Id of the MCProcessType which should be used to generate this plot for the model which was used.
 void setFit(Fit fit)
          Set the fit record
 void toDB()
          Write the data plot to the DB.
 
Methods inherited from class cedar.jetweb.model.plots.DataPlot
addSwitch, deleteSwitch, getChi2, getChi2, getCMEnergy, getCollisionId, getDataPoints, getId, getNDataSources, getNumber, getPaperId, getProcIdWanted, getSwitches, getSysScale, getTitle, getXLabel, getYLabel, getYMax, getYMin, getYMinNonZero, hasData, isDefaultFit, isDefaultSum, isLogarithmic, isPredictedBy, isShape, populateDBData, setChi2, setCMEnergy, setCollisionId, setDataPoints, setDefaultFit, setDefaultSum, setFrom, setHasData, setId, setLogarithmic, setNumber, setPaperId, setShape, setSysScale, setTitle, setXLabel, setYLabel, storeSwitches, zero
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FittedPlot

public FittedPlot(PredictedPlot predictedPlot,
                  Fit fitIn)
           throws JetWebException
Instantiate a FittedPlot based upon a predicted plot and a fitId.

Parameters:
predictedPlot -
fit -
Throws:
JetWebDBException
JetWebException


FittedPlot

public FittedPlot(int plotId,
                  Fit fitIn)
           throws JetWebException
Instantiate a FittedPlot based upon a predicted plot and a fitId.

Parameters:
fit -
Throws:
JetWebDBException
JetWebException


FittedPlot

public FittedPlot(RealPlot realPlot,
                  Fit fitIn)
           throws JetWebException
Instantiate a FittedPlot based upon a real plot and a fitId.

Parameters:
realPlot -
fit -
Throws:
JetWebDBException
JetWebException

Method Detail

getFit

public Fit getFit()
Get the fit


setFit

public void setFit(Fit fit)
Set the fit record


getCompPlot

public DataPlot getCompPlot()
Comparison DataPlot - a Real data set to be compared to this one - which should not itself be real.


toDB

public void toDB()
          throws JetWebException
Write the data plot to the DB.

Parameters:
fitId - DB - fit id
Throws:
JetWebException


getMCProcessType

public MCProcessType getMCProcessType()
                               throws JetWebException
Return the MCProcessType used to generate this plot.

Specified by:
getMCProcessType in class DataPlot
Throws:
JetWebException


getProcIdWanted

public int getProcIdWanted()
                    throws JetWebException
Return the Id of the MCProcessType which should be used to generate this plot for the model which was used.

Specified by:
getProcIdWanted in class DataPlot
Throws:
JetWebException


getChi2

public double[] getChi2()
Return a double array [chi2,dof] - comparison between this plot and another.

Overrides:
getChi2 in class DataPlot
Returns:
double[2] - [chi2,dof]