Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
run_Poms.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file run_Poms.C
1 // Phenix Online Monitoring System
2 //
3 // Macro loader for starting Online Monitoring GUI Framework
4 //
5 // Author: Cody McCain (mcm99c@acu.edu)
6 // Date: January 2, 2003
7 //
8 // See run_Poms.C.README
9 
10 #include <onlmon/Poms.h>
11 
12 // cppcheck-suppress unknownMacro
13 R__LOAD_LIBRARY(libpoms.so)
14 
15 void StartPoms()
16 {
17  PomsMainFrame *pmf;
19 
20  // Register SubSystems
21  // pmf->RegisterSubSystem("EXAMPLE", "example");
22  SubSystem *subsys = nullptr;
23 
24  subsys = new SubSystem("MBD", "bbc");
25  subsys->AddAction("bbcDraw(\"FIRST\")", "MBD Vertex Monitor");
26  subsys->AddAction("bbcDraw(\"SECOND\")", "MBD Timing Monitor");
27  subsys->AddAction(new SubSystemActionSavePlot(subsys));
28  pmf->RegisterSubSystem(subsys);
29 
30  subsys = new SubSystem("CEMC", "cemc");
31  subsys->AddAction("cemcDraw(\"FIRST\")", "Towers");
32  subsys->AddAction("cemcDraw(\"SECOND\")", "Packet Health");
33  subsys->AddAction("cemcDraw(\"THIRD\")", "Wave Forms");
34  subsys->AddAction("cemcDraw(\"FOURTH\")", "Wave vs Fast Fitting");
35  subsys->AddAction(new SubSystemActionSavePlot(subsys));
36  pmf->RegisterSubSystem(subsys);
37 
38  // subsys = new SubSystem("DAQ", "daq");
39  // subsys->AddAction("daqDraw(\"FIRST\")", "DAQ 1st Monitor");
40  // subsys->AddAction("daqDraw(\"SECOND\")", "DAQ 2nd Monitor");
41  // subsys->AddAction("daqDraw(\"HISTORY\")", "DAQ History Monitor");
42  // subsys->AddAction(new SubSystemActionSavePlot(subsys));
43  // pmf->RegisterSubSystem(subsys);
44 
45  // subsys = new SubSystem("EPD", "epd");
46  // subsys->AddAction("epdDraw(\"FIRST\")", "EPD 1st Monitor");
47  // subsys->AddAction("epdDraw(\"SECOND\")", "EPD 2nd Monitor");
48  // subsys->AddAction("epdDraw(\"THIRD\")", "EPD 3rd Monitor");
49  // subsys->AddAction(new SubSystemActionSavePlot(subsys));
50  // pmf->RegisterSubSystem(subsys);
51 
52  subsys = new SubSystem("Inner HCAL", "ihcal");
53  subsys->AddAction("ihcalDraw(\"FIRST\")", "Towers");
54  subsys->AddAction("ihcalDraw(\"SECOND\")", "Sector Average");
55  subsys->AddAction("ihcalDraw(\"THIRD\")", "Wave Form");
56  subsys->AddAction("ihcalDraw(\"FOURTH\")", "Packet Health");
57  subsys->AddAction(new SubSystemActionSavePlot(subsys));
58  pmf->RegisterSubSystem(subsys);
59 
60  subsys = new SubSystem("Outer HCAL", "ohcal");
61  subsys->AddAction("ohcalDraw(\"FIRST\")", "Towers");
62  subsys->AddAction("ohcalDraw(\"SECOND\")", "Sector Average");
63  subsys->AddAction("ohcalDraw(\"THIRD\")", "Wave Form");
64  subsys->AddAction("ohcalDraw(\"FOURTH\")", "Packet Health");
65  subsys->AddAction(new SubSystemActionSavePlot(subsys));
66  pmf->RegisterSubSystem(subsys);
67 
68  subsys = new SubSystem("INTT", "intt");
69  subsys->AddAction("inttDraw(\"chip_hitmap\")", "Chip Hitmap");
70  subsys->AddAction("inttDraw(\"ladder_hitmap\")", "Ladder Hitmap");
71  subsys->AddAction("inttDraw(\"chip_nll\")", "Chip NLL");
72  subsys->AddAction(new SubSystemActionSavePlot(subsys));
73  pmf->RegisterSubSystem(subsys);
74 
75  subsys = new SubSystem("Local Level 1", "ll1");
76  subsys->AddAction("ll1Draw(\"FIRST\")", "Hits");
77  subsys->AddAction("ll1Draw(\"SECOND\")", "Hits Correlation");
78  subsys->AddAction("ll1Draw(\"THIRD\")", "Hits Lineup");
79  subsys->AddAction(new SubSystemActionSavePlot(subsys));
80  pmf->RegisterSubSystem(subsys);
81 
82  // subsys = new SubSystem("MVTX", "mvtx");
83  // subsys->AddAction("mvtxDraw(\"GENERAL\")", "General Monitor");
84  // subsys->AddAction("mvtxDraw(\"FEE\")", "FEE");
85  // subsys->AddAction("mvtxDraw(\"FHR\")", "FHR");
86  // subsys->AddAction("mvtxDraw(\"OCC\")", "OCC");
87  // subsys->AddAction(new SubSystemActionSavePlot(subsys));
88  // pmf->RegisterSubSystem(subsys);
89 
90  // subsys = new SubSystem("SEPD", "sepd");
91  // subsys->AddAction("sepdDraw(\"FIRST\")", "Towers");
92  // subsys->AddAction("sepdDraw(\"SECOND\")", "Packet Health");
93  // subsys->AddAction("sepdDraw(\"FOURTH\")", "Wave Forms");
94  // subsys->AddAction("sepdDraw(\"FIFTH\")", "Wave vs Fast Fitting");
95  // subsys->AddAction(new SubSystemActionSavePlot(subsys));
96  // pmf->RegisterSubSystem(subsys);
97 
98  subsys = new SubSystem("TPC", "tpc");
99  subsys->AddAction("tpcDraw(\"TPCMODULE\")", "TPC SUM[ADC]");
100  subsys->AddAction("tpcDraw(\"TPCSAMPLESIZE\")", "TPC Sample Size");
101  subsys->AddAction("tpcDraw(\"TPCCHECKSUMERROR\")", "TPC Checksum Error Prob.");
102  subsys->AddAction("tpcDraw(\"TPCADCVSSAMPLE\")", "TPC ADC vs. Sample");
103  subsys->AddAction("tpcDraw(\"TPCADCVSSAMPLELARGE\")", "TPC ADC vs. Large Sample");
104  subsys->AddAction("tpcDraw(\"TPCMAXADCMODULE\")", "TPC MAX ADC");
105  subsys->AddAction("tpcDraw(\"TPCRAWADC1D\")", "TPC RAW ADC 1D");
106  subsys->AddAction("tpcDraw(\"TPCMAXADC1D\")", "TPC (WindowMAX-Pedestal) ADC 1D");
107  subsys->AddAction("tpcDraw(\"TPCCLUSTERSXYWEIGTHED\")","TPC Cluster XY MaxADC-Pedestal,w");
108  subsys->AddAction("tpcDraw(\"TPCCLUSTERSXYUNWEIGTHED\")","TPC Cluster XY MaxADC-Pedestal,u");
109  subsys->AddAction(new SubSystemActionSavePlot(subsys));
110  pmf->RegisterSubSystem(subsys);
111 
112  subsys = new SubSystem("TPOT", "tpot");
113  subsys->AddAction("tpotDraw(\"TPOT_counters\")", "Event counters");
114  subsys->AddAction("tpotDraw(\"TPOT_detector_occupancy\")", "Detector Occupancy");
115  subsys->AddAction("tpotDraw(\"TPOT_resist_occupancy\")", "Resist Occupnacy");
116  subsys->AddAction("tpotDraw(\"TPOT_adc_vs_sample\")", "ADC Sample");
117  subsys->AddAction("tpotDraw(\"TPOT_counts_vs_sample\")", "Counts Sample");
118  subsys->AddAction("tpotDraw(\"TPOT_hit_charge\")", "Hit Charge");
119  subsys->AddAction("tpotDraw(\"TPOT_hit_multiplicity\")", "Hit Multiplicity");
120  subsys->AddAction("tpotDraw(\"TPOT_hit_vs_channel\")", "Hit Channel");
121  subsys->AddAction(new SubSystemActionSavePlot(subsys));
122  pmf->RegisterSubSystem(subsys);
123 
124  // subsys = new SubSystem("ZDC", "zdc");
125  // subsys->AddAction("zdcDraw(\"FIRST\")", "ZDC 1st Monitor");
126  // subsys->AddAction("zdcDraw(\"SECOND\")", "ZDC 2nd Monitor");
127  // subsys->AddAction("zdcDraw(\"THIRD\")", "ZDC 3rd Monitor");
128  // subsys->AddAction(new SubSystemActionSavePlot(subsys));
129  // pmf->RegisterSubSystem(subsys);
130 
131 
132  pmf->Draw();
133 }