BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnRegion.cxx
Go to the documentation of this file.
1#include "BmnRegion.h"
2
3// ------------- Default constructor ----------------------------------
5 : TObject()
6{
7 fZmin = Zmin;
8 fZmax = Zmax;
9}
10
11// ------------ Destructor --------------------------------------------
13
14// ------------ Check if inside this region-------------------------------
16{
17 if (Z >= fZmin && Z <= fZmax)
18 return kTRUE;
19 else
20 return kFALSE;
21}
bool Bool_t
constexpr Bool_t kFALSE
double Double_t
constexpr Bool_t kTRUE
Double_t fZmax
Definition BmnRegion.h:16
Double_t fZmin
Definition BmnRegion.h:15
Bool_t IsInside(Double_t Z)
Definition BmnRegion.cxx:15
BmnRegion(Double_t Zmin, Double_t Zmax)
Default constructor.
Definition BmnRegion.cxx:4
virtual ~BmnRegion()
Destructor.
Definition BmnRegion.cxx:12