PremModel.cxx
//......................................................................
///
/// Set the effective Z/A value for all layers of a given type.
///
/// Use this to change the Z/A of indexed layer,
/// e.g. all outer-core layers
///
/// @param layer - The index of the layer type
/// @param zoa   - The effective Z/A value to use
///
Set the effective Z/A value for all layers of a given type.

Use this to change the Z/A of indexed layer,
e.g. all outer-core layers
Set the effective Z / A value for all layers of a given type . Use this to change the Z / A of indexed layer e . g . all outer - core layers
void PremModel::SetLayerZoA(int layer, double zoa)
{
  int nlayers = fPremLayers.size();
  for(int i=0; i<nlayers; i++){
    if(fPremLayers[i].layer != layer) continue;
    fPremLayers[i].zoa = zoa;
  }
}
void PremModel :: SetLayerZoA ( int layer , double zoa ) { int nlayers = fPremLayers . size ( ) ; for ( int i = 0 ; i < nlayers ; i ++ ) { if ( fPremLayers [ i ] . layer != layer ) continue ; fPremLayers [ i ] . zoa = zoa ; } }
......................................................................
Set the effective Z/A value for all layers of a given type.
...................................................................... Set the effective Z / A value for all layers of a given type .
// Loop over all layers and change the ones // with the given index