CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TriggerReportDef.cc
Go to the documentation of this file.
2 
3 namespace evf{
4  TriggerReportStatic::TriggerReportStatic() : trigPathsInMenu(0), endPathsInMenu(0), datasetsInMenu(0){}
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;
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;
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  }
38  void funcs::addToReport(TriggerReportStatic *trs, TriggerReportStatic *trp, unsigned int lumisection){
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
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
65  }
66  for(int i = 0; i < trp->endPathsInMenu; i++)
67  {
74  }
75  for(int i = 0; i < trp->datasetsInMenu; i++)
76  {
78  }
79  }
80 }
int i
Definition: DBlmapReader.cc:9
PathSummaryStatic trigPathSummaries[max_paths]
void addToReport(TriggerReportStatic *trs, TriggerReportStatic *trp, unsigned int lumisection)
static const size_t max_datasets
DatasetSummaryStatic datasetSummaries[max_datasets]
void reset(TriggerReportStatic *)
PathSummaryStatic endPathSummaries[max_endpaths]
static const size_t max_paths
edm::EventSummary eventSummary
static const size_t max_endpaths