FairRoot/PandaRoot
PndMQTopix4Sampler.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  ********************************************************************************/
15 #ifndef PNDMQTOPIX4SAMPLER_H_
16 #define PNDMQTOPIX4SAMPLER_H_
17 
18 #include <string>
19 
20 #include "FairMQDevice.h"
22 
23 class PndMQTopix4Sampler : public FairMQDevice
24 {
25  public:
26  enum
27  {
28  FileName = FairMQDevice::Last,
30  };
32  virtual ~PndMQTopix4Sampler();
33 
34  static void CustomCleanup(void* data, void* hint);
35 
36  virtual void SetProperty(const int key, const std::string& value);
37  virtual std::string GetProperty(const int key, const std::string& default_ = "");
38  virtual void SetProperty(const int key, const int value);
39  virtual int GetProperty(const int key, const int default_ = 0);
40 
41  virtual void Init();
42 
43  protected:
44  std::string fFileName;
45  int fFE;
47  virtual void Run();
48 };
49 
50 #endif /* FAIRMQEXAMPLE1SAMPLER_H_ */
virtual std::string GetProperty(const int key, const std::string &default_="")
PndMvdReadInToPix4TBData fTopixDataReader
static void CustomCleanup(void *data, void *hint)
virtual void SetProperty(const int key, const std::string &value)