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){}
6  trs->lumiSection = 0;
7  trs->prescaleIndex = 0;
8  //copy the event summary
9  trs->eventSummary.totalEvents = 0;
12 
13  for(size_t i = 0; i < max_paths; i++)
14  {
15  // reset individual path summaries
16  trs->trigPathSummaries[i].timesRun = 0;
17  trs->trigPathSummaries[i].timesPassed = 0;
22  }
23  for(size_t i = 0; i < max_endpaths; i++)
24  {
25  trs->endPathSummaries[i].timesRun = 0;
26  trs->endPathSummaries[i].timesPassed = 0;
27  trs->endPathSummaries[i].timesPassedPs = 0;
28  trs->endPathSummaries[i].timesPassedL1 = 0;
29  trs->endPathSummaries[i].timesFailed = 0;
30  trs->endPathSummaries[i].timesExcept = 0;
31  }
32  // trigPathsInMenu = 0;
33  // endPathsInMenu = 0;
34  }
35  void funcs::addToReport(TriggerReportStatic *trs, TriggerReportStatic *trp, unsigned int lumisection){
36  if(trs->trigPathsInMenu==0) trs->trigPathsInMenu = trp->trigPathsInMenu;
37  if(trs->endPathsInMenu==0) trs->endPathsInMenu = trp->endPathsInMenu;
38  // set LS and PS
39  trs->lumiSection = lumisection;
40  if(trp->eventSummary.totalEvents!=0) //do not update PS if no events seen
41  trs->prescaleIndex = trp->prescaleIndex;
42 
43  //add to the event summary
47  //traverse the trigger report and sum relevant parts, check otherwise
48  // loop on paths
49  for(int i = 0; i < trp->trigPathsInMenu; i++)
50  {
51 
52  // fill individual path summaries
59  }
60  for(int i = 0; i < trp->endPathsInMenu; i++)
61  {
68  }
69  }
70 }
int i
Definition: DBlmapReader.cc:9
PathSummaryStatic trigPathSummaries[max_paths]
void addToReport(TriggerReportStatic *trs, TriggerReportStatic *trp, unsigned int lumisection)
void reset(TriggerReportStatic *)
PathSummaryStatic endPathSummaries[max_endpaths]
static const size_t max_paths
edm::EventSummary eventSummary
static const size_t max_endpaths