Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

Run Class Reference

Collaboration diagram for Run:

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents a single Monte Carlo run. Contains the generator settings used, the luminosity generated and the process generated. Should allow two runs to be compared to see if they can be used as part of the same data set
Author:
James Monk

Definition at line 20 of file Run.java.


Public Member Functions

Run setProcParams (HashMap< String, Object > arg)
Run setMCProcessType (Collision collision) throws JetWebException
Run setMCProcessType (MCProcessType proc)
MCProcessType getMCProcessType ()
Run setCrossSection (double cs)
Double getCrossSection ()
Run setLumi (double lumi)
double getLumi ()
Run setGenerator (Generator generator)
Generator getGenerator ()
Run setPDF (PDF pdf)
PDF getProtonPDF ()
PDF getPhotonPDF ()
PDF getPionPDF ()
boolean isConsistentWith (Run run)
boolean equals (Run run)

Private Attributes

MCProcessType proc_ = new MCProcessType()
double lumi_ = 0.0
double crossSection_ = -1.0
HashMap< String, Object > procParameters_ = new HashMap<String Object>()
Generator generator_
PDF photonPDF_
PDF protonPDF_
PDF pionPDF_

Static Private Attributes

String SCHEME_PDFLIB = "PDFLIB"
String SCHEME_LHAPDF = "LHAPDF"
String PROTON = "gamma"
String PHOTON = "p"
String ANTIPROTON = "pbar"

Member Function Documentation

boolean equals Run  run  ) 
 

Same as the isConsistentWith method, but with the stricter requirement that the process must be identical in the two runs and not merely compatible

Definition at line 219 of file Run.java.

References MCProcessType.equals(), and Run.getMCProcessType().

00219                                   {
00220     
00221     boolean eq = (proc_.equals(run.getMCProcessType())) && 
00222         isConsistentWith(run);
00223     
00224     return eq;
00225     }

Double getCrossSection  ) 
 

Definition at line 103 of file Run.java.

00103                                    {
00104     return crossSection_;
00105     }

Generator getGenerator  ) 
 

returns the generator used in this run

Definition at line 139 of file Run.java.

Referenced by RunSeries.getGenerator(), and Run.isConsistentWith().

00139                                    {
00140     return(generator_);
00141     };

double getLumi  ) 
 

returns the luminosity generated in this run

Definition at line 122 of file Run.java.

00122                            {
00123     return(lumi_);
00124     };

MCProcessType getMCProcessType  ) 
 

returns the process type for this run

Definition at line 90 of file Run.java.

Referenced by Run.equals(), and Run.isConsistentWith().

00090                                            {
00091     return(proc_);
00092     };

PDF getPhotonPDF  ) 
 

Definition at line 169 of file Run.java.

Referenced by RunSeries.getPhotonPDFList(), and Run.isConsistentWith().

00169                              {
00170     return(photonPDF_);
00171     }

PDF getPionPDF  ) 
 

Definition at line 173 of file Run.java.

00173                            {
00174     return pionPDF_;
00175     };

PDF getProtonPDF  ) 
 

Definition at line 165 of file Run.java.

Referenced by RunSeries.getProtonPDFList(), and Run.isConsistentWith().

00165                              {
00166     return(protonPDF_);
00167     }

boolean isConsistentWith Run  run  ) 
 

Definition at line 186 of file Run.java.

References PDF.equals(), MCProcessType.getCompatibleProcesses(), Run.getGenerator(), MCProcessType.getId(), Run.getMCProcessType(), Run.getPhotonPDF(), and Run.getProtonPDF().

Referenced by RunSeries.addRun().

00186                                             {
00187 
00188     boolean sameProtonPDF = false;
00189     sameProtonPDF = protonPDF_==null || 
00190         run.getProtonPDF()==null;
00191     
00192     if(!sameProtonPDF &&
00193        protonPDF_.equals(run.getProtonPDF())) sameProtonPDF = true;
00194     
00195     boolean samePhotonPDF = false;
00196     samePhotonPDF = photonPDF_==null ||
00197         run.getPhotonPDF()==null;
00198     if(!samePhotonPDF && 
00199        photonPDF_.equals(run.getPhotonPDF())) samePhotonPDF = true;
00200        
00201     return(
00202            samePhotonPDF && 
00203            sameProtonPDF &&
00204            //generator_.isConsistentWith(run.getGenerator())&&
00205            generator_.hasConsistentModel(run.getGenerator()) &&
00206            proc_.getCompatibleProcesses().contains
00207            (run.getMCProcessType().getId())
00208            );
00209            
00210     
00211     };

