14 #include <boost/algorithm/string.hpp> 20 using namespace egHLT;
48 delete eleFilterMonHist;
51 delete phoFilterMonHist;
77 std::vector<std::string> hltFiltersUsed;
79 trigCodes.reset(TrigCodes::makeCodes(hltFiltersUsed));
117 bool doTrigTagProbeEff =
false;
118 if (doTrigTagProbeEff && (!
dohep_)) {
159 for (
auto const& ele :
eles) {
166 for (
auto const& pho : phos) {
196 std::set<std::string> filterNameSet;
198 filterNameSet.insert(eleHLTFilterName);
200 filterNameSet.insert(phoHLTFilterName);
237 std::vector<std::string>(filterNameSet.begin(), filterNameSet.end()).
swap(filterNames);
241 std::vector<std::string> activeFilters;
242 std::vector<std::string> activeEleFilters;
243 std::vector<std::string> activeEle2LegFilters;
244 std::vector<std::string> activePhoFilters;
245 std::vector<std::string> activePho2LegFilters;
248 hltConfig, activeFilters, activeEleFilters, activeEle2LegFilters, activePhoFilters, activePho2LegFilters);
std::vector< std::string > diPhoTightLooseTrigNames_
T getParameter(std::string const &) const
void initTightLooseDiObjTrigHistsTrigCuts(std::vector< MonElemContainer< OffEle > *> &eleMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins)
virtual void setCurrentFolder(std::string const &fullpath)
egHLT::OffHelper offEvtHelper_
MonitorElement * dqmErrsMonElem_
std::vector< egHLT::EleHLTFilterMon * > eleFilterMonHists_
std::vector< std::string > phoTightLooseTrigNames_
const std::vector< OffEle > & eles() const
const std::vector< OffPho > & phos() const
std::vector< std::string > eleHLTFilterNames2Leg_
void setup(const edm::ParameterSet &conf)
void swap(Association< C > &lhs, Association< C > &rhs)
std::vector< egHLT::MonElemContainer< egHLT::OffEle > * > eleMonElems_
void addEleTrigPath(egHLT::MonElemFuncs &monElemFuncs, const std::string &name)
std::vector< egHLT::PhoHLTFilterMon * > phoFilterMonHists_
void initTightLooseTrigHists(std::vector< MonElemContainer< OffEle > *> &eleMonElems, const std::vector< std::string > &tightLooseTrigs, const BinData &bins, EgHLTDQMCut< OffEle > *eleCut)
EgHLTOfflineSource(const edm::ParameterSet &)
void addPhoTrigPath(egHLT::MonElemFuncs &monElemFuncs, const std::string &name)
void analyze(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
~EgHLTOfflineSource() override
std::vector< std::string > eleTightLooseTrigNames_
std::vector< egHLT::MonElemContainer< egHLT::OffPho > * > phoMonElems_
def split(sequence, size)
static const char *const trigNames[]
bool filterInactiveTriggers_
void initTrigTagProbeHist(std::vector< MonElemContainer< OffEle > *> &eleMonElems, const std::string &filterName, int cutMask, const BinData &bins)
std::vector< std::string > phoHLTFilterNames_
MonitorElement * nrEventsProcessedMonElem_
int makeOffEvt(const edm::Event &edmEvent, const edm::EventSetup &setup, egHLT::OffEvt &offEvent, const TrigCodes &trigCodes)
MonitorElement * bookInt(TString const &name, FUNC onbooking=NOOP())
std::vector< std::string > diEleTightLooseTrigNames_
std::vector< std::string > eleHLTFilterNames_
void setup(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
void filterTriggers(const HLTConfigProvider &hltConfig)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::unique_ptr< egHLT::TrigCodes > trigCodes
void setupTriggers(const HLTConfigProvider &config, const std::vector< std::string > &hltFiltersUsed, const TrigCodes &trigCodes)
egHLT::CutMasks cutMasks_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void getHLTFilterNamesUsed(std::vector< std::string > &filterNames) const
void initTrigTagProbeHist_2Leg(std::vector< MonElemContainer< OffEle > *> &eleMonElems, const std::string &filterName, int cutMask, const BinData &bins)
void setup(const edm::ParameterSet &conf)