CbmRoot
Loading...
Searching...
No Matches
CbmDeviceTriggerHandlerEtof.h
Go to the documentation of this file.
1/* Copyright (C) 2019 PI-UHd, GSI
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Norbert Herrmann [committer] */
4
12#ifndef CBMDEVICETRIGGERHANDLERETOF_H_
13#define CBMDEVICETRIGGERHANDLERETOF_H_
14
15#include "CbmMqTMessage.h"
16#include "CbmTofStarData2019.h"
17
18#include "MicrosliceDescriptor.hpp"
19#include "Timeslice.hpp"
20
21#include "FairMQDevice.h"
22
23#include "Rtypes.h"
24
25#include <map>
26#include <vector>
27
28// Relevant TOF classes
29
30extern "C" int star_rhicf_write(unsigned int trg_word, void* dta, int bytes);
31
32// ROOT Classes and includes
33class TString;
34
35// C++ Classes and includes
36#include <list>
37#include <map>
38#include <vector>
39
40class CbmDeviceTriggerHandlerEtof : public FairMQDevice {
41public:
44
45protected:
46 virtual void InitTask();
47 bool HandleData(FairMQParts&, int);
48 bool HandleMessage(FairMQMessagePtr&, int);
49
50private:
51 // Variables used for histo filling
52
53 Bool_t IsChannelNameAllowed(std::string channelName);
54
55 Bool_t InitWorkspace();
57
59
60 uint64_t fNumMessages;
61 std::vector<std::string> fAllowedChannels = {"tofcomponent", "parameters", "etofevts", "tofhits", "syscmd"};
62
63 // Input variables
64
65 // Output variables
66
67 // Constants or setting parameters
68 Int_t fiMsgCnt;
74
75 Double_t fdEvent;
76
77 // histograms
78};
79
80#endif /* CBMDEVICETRIGGERHANDLERETOF_H_ */
int star_rhicf_write(unsigned int trg_word, void *dta, int bytes)
bool HandleMessage(FairMQMessagePtr &, int)
std::vector< std::string > fAllowedChannels
Bool_t fbSandboxMode
Switch ON the filling of a additional set of histograms.
Bool_t fbDebugMonitorMode
Switch ON the filling of a minimal set of histograms.
Double_t fdEvent
Switch ON the dumping of the events to a binary file.
Bool_t fbEventDumpEna
Switch OFF the emission of data toward the STAR DAQ.
Bool_t IsChannelNameAllowed(std::string channelName)