FairRoot/PandaRoot
PndMQSorterMerger.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 PndMQSorterMerger_H_
16 #define PndMQSorterMerger_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/serialization/vector.hpp>
26 
27 class PndMQSorterMerger : public FairMQDevice
28 {
29  public:
31  virtual ~PndMQSorterMerger();
32 
33  template <class Archive>
34  void serialize(Archive& ar, const unsigned int version)
35  {
36  ar& fInputData;
37  ar& fOutputData;
38  }
39 
40  protected:
41  virtual void Run();
42  std::vector<std::vector<PndSdsDigiTopix4> > fData;
43  std::vector<PndSdsDigiTopix4> fOutputData;
44  std::vector<PndSdsDigiTopix4> fInputData;
45 
46  #ifndef __CINT__ // for BOOST serialization
49  #endif // for BOOST serialization
50  std::vector<PndSdsDigiTopix4> fTopixData;
51  std::vector<PndSdsDigiTopix4> fCurrentOutput;
52  std::vector<PndSdsDigiTopix4> fNextOutput;
53  std::vector<bool> fRunningStatus;
54 };
55 
56 #endif /* PndMQSorterMerger_H_ */
std::vector< PndSdsDigiTopix4 > fInputData
std::vector< PndSdsDigiTopix4 > fOutputData
friend class boost::serialization::access
std::vector< PndSdsDigiTopix4 > fNextOutput
std::vector< std::vector< PndSdsDigiTopix4 > > fData
void serialize(Archive &ar, const unsigned int version)
std::vector< PndSdsDigiTopix4 > fTopixData
std::vector< bool > fRunningStatus
std::vector< PndSdsDigiTopix4 > fCurrentOutput