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

MCProcessType Class Reference

Inheritance diagram for MCProcessType:

Inheritance graph
[legend]
Collaboration diagram for MCProcessType:

Collaboration graph
[legend]
List of all members.

Detailed Description

Instances of this class represent a particular way of generating a physical process. They contain a Collision (generator independent) and a comment (generator/parameter dependent process name). Future extensions may include a final state and/or a more tightly specified comment

Author:
Jon Butterworth
Version:
Date
2006-07-15 12:45:24 +0100 (Sat, 15 Jul 2006)
Revision
1253

Definition at line 28 of file MCProcessType.java.


Public Member Functions

 MCProcessType ()
 MCProcessType (int id)
 MCProcessType (String procName, Collision col)
 MCProcessType (MCProcessType proc)
int getId ()
void setDefaultLumi (float lumi)
float getDefaultLumi ()
int getProcessId ()
String getMCProcessName ()
String getProcessName ()
void setMCProcessName (String name)
void setProcessName (String name)
Collision getCollision ()
void setId (int id)
void setProcessId (int id)
void setCollision (Collision c)
void setCollisionId (int cId)
int getCollisionId ()
void setIsValid (boolean isValid)
boolean isValid ()
boolean getIsValid ()
Vector< Integer > getCompatibleProcesses ()
void setCompatibleProcesses (Blob compat)
void setCompatibleProcesses (Vector< Integer > compat)
Vector< String > getUnspecifiedParameters ()
boolean matches (MCProcessType proc)
boolean equals (Object obj)
int compareTo (Object obj)
int hashCode ()
String getBeams ()
boolean hasPhoton ()
boolean hasProton ()
boolean isPhotoproduction ()
boolean isDIS ()
boolean isGammaGamma ()
boolean isPP ()
String toString ()
boolean store () throws JetWebException
boolean retrieve () throws JetWebException
boolean delete () throws JetWebException

Static Public Member Functions

Vector< MCProcessTypegetAll (boolean selectable)
Vector< MCProcessTypegetAll (Collision collision, boolean selectable)
boolean checkCollision (int collId, int procId) throws JetWebException

Static Public Attributes

final String HIGHET = "High ET"
final String DIS = "DIS"
final String MINBIAS = "Minimum Bias"
final String CHARM = "Charm Only"
final String CHARMDIS = "Charm Only DIS"
final String BEAUTY = "Beauty Only"
final String BEAUTYDIS = "Beauty Only DIS"
final String ANNIHILATION = "Electron-positron annhilation"
final String PHOTONPHOTON = "Photon Photon"
final String PHOTONPARTON = "Photon Parton"
final String PARTONPARTON = "Parton Parton"
final String CHARMPHOTONPHOTON = "Charm Photon Photon"
final String CHARMPHOTONPARTON = "Charm Photon Parton"
final String CHARMPARTONPARTON = "Charm Parton Parton"
final String BEAUTYPHOTONPHOTON = "Beauty Photon Photon"
final String BEAUTYPHOTONPARTON = "Beauty Photon Parton"
final String BEAUTYPARTONPARTON = "Beauty Parton Parton"

Private Attributes

int processId = 0
int collisionId = -1
Collision collision
String processName
Vector< Integer > thisCompatibleProcesses_ = null
boolean dirtyThisCompatibleProcesses_ = true
float lumi_
boolean valid_

Static Private Attributes

HashMap< Integer, Vector<
Integer > > 
compatibleProcesses_ = new HashMap<Integer Vector<Integer>>()
Vector< MCProcessTypeallProcs
HashMap< Integer, MCProcessTypeknownProcs_

Constructor & Destructor Documentation

MCProcessType  ) 
 

Create an empty MCProcessType

Definition at line 72 of file MCProcessType.java.

References MCProcessType.compatibleProcesses_, and MCProcessType.setIsValid().

