CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/EventFilter/Utilities/interface/TriggerReportDef.h

Go to the documentation of this file.
00001 #ifndef EVF_UTILITIES_TRIGGERREPORTDEF
00002 #define EVF_UTILITIES_TRIGGERREPORTDEF
00003 
00004 #include "FWCore/Framework/interface/TriggerReport.h"
00005 
00006 namespace evf{
00007   
00008   static const size_t max_paths = 500;
00009   static const size_t max_endpaths = 30;
00010   static const size_t max_label = 30;
00011   static const size_t max_modules = 50;
00012   static const size_t max_datasets = 60;
00013 
00014   class ShmOutputModuleRegistry;
00015 
00016   struct ModuleInPathsSummaryStatic{
00017     //max length of a module label is 80 characters - name is truncated otherwise
00018     int timesVisited;
00019     int timesPassed;
00020     int timesFailed;
00021     int timesExcept;
00022     char moduleLabel[max_label];
00023   };
00024   struct PathSummaryStatic
00025   {
00026     //max length of a path name is 80 characters - name is truncated otherwise
00027     //max modules in a path are 100
00028     //    int bitPosition;
00029     int timesRun;
00030     int timesPassedPs;
00031     int timesPassedL1;
00032     int timesPassed;
00033     int timesFailed;
00034     int timesExcept;
00035     //    int modulesInPath;
00036     //    char name[max_label];
00037     //    ModuleInPathsSummaryStatic moduleInPathSummaries[max_modules];
00038   };
00039   struct DatasetSummaryStatic{
00040     int timesPassed;
00041   };
00042   struct TriggerReportStatic{
00043     //max number of paths in a menu is 500
00044     //max number of endpaths in a menu is 20
00045     unsigned int           lumiSection;
00046     unsigned int           prescaleIndex;
00047     unsigned int           nbExpected;
00048     unsigned int           nbReporting;
00049     edm::EventSummary      eventSummary;
00050     int                    trigPathsInMenu;
00051     int                    endPathsInMenu;
00052     PathSummaryStatic      trigPathSummaries[max_paths];
00053     PathSummaryStatic      endPathSummaries[max_endpaths];
00054     int                    datasetsInMenu;
00055     DatasetSummaryStatic   datasetSummaries[max_datasets];
00056     TriggerReportStatic();
00057   };
00058   namespace funcs{
00059     void reset(TriggerReportStatic *);
00060     void addToReport(TriggerReportStatic *trs, TriggerReportStatic *trp, unsigned int lumisection);  
00061   }
00062 }
00063 
00064 
00065 #endif