src/Pulses/PulDANTE.cc
// ____________________________________________________________________________
// ii                CLASS DANTE PARAMETER SET FUNCTIONS
// ____________________________________________________________________________
ii                CLASS DANTE PARAMETER SET FUNCTIONS
ii CLASS DANTE PARAMETER SET FUNCTIONS
void DANTE::SetSteps(const ParameterSet& pset, int idx)
  {
  int npt;					
  string pstate;				
  string pname = string("DANTEstps");		
  string SI = string("(") + Gdec(idx)            
            + string(")");
  if(idx >= 0) pname += SI;			
  std::list<SinglePar>::const_iterator item;	
  item = pset.seek(pname);			
  if(item != pset.end())			
    {
    (*item).parse(pname,npt,pstate);	 	
    N = npt;					
    }
  else N = 0;					
  }
void DANTE :: SetSteps ( const ParameterSet & pset , int idx ) { int npt ; string pstate ; string pname = string ( " " ) ; string SI = string ( " " ) + Gdec ( idx ) + string ( " " ) ; if ( idx >= 0 ) pname += SI ; std :: list < SinglePar > :: const_iterator item ; item = pset . seek ( pname ) ; if ( item != pset . end ( ) ) { ( * item ) . parse ( pname , npt , pstate ) ; N = npt ; } else N = 0 ; }
____________________________________________________________________________
ii                CLASS DANTE PARAMETER SET FUNCTIONS
____________________________________________________________________________
____________________________________________________________________________ ii CLASS DANTE PARAMETER SET FUNCTIONS ____________________________________________________________________________
// Intput		DT	: DANTE parameters //                      pset    : Parameter set //                      idx     : DANTE index // Output               none    : DANTE number of steps read in //                                from parameter in pset //                                with index idx // Parameter variable // Dummy string variable // Number of DANTE steps // Name adjustment if indexed // Adjust name if indexed			 // A pix into parameter list // Pix in parameter list // If parameter found // 	Get DANTE steps // 	Set DANTE steps // If not found set to 0