// ----------------------------------------------------------------------------
// $Id: LCDDetectorVolume.cxx,v 1.1 2001/05/10 20:39:50 toshi Exp $
// ----------------------------------------------------------------------------
//
// $Log: LCDDetectorVolume.cxx,v $
// Revision 1.1  2001/05/10 20:39:50  toshi
// C++ file name convention has been changed from *.C to *.cxx .
//
//
#include "LCDDetectorVolume.h"

//______________________________________________________________________
//  LCDDetectorVolume
// 

ClassImp(LCDDetectorVolume)

 Bool_t LCDDetectorVolume::isInside(Double_t x, Double_t y, Double_t z) {
  // Determine if specified point is in the volume.

  Double_t r = TMath::Sqrt(x*x + y*y);
  Double_t absZ = TMath::Abs(z);
  
  if ((r < innerR) || (r > outerR)) return 0;
  if ((absZ < innerZ) || (absZ > outerZ)) return 0;

  return 1;
}



ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.