/******************************************************************************** * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH * * * * This software is distributed under the terms of the * * GNU Lesser General Public Licence version 3 (LGPL) version 3, * * copied verbatim in the file "LICENSE" * ********************************************************************************/ /** * PndMQTopix4Sink.h * * @since 2014-10-10 * @author A. Rybalchenko */ #ifndef PndMQTopix4DigiToHit_H_ #define PndMQTopix4DigiToHit_H_ //#include "FairMQDevice.h" #include #include "FairMQDevice.h" #include "PndMvdTopixClusterFinder.h" #include "PndMvdTopixHitProducer.h" #include #include #include #include class PndMQTopix4DigiToHit : public FairMQDevice { public: PndMQTopix4DigiToHit(); virtual ~PndMQTopix4DigiToHit(); template void serialize(Archive& ar, const unsigned int version) { ar& fTopixDigis; ar& fTopixHitsEvent; ar& fClusterSize; } std::vector GetClusterSize() {return fClusterSize;} protected: virtual void Run(); private: #ifndef __CINT__ // for BOOST serialization friend class boost::serialization::access; #endif // for BOOST serialization std::vector fTopixDigis; std::deque > fTopixHitsEvent; std::vector fClusterSize; bool fHasBoostSerialization; PndMQGapEventBuilderToPix fEventBuilder; PndMvdTopixClusterFinder fClusterFinder; // PndMvdTopixHitProducer fHitProducer; PndMQTopixHitProducer fHitProducer; bool fStatusOutput; }; #endif /* FAIRMQEXAMPLE1SINK_H_ */