FairRoot/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 {
30  public:
32  virtual ~PndMQTopix4Sorter();
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  ar& fOutputData;
41  }
42 
43  protected:
44  virtual void Run();
45 
46  #ifndef __CINT__ // for BOOST serialization
49  #endif // for BOOST serialization
50 
51  std::vector<PndSdsDigiTopix4> fTopixData;
52  std::vector<PndSdsDigiTopix4> fOutputData;
53 };
54 
55 #endif /* FAIRMQEXAMPLE1SINK_H_ */
friend class boost::serialization::access
std::vector< PndSdsDigiTopix4 > fTopixData
std::vector< PndSdsDigiTopix4 > fOutputData
void serialize(Archive &ar, const unsigned int version)