CbmRoot
Loading...
Searching...
No Matches
CbmTsaComponentSink.h
Go to the documentation of this file.
1/* Copyright (C) 2018 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
12#ifndef CBMTSACOMPONENTSINK_H_
13#define CBMTSACOMPONENTSINK_H_
14
15#include "MicrosliceDescriptor.hpp"
16#include "Timeslice.hpp"
17
18#include "FairMQDevice.h"
19
20class CbmTsaComponentSink : public FairMQDevice {
21public:
23 virtual ~CbmTsaComponentSink();
24
25protected:
26 virtual void InitTask();
27 bool HandleData(FairMQMessagePtr&, int);
28
29private:
30 uint64_t fNumMessages;
31
32 std::vector<std::string> fAllowedChannels = {"stscomponent", "tofcomponent", "trdcomponent"};
33
34 bool CheckTimeslice(const fles::Timeslice& ts);
35 void PrintMicroSliceDescriptor(const fles::MicrosliceDescriptor& mdsc);
36 bool IsChannelNameAllowed(std::string channelName);
37};
38
39#endif /* CBMTSACOMPONENTSINK_H_ */
bool HandleData(FairMQMessagePtr &, int)
bool IsChannelNameAllowed(std::string channelName)
std::vector< std::string > fAllowedChannels
void PrintMicroSliceDescriptor(const fles::MicrosliceDescriptor &mdsc)
bool CheckTimeslice(const fles::Timeslice &ts)