Functions | |
void | addToReport (TriggerReportStatic *trs, TriggerReportStatic *trp, unsigned int lumisection) |
void | reset (TriggerReportStatic *) |
void evf::funcs::addToReport | ( | TriggerReportStatic * | trs, |
TriggerReportStatic * | trp, | ||
unsigned int | lumisection | ||
) |
Definition at line 35 of file TriggerReportDef.cc.
References evf::TriggerReportStatic::endPathsInMenu, evf::TriggerReportStatic::endPathSummaries, evf::TriggerReportStatic::eventSummary, i, evf::TriggerReportStatic::lumiSection, evf::TriggerReportStatic::prescaleIndex, evf::PathSummaryStatic::timesExcept, evf::PathSummaryStatic::timesFailed, evf::PathSummaryStatic::timesPassed, evf::PathSummaryStatic::timesPassedL1, evf::PathSummaryStatic::timesPassedPs, evf::PathSummaryStatic::timesRun, edm::EventSummary::totalEvents, edm::EventSummary::totalEventsFailed, edm::EventSummary::totalEventsPassed, evf::TriggerReportStatic::trigPathsInMenu, and evf::TriggerReportStatic::trigPathSummaries.
Referenced by evf::iDie::parsePathHisto(), and evf::fuep::TriggerReportHelpers::sumAndPackTriggerReport().
{ if(trs->trigPathsInMenu==0) trs->trigPathsInMenu = trp->trigPathsInMenu; if(trs->endPathsInMenu==0) trs->endPathsInMenu = trp->endPathsInMenu; // set LS and PS trs->lumiSection = lumisection; if(trp->eventSummary.totalEvents!=0) //do not update PS if no events seen trs->prescaleIndex = trp->prescaleIndex; //add to the event summary trs->eventSummary.totalEvents += trp->eventSummary.totalEvents; trs->eventSummary.totalEventsPassed += trp->eventSummary.totalEventsPassed; trs->eventSummary.totalEventsFailed += trp->eventSummary.totalEventsFailed; //traverse the trigger report and sum relevant parts, check otherwise // loop on paths for(int i = 0; i < trp->trigPathsInMenu; i++) { // fill individual path summaries trs->trigPathSummaries[i].timesRun += trp->trigPathSummaries[i].timesRun; trs->trigPathSummaries[i].timesPassed += trp->trigPathSummaries[i].timesPassed; trs->trigPathSummaries[i].timesPassedPs += trp->trigPathSummaries[i].timesPassedPs; trs->trigPathSummaries[i].timesPassedL1 += trp->trigPathSummaries[i].timesPassedL1; trs->trigPathSummaries[i].timesFailed += trp->trigPathSummaries[i].timesFailed; trs->trigPathSummaries[i].timesExcept += trp->trigPathSummaries[i].timesExcept; } for(int i = 0; i < trp->endPathsInMenu; i++) { trs->endPathSummaries[i].timesRun += trp->endPathSummaries[i].timesRun; trs->endPathSummaries[i].timesPassed += trp->endPathSummaries[i].timesPassed; trs->endPathSummaries[i].timesPassedPs += trp->endPathSummaries[i].timesPassedPs; trs->endPathSummaries[i].timesPassedL1 += trp->endPathSummaries[i].timesPassedL1; trs->endPathSummaries[i].timesFailed += trp->endPathSummaries[i].timesFailed; trs->endPathSummaries[i].timesExcept += trp->endPathSummaries[i].timesExcept; } }
void evf::funcs::reset | ( | TriggerReportStatic * | trs | ) |
Definition at line 5 of file TriggerReportDef.cc.
References evf::TriggerReportStatic::endPathSummaries, evf::TriggerReportStatic::eventSummary, i, evf::TriggerReportStatic::lumiSection, evf::max_endpaths, evf::max_paths, evf::TriggerReportStatic::prescaleIndex, evf::PathSummaryStatic::timesExcept, evf::PathSummaryStatic::timesFailed, evf::PathSummaryStatic::timesPassed, evf::PathSummaryStatic::timesPassedL1, evf::PathSummaryStatic::timesPassedPs, evf::PathSummaryStatic::timesRun, edm::EventSummary::totalEvents, edm::EventSummary::totalEventsFailed, edm::EventSummary::totalEventsPassed, and evf::TriggerReportStatic::trigPathSummaries.
Referenced by evf::fuep::TriggerReportHelpers::resetPackedTriggerReport().
{ trs->lumiSection = 0; trs->prescaleIndex = 0; //copy the event summary trs->eventSummary.totalEvents = 0; trs->eventSummary.totalEventsPassed = 0; trs->eventSummary.totalEventsFailed = 0; for(size_t i = 0; i < max_paths; i++) { // reset individual path summaries trs->trigPathSummaries[i].timesRun = 0; trs->trigPathSummaries[i].timesPassed = 0; trs->trigPathSummaries[i].timesPassedPs = 0; trs->trigPathSummaries[i].timesPassedL1 = 0; trs->trigPathSummaries[i].timesFailed = 0; trs->trigPathSummaries[i].timesExcept = 0; } for(size_t i = 0; i < max_endpaths; i++) { trs->endPathSummaries[i].timesRun = 0; trs->endPathSummaries[i].timesPassed = 0; trs->endPathSummaries[i].timesPassedPs = 0; trs->endPathSummaries[i].timesPassedL1 = 0; trs->endPathSummaries[i].timesFailed = 0; trs->endPathSummaries[i].timesExcept = 0; } // trigPathsInMenu = 0; // endPathsInMenu = 0; }