16 : hltProcessName_(ps.getUntrackedParameter<
std::
string>(
"HLTProcessName",
"HLT")),
17 triggerResultsSrc_(ps.getUntrackedParameter<
edm::
InputTag>(
"TriggerResultsSrc")),
19 triggerEventSrc_(ps.getUntrackedParameter<
edm::
InputTag>(
"TriggerEventSrc")),
21 pathRegex_(ps.getUntrackedParameter<
std::
string>(
"Paths")),
22 nPtBins_(ps.getUntrackedParameter<
int>(
"PtHistoBins", 20)),
23 nEtaBins_(ps.getUntrackedParameter<
int>(
"EtaHistoBins", 12)),
24 nPhiBins_(ps.getUntrackedParameter<
int>(
"PhiHistoBins", 18)),
25 ptMax_(ps.getUntrackedParameter<double>(
"PtHistoMax", 200)),
26 highPtMax_(ps.getUntrackedParameter<double>(
"HighPtHistoMax", 1000)),
27 l1MatchDr_(ps.getUntrackedParameter<double>(
"L1MatchDeltaR", 0.5)),
28 hltMatchDr_(ps.getUntrackedParameter<double>(
"HLTMatchDeltaR", 0.5)),
29 dqmBaseFolder_(ps.getUntrackedParameter<
std::
string>(
"DQMBaseFolder")),
31 prescaleEvt_(ps.getUntrackedParameter<
int>(
"prescaleEvt", -1)) {
37 if (ps.
exists(
"L1Plotter") && !ps.
exists(
"TagAndProbe")) {
47 if (ps.
exists(
"PathSummaryPlotter")) {
52 if (ps.
exists(
"TagAndProbe")) {
58 using VPSet = std::vector<edm::ParameterSet>;
72 bool hltMenuChanged =
false;
74 LogDebug(
"HLTTauDQMOffline") <<
"dqmBeginRun(), hltMenuChanged " << hltMenuChanged;
83 if (std::regex_search(
pathName, what, pathRegex)) {
91 std::vector<const HLTTauDQMPath*> pathObjects;
122 std::vector<std::string> moduleLabels;
124 std::vector<std::string> denominators = denpset.
getParameter<std::vector<std::string> >(
"hltPaths");
125 std::vector<std::string> updatedDenominators;
126 for (
size_t i = 0;
i < denominators.size(); ++
i) {
127 const std::regex denRegex_(denominators[
i]);
129 if (std::regex_search(
pathName, what, denRegex_)) {
130 updatedDenominators.push_back(
pathName);
135 denpset.
addParameter<std::vector<std::string> >(
"hltPaths", updatedDenominators);
138 std::vector<std::string> numerators = numpset.
getParameter<std::vector<std::string> >(
"hltPaths");
140 const std::regex numRegex_(numerators[0]);
142 if (std::regex_search(
pathName, what, numRegex_)) {
145 std::vector<std::string> updatedHltPaths;
146 updatedHltPaths.push_back(
pathName);
147 numpset.addParameter<std::vector<std::string> >(
"hltPaths", updatedHltPaths);
172 pathPlotter.bookHistograms(*
iWrapper, iBooker);
191 if (!triggerResultsHandle.
isValid()) {
198 if (!triggerEventHandle.
isValid()) {
208 iEvent.getByToken(refObj.token, collHandle);
212 if (refObj.objID == 11) {
214 }
else if (refObj.objID == 13) {
215 refC.
muons.insert(refC.
muons.end(), collHandle->begin(), collHandle->end());
216 }
else if (refObj.objID == 15) {
217 refC.
taus.insert(refC.
taus.end(), collHandle->begin(), collHandle->end());
218 }
else if (refObj.objID == 0) {
219 refC.
met.insert(refC.
met.end(), collHandle->begin(), collHandle->end());
226 if (pathPlotter.isValid())
227 pathPlotter.analyze(*triggerResultsHandle, *triggerEventHandle, refC);
242 tpPlotter->analyze(
iEvent, *triggerResultsHandle, *triggerEventHandle, refC);