Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

AlRun.cpp

Go to the documentation of this file.
00001 
00002 //
00003 // Implementation of class AlRun
00004 //
00005 //
00007 
00008 
00009 #include "AlRun.h"
00010 
00011 // default constructor : does nothing
00012 AlRun::AlRun()  {}  
00013 
00014 // copy constructor :
00015 AlRun::AlRun(const AlRun& oldRun) 
00016 { 
00017    qhac = oldRun.qhac;
00018    qext = oldRun.qext;
00019 }
00020 
00021 // Energy
00026 int AlRun::Energy() const
00027 {
00028   if ((qext->LP) != (RLEP*) NULL) 
00029      return qext->LP->LE;
00030   else
00031      return -1;
00032 };
00033 
00034 // Experiment number
00035 int AlRun::ExperimentNumber() const
00036 {
00037   if ((qhac->EH) != (EVEH*) NULL) 
00038      return qhac->EH->EN;
00039   else
00040      return -1;
00041 };
00042 
00043 // run number
00044 int AlRun::number() const
00045 {
00046   if ((qhac->EH) != (EVEH*) NULL) 
00047      return qhac->EH->RN;
00048   else
00049      return -1;
00050 };
00051 
00052 // run type
00053 int AlRun::type() const
00054 {
00055   if ((qhac->EH) != (EVEH*) NULL) 
00056      return qhac->EH->RT;
00057   else
00058      return -1;
00059 };
00060 

Generated at Wed Jun 18 17:19:11 2003 for ALPHA++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001