CbmRoot
Loading...
Searching...
No Matches
CbmDeviceStsLocalReco.h
Go to the documentation of this file.
1/* Copyright (C) 2019 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
12#ifndef CBMDEVICEMSTSLOCALRECO_H_
13#define CBMDEVICEMSTSLOCALRECO_H_
14
15#include "CbmMqTMessage.h"
16
17#include "FairMQDevice.h"
18
19//#include "CbmStsDigitizeParameters.h"
20
21//#include "FairGeoParSet.h"
22
23//#include "Rtypes.h"
24//#include "TObjArray.h"
25
26#include <string>
27#include <vector>
28
29//class TList;
30class CbmStsDigitizeParameters;
31class CbmFieldPar;
32
33class FairGeoParSet;
34class FairField;
35
36class CbmDeviceStsLocalReco : public FairMQDevice {
37public:
40
41protected:
42 virtual void InitTask();
43 bool HandleData(FairMQMessagePtr&, int);
44
45private:
46 uint64_t fMaxTimeslices;
47 uint64_t fNumMessages;
48 std::string fRunId;
49 std::string fvmcworkdir;
50
51 CbmStsDigitizeParameters* fDigiPar;
52
53 FairGeoParSet* fGeoPar;
54
56
57 std::vector<std::string> fAllowedChannels = {"stsdigi", "parameters"};
58 std::vector<std::vector<std::string>> fChannelsToSend = {{}, {}};
59
60 bool IsChannelNameAllowed(std::string channelName);
61
62 bool InitContainers();
63
64 bool DoWork();
65
66 bool SendData();
67
68 void Finish();
69
70
71 FairField* createField();
72
73 // TList* fParCList;
74
75 // TObjArray fArrayHisto;
76};
77
78#endif /* CBMDEVICESTSLOCALRECO_H_ */
CbmStsDigitizeParameters * fDigiPar
std::vector< std::vector< std::string > > fChannelsToSend
virtual void InitTask()
std::vector< std::string > fAllowedChannels
bool HandleData(FairMQMessagePtr &, int)
bool IsChannelNameAllowed(std::string channelName)
virtual ~CbmDeviceStsLocalReco()