9#include "daq/dqm/DqmSharedMem.h"
18int main(
int ,
char** )
22 TMemFile* file =
new TMemFile(
"TestHisto",
"RECREATE");
23 file->CopyTo(shm->ptr(), 500000);
27 TH1F* h1 =
new TH1F(
"testhisto",
"testhisto", 100, 0.0, 100.0);
28 file->Write(0, TObject::kOverwrite);
34 for (
int i = 0; i < 100; i++) {
35 h1->Fill((
float)i, (
float)i);
39 file->Write(0, TObject::kOverwrite);
41 int cpysize = file->CopyTo(shm->ptr(), 500000);
43 printf(
"Objects copied : cpysize = %d\n", cpysize);
47 file->CopyTo(shm->ptr(), 500000);
Abstract base class for different kinds of events.