00072                            {
00073 
00074     setIsValid(false);
00075 
00076     Vector<Integer> tmp = new Vector<Integer>(1);
00077     tmp.add(new Integer(-1));
00078 
00079     if(!compatibleProcesses_.containsKey(-1)){
00080         compatibleProcesses_.put(new Integer(-1), tmp);
00081         compatibleProcesses_.put(new Integer(0), tmp);
00082     }
00083 
00084     }

MCProcessType int  id  ) 
 

Populate the class from the database, given the internal id. If id < 0 (i.e. id from a process that failed to find itself in the DB) then doesn't look in DB and sets itself not valid

Parameters:
pattern specifies parameters for the new model
Exceptions:
JetWebException 

Definition at line 93 of file MCProcessType.java.

References MCProcessType.collision, MCProcessType.getCollision(), MCProcessType.getDefaultLumi(), MCProcessType.getId(), MCProcessType.getMCProcessName(), MCProcessType.isValid(), MCProcessType.knownProcs_, MCProcessType.lumi_, MCProcessType.processId, MCProcessType.setIsValid(), and MCProcessType.valid_.

00093                                  {
00094 
00095     if(knownProcs_.containsKey(new Integer(id))){
00096         
00097         MCProcessType proc = knownProcs_.get(new Integer(id));
00098         
00099         this.processId = proc.getId();
00100         this.collision = proc.getCollision(); 
00101         this.processName = proc.getMCProcessName();
00102         this.lumi_ = proc.getDefaultLumi();
00103         // new, JMB
00104         this.valid_ = proc.isValid();
00105         //this = knownProcs_.get(id);
00106     }else{
00107         
00108         this.processId = id;
00109         if(id>0){
00110         try {
00111             
00112             DBManager.selectFromDB(this);
00113             
00114             //temporary until the DB contains the isValid column
00115             //and the compatible processes column
00116             
00117             //setIsValid(true);//set all processes valid for now
00118             
00119         } catch (Exception e){
00120             System.out.println(e);
00121         }
00122         
00123         knownProcs_.put(this.processId, this);
00124         }else{
00125         setIsValid(false);
00126         }
00127     }
00128     }

MCProcessType String  procName,
Collision  col
 

Populate the class from the database, given the process name and collision

Parameters:
procName the name of the process
col the collision

Definition at line 137 of file MCProcessType.java.

References MCProcessType.collision, MCProcessType.getId(), and MCProcessType.processName.

00137                                                         {
00138     processName = procName;
00139     collision = col;
00140     getId();
00141     }

MCProcessType MCProcessType  proc  ) 
 

Make a new MCProcessType identical to this one

Parameters:
proc 

Definition at line 149 of file MCProcessType.java.

References MCProcessType.collision, MCProcessType.getCollision(), MCProcessType.getDefaultLumi(), MCProcessType.getId(), MCProcessType.getMCProcessName(), and MCProcessType.lumi_.

00149                                              {
00150     this.processId = proc.getId();
00151     this.collision = proc.getCollision(); 
00152     this.processName = proc.getMCProcessName();
00153     this.lumi_ = proc.getDefaultLumi();
00154     }


Member Function Documentation

boolean checkCollision int  collId,
int  procId
throws JetWebException [static]
 

Lightweight way of checking that the input collisionId is consistent with the input processId without instantiating either the Collision or the MCProcessType.

Definition at line 520 of file MCProcessType.java.

00520                                                                                         {
00521     return DBManager.checkCollision(collId, procId);
00522     }

int compareTo Object  obj  ) 
 

Override the Comparator.compare method for sorting by

Definition at line 485 of file MCProcessType.java.

References Collision.getId().

00485                                     {
00486 
00487     boolean objNull = obj==null ||
00488         obj.getClass()!=this.getClass();
00489     //  boolean obj2Null = obj2==null ||
00490     //  obj2.getClass()!=this.getClass();
00491 
00492     //if(obj1Null && obj2Null) return 0;
00493     //if(obj1Null) return -1;
00494     //if(obj2Null) return 1;
00495 
00496     if(objNull) return -1;
00497 
00498     return this.getId() - ((MCProcessType)obj).getId();
00499     }

boolean delete  )  throws JetWebException
 

