Belle II Software
release-05-01-25
ARICHDigit.cc
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2010 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Luka Santelj *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
11
#include <arich/dataobjects/ARICHDigit.h>
12
13
using namespace
std;
14
using namespace
Belle2
;
15
16
DigitBase::EAppendStatus
ARICHDigit::addBGDigit(
const
DigitBase
* bg)
17
{
18
19
const
auto
* bgDigit =
static_cast<
const
ARICHDigit
*
>
(bg);
20
uint8_t bg_bitmap = bgDigit->
getBitmap
();
21
int
i = 0;
22
while
(bg_bitmap >> i) {
23
if
(m_bitmap == 0xF)
break
;
24
m_bitmap = (m_bitmap << 1) + 1;
25
i++;
26
}
27
28
return
DigitBase::c_DontAppend;
29
30
}
31
Belle2::DigitBase::EAppendStatus
EAppendStatus
Enum for return state of addBGDigit function.
Definition:
DigitBase.h:42
Belle2::ARICHDigit
ARICHDigit class for storing photon hit information.
Definition:
ARICHDigit.h:37
Belle2::ARICHDigit::getBitmap
uint8_t getBitmap() const
Get global time of hit.
Definition:
ARICHDigit.h:76
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::DigitBase
A common base for subdetector Digits.
Definition:
DigitBase.h:36
arich
dataobjects
src
ARICHDigit.cc
Generated on Fri Nov 5 2021 03:46:49 for Belle II Software by
1.8.17