FairRoot/PandaRoot
PndMQHitEventDevice.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 PndMQHitEventDevice_H_
16 #define PndMQHitEventDevice_H_
17 
18 //#include "FairMQDevice.h"
19 #include "FairMQDevice.h"
21 #include "PndMQHitsEventBuilder.h"
22 
23 #include <boost/serialization/access.hpp>
24 #include <boost/serialization/vector.hpp>
25 #include <boost/serialization/deque.hpp>
26 
27 class PndMQHitEventDevice : public FairMQDevice
28 {
29  public:
30 
31 
33  virtual ~PndMQHitEventDevice();
34 
35  virtual void SetProperty(const int key, const std::string& value);
36  virtual std::string GetProperty(const int key, const std::string& default_ = "");
37  virtual void SetProperty(const int key, const int value);
38  virtual int GetProperty(const int key, const int default_ = 0);
39 
40  template <class Archive>
41  void serialize(Archive& ar, const unsigned int version)
42  {
43  ar& fHitData;
44  ar& fEventData;
45  ar& fSensorsInEvent;
46  }
47 
48  protected:
49  virtual void Run();
50  private:
51  #ifndef __CINT__ // for BOOST serialization
53  #endif // for BOOST serialization
54  std::vector< std::vector<PndSdsHit> > fHitData;
55  // std::vector<PndSdsHit> fHitData;
56  std::vector<std::vector<PndSdsHit> > fEventData;
57  std::vector<std::vector<std::vector<PndSdsHit> > > fDataFromChannels;
58  std::vector<bool> fRunningStatus;
60  std::vector<int> fSensorsInEvent;
61 
64 };
65 
66 #endif /* FAIRMQEXAMPLE1SINK_H_ */
friend class boost::serialization::access
std::vector< std::vector< PndSdsHit > > fHitData
PndMQHitsEventBuilder * fBuilder
std::vector< int > fSensorsInEvent
virtual std::string GetProperty(const int key, const std::string &default_="")
std::vector< bool > fRunningStatus
std::vector< std::vector< PndSdsHit > > fEventData
virtual void SetProperty(const int key, const std::string &value)
std::vector< std::vector< std::vector< PndSdsHit > > > fDataFromChannels
void serialize(Archive &ar, const unsigned int version)