10 using namespace l1extra;
11 using namespace trigger;
17 hltProcessName_(ps.getUntrackedParameter<std::
string>(
"HLTProcessName",
"HLT")),
18 triggerResultsSrc_(ps.getUntrackedParameter<edm::
InputTag>(
"TriggerResultsSrc")),
19 triggerResultsToken_(consumes<edm::
TriggerResults>(triggerResultsSrc_)),
20 triggerEventSrc_(ps.getUntrackedParameter<edm::
InputTag>(
"TriggerEventSrc")),
21 triggerEventToken_(consumes<trigger::
TriggerEvent>(triggerEventSrc_)),
23 prescaleEvt_(ps.getUntrackedParameter<int>(
"prescaleEvt", -1))
35 doRefAnalysis_ = matching.getUntrackedParameter<
bool>(
"doMatching");
37 using VPSet = std::vector<edm::ParameterSet>;
38 VPSet monitorSetup = ps.
getParameter<VPSet>(
"MonitorSetup");
48 configtype = pset.getUntrackedParameter<
std::string>(
"ConfigType");
53 if(configtype ==
"L1") {
60 }
else if (configtype ==
"Path") {
62 pathPlotters2_.emplace_back(pset, doRefAnalysis_, dqmBaseFolder,
hltProcessName_, nPtBins, nEtaBins, nPhiBins, ptMax, highPtMax, l1MatchDr, hltMatchDr);
67 }
else if (configtype ==
"PathSummary") {
78 VPSet matchObjects = matching.getUntrackedParameter<VPSet>(
"matchFilters");
81 consumes<LVColl>(pset.getUntrackedParameter<
edm::InputTag>(
"FilterName"))});
96 bool hltMenuChanged =
false;
100 l1Plotter.beginRun();
102 std::vector<const HLTTauDQMPath *> pathObjects;
105 pathPlotter.beginRun(
HLTCP_);
106 if(pathPlotter.isValid())
107 pathObjects.push_back(pathPlotter.getPathObject());
110 pathSummaryPlotter.beginRun(pathObjects);
127 if(!triggerResultsHandle.
isValid()) {
134 if(!triggerEventHandle.
isValid()) {
148 if(refObj.objID == 11) {
151 else if(refObj.objID == 13) {
152 refC.
muons.insert(refC.
muons.end(), collHandle->begin(), collHandle->end());
154 else if(refObj.objID == 15) {
155 refC.
taus.insert(refC.
taus.end(), collHandle->begin(), collHandle->end());
162 if(pathPlotter.isValid())
163 pathPlotter.analyze(*triggerResultsHandle, *triggerEventHandle, refC);
167 if(pathSummaryPlotter.isValid())
168 pathSummaryPlotter.analyze(*triggerResultsHandle, *triggerEventHandle, refC);
173 if(l1Plotter.isValid())
174 l1Plotter.analyze(iEvent, iSetup, refC);
virtual char const * what() const
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag triggerEventSrc_
std::vector< HLTTauDQMPathPlotter > pathPlotters2_
std::vector< LV > electrons
The single EDProduct to be saved for each event (AOD case)
std::string hltProcessName_
edm::EDGetTokenT< trigger::TriggerEvent > triggerEventToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< RefObject > refObjects_
std::vector< HLTTauDQMPathSummaryPlotter > pathSummaryPlotters_
HLTTauDQMOfflineSource(const edm::ParameterSet &)
void analyze(const edm::Event &e, const edm::EventSetup &c)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
~HLTTauDQMOfflineSource()
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
void beginRun(const edm::Run &r, const edm::EventSetup &c)
edm::InputTag triggerResultsSrc_
std::vector< HLTTauDQML1Plotter > l1Plotters_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_