Populate the object in memory from the database. Return true if the information retrieved is up to date.

Definition at line 660 of file MCProcessType.java.

Referenced by RealPlot.delete(), and Maintainer.doGet().

00660                                                   {
00661     DBManager.deleteFromDB(this);
00662     return true;
00663     }

boolean equals Object  obj  ) 
 

Override the Object equals method. Use the processId.

Definition at line 470 of file MCProcessType.java.

References MCProcessType.getId(), and MCProcessType.processId.

Referenced by Run.equals().

00470                                      {
00471 
00472     if (obj==null) { return false; }
00473 
00474     if ( !this.getClass().equals(obj.getClass())  ) { return false; }
00475 
00476     MCProcessType p = (MCProcessType)obj;
00477     return (processId==p.getId());
00478 
00479     }

Vector<MCProcessType> getAll Collision  collision,
boolean  selectable
[static]
 

Returns a list of all valid MCProcessTypes in the database matching the input collision.

Parameters:
selectable if this is true, then only those processes which can be generated on their own, and which have data in the db to compare to, are returned.

Definition at line 425 of file MCProcessType.java.

References MCProcessType.getAll().

00425                                                                                        {
00426 
00427     if (collision==null) { return getAll(selectable); } 
00428     try {
00429         Vector<MCProcessType> procs = 
00430         DBManager.getAllMCProcessTypes(collision,selectable);
00431         return procs;
00432     } catch (JetWebException j) {
00433         System.out.println(j);
00434         return null;
00435     }
00436     }

Vector<MCProcessType> getAll boolean  selectable  )  [static]
 

Returns a list of MCProcessTypes in the database.

Parameters:
selectable if this is true, then only those processes which can be generated on their own, and which have data in the db to compare to, are returned.

Definition at line 409 of file MCProcessType.java.

References MCProcessType.allProcs.

Referenced by HTMLProcessWriter.addNewProcess(), MCProcessType.getAll(), and HTMLProcessWriter.writeMCProcessSelector().

00409                                                                   {
00410     try {
00411         allProcs = DBManager.getAllMCProcessTypes(selectable);
00412     } catch (JetWebException j) {
00413         System.out.println(j);
00414         return null;
00415     }
00416     return allProcs; 
00417     }

String getBeams  ) 
 

Return short format of colliding beams.

Definition at line 507 of file MCProcessType.java.

References MCProcessType.getCollision(), Particle.getName(), Collision.getParticle1(), and Collision.getParticle2().

00507                             {
00508 
00509     String beams = getCollision().getParticle1().getName()+       
00510         getCollision().getParticle2().getName();       
00511 
00512     return beams;
00513     }

Collision getCollision  ) 
 

get the collision for this process

Definition at line 232 of file MCProcessType.java.

Referenced by HTMLProcessWriter.addNewProcess(), MCProcessType.getBeams(), MCProcessType.getCollisionId(), HTMLJobWriter.getDescription(), RealPlot.getMCProcessType(), MCProcessType.hasPhoton(), MCProcessType.hasProton(), JobUtils.makeCards(), MCProcessType.matches(), MCProcessType.MCProcessType(), and DBManager.selectId().

00232                                    { 
00233     return collision; 
00234     }

int getCollisionId  ) 
 

Return the Id of the collision. this is necessary in order to write it to the DB using DBObjectManager

Definition at line 279 of file MCProcessType.java.

References MCProcessType.getCollision(), and Collision.getId().

00279                                {
00280     return(getCollision().getId());
00281     }

Vector<Integer> getCompatibleProcesses  ) 
 

Returns a Vector of process Ids with which this process is compatible If the database does not contain the information then it assumes that this process is compatible only with itself N.B. Valid processes do not have to be compatible with themselves!

Definition at line 324 of file MCProcessType.java.

References MCProcessType.compatibleProcesses_, MCProcessType.dirtyThisCompatibleProcesses_, MCProcessType.processId, and MCProcessType.thisCompatibleProcesses_.

