• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

newmonitor/base/SysCoreProc.cxx (r3879/r3877)

Go to the documentation of this file.
00001 #include "base/SysCoreProc.h"
00002 
00003 #include "base/ProcMgr.h"
00004 
00005 unsigned base::SysCoreProc::fMaxBrdId = 16;
00006 
00007 base::SysCoreProc::SysCoreProc(const char* name, unsigned brdid) :
00008    base::StreamProc(name, (int) brdid),
00009    fBrdId(brdid),
00010    fSyncSource(0),
00011    fTriggerSignal(0xff),
00012    fNumPrintMessages(0),
00013    fPrintLeft(-1.),
00014    fPrintRight(-1.),
00015    fAnyPrinted(false)
00016 {
00017    char sbuf1[100], sbuf2[100];
00018    sprintf(sbuf1, "MsgPer%s", name);
00019    sprintf(sbuf2, "Number of messages per %s", name);
00020 
00021    fMsgPerBrd = mgr()->MakeH1(sbuf1, sbuf2, fMaxBrdId, 0, fMaxBrdId, "brdid");
00022 }
00023 
00024 base::SysCoreProc::~SysCoreProc()
00025 {
00026 }
00027 
00028 
00029 void base::SysCoreProc::CreateBasicHistograms()
00030 {
00031    fALLt = MakeH1("ALL_t", "Time distribution of all messages", 10000, 0., 1000., "s");
00032 
00033    fAUXt[0] = MakeH1("AUX0_t", "Time distribution of AUX0 signal", 10000, 0., 1000., "s");
00034    fAUXt[1] = MakeH1("AUX1_t", "Time distribution of AUX1 signal", 10000, 0., 1000., "s");
00035    fAUXt[2] = MakeH1("AUX2_t", "Time distribution of AUX2 signal", 10000, 0., 1000., "s");
00036    fAUXt[3] = MakeH1("AUX3_t", "Time distribution of AUX3 signal", 10000, 0., 1000., "s");
00037 
00038    fSYNCt[0] = MakeH1("SYNC0_t", "Time distribution of SYNC0 signal", 10000, 0., 1000., "s");
00039    fSYNCt[1] = MakeH1("SYNC1_t", "Time distribution of SYNC1 signal", 10000, 0., 1000., "s");
00040 }

Generated on Thu Dec 13 2012 04:52:22 for ROCsoft by  doxygen 1.7.1