File indexing completed on 2024-04-06 12:22:18
0001 #ifndef L1GtConfigProducers_L1GtTriggerMenuTester_h
0002 #define L1GtConfigProducers_L1GtTriggerMenuTester_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #include "L1TriggerConfig/L1GtConfigProducers/interface/L1GtTriggerMenuTester.h"
0020
0021
0022 #include <string>
0023 #include <map>
0024
0025
0026
0027 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0028
0029 #include "FWCore/Framework/interface/Event.h"
0030 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0031
0032 #include "CondFormats/L1TObjects/interface/L1GtAlgorithm.h"
0033 #include "CondFormats/L1TObjects/interface/L1GtTriggerMenuFwd.h"
0034
0035 #include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"
0036
0037
0038 class L1GtStableParameters;
0039 class L1GtPrescaleFactors;
0040 class L1GtTriggerMask;
0041 class L1GtTriggerMenu;
0042
0043 class L1GtStableParametersRcd;
0044 class L1GtPrescaleFactorsAlgoTrigRcd;
0045 class L1GtPrescaleFactorsTechTrigRcd;
0046 class L1GtTriggerMaskAlgoTrigRcd;
0047 class L1GtTriggerMaskTechTrigRcd;
0048 class L1GtTriggerMaskVetoAlgoTrigRcd;
0049 class L1GtTriggerMaskVetoTechTrigRcd;
0050 class L1GtTriggerMenuRcd;
0051
0052
0053 class L1GtTriggerMenuTester : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
0054 public:
0055
0056 explicit L1GtTriggerMenuTester(const edm::ParameterSet&);
0057
0058 private:
0059
0060 void beginRun(const edm::Run&, const edm::EventSetup&) override;
0061
0062
0063 void analyze(const edm::Event&, const edm::EventSetup&) override;
0064
0065
0066 void endRun(const edm::Run&, const edm::EventSetup&) override;
0067
0068 private:
0069
0070 void retrieveL1EventSetup(const edm::EventSetup&);
0071
0072
0073 void associateL1SeedsHltPath(const edm::Run&, const edm::EventSetup&);
0074
0075
0076 void printTriggerGroup(const std::string& trigGroupName,
0077 const std::map<std::string, const L1GtAlgorithm*>& trigGroup,
0078 const bool compactPrint,
0079 const bool printPfsRates);
0080
0081
0082 void printWiki();
0083
0084 private:
0085
0086 typedef std::map<std::string, const L1GtAlgorithm*>::const_iterator CItAlgoP;
0087
0088 private:
0089
0090
0091
0092
0093 bool m_overwriteHtmlFile;
0094
0095
0096 std::string m_htmlFile;
0097
0098
0099 bool m_useHltMenu;
0100
0101
0102 std::string m_hltProcessName;
0103
0104
0105
0106 bool m_noThrowIncompatibleMenu;
0107
0108
0109 bool m_printPfsRates;
0110
0111
0112 int m_indexPfSet;
0113
0114 private:
0115
0116
0117 edm::ESGetToken<L1GtStableParameters, L1GtStableParametersRcd> m_l1GtStableParToken;
0118 edm::ESGetToken<L1GtPrescaleFactors, L1GtPrescaleFactorsAlgoTrigRcd> m_l1GtPfAlgoToken;
0119 edm::ESGetToken<L1GtPrescaleFactors, L1GtPrescaleFactorsTechTrigRcd> m_l1GtPfTechToken;
0120 edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskAlgoTrigRcd> m_l1GtTmAlgoToken;
0121 edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskTechTrigRcd> m_l1GtTmTechToken;
0122 edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskVetoAlgoTrigRcd> m_l1GtTmVetoAlgoToken;
0123 edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskVetoTechTrigRcd> m_l1GtTmVetoTechToken;
0124 edm::ESGetToken<L1GtTriggerMenu, L1GtTriggerMenuRcd> m_l1GtMenuToken;
0125
0126
0127 const L1GtStableParameters* m_l1GtStablePar;
0128
0129
0130 unsigned int m_numberAlgorithmTriggers;
0131
0132
0133 unsigned int m_numberTechnicalTriggers;
0134
0135
0136 const L1GtPrescaleFactors* m_l1GtPfAlgo;
0137
0138 const L1GtPrescaleFactors* m_l1GtPfTech;
0139
0140 const std::vector<std::vector<int> >* m_prescaleFactorsAlgoTrig;
0141 const std::vector<std::vector<int> >* m_prescaleFactorsTechTrig;
0142
0143
0144 const L1GtTriggerMask* m_l1GtTmAlgo;
0145 const L1GtTriggerMask* m_l1GtTmTech;
0146
0147 const L1GtTriggerMask* m_l1GtTmVetoAlgo;
0148 const L1GtTriggerMask* m_l1GtTmVetoTech;
0149
0150 const std::vector<unsigned int>* m_triggerMaskAlgoTrig;
0151 const std::vector<unsigned int>* m_triggerMaskTechTrig;
0152
0153 const std::vector<unsigned int>* m_triggerMaskVetoAlgoTrig;
0154 const std::vector<unsigned int>* m_triggerMaskVetoTechTrig;
0155
0156
0157 const L1GtTriggerMenu* m_l1GtMenu;
0158
0159 const AlgorithmMap* m_algorithmMap;
0160 const AlgorithmMap* m_algorithmAliasMap;
0161 const AlgorithmMap* m_technicalTriggerMap;
0162
0163 private:
0164
0165 HLTConfigProvider m_hltConfig;
0166
0167
0168 std::string m_hltTableName;
0169
0170
0171 std::vector<std::vector<std::string> > m_hltPathsForL1AlgorithmTrigger;
0172
0173
0174 std::vector<std::vector<std::string> > m_hltPathsForL1TechnicalTrigger;
0175
0176
0177 std::vector<std::string> m_algoTriggerSeedNotInL1Menu;
0178 std::vector<std::string> m_techTriggerSeedNotInL1Menu;
0179 };
0180
0181 #endif