26 fh_histo1 = TH1F(
"histo1",
"", 200, -0.5, 1.5);
27 fh_histo2 = TH1F(
"histo2",
"", 1000, -5., 5.);
28 fh_histo3 = TH2F(
"histo3",
"", 40, -2., 2., 40, -2., 2.);
29 fh_histo4 = TH2F(
"histo4",
"", 40, -2., 2., 40, -2., 2.);
31 fArrayHisto.Add(&fh_histo1);
32 fArrayHisto.Add(&fh_histo2);
33 fArrayHisto.Add(&fh_histo3);
34 fArrayHisto.Add(&fh_histo4);
43 fh_histo1.Fill(fRandom.Uniform(0., 1.));
44 fh_histo2.Fill(fRandom.Gaus(0., 1.));
45 double x = fRandom.Uniform(0., 1.);
46 double y = fRandom.Uniform(x, 1.);
48 double r = fRandom.Uniform(0., 1.);
49 double phi = TMath::DegToRad() * fRandom.Uniform(0., 360.);
50 x = r * TMath::Cos(phi);
51 y = r * TMath::Sin(phi);
54 FairMQMessagePtr message(NewMessage());
55 Serialize<RootSerializer>(*message, &fArrayHisto);
57 for (
auto& channel : fChannels) {
58 Send(message, channel.first.data());
66 std::this_thread::sleep_for(std::chrono::milliseconds(10));
virtual ~FairMQExHistoDevice()
virtual bool ConditionalRun()