PandaRoot
PndMQTopix4DigiToHit.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 PndMQTopix4DigiToHit_H_
16 #define PndMQTopix4DigiToHit_H_
17 
18 //#include "FairMQDevice.h"
20 #include "FairMQDevice.h"
22 #include "PndMvdTopixHitProducer.h"
23 #include <boost/serialization/access.hpp>
24 #include <boost/serialization/vector.hpp>
25 #include <boost/serialization/deque.hpp>
26 #include <PndMQTopixHitProducer.h>
27 
28 class PndMQTopix4DigiToHit : public FairMQDevice {
29  public:
31  virtual ~PndMQTopix4DigiToHit();
32 
33  template <class Archive>
34  void serialize(Archive &ar, const unsigned int version)
35  {
36  ar &fTopixDigis;
37  ar &fTopixHitsEvent;
38  ar &fClusterSize;
39  }
40 
41  std::vector<int> GetClusterSize() { return fClusterSize; }
42 
43  protected:
44  virtual void Run();
45 
46  private:
47 #ifndef __CINT__ // for BOOST serialization
49 #endif // for BOOST serialization
50  std::vector<PndSdsDigiTopix4> fTopixDigis;
51  std::deque<std::vector<PndSdsHit>> fTopixHitsEvent;
52  std::vector<int> fClusterSize;
53 
54  bool fHasBoostSerialization;
55  PndMQGapEventBuilderToPix fEventBuilder;
56  PndMvdTopixClusterFinder fClusterFinder;
57  // PndMvdTopixHitProducer fHitProducer;
58  PndMQTopixHitProducer fHitProducer;
59  bool fStatusOutput;
60 };
61 
62 #endif /* FAIRMQEXAMPLE1SINK_H_ */
virtual void Run()
void serialize(Archive &ar, const unsigned int version)
friend class boost::serialization::access
virtual ~PndMQTopix4DigiToHit()
std::vector< int > GetClusterSize()