PandaRoot
PndMQTopix4DigiToHit.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 PndMQTopix4DigiToHit_H_
28 #define PndMQTopix4DigiToHit_H_
29 
30 //#include "FairMQDevice.h"
32 #include "FairMQDevice.h"
34 #include "PndMvdTopixHitProducer.h"
35 #include <boost/serialization/access.hpp>
36 #include <boost/serialization/vector.hpp>
37 #include <boost/serialization/deque.hpp>
38 #include <PndMQTopixHitProducer.h>
39 
40 class PndMQTopix4DigiToHit : public FairMQDevice {
41  public:
43  virtual ~PndMQTopix4DigiToHit();
44 
45  template <class Archive>
46  void serialize(Archive &ar, const unsigned int version)
47  {
48  ar &fTopixDigis;
49  ar &fTopixHitsEvent;
50  ar &fClusterSize;
51  }
52 
53  std::vector<int> GetClusterSize() { return fClusterSize; }
54 
55  protected:
56  virtual void Run();
57 
58  private:
59 #ifndef __CINT__ // for BOOST serialization
61 #endif // for BOOST serialization
62  std::vector<PndSdsDigiTopix4> fTopixDigis;
63  std::deque<std::vector<PndSdsHit>> fTopixHitsEvent;
64  std::vector<int> fClusterSize;
65 
66  bool fHasBoostSerialization;
67  PndMQGapEventBuilderToPix fEventBuilder;
68  PndMvdTopixClusterFinder fClusterFinder;
69  // PndMvdTopixHitProducer fHitProducer;
70  PndMQTopixHitProducer fHitProducer;
71  bool fStatusOutput;
72 };
73 
74 #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()