10 using namespace trigger;
16 hltProcessName_(ps.getUntrackedParameter<std::
string>(
"HLTProcessName",
"HLT")),
17 triggerResultsSrc_(ps.getUntrackedParameter<edm::
InputTag>(
"TriggerResultsSrc")),
19 triggerEventSrc_(ps.getUntrackedParameter<edm::
InputTag>(
"TriggerEventSrc")),
20 triggerEventToken_(consumes<trigger::
TriggerEvent>(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))
36 if(ps.
exists(
"L1Plotter")) {
40 if(ps.
exists(
"PathSummaryPlotter")) {
46 using VPSet = std::vector<edm::ParameterSet>;
61 bool hltMenuChanged =
false;
63 LogDebug(
"HLTTauDQMOffline") <<
"dqmBeginRun(), hltMenuChanged " << hltMenuChanged;
66 std::vector<std::string> foundPaths;
75 std::sort(foundPaths.begin(), foundPaths.end());
78 std::vector<const HLTTauDQMPath *> pathObjects;
80 pathObjects.reserve(foundPaths.size());
82 pathPlotters_.emplace_back(
pathName,
HLTCP_,
doRefAnalysis_,
dqmBaseFolder_,
hltProcessName_,
nPtBins_,
nEtaBins_,
nPhiBins_,
ptMax_,
highPtMax_,
l1MatchDr_,
hltMatchDr_);
104 pathPlotter.bookHistograms(iBooker);
120 if(!triggerResultsHandle.
isValid()) {
127 if(!triggerEventHandle.
isValid()) {
141 if(refObj.objID == 11) {
144 else if(refObj.objID == 13) {
145 refC.
muons.insert(refC.
muons.end(), collHandle->begin(), collHandle->end());
147 else if(refObj.objID == 15) {
148 refC.
taus.insert(refC.
taus.end(), collHandle->begin(), collHandle->end());
150 else if(refObj.objID == 0) {
151 refC.
met.insert(refC.
met.end(), collHandle->begin(), collHandle->end());
158 if(pathPlotter.isValid())
159 pathPlotter.analyze(*triggerResultsHandle, *triggerEventHandle, refC);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const std::string dqmBaseFolder_
edm::InputTag triggerEventSrc_
void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override
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_
void bookHistograms(DQMStore::IBooker &iBooker, const edm::Run &r, const edm::EventSetup &c) override
const std::vector< std::string > & triggerNames() const
names of trigger paths
bool exists(std::string const ¶meterName) const
checks if a parameter exists
triggerResultsToken_(consumes< edm::TriggerResults >(edm::InputTag("TriggerResults")))
HLTTauDQMOfflineSource(const edm::ParameterSet &)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::vector< HLTTauDQMPathPlotter > pathPlotters_
std::unique_ptr< HLTTauDQMPathSummaryPlotter > pathSummaryPlotter_
~HLTTauDQMOfflineSource()
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
const boost::regex pathRegex_
edm::InputTag triggerResultsSrc_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
std::unique_ptr< HLTTauDQML1Plotter > l1Plotter_
void analyze(const edm::Event &e, const edm::EventSetup &c) override