#include <PndMQFileSink.h>
Definition at line 53 of file PndMQFileSink.h.
PndMQFileSink::PndMQFileSink |
( |
| ) |
|
|
inline |
Definition at line 56 of file PndMQFileSink.h.
63 gSystem->ResetSignal(kSigInterrupt);
64 gSystem->ResetSignal(kSigTermination);
67 using namespace baseMQ::tools::resolve;
69 if (is_same<boost::archive::binary_iarchive, boost::archive::binary_iarchive>::value || is_same<boost::archive::binary_iarchive, boost::archive::text_iarchive>::value)
71 if (has_BoostSerialization<
PndSdsDigiTopix4,
void(boost::archive::binary_iarchive&,
const unsigned int)>::value == 1)
Data class to store the digi output of a pixel module.
bool fHasBoostSerialization
vector< PndSdsDigiTopix4 > fHitVector
virtual PndMQFileSink::~PndMQFileSink |
( |
| ) |
|
|
inlinevirtual |
virtual void PndMQFileSink::InitOutputFile |
( |
TString |
defaultId = "100" | ) |
|
|
inlinevirtual |
void PndMQFileSink::Run |
( |
| ) |
|
|
protectedvirtual |
Definition at line 11 of file PndMQFileSink.cxx.
References fHasBoostSerialization, fHitVector, fOutput, fTree, and i.
18 FairMQChannel& dataInChannel = fChannels.at(
"data-in").at(0);
20 while (CheckCurrentState(RUNNING))
22 FairMQMessage* msg = fTransportFactory->CreateMessage();
24 if (dataInChannel.Receive(msg) > 0)
27 string msgStr(static_cast<char*>(msg->GetData()), msg->GetSize());
28 istringstream ibuffer(msgStr);
29 boost::archive::binary_iarchive InputArchive(ibuffer);
30 LOG(INFO) <<
"Received Message: " << receivedMsgs;
35 catch (boost::archive::archive_exception& e)
37 LOG(ERROR) << e.what();
43 for (Int_t
i = 0;
i < numInput; ++
i)
51 LOG(ERROR) <<
"PndMQFileSink::Run(): No Output array!";
65 LOG(INFO) <<
"I've received " << receivedMsgs <<
" messages!";
69 LOG(ERROR) <<
" Boost Serialization not ok";
Data class to store the digi output of a pixel module.
bool fHasBoostSerialization
vector< PndSdsDigiTopix4 > fHitVector
template<class Archive >
void PndMQFileSink::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inline |
friend class boost::serialization::access |
|
friend |
bool PndMQFileSink::fHasBoostSerialization |
|
private |
TFile* PndMQFileSink::fOutFile |
|
private |
TClonesArray* PndMQFileSink::fOutput |
|
private |
TTree* PndMQFileSink::fTree |
|
private |
The documentation for this class was generated from the following files: