PandaRoot
PndMQTopix4Processor.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 PndMQTopix4Processor_H_
16 #define PndMQTopix4Processor_H_
17 
18 //#include "FairMQDevice.h"
19 #include "FairMQDevice.h"
21 
22 #include <boost/serialization/access.hpp>
23 #include <boost/serialization/vector.hpp>
24 
25 class PndMQTopix4Processor : public FairMQDevice {
26  public:
27  enum { FE = FairMQDevice::Last, TimeCorr, Last };
28 
30  virtual ~PndMQTopix4Processor();
31 
32  virtual void SetProperty(const int key, const std::string &value);
33  virtual std::string GetProperty(const int key, const std::string &default_ = "");
34  virtual void SetProperty(const int key, const int value);
35  virtual int GetProperty(const int key, const int default_ = 0);
36 
37  void SetFilter(bool val) { fTopixDataReader.SetFilter(val); }
38 
39  template <class Archive>
40  void serialize(Archive &ar, const unsigned int version)
41  {
42  ar &fPndSdsDigiTopix4Vector;
43  ar &fStatusValues;
44  }
45 
46  protected:
47  virtual void Run();
48 
49  private:
50 #ifndef __CINT__ // for BOOST serialization
52 #endif // for BOOST serialization
53  std::vector<PndSdsDigiTopix4> fPndSdsDigiTopix4Vector;
54  std::vector<int> fStatusValues;
55 
56  bool fHasBoostSerialization;
57  int fFE;
58  double fTimeStampCorrection;
59  std::string fTimeCorrStr;
60 
61  PndMvdReadInToPix4TBData fTopixDataReader;
62 };
63 
64 #endif /* FAIRMQEXAMPLE1SINK_H_ */
virtual void Run()
virtual std::string GetProperty(const int key, const std::string &default_="")
friend class boost::serialization::access
void serialize(Archive &ar, const unsigned int version)
virtual void SetProperty(const int key, const std::string &value)
virtual ~PndMQTopix4Processor()