Belle II Software development
TOPFrontEndSetting.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 <TObject.h>
12#include <vector>
13
14namespace Belle2 {
23 class TOPFrontEndSetting: public TObject {
24
25 public:
26
31 {}
32
38 void setWriteDepths(const std::vector<int>& depths) {m_writeDepths = depths;}
39
45 void setLookbackWindows(int lookback) {m_lookbackWindows = lookback;}
46
52 void setReadoutWindows(int readoutWindows) {m_readoutWindows = readoutWindows;}
53
60 void setExtraWindows(int extra) {m_extraWindows = extra;}
61
66 void setWindowShifts(std::vector<int> shifts);
67
74 void setOffset(int offset) {m_offset = offset;}
75
81 const std::vector<int>& getWriteDepths() const {return m_writeDepths;}
82
89
95 int getReadoutWindows() const {return m_readoutWindows;}
96
103 int getExtraWindows() const {return m_extraWindows;}
104
110 int getWindowShift(unsigned revo9count) const {return m_windowShifts[revo9count % 6];}
111
116 int getOffset() const {return m_offset;}
117
118
119 private:
120
121 std::vector<int> m_writeDepths;
125 int m_windowShifts[6] = {0};
126 int m_offset = 0;
130 };
131
133} // end namespace Belle
Front-end settings: storage depths, lookback, readout windows etc.
int getOffset() const
Returns the offset of a photon peak within the readout window region.
int m_windowShifts[6]
window shifts as a function of revo9count%6
int getLookbackWindows() const
Returns the number of lookback windows.
void setOffset(int offset)
Sets the offset of a photon peak within the readout window region.
int getExtraWindows() const
Returns the number of extra windows between the one determined from lookback and the first readout wi...
int getWindowShift(unsigned revo9count) const
Returns window shift at a given revo9count.
void setExtraWindows(int extra)
Sets the number of extra windows between the one determined from lookback and the first readout windo...
const std::vector< int > & getWriteDepths() const
Returns write depths.
int m_readoutWindows
number of readout windows
ClassDef(TOPFrontEndSetting, 1)
ClassDef.
int m_offset
position of photon peak within readout region [RF clocks]
TOPFrontEndSetting()
Default constructor.
void setLookbackWindows(int lookback)
Sets the number of lookback windows.
std::vector< int > m_writeDepths
write depths
void setReadoutWindows(int readoutWindows)
Sets the number of readout windows.
void setWriteDepths(const std::vector< int > &depths)
Sets write depths.
int m_lookbackWindows
number of lookback windows
int getReadoutWindows() const
Returns the number of readout windows.
int m_extraWindows
number of extra windows
void setWindowShifts(std::vector< int > shifts)
Sets window shifts.
Abstract base class for different kinds of events.