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