11 const char* exclude_pattern,
12 std::list<std::string>& objs)
18 std::list<std::string>
h;
21 std::list<std::string>::iterator
i(h.begin());
22 std::list<std::string>::iterator iend(h.end());
23 for (;
i!=iend; ++
i) {
26 if (in && !ex) objs.push_back(*
i);
49 fFile =
new TFile(nm,
"READ");
51 om::cout <<
"Unable to open root file " << nm <<
" for read." <<
"";
59 TObject* obj =
fFile->FindObjectAny(n);
68 TObject* obj =
fFile->FindObjectAny(n);
79 while ((obj =
next())) {
80 h.push_back(obj->GetName());
174 bool is_root = s.find(
".root")<s.length();
175 bool is_shm = s.find(
".shm")< s.length();
176 if (is_root&&is_shm) abort();
220 pid, stime, utime, cpu, rsize, t);
unsigned int fSubrun
Subrun number of last update.
virtual void GetStatus(std::string &nm, unsigned int *run, unsigned int *subrun, unsigned int *event, pid_t *pid, long *stime, long *utime, long *cpu, long *rsize, time_t *t)
Get the histogram server status.
void SetName(const char *nm)
Set the source name.
void GetStatus(std::string &nm, unsigned int *run, unsigned int *subrun, unsigned int *event, pid_t *pid, long *stime, long *utime, long *cpu, long *rsize, time_t *t)
Get the histogram server status.
time_t fCLOCK
Time of update.
void GetHistogramList(std::list< std::string > &h)
Get a list of all histograms held by this source.
void SetName(const char *nm)
Set the source name.
long fCPU
Process CPU usage.
Class to manage the shared memory segment.
void FindAllMatches(const char *include_pattern, const char *exclude_pattern, std::list< std::string > &objs)
virtual TH1F * GetTH1FCopy(const char *n)=0
static constexpr Double_t nm
struct IPCBlock * fIPC
Pointer to struct.
int RequestHistoList(std::list< std::string > &hlist)
TFile * fFile
The root histogram file.
HistoSource(const char *n)
virtual void GetHistogramList(std::list< std::string > &h)=0
Get a list of all histograms held by this source.
static const int kIPC_CLIENT
IPC * fIPC
Shared memory handler.
TH2F * GetTH2FCopy(const char *n)
char fShmHdl[kHdlSz]
Shared memory handle.
void GetStatus(std::string &nm, unsigned int *run, unsigned int *subrun, unsigned int *event, pid_t *pid, long *stime, long *utime, long *cpu, long *rsize, time_t *t)
Get the histogram server status.
TH2F * GetTH2FCopy(const char *n)
TH2F * GetTH2FCopy(const char *n)
HistoSourceBase * fSource
unsigned int fRun
Run number of last update.
TH1F * GetTH1FCopy(const char *n)
TH1F * GetTH1FCopy(const char *n)
unsigned int fEvent
Event number of last update.
void GetHistogramList(std::list< std::string > &h)
Get a list of all histograms held by this source.
virtual TH2F * GetTH2FCopy(const char *n)=0
int regex_match(const std::string &s, const std::string &p)
TH1F * RequestTH1F(const char *n)
TH1F * GetTH1FCopy(const char *n)
void GetHistogramList(std::list< std::string > &h)
Get a list of all histograms held by this source.
TH2F * RequestTH2F(const char *n)
ProducerResources fProcessResources
Online Monitoring package header.
void SetName(const char *nm)
Set the source name.