Belle II Software development
DigitBase.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <framework/datastore/RelationsObject.h>
12
13namespace Belle2 {
26 class DigitBase : public RelationsObject {
27
28 public:
34 c_Append = 1
35 };
36
41
47 virtual unsigned int getUniqueChannelID() const = 0;
48
56 virtual EAppendStatus addBGDigit(const DigitBase* bg) = 0;
57
62 virtual void adjustAppendedBGDigit() {}
63
64 private:
66 };
68} // end namespace Belle2
A common base for subdetector Digits.
Definition: DigitBase.h:26
virtual EAppendStatus addBGDigit(const DigitBase *bg)=0
The pile-up method.
virtual unsigned int getUniqueChannelID() const =0
Enables BG overlay module to identify uniquely the physical channel of this Digit.
ClassDef(DigitBase, 2)
ClassDef.
EAppendStatus
Enum for return state of addBGDigit function.
Definition: DigitBase.h:32
@ c_DontAppend
do not append BG digit to digits
Definition: DigitBase.h:33
@ c_Append
append BG digit to digits
Definition: DigitBase.h:34
virtual void adjustAppendedBGDigit()
Virtual method for possible modification of BG digit which is just appended to simulation store array...
Definition: DigitBase.h:62
DigitBase()
Constructor.
Definition: DigitBase.h:40
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.