FairRoot/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 {
30  public:
32  virtual ~PndMQTopix4Sink();
33 
34 // static void CustomCleanup(void *data, void *object);
35 
36  template <class Archive>
37  void serialize(Archive& ar, const unsigned int version)
38  {
39  ar& fTopixData;
40  }
41 
42  protected:
43  virtual void Run();
44 
45  #ifndef __CINT__ // for BOOST serialization
48  #endif // for BOOST serialization
49 
50  std::vector<PndSdsDigiTopix4> fTopixData;
51 
53 };
54 
55 #endif /* FAIRMQEXAMPLE1SINK_H_ */
PndMvdReadInToPix4TBData fTopixDataReader
friend class boost::serialization::access
virtual void Run()
virtual ~PndMQTopix4Sink()
void serialize(Archive &ar, const unsigned int version)
std::vector< PndSdsDigiTopix4 > fTopixData