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