src/Pulses/Pulse.cc
// ____________________________________________________________________________
// ii                CLASS PULSE PARAMETER SET FUNCTIONS
// ____________________________________________________________________________
ii                CLASS PULSE PARAMETER SET FUNCTIONS
ii CLASS PULSE PARAMETER SET FUNCTIONS
void Pulse::SetPhase(const ParameterSet& pset, int idx)
  {
  double phiin;
  std::string pstate;				
  std::string pname = std::string("Pphi");		
  std::string SI = std::string("(") + Gdec(idx)            
            + std::string(")");
  if(idx >= 0) pname += SI;			
  ParameterSet::const_iterator item;    
  item = pset.seek(pname);			
  if(item != pset.end())			
    {
    (*item).parse(pname,phiin,pstate); 		
    phi= phiin;					
    }
  else phi = 0;					
  }
void Pulse :: SetPhase ( const ParameterSet & pset , int idx ) { double phiin ; std :: string pstate ; std :: string pname = std :: string ( " " ) ; std :: string SI = std :: string ( " " ) + Gdec ( idx ) + std :: string ( " " ) ; if ( idx >= 0 ) pname += SI ; ParameterSet :: const_iterator item ; item = pset . seek ( pname ) ; if ( item != pset . end ( ) ) { ( * item ) . parse ( pname , phiin , pstate ) ; phi = phiin ; } else phi = 0 ; }
____________________________________________________________________________
ii                CLASS PULSE PARAMETER SET FUNCTIONS
____________________________________________________________________________
____________________________________________________________________________ ii CLASS PULSE PARAMETER SET FUNCTIONS ____________________________________________________________________________
// Input		Pul	: Pulse parameters //                      pset    : Parameter set //                      idx     : Pulse index // Output               none    : Pulse phase read in //                                from parameter in pset //                                with index idx // Dummy string variable // Pulse phase angle // Name adjustment if indexed // Adjust name if indexed			 // A pix into parameter std::list // Parameter for Pulsephi // If parameter found // 	Get Pulse phase // 	Set Pulse phase // If not found set to 0