FairRoot/PandaRoot
PndMQSorterDistributor.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 PndMQSorterDistributor_H_
16 #define PndMQSorterDistributor_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 PndMQSorterDistributor : public FairMQDevice
28 {
29  public:
31  virtual ~PndMQSorterDistributor();
32 
33  template <class Archive>
34  void serialize(Archive& ar, const unsigned int version)
35  {
36  ar& fTopixData;
37  ar& fCurrentOutput;
38  ar& fNextOutput;
39  }
40 
41  protected:
42  virtual void Run();
43  double fThreshold;
44  double fOffset;
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 };
54 
55 #endif /* PndMQSorterDistributor_H_ */
std::vector< PndSdsDigiTopix4 > fCurrentOutput
void serialize(Archive &ar, const unsigned int version)
std::vector< PndSdsDigiTopix4 > fTopixData
std::vector< PndSdsDigiTopix4 > fNextOutput
friend class boost::serialization::access