KaliVeda
1.14/2
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVINDRACodeMask.cpp
1
/***************************************************************************
2
$Id: KVINDRACodeMask.cpp,v 1.2 2006/10/19 14:32:43 franklan Exp $
3
***************************************************************************/
4
5
/***************************************************************************
6
* *
7
* This program is free software; you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation; either version 2 of the License, or *
10
* (at your option) any later version. *
11
* *
12
***************************************************************************/
13
14
#include "KVINDRACodeMask.h"
15
16
ClassImp
(
KVINDRACodeMask
)
17
18
19
22
23
Bool_t
KVINDRACodeMask
::TestIDCode(
UShort_t
code)
24
{
25
//check identification code against code mask
26
//always kTRUE if no mask set (fIDMask==0)
27
if
(!fIDMask)
28
return
kTRUE
;
29
return
(
Bool_t
)((fIDMask & code) != 0);
30
}
31
32
33
37
38
Bool_t
KVINDRACodeMask::TestECode
(
UChar_t
code)
39
{
40
//check calibration code against code mask
41
//always kTRUE if no mask set (fEMask==0)
42
if
(!
fEMask
)
43
return
kTRUE
;
44
return
(
Bool_t
)((
fEMask
& code) != 0);
45
}
46
47
Bool_t
bool Bool_t
UShort_t
unsigned short UShort_t
UChar_t
unsigned char UChar_t
kTRUE
constexpr Bool_t kTRUE
KVINDRACodeMask
Definition
KVINDRACodeMask.h:112
KVINDRACodeMask::fEMask
UChar_t fEMask
8-bit mask with e-calibration codes
Definition
KVINDRACodeMask.h:116
KVINDRACodeMask::TestECode
Bool_t TestECode(UChar_t code)
Definition
KVINDRACodeMask.cpp:38
ClassImp
ClassImp(TPyArg)
kaliveda.doxygen
KVIndra
identification
KVINDRACodeMask.cpp
Generated on Wed Oct 23 2024 12:45:19 for KaliVeda by
1.9.8