Referenced by HTMLProcessWriter.addNewProcess(), RunSeries.getMCProcessType(), and Run.isConsistentWith().

00324                                                    {
00325 
00326     if(dirtyThisCompatibleProcesses_){
00327 
00328         thisCompatibleProcesses_ = 
00329         compatibleProcesses_.get(this.processId);
00330         dirtyThisCompatibleProcesses_ = false;
00331     }
00332     
00333     //stop-gap measure for now until entries are in 
00334     //the process_type table of the DB.  If this process is a 
00335     //non-zero Id then it is compatible with itself
00336     //(zero id means it has not been initialised properly)
00337 
00338     if(thisCompatibleProcesses_==null&&processId>0){
00339         thisCompatibleProcesses_ = new Vector<Integer>();
00340         thisCompatibleProcesses_.add(this.processId);
00341     }
00342 
00343     return(thisCompatibleProcesses_);
00344     }

float getDefaultLumi  ) 
 

Get the luminosity which will be requested if this process is generated.

Definition at line 187 of file MCProcessType.java.

Referenced by MCProcessType.MCProcessType().

00187                                  {
00188     return lumi_;
00189     }

int getId  ) 
 

Return the unique internal ID of this processType

Returns:
processId

Implements Storeable.

Definition at line 160 of file MCProcessType.java.

References MCProcessType.processId.

Referenced by RunSeriesCollection.add(), DBManager.addGeneratorParameters(), DBManager.addRunSeries(), LogFile.doChecks(), MCProcessType.equals(), FittedPlot.getMCProcessType(), MCProcessType.getProcessId(), Run.isConsistentWith(), LogFile.makePlots(), MCProcessType.matches(), MCProcessType.MCProcessType(), Run.setMCProcessType(), and PredictedPlot.validMCProcessType().

00160                       { 
00161 
00162     if (processId==0) {
00163         // See if this MCProcessType is one we understand.
00164         try {
00165         DBManager.selectId(this);
00166         } catch (Exception e){
00167         processId=-1;
00168         }
00169     }
00170 
00171     return processId; 
00172     }

boolean getIsValid  ) 
 

Returns whether the process is valid or not

Definition at line 313 of file MCProcessType.java.

References MCProcessType.isValid().

00313                                {
00314     return(isValid());
00315     }

String getMCProcessName  ) 
 

Return the process name

Definition at line 204 of file MCProcessType.java.

Referenced by HTMLProcessWriter.addNewProcess(), HTMLJobWriter.getDescription(), MCProcessType.getProcessName(), MCProcessType.matches(), and MCProcessType.MCProcessType().

00204 { return processName; }

int getProcessId  ) 
 

return the process Id for this process

Definition at line 196 of file MCProcessType.java.

References MCProcessType.getId().

00196                              {
00197     return(getId());
00198     }

String getProcessName  ) 
 

Return the process name

Definition at line 210 of file MCProcessType.java.

References MCProcessType.getMCProcessName().

Referenced by BlobUpload.main().

00210                                   {
00211     return(getMCProcessName());
00212     }

Vector<String> getUnspecifiedParameters  ) 
 

Return a Vector of all parameters which are not specified for this MCProcessType.

Definition at line 395 of file MCProcessType.java.

References MCProcessType.collision, and MCProcessType.processName.

00395                                                     {
00396     Vector<String> missing = new Vector<String>();
00397     if (collision==null) missing.add("collision");
00398     if (processName==null) missing.add("process name");
00399     return missing;
00400     }

int hashCode  ) 
 

Definition at line 501 of file MCProcessType.java.

00501 { return processId; }

boolean hasPhoton  ) 
 

Say whether or not photons are are in the initial state in this processType. If the particles are not specified, this returns true, since they may be photons and thus photon variables could be relevant.

Definition at line 535 of file MCProcessType.java.

References MCProcessType.ANNIHILATION, MCProcessType.DIS, MCProcessType.getCollision(), Particle.getName(), Collision.getParticle1(), Collision.getParticle2(), and MCProcessType.processName.

