Belle II Software development
ECLRawDataHadron.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
23
25
29 unsigned long long packAmplitude(long long peak_amp);
30
38 unsigned long long unpackAmplitude(unsigned long long amp_packed);
39
43 int packTime(int peak_time);
44
52 int unpackTime(int time_packed);
53
59 int packHadronFraction(int A_hadron, int A_total);
60
66 double unpackHadronFraction(int fraction_packed);
67}
68
69#ifdef ECL_RAW_DATA_HADRON_STANDALONE_BUILD
70using namespace Belle2::ECL::RawDataHadron;
71#endif
72
This is a set of function for packing/unpacking the data produced by the new ShaperDSP firmware that ...
int packHadronFraction(int A_hadron, int A_total)
Hadron fraction packing.
unsigned long long packAmplitude(long long peak_amp)
Amplitude packing.
int packTime(int peak_time)
Time packing.
int unpackTime(int time_packed)
Time unpacking (from 11 bits float to 12 bits int)
unsigned long long unpackAmplitude(unsigned long long amp_packed)
Amplitude unpacking (from 14 bits float to 18 bit int)
double unpackHadronFraction(int fraction_packed)
Hadron fraction unpacking.