FairRoot/PandaRoot
PndMvdMQTaskProcessor.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 #ifndef FAIRMQEXAMPLE9TASKPROCESSOR_H_
10 #define FAIRMQEXAMPLE9TASKPROCESSOR_H_
11 
12 #include <string>
13 
14 #include "FairEventHeader.h"
15 #include "FairGeoParSet.h"
16 #include "FairParGenericSet.h"
17 
18 #include "FairMQDevice.h"
19 #include "FairMQParts.h"
20 
21 #include "TClonesArray.h"
22 #include "TList.h"
23 #include "TMessage.h"
24 
25 template<typename T>
26 class PndMvdMQTaskProcessor : public FairMQDevice
27 {
28  public:
29  enum
30  {
32  };
33 
35  virtual ~PndMvdMQTaskProcessor();
36 
37  void SetProperty(const int key, const std::string& value);
38  std::string GetProperty(const int key, const std::string& default_ = "");
39  void SetProperty(const int key, const int value);
40  int GetProperty(const int key, const int default_ = 0);
41 
42  void SetDataToKeep(std::string tStr) { fDataToKeep = tStr;}
43 
44  protected:
45  virtual void Run();
46  virtual void Init();
47 
48  void UpdateParameters();
49  FairParGenericSet* UpdateParameter(FairParGenericSet* thisPar);
50 
51  static void CustomCleanup(void *data, void *hint);
52 
53  FairEventHeader* fEventHeader;
54  TList* fInput;
55  TList* fOutput;
56 
57  int fNewRunId;
59 
60  std::string fDataToKeep;
61 
63  TList* fParCList;
64  FairGeoParSet* fGeoPar;
65 
66 };
67 
68 // Template implementation is in PndMvdMQTaskProcessor.tpl :
69 #include <PndMvdMQTaskProcessor.tpl>
70 
71 #endif /* FAIRMQEXAMPLE9TASKPROCESSOR_H_ */
void SetDataToKeep(std::string tStr)
FairEventHeader * fEventHeader
void SetProperty(const int key, const std::string &value)
FairParGenericSet * UpdateParameter(FairParGenericSet *thisPar)
TTree * T
Definition: anaLmdReco.C:32
static void CustomCleanup(void *data, void *hint)
std::string GetProperty(const int key, const std::string &default_="")