Referenced by DBManager.addRunSeries(), MCProcessType.isGammaGamma(), MCProcessType.isPhotoproduction(), and MCProcessType.isPP().

00535                               {
00536 
00537     if(getCollision()==null)return true;
00538 
00539     Particle p1 = getCollision().getParticle1();
00540     Particle p2 = getCollision().getParticle2();
00541     if (p1==null || p2==null) return true;
00542 
00543     if ((p1.getName().equalsIgnoreCase(Particle.ELECTRON) || 
00544          p1.getName().equalsIgnoreCase(Particle.POSITRON) ||
00545          p2.getName().equalsIgnoreCase(Particle.ELECTRON) || 
00546          p2.getName().equalsIgnoreCase(Particle.POSITRON)) &&
00547         processName.indexOf(DIS)<=0 &&
00548         !processName.equals(ANNIHILATION)){
00549         return true;
00550     }else {
00551         return false;
00552     }
00553     }

boolean hasProton  ) 
 

Say whether or not protons are are in the initial state in this processType. If the particles are not specified, this returns true, since they may be protons and thus proton variables could be relevant.

Definition at line 560 of file MCProcessType.java.

References MCProcessType.getCollision(), Particle.getName(), Collision.getParticle1(), and Collision.getParticle2().

Referenced by DBManager.addRunSeries(), MCProcessType.isGammaGamma(), MCProcessType.isPhotoproduction(), and MCProcessType.isPP().

00560                               {
00561     if(getCollision()==null)return true;
00562     Particle p1 = getCollision().getParticle1();
00563     Particle p2 = getCollision().getParticle2();
00564     if (p1==null || p2==null) return true;
00565 
00566     if (p1.getName().equalsIgnoreCase(Particle.PROTON) || 
00567         p1.getName().equalsIgnoreCase(Particle.ANTIPROTON) ||
00568         p2.getName().equalsIgnoreCase(Particle.PROTON) || 
00569         p2.getName().equalsIgnoreCase(Particle.ANTIPROTON)){
00570         return true;
00571     }else {
00572         return false;
00573     }
00574     }

boolean isDIS  ) 
 

Say whether the process is a deep inelastic scattering process

Definition at line 588 of file MCProcessType.java.

References MCProcessType.DIS, and MCProcessType.processName.

00588                           {
00589     if (processName.indexOf(DIS)>=0) return true;
00590     return false;
00591     }

boolean isGammaGamma  ) 
 

Say whether the process is a gamma-gamma process

Definition at line 596 of file MCProcessType.java.

References MCProcessType.DIS, MCProcessType.hasPhoton(), MCProcessType.hasProton(), and MCProcessType.processName.

00596                                  {
00597     if (hasPhoton() && !hasProton() && processName.indexOf(DIS)<=0) return true;
00598     return false;
00599     }

boolean isPhotoproduction  ) 
 

Say whether the process is a photoproduction process

Definition at line 580 of file MCProcessType.java.

References MCProcessType.hasPhoton(), and MCProcessType.hasProton().

00580                                       {
00581     if (hasProton()&&hasPhoton()) return true;
00582     return false;
00583     }

boolean isPP  ) 
 

Say whether the process is a hadron-hadron collision process

Definition at line 604 of file MCProcessType.java.

References MCProcessType.DIS, MCProcessType.hasPhoton(), MCProcessType.hasProton(), and MCProcessType.processName.

00604                          {
00605     if (!hasPhoton() && hasProton() && processName.indexOf(DIS)<=0) return true;
00606     return false;
00607     }

boolean isValid  ) 
 

Returns whether the process is valid or not

Definition at line 302 of file MCProcessType.java.

Referenced by HTMLProcessWriter.addNewProcess(), MCProcessType.getIsValid(), RunSeries.getMCProcessType(), ServletUtils.makeMCProcessList(), and MCProcessType.MCProcessType().

00302                             {
00303     //System.out.println("checking validity for process "+this.processId);
00304     //System.out.println("isValid "+isValid_);
00305     //return(isValid_.get(this.processId));
00306     return(valid_);
00307     }

