#include <PndMQTopix4OnlineHisto.h>
PndMQTopix4OnlineHisto.h
- Since
- 2014-10-10
- Author
- A. Rybalchenko
Definition at line 28 of file PndMQTopix4OnlineHisto.h.
PndMQTopix4OnlineHisto::PndMQTopix4OnlineHisto |
( |
| ) |
|
Definition at line 33 of file PndMQTopix4OnlineHisto.cxx.
References fHasBoostSerialization.
35 gSystem->ResetSignal(kSigInterrupt);
36 gSystem->ResetSignal(kSigTermination);
38 using namespace baseMQ::tools::resolve;
40 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
PndMQTopix4OnlineHisto::~PndMQTopix4OnlineHisto |
( |
| ) |
|
|
virtual |
void PndMQTopix4OnlineHisto::Run |
( |
| ) |
|
|
protectedvirtual |
Definition at line 49 of file PndMQTopix4OnlineHisto.cxx.
References c1, fHasBoostSerialization, fTopixData, and h2.
Referenced by main().
53 FairMQChannel& dataInChannel = fChannels.at(
"data-in").at(0);
56 TH2*
h2 =
new TH2D(
"h2",
"h2", 21, -0.5, 20.5, 33, -0.5, 32.5);
57 TCanvas *
c1 =
new TCanvas(
"c1",
"Dynamic Filling Example", 500, 100, 700, 500);
59 while (CheckCurrentState(RUNNING))
61 FairMQMessage* msg = fTransportFactory->CreateMessage();
63 if (dataInChannel.Receive(msg) > 0)
65 LOG(INFO) <<
"Received Message: ";
66 LOG(INFO) << receivedMsgs++;
67 LOG(INFO) << msg->GetSize();
69 string msgStr(static_cast<char*>(msg->GetData()), msg->GetSize());
70 istringstream ibuffer(msgStr);
72 boost::archive::binary_iarchive InputArchive(ibuffer);
77 catch (boost::archive::archive_exception& e)
79 LOG(ERROR) << e.what();
82 LOG(INFO) <<
"TopixData: " <<
fTopixData.size();
86 h2->Fill(itr.GetPixelColumn(), itr.GetPixelRow());
91 const int kUPDATE = 100;
93 if (receivedMsgs == kUPDATE) h2->Draw(
"colz");
98 if (fTopixData.size() > 0)
bool fHasBoostSerialization
std::vector< PndSdsDigiTopix4 > fTopixData
template<class Archive >
void PndMQTopix4OnlineHisto::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inline |
friend class boost::serialization::access |
|
friend |
bool PndMQTopix4OnlineHisto::fHasBoostSerialization |
|
protected |
The documentation for this class was generated from the following files: