KaliVeda
1.12/06
Heavy-Ion Analysis Toolkit
kaliveda.doxygen
KVIndra
identification
KVINDRACodeMask.cpp
Go to the documentation of this file.
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
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
KVINDRACodeMask.h
ClassImp
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
Definition:
KVPartitionList.cpp:9
UShort_t
unsigned short UShort_t
UChar_t
unsigned char UChar_t
Bool_t
bool Bool_t
kTRUE
const Bool_t kTRUE
KVINDRACodeMask
Definition:
KVINDRACodeMask.h:154
KVINDRACodeMask::fEMask
UChar_t fEMask
8-bit mask with e-calibration codes
Definition:
KVINDRACodeMask.h:158
KVINDRACodeMask::TestECode
Bool_t TestECode(UChar_t code)
Definition:
KVINDRACodeMask.cpp:38
Generated on Thu Apr 21 2022 14:14:14 for KaliVeda by
1.9.1