src/Level2/TrnsTable1D.cc
/* These functions allow users to fill up transition tables from external
   paramters via a GAMMA parameter set.  The parameters can either be in an
   external ASCII file or already in a ParameterSet.  If a prefix has been set
   then the parameter names are taken to have a [#] before the names.

           Input		TTab1D	: A transitions table (this)
                                filein  : An input (ASCII) file
                                pset    : An input parameter files
                                indx    : Table index
                                warn    : Warning output level
                                            0 = no warnings
                                            1 = non-fatal warnings
                                            2 = fatal warnings
           Output               none    : Transitions table filled with
                                          transitions specified in filein

    Note that the work, i.e. the parameter parsing and table filling, is
    done in these 3 private functions: SetNTrans, SetConv, and SetTrans      */
These functions allow users to fill up transition tables from external
paramters via a GAMMA parameter set.  The parameters can either be in an
external ASCII file or already in a ParameterSet.  If a prefix has been set
then the parameter names are taken to have a [#] before the names.



Note that the work, i.e. the parameter parsing and table filling, is
done in these 3 private functions: SetNTrans, SetConv, and SetTrans
These functions allow users to fill up transition tables from external paramters via a GAMMA parameter set . The parameters can either be in an external ASCII file or already in a ParameterSet . If a prefix has been set then the parameter names are taken to have a [ # ] before the names . Note that the work i . e . the parameter parsing and table filling is done in these 3 private functions : SetNTrans SetConv and SetTrans
bool TTable1D::readPSet(const string& filein, int indx, int warn)                       
  {
  ParameterSet pset;				
  if(!pset.read(filein, warn?1:0))		
    {
    if(warn)
      {
      TTaberror(1, filein, 1);			
      if(warn>1) TTabfatality(50,filein);	
      else       TTaberror(50,filein,1);
      }
    return false;
    }  
  return readPSet(pset, indx, warn);
  }
bool TTable1D :: readPSet ( const string & filein , int indx , int warn ) { ParameterSet pset ; if ( ! pset . read ( filein , warn ? 1 : 0 ) ) { if ( warn ) { TTaberror ( 1 , filein , 1 ) ; if ( warn > 1 ) TTabfatality ( 50 , filein ) ; else TTaberror ( 50 , filein , 1 ) ; } return false ; } return readPSet ( pset , indx , warn ) ; }
These functions allow users to fill up transition tables from external
paramters via a GAMMA parameter set.
These functions allow users to fill up transition tables from external paramters via a GAMMA parameter set .
// Declare a parameter set // Read in pset from file // Problems with file filein // Can't read table