16 #include "StEvtTrigDetSumsMaker.h"
17 #include "StDetectorDbMaker/St_trigDetSumsC.h"
18 #include "StEventTypes.h"
20 St_trigDetSums* St_trigDetSumsC::fgTableCopy = 0;
29 LOG_ERROR <<
"StEvtTrigDetSumsMaker: no StEvent" << endm;
32 if (event->Find(
"trigDetSums")) {
33 LOG_WARN <<
"StEvtTrigDetSumsMaker: StEvent already contains trigDetSums...skipping" << endm;
38 LOG_ERROR <<
"StEvtTrigDetSumsMaker: no runInfo" << endm;
42 delete St_trigDetSumsC::instance();
43 St_trigDetSums* table =
new St_trigDetSums(
"trigDetSums",1);
44 trigDetSums_st* row = table->GetTable();
46 row->zdcX = runInfo->zdcCoincidenceRate();
47 row->zdcWest = runInfo->zdcWestRate();
48 row->zdcEast = runInfo->zdcWestRate();
49 row->bbcX = runInfo->bbcCoincidenceRate();
50 row->bbcWest = runInfo->bbcWestRate();
51 row->bbcEast = runInfo->bbcWestRate();
52 row->bbcYellowBkg = runInfo->bbcYellowBackgroundRate();
53 row->bbcBlueBkg = runInfo->bbcBlueBackgroundRate();
54 row->L0 = runInfo->l0RateToRich();