EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PndRegion.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PndRegion.cxx
1 // -------------------------------------------------------------------------
2 // ----- PndRegion source file -----
3 // ----- Created 29/01/07 by M. Al/Turany -----
4 // -------------------------------------------------------------------------
5 
6 
7 #include "PndRegion.h"
8 
9 
10 // ------------- Default constructor ----------------------------------
11 PndRegion::PndRegion( Double_t Zmin, Double_t Zmax)
12  :TObject(), fZmin(Zmin), fZmax(Zmax)
13 {
14 }
15 
16 // ------------ Destructor --------------------------------------------
18 }
19 // ------------ Check if inside this region-------------------------------
20  Bool_t PndRegion::IsInside(Double_t Z){
21  if( Z>=fZmin && Z<=fZmax ) return kTRUE;
22  else return kFALSE;
23 }
24