PandaRoot
PndMQTopix4Sink.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 PNDMQTOPIX4SINK_H_
16 #define PNDMQTOPIX4SINK_H_
17 
18 #include "FairMQDevice.h"
20 
21 #include "PndSdsDigiTopix4.h"
22 
23 #include <boost/serialization/access.hpp>
24 #include <boost/archive/text_iarchive.hpp>
25 #include <boost/archive/binary_iarchive.hpp>
26 #include <boost/serialization/vector.hpp>
27 
28 class PndMQTopix4Sink : public FairMQDevice {
29  public:
31  virtual ~PndMQTopix4Sink();
32 
33  // static void CustomCleanup(void *data, void *object);
34 
35  template <class Archive>
36  void serialize(Archive &ar, const unsigned int version)
37  {
38  ar &fTopixData;
39  }
40 
41  protected:
42  virtual void Run();
43 
44 #ifndef __CINT__ // for BOOST serialization
47 #endif // for BOOST serialization
48 
49  std::vector<PndSdsDigiTopix4> fTopixData;
50 
52 };
53 
54 #endif /* FAIRMQEXAMPLE1SINK_H_ */
PndMvdReadInToPix4TBData fTopixDataReader
friend class boost::serialization::access
void serialize(Archive &ar, const unsigned int version)
std::vector< PndSdsDigiTopix4 > fTopixData
virtual ~PndMQTopix4Sink()
virtual void Run()