boolean matches MCProcessType  proc  ) 
 

Return true if the MCProcessTypes are consistent.

Definition at line 441 of file MCProcessType.java.

References Collision.equals(), MCProcessType.getCollision(), MCProcessType.getId(), MCProcessType.getMCProcessName(), MCProcessType.processId, and MCProcessType.processName.

Referenced by DBManager.getConsistentRunSeries(), and RunSeriesCollection.getRunSeriesList().

00441                                               {
00442 
00443     if (processId>0 && proc.getId()>0) {
00444         if (proc.getId()==processId) { 
00445         return true; 
00446         } else {
00447         return false;
00448         }
00449     }
00450 
00451     if (getCollision()!=null){
00452         if (!getCollision().equals(proc.getCollision())) { 
00453         return false;
00454         }
00455     }
00456 
00457     if (processName.length()!=0 && proc.getMCProcessName().length()!=0 && 
00458         processName.equalsIgnoreCase(proc.getMCProcessName())) {return false;}
00459 
00460 
00461     //System.out.println("matched");
00462 
00463     return true;
00464     }

boolean retrieve  )  throws JetWebException
 

Populate the object in memory from the database. Return true if the information retrieved is up to date.

Implements Storeable.

Definition at line 651 of file MCProcessType.java.

00651                                                     {
00652     DBManager.selectFromDB(this);
00653     return true;
00654     }

void setCollision Collision  c  ) 
 

Set the collision

Definition at line 256 of file MCProcessType.java.

References MCProcessType.collision.

Referenced by ServletUtils.buildProc(), PlotSwitch.defaultProc(), and Run.setMCProcessType().

00256 { collision = c; }

void setCollisionId int  cId  ) 
 

Set the collision from teh collision Id.

Parameters:
int the id of the collision to use

Definition at line 265 of file MCProcessType.java.

References MCProcessType.collision.

00265                                        {
00266     try{
00267         collision = new Collision(cId);
00268     }catch(JetWebException err){
00269         System.out.println(err.getMessage());
00270     }
00271     return;
00272     }

void setCompatibleProcesses Vector< Integer >  compat  ) 
 

Sets the process Ids with which this process is compatible

Parameters:
Vector<Integer> the list of process Ids with which this is compatible

Definition at line 381 of file MCProcessType.java.

References MCProcessType.compatibleProcesses_, MCProcessType.dirtyThisCompatibleProcesses_, MCProcessType.processId, and MCProcessType.thisCompatibleProcesses_.

00381                                                               {
00382 
00383     compatibleProcesses_.put(this.processId, compat);
00384     thisCompatibleProcesses_ = compat;
00385     dirtyThisCompatibleProcesses_ = false;
00386 
00387 
00388     return;
00389     }

void setCompatibleProcesses Blob  compat  ) 
 

Sets the process Ids with which this process is compatible

Parameters:
Blob the list of process Ids in blob format as stored in the DB

Definition at line 357 of file MCProcessType.java.

References MCProcessType.compatibleProcesses_, MCProcessType.dirtyThisCompatibleProcesses_, MCProcessType.processId, and MCProcessType.thisCompatibleProcesses_.

Referenced by ServletUtils.buildProc(), and BlobUpload.main().

00357                                                    {
00358 
00359     if(compatibleProcesses_.containsKey(this.processId)) return;
00360     Vector<Integer> compatPIds = null;
00361 
00362     try{
00363         compatPIds = DBBlob2Array.getInteger(compat);
00364     }catch(SQLException err){
00365         System.out.println("Error: could not convert Blob to array");
00366         System.out.println(err.getMessage());
00367     }
00368 
00369     compatibleProcesses_.put(this.processId, compatPIds);
00370     thisCompatibleProcesses_ = compatPIds;
00371     dirtyThisCompatibleProcesses_ = false;
00372     return;
00373     }

void setDefaultLumi float  lumi  ) 
 

Set the luminosity which will be requested if this process is generated.

Definition at line 178 of file MCProcessType.java.

References MCProcessType.lumi_.

