Project
Loading...
Searching...
No Matches
PadDecoder.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11#ifndef ALICEO2_FOCAL_PADDECODER_H
12#define ALICEO2_FOCAL_PADDECODER_H
13
14#include <array>
15#include <vector>
16#include <functional>
17#include <cstdint>
18
19#include "Rtypes.h"
20
21#include <gsl/span>
22
24
25namespace o2::focal
26{
28{
29 public:
30 PadDecoder() = default;
31 ~PadDecoder() = default;
32
33 void setTriggerWinDur(int windur) { mWin_dur = windur; }
34
35 void reset();
36 void decodeEvent(gsl::span<const PadGBTWord> padpayload);
37 const PadData& getData() const { return mData; }
38
39 protected:
40 private:
41 int mWin_dur = 20;
42 PadData mData;
43
44 ClassDefNV(PadDecoder, 1);
45};
46
47} // namespace o2::focal
48
49#endif // ALICEO2_FOCAL_PADDECODER_H
const PadData & getData() const
Definition PadDecoder.h:37
void decodeEvent(gsl::span< const PadGBTWord > padpayload)
void setTriggerWinDur(int windur)
Definition PadDecoder.h:33