CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
evf::funcs Namespace Reference

Functions

void addToReport (TriggerReportStatic *trs, TriggerReportStatic *trp, unsigned int lumisection)
 
void reset (TriggerReportStatic *)
 

Function Documentation

void evf::funcs::addToReport ( TriggerReportStatic *  trs,
TriggerReportStatic *  trp,
unsigned int  lumisection 
)

Definition at line 38 of file TriggerReportDef.cc.

References evf::TriggerReportStatic::datasetsInMenu, evf::TriggerReportStatic::datasetSummaries, evf::TriggerReportStatic::endPathsInMenu, evf::TriggerReportStatic::endPathSummaries, evf::TriggerReportStatic::eventSummary, i, evf::TriggerReportStatic::lumiSection, evf::TriggerReportStatic::nbExpected, evf::TriggerReportStatic::nbReporting, evf::TriggerReportStatic::prescaleIndex, evf::PathSummaryStatic::timesExcept, evf::PathSummaryStatic::timesFailed, evf::PathSummaryStatic::timesPassed, evf::DatasetSummaryStatic::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().

38  {
39  if(trs->trigPathsInMenu==0) trs->trigPathsInMenu = trp->trigPathsInMenu;
40  if(trs->endPathsInMenu==0) trs->endPathsInMenu = trp->endPathsInMenu;
41  if(trs->datasetsInMenu==0) trs->datasetsInMenu = trp->datasetsInMenu;
42  // set LS and PS
43  trs->lumiSection = lumisection;
44  if(trp->eventSummary.totalEvents!=0) //do not update PS if no events seen
45  trs->prescaleIndex = trp->prescaleIndex;
46  // expected and reporting are incremented at each update by the corresponding contrib
47  trs->nbExpected += trp->nbExpected;
48  trs->nbReporting += trp->nbReporting;
49  //add to the event summary
50  trs->eventSummary.totalEvents += trp->eventSummary.totalEvents;
51  trs->eventSummary.totalEventsPassed += trp->eventSummary.totalEventsPassed;
52  trs->eventSummary.totalEventsFailed += trp->eventSummary.totalEventsFailed;
53  //traverse the trigger report and sum relevant parts, check otherwise
54  // loop on paths
55  for(int i = 0; i < trp->trigPathsInMenu; i++)
56  {
57 
58  // fill individual path summaries
59  trs->trigPathSummaries[i].timesRun += trp->trigPathSummaries[i].timesRun;
60  trs->trigPathSummaries[i].timesPassed += trp->trigPathSummaries[i].timesPassed;
61  trs->trigPathSummaries[i].timesPassedPs += trp->trigPathSummaries[i].timesPassedPs;
62  trs->trigPathSummaries[i].timesPassedL1 += trp->trigPathSummaries[i].timesPassedL1;
63  trs->trigPathSummaries[i].timesFailed += trp->trigPathSummaries[i].timesFailed;
64  trs->trigPathSummaries[i].timesExcept += trp->trigPathSummaries[i].timesExcept;
65  }
66  for(int i = 0; i < trp->endPathsInMenu; i++)
67  {
68  trs->endPathSummaries[i].timesRun += trp->endPathSummaries[i].timesRun;
69  trs->endPathSummaries[i].timesPassed += trp->endPathSummaries[i].timesPassed;
70  trs->endPathSummaries[i].timesPassedPs += trp->endPathSummaries[i].timesPassedPs;
71  trs->endPathSummaries[i].timesPassedL1 += trp->endPathSummaries[i].timesPassedL1;
72  trs->endPathSummaries[i].timesFailed += trp->endPathSummaries[i].timesFailed;
73  trs->endPathSummaries[i].timesExcept += trp->endPathSummaries[i].timesExcept;
74  }
75  for(int i = 0; i < trp->datasetsInMenu; i++)
76  {
77  trs->datasetSummaries[i].timesPassed += trp->datasetSummaries[i].timesPassed;
78  }
79  }
int i
Definition: DBlmapReader.cc:9
void evf::funcs::reset ( TriggerReportStatic *  trs)

Definition at line 5 of file TriggerReportDef.cc.

References evf::TriggerReportStatic::datasetSummaries, evf::TriggerReportStatic::endPathSummaries, evf::TriggerReportStatic::eventSummary, i, evf::TriggerReportStatic::lumiSection, evf::max_datasets, evf::max_endpaths, evf::max_paths, evf::TriggerReportStatic::nbExpected, evf::TriggerReportStatic::nbReporting, evf::TriggerReportStatic::prescaleIndex, evf::PathSummaryStatic::timesExcept, evf::PathSummaryStatic::timesFailed, evf::PathSummaryStatic::timesPassed, evf::DatasetSummaryStatic::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::iDie::postEntryiChoke(), and evf::fuep::TriggerReportHelpers::resetPackedTriggerReport().

5  {
6  trs->lumiSection = 0;
7  trs->prescaleIndex = 0;
8  trs->nbExpected=0;
9  trs->nbReporting=0;
10  //copy the event summary
11  trs->eventSummary.totalEvents = 0;
12  trs->eventSummary.totalEventsPassed = 0;
13  trs->eventSummary.totalEventsFailed = 0;
14 
15  for(size_t i = 0; i < max_paths; i++)
16  {
17  // reset individual path summaries
18  trs->trigPathSummaries[i].timesRun = 0;
19  trs->trigPathSummaries[i].timesPassed = 0;
20  trs->trigPathSummaries[i].timesPassedPs = 0;
21  trs->trigPathSummaries[i].timesPassedL1 = 0;
22  trs->trigPathSummaries[i].timesFailed = 0;
23  trs->trigPathSummaries[i].timesExcept = 0;
24  }
25  for(size_t i = 0; i < max_endpaths; i++)
26  {
27  trs->endPathSummaries[i].timesRun = 0;
28  trs->endPathSummaries[i].timesPassed = 0;
29  trs->endPathSummaries[i].timesPassedPs = 0;
30  trs->endPathSummaries[i].timesPassedL1 = 0;
31  trs->endPathSummaries[i].timesFailed = 0;
32  trs->endPathSummaries[i].timesExcept = 0;
33  }
34  for (unsigned int i=0;i<max_datasets;i++) trs->datasetSummaries[i].timesPassed=0;
35  // trigPathsInMenu = 0;
36  // endPathsInMenu = 0;
37  }
int i
Definition: DBlmapReader.cc:9
static const size_t max_datasets
static const size_t max_paths
static const size_t max_endpaths