00178                                           {
00179 
00180     lumi_ = lumi;
00181     }

void setId int  id  ) 
 

Set the Id for this process

Definition at line 240 of file MCProcessType.java.

References MCProcessType.processId.

Referenced by DBManager.addRunSeries(), ServletUtils.buildProc(), DBManager.selectId(), and MCProcessType.setProcessId().

00240                              { 
00241     processId = id; 
00242     return;
00243     }

void setIsValid boolean  isValid  ) 
 

Sets whether the process is valid or not

Definition at line 287 of file MCProcessType.java.

References MCProcessType.valid_.

Referenced by ServletUtils.buildProc(), and MCProcessType.MCProcessType().

00287                                            {
00288 
00289     valid_=isValid;
00290 
00291     //System.out.println("called setIsValid "+isValid_.size()+" id "+processId);
00292     //if(isValid_.containsKey(this.processId))return;
00293     
00294     //isValid_.put(this.processId, isValid);
00295     return;
00296     }

void setMCProcessName String  name  ) 
 

Set the process name

Definition at line 218 of file MCProcessType.java.

References MCProcessType.processName.

Referenced by ServletUtils.buildProc(), PlotSwitch.defaultProc(), Run.setMCProcessType(), and MCProcessType.setProcessName().

00218                                              { processName = name; 
00219     }

void setProcessId int  id  ) 
 

Duplicate setId to match the entry in the DB:

Definition at line 247 of file MCProcessType.java.

References MCProcessType.setId().

00247                                     {
00248     setId(id);
00249     return;
00250     }

void setProcessName String  name  ) 
 

Definition at line 223 of file MCProcessType.java.

References MCProcessType.setMCProcessName().

00223                                            {
00224     setMCProcessName(name);
00225     return;
00226     }

boolean store  )  throws JetWebException
 

Write the object in memory to the database. If the ID does not exist in the DB the object is inserted as a new entry. If the ID exists, that entry is updated.

Returns:
true if the object was inserted, false otherwise.

Implements Storeable.

Definition at line 642 of file MCProcessType.java.

Referenced by Maintainer.doGet().

00642                                                   {
00643     return DBManager.addToDB(this); 
00644     }

String toString  ) 
 

return a single string, no spaces description of the process type.

Definition at line 612 of file MCProcessType.java.

References MCProcessType.collision, MCProcessType.processName, Particle.toString(), and Collision.toString().

Referenced by DBManager.makeRunSeriesQueryString().

00612                             {
00613 
00614     String name = null;
00615     
00616     if(processName!=null){
00617         name = new String(processName);
00618     }else{
00619         name = "";
00620     }
00621 
00622     int ii = name.indexOf(" "); 
00623     while(ii>-1){
00624         name = name.substring(0,ii)+name.substring(ii+1);
00625         ii = name.indexOf(" ");
00626     }
00627     StringBuffer str = new StringBuffer(name);
00628     
00629     if(collision!=null){
00630         str.append(collision.toString());
00631     }
00632     
00633     return str.toString();
00634     }


Member Data Documentation

Vector<MCProcessType> allProcs [static, private]
 

Definition at line 38 of file MCProcessType.java.

Referenced by MCProcessType.getAll().

final String ANNIHILATION = "Electron-positron annhilation" [static]
 

Definition at line 56 of file MCProcessType.java.

Referenced by MCProcessType.hasPhoton().

final String BEAUTY = "Beauty Only" [static]
 

Definition at line 54 of file MCProcessType.java.

final String BEAUTYDIS = "Beauty Only DIS" [static]
 

Definition at line 55 of file MCProcessType.java.

final String BEAUTYPARTONPARTON = "Beauty Parton Parton" [static]
 

Definition at line 65 of file MCProcessType.java.

final String BEAUTYPHOTONPARTON = "Beauty Photon Parton" [static]
 

Definition at line 64 of file MCProcessType.java.

final String BEAUTYPHOTONPHOTON = "Beauty Photon Photon" [static]
 

Definition at line 63 of file MCProcessType.java.

