src/Pulses/PulMLEV.cc
// ____________________________________________________________________________
// ii                CLASS MLEV PARAMETER SET FUNCTIONS
// ____________________________________________________________________________
ii                CLASS MLEV PARAMETER SET FUNCTIONS
ii CLASS MLEV PARAMETER SET FUNCTIONS
void MLEV::SetPhase(const ParameterSet& pset, int idx)
  {
  double phiin;
  string pstate;                                
  string pname = string("MLEVphi");            
  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,phiin,pstate);     
    phi= phiin;                                 
    }
  else phi = 0;                                 
  }
void MLEV :: SetPhase ( const ParameterSet & pset , int idx ) { double phiin ; 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 , phiin , pstate ) ; phi = phiin ; } else phi = 0 ; }
____________________________________________________________________________
ii                CLASS MLEV PARAMETER SET FUNCTIONS
____________________________________________________________________________
____________________________________________________________________________ ii CLASS MLEV PARAMETER SET FUNCTIONS ____________________________________________________________________________
// Intput               MP      : MLEV parameters //                      pset    : Parameter set //                      idx     : MLEV index // Output               none    : MLEV pulse phase read in //                                from parameter in pset //                                with index idx // Dummy string variable // MLEV phase angle // Name adjustment if indexed // Adjust name if indexed // A pix into parameter list // Parameter for MLEVphi // If parameter found //      Get MLEV phase //      Set MLEV phase // If not found set to 0