src/Level2/EAngles.cc
/* These will 1.) set Euler angles from values in a parameter set.
              2.) set Euler angles from parameters in an ASCII file.         */
These will 1.) set Euler angles from values in a parameter set.
2.) set Euler angles from parameters in an ASCII file.
These will 1 . ) set Euler angles from values in a parameter set . 2 . ) set Euler angles from parameters in an ASCII file .
bool EAngles::read(const string &filename, int idx, int warn)
   {
   ParameterSet pset;			
   if(!pset.read(filename, warn?1:0))	
     {
     EAerror(1, filename,1);		
     if(warn > 1) EAfatal(41);		
     else         EAerror(41);		
     return false;
     }
   if(!read(pset,warn?1:0))		
     {
     EAerror(1, filename,1);		
     if(warn > 1) EAfatal(42);		
     else         EAerror(42);		
     return false;
     }
   return true;
   }
bool EAngles :: read ( const string & filename , int idx , int warn ) { ParameterSet pset ; if ( ! pset . read ( filename , warn ? 1 : 0 ) ) { EAerror ( 1 , filename , 1 ) ; if ( warn > 1 ) EAfatal ( 41 ) ; else EAerror ( 41 ) ; return false ; } if ( ! read ( pset , warn ? 1 : 0 ) ) { EAerror ( 1 , filename , 1 ) ; if ( warn > 1 ) EAfatal ( 42 ) ; else EAerror ( 42 ) ; return false ; } return true ; }
These will 1.)
These will 1 . )
// Declare a parameter set // Read in pset from file // Filename problems // Cant read from file, fatal // or non-fatal warning // User overloaded function // Filename problems // Cannot read file parameters // or non-fatal one