CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TriggerReportHelpers.h
Go to the documentation of this file.
1 #ifndef TriggerReportHelpers_H
2 #define TriggerReportHelpers_H
3 
4 #include "xdata/String.h"
5 #include "xdata/UnsignedInteger32.h"
6 #include "xdata/Table.h"
7 
10 
11 #include <vector>
12 #include <string>
13 
14 namespace edm{
15  class ModuleDescription;
16 }
17 
18 namespace evf{
19 
20 
21  namespace fuep{
23  public:
25  : eventsProcessed_(0)
26  , eventsAccepted_(0)
29  , prescaleIndex_(0)
32  {}
33  void resetFormat(){tableFormatted_ = false;}
34  void printReportTable();
36  void triggerReportUpdate(edm::TriggerReport &, unsigned int, unsigned int, bool = true);
39  , std::vector<edm::ModuleDescription const*>&
40  , std::string &pathIndexTable
41  , bool noNukeLegenda);
42  void fillPathIndexTable(std::string &);
43  xdata::Table &getTable(){return triggerReportAsTable_;}
45  xdata::UnsignedInteger32 &getProcThisLumi(){return eventsProcessed_;}
46  xdata::UnsignedInteger32 &getAccThisLumi(){return eventsAccepted_;}
47  bool checkLumiSection(unsigned int ls) {return (ls == lumiSectionIndex_);}
52  void resetTriggerReport();
55  xdata::String *getPathLegenda(){return &pathLegenda_;}
60  std::vector<edm::ModuleDescription const*>&,
61  unsigned int,
62  std::string);
63  unsigned int getl1pre(unsigned int ind){return pl1pre_[ind];}
64  unsigned int getps(unsigned int ind){return pps_[ind];}
65  unsigned int getaccept(unsigned int ind){return paccept_[ind];}
66  unsigned int getfailed(unsigned int ind){return pfailed_[ind];}
67  unsigned int getexcept(unsigned int ind){return pexcept_[ind];}
68  private:
69  // scalers table
70  xdata::UnsignedInteger32 eventsProcessed_;
71  xdata::UnsignedInteger32 eventsAccepted_;
72  xdata::Table triggerReportAsTable_;
74  xdata::String pathLegenda_;
76  std::vector<int> l1pos_;
77  std::vector<int> pspos_;
78  std::vector<std::string> outname_;
79  static const std::string columns[5];
80  std::vector<std::string> paths_;
81  std::vector<xdata::UnsignedInteger32> l1pre_;
82  std::vector<xdata::UnsignedInteger32> ps_;
83  std::vector<xdata::UnsignedInteger32> accept_;
84  std::vector<xdata::UnsignedInteger32> except_;
85  std::vector<xdata::UnsignedInteger32> failed_;
86  std::vector<unsigned int> pl1pre_;
87  std::vector<unsigned int> pps_;
88  std::vector<unsigned int> paccept_;
89  std::vector<unsigned int> pexcept_;
90  std::vector<unsigned int> pfailed_;
91  std::map<std::string, xdata::UnsignedInteger32> pathIndexMap_;
92  unsigned int lumiSectionIndex_;
93  unsigned int prescaleIndex_;
97  };
98  }
99 }
100 
101 
102 
103 #endif
unsigned int getfailed(unsigned int ind)
std::vector< xdata::UnsignedInteger32 > accept_
unsigned int getps(unsigned int ind)
TriggerReportStatic * getPackedTriggerReportAsStruct()
static const std::string columns[5]
#define MSQS_MESSAGE_TYPE_TRR
Definition: queue_defs.h:32
std::string findLabelOfModuleTypeInEndPath(edm::TriggerReport &, std::vector< edm::ModuleDescription const * > &, unsigned int, std::string)
std::map< std::string, xdata::UnsignedInteger32 > pathIndexMap_
xdata::UnsignedInteger32 eventsProcessed_
std::vector< unsigned int > pfailed_
std::vector< std::string > outname_
xdata::UnsignedInteger32 & getProcThisLumi()
bool checkLumiSection(unsigned int ls)
std::vector< unsigned int > pl1pre_
unsigned int getexcept(unsigned int ind)
std::vector< xdata::UnsignedInteger32 > l1pre_
void printTriggerReport(edm::TriggerReport &)
xdata::UnsignedInteger32 eventsAccepted_
std::vector< xdata::UnsignedInteger32 > ps_
xdata::UnsignedInteger32 & getAccThisLumi()
unsigned int getl1pre(unsigned int ind)
unsigned int getaccept(unsigned int ind)
std::vector< unsigned int > pexcept_
void formatReportTable(edm::TriggerReport &, std::vector< edm::ModuleDescription const * > &, std::string &pathIndexTable, bool noNukeLegenda)
std::vector< unsigned int > paccept_
void packTriggerReport(edm::TriggerReport &, ShmOutputModuleRegistry *)
std::vector< unsigned int > pps_
std::vector< xdata::UnsignedInteger32 > failed_
std::vector< std::string > paths_
void triggerReportUpdate(edm::TriggerReport &, unsigned int, unsigned int, bool=true)
std::vector< xdata::UnsignedInteger32 > except_