PandaRoot
PndMQTopix4Sorter.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 PndMQTopix4Sorter_H_
16 #define PndMQTopix4Sorter_H_
17 
18 #include "FairMQDevice.h"
19 
20 #include "PndSdsDigiTopix4.h"
21 
22 #include <boost/serialization/access.hpp>
23 #include <boost/archive/text_iarchive.hpp>
24 #include <boost/archive/binary_iarchive.hpp>
25 #include <boost/archive/binary_oarchive.hpp>
26 #include <boost/serialization/vector.hpp>
27 
28 class PndMQTopix4Sorter : public FairMQDevice {
29  public:
31  virtual ~PndMQTopix4Sorter();
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  ar &fOutputData;
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  std::vector<PndSdsDigiTopix4> fOutputData;
52 };
53 
54 #endif /* FAIRMQEXAMPLE1SINK_H_ */
friend class boost::serialization::access
std::vector< PndSdsDigiTopix4 > fTopixData
virtual ~PndMQTopix4Sorter()
std::vector< PndSdsDigiTopix4 > fOutputData
void serialize(Archive &ar, const unsigned int version)
virtual void Run()