// $Header: SmearVolume.cxx $

#include "SmearVolume.h"
#include "TMath.h"

//______________________________________________________________________
//  SmearVolume
// 
// Keep track of everything of interest to Fast MC calorimetry about a
// particular volume:  its dimensions, who its neighbors are, mag. field,
// and smearing parameters.

ClassImp(SmearVolume)


 Bool_t SmearVolume::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.