Run setCrossSection double  cs  ) 
 

Sets the cross section of this run

Definition at line 98 of file Run.java.

Referenced by JetWebLogReader.fillRun().

00098                                          {
00099     crossSection_ = cs;
00100     return this;
00101     }

Run setGenerator Generator  generator  ) 
 

sets the generator used in this run

Definition at line 130 of file Run.java.

Referenced by JetWebLogReader.fillRun(), RunSeries.setGenerator(), and RunSeries.setMCProcessType().

00130                                                 {
00131     generator_ = generator;
00132     return(this);
00133     };

Run setLumi double  lumi  ) 
 

sets the luminosity generated in this run

Definition at line 112 of file Run.java.

Referenced by JetWebLogReader.fillRun(), RunSeries.setLumi(), and RunSeries.setMCProcessType().

00112                                    {
00113     lumi_ = lumi;
00114     return(this);
00115     };

Run setMCProcessType MCProcessType  proc  ) 
 

Sets the process type for this run.

Definition at line 81 of file Run.java.

00081                                                    {
00082     proc_ = proc;
00083     return(this);
00084     };

Run setMCProcessType Collision  collision  )  throws JetWebException
 

Sets the Process for this run from a collision and from the known process parameters for the generator

Parameters:
Collision that determines the process type to use

Definition at line 64 of file Run.java.

References MCProcessType.getId(), MCProcessType.setCollision(), and MCProcessType.setMCProcessName().

Referenced by JetWebLogReader.fillRun(), and RunSeries.setMCProcessType().

00065                           {
00066     
00067     if(proc_==null) proc_ = new MCProcessType();
00068 
00069     proc_.setCollision(collision);
00070     proc_.setMCProcessName(generator_.getMCProcessName(procParameters_));
00071     proc_.getId();
00072     
00073     return(this);
00074     }

Run setPDF PDF  pdf  ) 
 

Sets one of the pdfs used in this run

Parameters:
PDF the pdf to be used in this run.

Definition at line 149 of file Run.java.

References PDF.isPhoton(), PDF.isPion(), and PDF.isProton().

Referenced by JetWebLogReader.fillRun(), RunSeries.setGenerator(), RunSeries.setLumi(), and RunSeries.setMCProcessType().

00149                               {
00150 
00151     //System.out.println("setting pdf in run");
00152 
00153     //System.out.println("pdf = "+pdf.getName());
00154        
00155     //System.out.println("pdf.isPhoton() = "+pdf.isPhoton());
00156     //System.out.println("pdf.isProton() = "+pdf.isProton());
00157 
00158     if(pdf.isPhoton()) photonPDF_ = pdf;
00159     if(pdf.isProton()) protonPDF_ = pdf;
00160     if(pdf.isPion())   pionPDF_ = pdf;
00161 
00162     return this;
00163     }

Run setProcParams HashMap< String, Object >  arg  ) 
 

Sets the list of parameters that determine the process and not the model

Parameters:
HashMap of the parameter array names and the array

Definition at line 51 of file Run.java.

Referenced by JetWebLogReader.fillRun().

00051                                  {
00052     //System.out.println("procParams = "+arg);
00053     procParameters_ = arg;
00054     return(this);
00055     }


Member Data Documentation

String ANTIPROTON = "pbar" [static, private]
 

Definition at line 42 of file Run.java.

double crossSection_ = -1.0 [private]
 

Definition at line 24 of file Run.java.

Generator generator_ [private]
 

Definition at line 32 of file Run.java.

double lumi_ = 0.0 [private]
 

Definition at line 23 of file Run.java.

String PHOTON = "p" [static, private]
 

Definition at line 41 of file Run.java.

PDF photonPDF_ [private]
 

Definition at line 34 of file Run.java.

PDF pionPDF_ [private]
 

Definition at line 36 of file Run.java.

MCProcessType proc_ = new MCProcessType() [private]
 

Definition at line 22 of file Run.java.

HashMap<String, Object> procParameters_ = new HashMap<String Object>() [private]
 

Definition at line 30 of file Run.java.

String PROTON = "gamma" [static, private]
 

Definition at line 40 of file Run.java.

PDF protonPDF_ [private]
 

Definition at line 35 of file Run.java.

String SCHEME_LHAPDF = "LHAPDF" [static, private]
 

Definition at line 39 of file Run.java.

String SCHEME_PDFLIB = "PDFLIB" [static, private]
 

Definition at line 38 of file Run.java.


The documentation for this class was generated from the following file:

Generated Wed Jan 17 09:14:27 GMT 2007