PandaRoot
PndMQTopix4ProcessorTask.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /********************************************************************************
14  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
15  * *
16  * This software is distributed under the terms of the *
17  * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
18  * copied verbatim in the file "LICENSE" *
19  ********************************************************************************/
27 #ifndef PNDMQTOPIX4PROCESSORTASK_H_
28 #define PNDMQTOPIX4PROCESSORTASK_H_
29 
30 //#include "FairMQDevice.h"
31 #include "FairMQProcessorTask.h"
33 #include "PndTopix4.h"
34 
35 #include <boost/serialization/access.hpp>
36 #include <boost/serialization/vector.hpp>
37 
38 class PndMQTopix4ProcessorTask : public FairMQProcessorTask {
39  public:
41  virtual ~PndMQTopix4ProcessorTask();
42 
43  virtual InitStatus Init() { return kSUCCESS; };
44 
45  virtual void Exec(Option_t *opt = "0");
46 
47  template <class Archive>
48  void serialize(Archive &ar, const unsigned int version)
49  {
50  ar &fPndSdsDigiTopix4Vector;
51  }
52 
53  private:
54 #ifndef __CINT__ // for BOOST serialization
56 #endif // for BOOST serialization
57  std::vector<PndSdsDigiTopix4> fPndSdsDigiTopix4Vector;
58 
59  bool fHasBoostSerialization;
60 
61  PndMvdReadInToPix4TBData fTopixDataReader;
62 };
63 
64 #endif /* FAIRMQEXAMPLE1SINK_H_ */
virtual ~PndMQTopix4ProcessorTask()
void serialize(Archive &ar, const unsigned int version)
virtual void Exec(Option_t *opt="0")
friend class boost::serialization::access