16 : hltProcessName_(ps.getUntrackedParameter<
std::
string>(
"HLTProcessName",
"HLT")),
17 triggerResultsSrc_(ps.getUntrackedParameter<
edm::
InputTag>(
"TriggerResultsSrc")),
19 triggerEventSrc_(ps.getUntrackedParameter<
edm::
InputTag>(
"TriggerEventSrc")),
21 pathRegexString_(ps.getUntrackedParameter<
std::
string>(
"Paths")),
22 pathRegex_(pathRegexString_),
23 nPtBins_(ps.getUntrackedParameter<
int>(
"PtHistoBins", 20)),
24 nEtaBins_(ps.getUntrackedParameter<
int>(
"EtaHistoBins", 12)),
25 nPhiBins_(ps.getUntrackedParameter<
int>(
"PhiHistoBins", 18)),
26 ptMax_(ps.getUntrackedParameter<double>(
"PtHistoMax", 200)),
27 highPtMax_(ps.getUntrackedParameter<double>(
"HighPtHistoMax", 1000)),
28 l1MatchDr_(ps.getUntrackedParameter<double>(
"L1MatchDeltaR", 0.5)),
29 hltMatchDr_(ps.getUntrackedParameter<double>(
"HLTMatchDeltaR", 0.5)),
30 dqmBaseFolder_(ps.getUntrackedParameter<
std::
string>(
"DQMBaseFolder")),
32 prescaleEvt_(ps.getUntrackedParameter<
int>(
"prescaleEvt", -1)) {
36 if (ps.
exists(
"L1Plotter") && !ps.
exists(
"TagAndProbe")) {
46 if (ps.
exists(
"PathSummaryPlotter")) {
51 if (ps.
exists(
"TagAndProbe")) {
57 using VPSet = std::vector<edm::ParameterSet>;
71 bool hltMenuChanged =
false;
73 LogDebug(
"HLTTauDQMOffline") <<
"dqmBeginRun(), hltMenuChanged " << hltMenuChanged;
89 std::vector<const HLTTauDQMPath*> pathObjects;
120 std::vector<std::string> moduleLabels;
122 std::vector<std::string> denominators = denpset.
getParameter<std::vector<std::string> >(
"hltPaths");
123 std::vector<std::string> updatedDenominators;
124 for (
size_t i = 0;
i < denominators.size(); ++
i) {
125 const std::regex denRegex_(denominators[
i]);
127 if (std::regex_search(
pathName, what, denRegex_)) {
128 updatedDenominators.push_back(
pathName);
133 denpset.
addParameter<std::vector<std::string> >(
"hltPaths", updatedDenominators);
136 std::vector<std::string> numerators = numpset.
getParameter<std::vector<std::string> >(
"hltPaths");
138 const std::regex numRegex_(numerators[0]);
140 if (std::regex_search(
pathName, what, numRegex_)) {
143 std::vector<std::string> updatedHltPaths;
144 updatedHltPaths.push_back(
pathName);
145 numpset.addParameter<std::vector<std::string> >(
"hltPaths", updatedHltPaths);
170 pathPlotter.bookHistograms(iBooker);
173 tpPlotter->bookHistograms(iBooker, iRun, iSetup);
189 if (!triggerResultsHandle.
isValid()) {
196 if (!triggerEventHandle.
isValid()) {
206 iEvent.getByToken(refObj.token, collHandle);
210 if (refObj.objID == 11) {
212 }
else if (refObj.objID == 13) {
213 refC.
muons.insert(refC.
muons.end(), collHandle->begin(), collHandle->end());
214 }
else if (refObj.objID == 15) {
215 refC.
taus.insert(refC.
taus.end(), collHandle->begin(), collHandle->end());
216 }
else if (refObj.objID == 0) {
217 refC.
met.insert(refC.
met.end(), collHandle->begin(), collHandle->end());
224 if (pathPlotter.isValid())
225 pathPlotter.analyze(*triggerResultsHandle, *triggerEventHandle, refC);
240 tpPlotter->analyze(
iEvent, *triggerResultsHandle, *triggerEventHandle, refC);