FairRoot/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 {
30  public:
32  virtual ~PndMQTopix4DigiToHit();
33 
34  template <class Archive>
35  void serialize(Archive& ar, const unsigned int version)
36  {
37  ar& fTopixDigis;
38  ar& fTopixHitsEvent;
39  ar& fClusterSize;
40  }
41 
42  std::vector<int> GetClusterSize() {return fClusterSize;}
43 
44  protected:
45  virtual void Run();
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 
57  // PndMvdTopixHitProducer fHitProducer;
60 };
61 
62 #endif /* FAIRMQEXAMPLE1SINK_H_ */
PndMvdTopixClusterFinder fClusterFinder
std::vector< PndSdsDigiTopix4 > fTopixDigis
std::deque< std::vector< PndSdsHit > > fTopixHitsEvent
void serialize(Archive &ar, const unsigned int version)
std::vector< int > fClusterSize
friend class boost::serialization::access
PndMQGapEventBuilderToPix fEventBuilder
PndMQTopixHitProducer fHitProducer
std::vector< int > GetClusterSize()