PMNS_Base.cxx
//......................................................................
///
/// Set some single path attribute.
///
/// An auxiliary function to set individual attributes in a single path.
///
/// If the path sequence is not a single path, a new single path will
/// be created and the previous sequence will be lost. Use with care.
///
/// @param att - The value of the attribute
/// @param idx - The index of the attribute (0,1,2,3) = (L, Rho, Z/A, Layer)
///
Set some single path attribute.

An auxiliary function to set individual attributes in a single path.

If the path sequence is not a single path, a new single path will
be created and the previous sequence will be lost. Use with care.
Set some single path attribute . An auxiliary function to set individual attributes in a single path . If the path sequence is not a single path a new single path will be created and the previous sequence will be lost . Use with care .
void PMNS_Base::SetAtt(double att, int idx){
  if(fNuPaths.size() != 1){
    cout << "Warning: Clearing path vector and starting new single path." << endl;
    cout << "To avoid possible issues, use the SetPath function." << endl;
    SetStdPath();
  }
  switch(idx){
    case 0: fNuPaths[0].length  = att; break;
    case 1: fNuPaths[0].density = att; break;
    case 2: fNuPaths[0].zoa     = att; break;
    case 3: fNuPaths[0].layer   = att; break;
  }
}
void PMNS_Base :: SetAtt ( double att , int idx ) { if ( fNuPaths . size ( ) != 1 ) { cout << " " << endl ; cout << " " << endl ; SetStdPath ( ) ; } switch ( idx ) { case 0 : fNuPaths [ 0 ] . length = att ; break ; case 1 : fNuPaths [ 0 ] . density = att ; break ; case 2 : fNuPaths [ 0 ] . zoa = att ; break ; case 3 : fNuPaths [ 0 ] . layer = att ; break ; } }
......................................................................
Set some single path attribute.
...................................................................... Set some single path attribute .