final String CHARM = "Charm Only" [static]
 

Definition at line 52 of file MCProcessType.java.

final String CHARMDIS = "Charm Only DIS" [static]
 

Definition at line 53 of file MCProcessType.java.

final String CHARMPARTONPARTON = "Charm Parton Parton" [static]
 

Definition at line 62 of file MCProcessType.java.

final String CHARMPHOTONPARTON = "Charm Photon Parton" [static]
 

Definition at line 61 of file MCProcessType.java.

final String CHARMPHOTONPHOTON = "Charm Photon Photon" [static]
 

Definition at line 60 of file MCProcessType.java.

Collision collision [private]
 

Definition at line 32 of file MCProcessType.java.

Referenced by MCProcessType.getUnspecifiedParameters(), MCProcessType.MCProcessType(), MCProcessType.setCollision(), MCProcessType.setCollisionId(), and MCProcessType.toString().

int collisionId = -1 [private]
 

Definition at line 31 of file MCProcessType.java.

HashMap<Integer, Vector<Integer> > compatibleProcesses_ = new HashMap<Integer Vector<Integer>>() [static, private]
 

Definition at line 35 of file MCProcessType.java.

Referenced by MCProcessType.getCompatibleProcesses(), MCProcessType.MCProcessType(), and MCProcessType.setCompatibleProcesses().

boolean dirtyThisCompatibleProcesses_ = true [private]
 

Definition at line 37 of file MCProcessType.java.

Referenced by MCProcessType.getCompatibleProcesses(), and MCProcessType.setCompatibleProcesses().

final String DIS = "DIS" [static]
 

Definition at line 50 of file MCProcessType.java.

Referenced by MCProcessType.hasPhoton(), MCProcessType.isDIS(), MCProcessType.isGammaGamma(), and MCProcessType.isPP().

final String HIGHET = "High ET" [static]
 

Definition at line 49 of file MCProcessType.java.

HashMap<Integer, MCProcessType> knownProcs_ [static, private]
 

Initial value:

 
    new HashMap<Integer MCProcessType>()

Definition at line 42 of file MCProcessType.java.

Referenced by MCProcessType.MCProcessType().

float lumi_ [private]
 

Definition at line 39 of file MCProcessType.java.

Referenced by MCProcessType.MCProcessType(), and MCProcessType.setDefaultLumi().

final String MINBIAS = "Minimum Bias" [static]
 

Definition at line 51 of file MCProcessType.java.

final String PARTONPARTON = "Parton Parton" [static]
 

Definition at line 59 of file MCProcessType.java.

final String PHOTONPARTON = "Photon Parton" [static]
 

Definition at line 58 of file MCProcessType.java.

final String PHOTONPHOTON = "Photon Photon" [static]
 

Definition at line 57 of file MCProcessType.java.

int processId = 0 [private]
 

Definition at line 30 of file MCProcessType.java.

Referenced by MCProcessType.equals(), MCProcessType.getCompatibleProcesses(), MCProcessType.getId(), MCProcessType.matches(), MCProcessType.MCProcessType(), MCProcessType.setCompatibleProcesses(), and MCProcessType.setId().

String processName [private]
 

Definition at line 33 of file MCProcessType.java.

Referenced by MCProcessType.getUnspecifiedParameters(), MCProcessType.hasPhoton(), MCProcessType.isDIS(), MCProcessType.isGammaGamma(), MCProcessType.isPP(), MCProcessType.matches(), MCProcessType.MCProcessType(), MCProcessType.setMCProcessName(), and MCProcessType.toString().

Vector<Integer> thisCompatibleProcesses_ = null [private]
 

Definition at line 36 of file MCProcessType.java.

Referenced by MCProcessType.getCompatibleProcesses(), and MCProcessType.setCompatibleProcesses().

boolean valid_ [private]
 

Definition at line 47 of file MCProcessType.java.

Referenced by MCProcessType.MCProcessType(), and MCProcessType.setIsValid().


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

Generated Wed Jan 17 09:14:27 GMT 2007