Project
Loading...
Searching...
No Matches
RawReaderFDD.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//
12//file RawReaderFDD.h class for RAW data reading
13//
14// Artur.Furs
15// afurs@cern.ch
16//
17//Main purpuse is to decode FDD data blocks and push them to DigitBlockFDD for proccess
18//TODO: prepare wrappers for containers with digits and combine classes below into one template class?
19#ifndef ALICEO2_FDD_RAWREADERFDD_H_
20#define ALICEO2_FDD_RAWREADERFDD_H_
21#include <iostream>
22#include <vector>
23#include <Rtypes.h>
25
28
32#include <gsl/span>
33
34namespace o2
35{
36namespace fdd
37{
38//Normal TCM mode
40{
41 public:
42 RawReaderFDD(bool dumpData) : mDumpData(dumpData) {}
43 RawReaderFDD(const RawReaderFDD&) = default;
44
45 RawReaderFDD() = default;
46 ~RawReaderFDD() = default;
47 void clear()
48 {
49 mVecDigits.clear();
50 mVecChannelData.clear();
51 }
53 {
55 LOG(info) << "Number of Digits: " << mVecDigits.size();
56 LOG(info) << "Number of ChannelData: " << mVecChannelData.size();
57 if (mDumpData) {
59 }
60 }
61 static void prepareOutputSpec(std::vector<o2::framework::OutputSpec>& outputSpec)
62 {
63 outputSpec.emplace_back(o2::header::gDataOriginFDD, "DIGITSBC", 0, o2::framework::Lifetime::Timeframe);
64 outputSpec.emplace_back(o2::header::gDataOriginFDD, "DIGITSCH", 0, o2::framework::Lifetime::Timeframe);
65 }
72 std::vector<Digit> mVecDigits;
73 std::vector<ChannelData> mVecChannelData;
74};
75
76} // namespace fdd
77} // namespace o2
78
79#endif
Container class to store values of single FDD channel.
RawReaderFDD(bool dumpData)
std::vector< ChannelData > mVecChannelData
std::vector< Digit > mVecDigits
RawReaderFDD(const RawReaderFDD &)=default
void makeSnapshot(o2::framework::ProcessingContext &pc)
static void prepareOutputSpec(std::vector< o2::framework::OutputSpec > &outputSpec)
void snapshot(const Output &spec, T const &object)
DataAllocator & outputs()
The data allocator is used to allocate memory for the output data.
constexpr o2::header::DataOrigin gDataOriginFDD
Definition DataHeader.h:568
struct o2::upgrades_utils::@459 fdd
Collision labels.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"