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  public:
30  virtual ~PndMQSorterDistributor();
31 
32  template <class Archive>
33  void serialize(Archive &ar, const unsigned int version)
34  {
35  ar &fTopixData;
36  ar &fCurrentOutput;
37  ar &fNextOutput;
38  }
39 
40  protected:
41  virtual void Run();
42  double fThreshold;
43  double fOffset;
44 
45 #ifndef __CINT__ // for BOOST serialization
48 #endif // for BOOST serialization
49  std::vector<PndSdsDigiTopix4> fTopixData;
50  std::vector<PndSdsDigiTopix4> fCurrentOutput;
51  std::vector<PndSdsDigiTopix4> fNextOutput;
52 };
53 
54 #endif /* PndMQSorterDistributor_H_ */
std::vector< PndSdsDigiTopix4 > fCurrentOutput
virtual void Run()
void serialize(Archive &ar, const unsigned int version)
std::vector< PndSdsDigiTopix4 > fTopixData
std::vector< PndSdsDigiTopix4 > fNextOutput
virtual ~PndMQSorterDistributor()
friend class boost::serialization::access