PremModel.cxx
//......................................................................
///
/// Get the total baseline for a given cosTheta.
///
/// The total baseline contains both from above and below the detector.
///
/// @param cosT - The cosine of the neutrino direction
///
Get the total baseline for a given cosTheta.

The total baseline contains both from above and below the detector.
Get the total baseline for a given cosTheta . The total baseline contains both from above and below the detector .
double PremModel::GetTotalL(double cosT)
{
  if(fabs(cosT) > 1) return 0;
  double rAbove = fPremLayers.back().radius;     
  double rBelow = fPremLayers[fDetLayer].radius; 
  double sinsqrT = 1 - cosT*cosT;
  return -rBelow*cosT + sqrt(rAbove*rAbove - rBelow*rBelow*sinsqrT);
}
double PremModel :: GetTotalL ( double cosT ) { if ( fabs ( cosT ) > 1 ) return 0 ; double rAbove = fPremLayers . back ( ) . radius ; double rBelow = fPremLayers [ fDetLayer ] . radius ; double sinsqrT = 1 - cosT * cosT ; return - rBelow * cosT + sqrt ( rAbove * rAbove - rBelow * rBelow * sinsqrT ) ; }
......................................................................
Get the total baseline for a given cosTheta.
...................................................................... Get the total baseline for a given cosTheta .
// Radius above detector // Radius below detector