16 #include <boost/algorithm/string.hpp>
19 egHLTSumHistName_(
"egHLTTrigSum"),isSetup_(
false)
24 edm::LogError(
"EgHLTOfflineSummaryClient") <<
"unable to get DQMStore service, no summary histograms will be produced";
89 std::vector<std::string> activeFilters;
90 std::vector<std::string> activeEleFilters;
91 std::vector<std::string> activeEle2LegFilters;
92 std::vector<std::string> activePhoFilters;
93 std::vector<std::string> activePho2LegFilters;
155 hltEleSumBit->
Fill(eleSumBit);
163 hltPhoSumBit->
Fill(phoSumBit);
170 splitStrings.clear();
171 splitStrings.reserve(stringsToSplit.size());
172 for(
size_t stringNr=0;stringNr<stringsToSplit.size();stringNr++){
173 std::vector<std::string> tempSplitStrings;
175 if(tempSplitStrings.size()==2){
176 splitStrings.push_back(std::make_pair(tempSplitStrings[0],tempSplitStrings[1]));
178 edm::LogWarning(
"EgHLTOfflineSummaryClient") <<
" Error : entry "<<stringsToSplit[stringNr]<<
" is not of form A:B, ignoring (ie this quailty test isnt being included in the sumamry hist) ";
188 if(egHLTSumHist==
NULL){
203 hist->SetBinContent(xBinNr+1,yBinNr+1,-2);
225 std::set<std::string> filterNameSet;
231 std::vector<std::string>(filterNameSet.begin(),filterNameSet.end()).
swap(filterNames);
240 for(
size_t patternNr=0;patternNr<patterns.size();patternNr++){
243 for(
size_t monElemNr=0;monElemNr<monElems.size();monElemNr++){
245 std::vector<QReport*> qTests = monElems[monElemNr]->getQReports();
246 nrQTests+=qTests.size();
248 if(monElems[monElemNr]->hasError()) nrFail++;
251 if(nrQTests==0)
return -1;
252 else if(nrFail==0)
return 1;
259 std::vector<edm::ParameterSet> qTestPara = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
label);
260 qTests.resize(qTestPara.size());
261 for(
size_t testNr=0;testNr<qTestPara.size();testNr++){
262 qTests[testNr].name = qTestPara[testNr].getParameter<
std::string>(
"name");
263 qTests[testNr].qTestPatterns = qTestPara[testNr].getParameter<std::vector<std::string> >(
"qTestsToCheck");
MonitorElement * getEgHLTSumHist_()
void swap(ora::Record &rh, ora::Record &lh)
T getParameter(std::string const &) const
std::vector< std::string > phoHLTFilterNamesForSumBit_
T getUntrackedParameter(std::string const &, T const &) const
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void splitStringsToPairs_(const std::vector< std::string > &stringsToSplit, std::vector< std::pair< std::string, std::string > > &splitStrings)
std::vector< std::string > egHLTFiltersToMonPaths_
void getEgHLTFiltersToMon_(std::vector< std::string > &filterNames) const
std::vector< std::string > eleHLTFilterNamesForSumBit_
std::string egHLTSumHistName_
std::vector< MonitorElement * > getMatchingContents(const std::string &pattern, lat::Regexp::Syntax syntaxType=lat::Regexp::Wildcard) const
std::vector< SumHistBinData > egHLTSumHistXBins_
std::vector< std::string > eleHLTFilterNames_
std::vector< SumHistBinData > eleQTestsForSumBit_
std::vector< std::string > egHLTFiltersToMon_
virtual ~EgHLTOfflineSummaryClient()
MonitorElement * bookFloat(const char *name)
Book float.
virtual void beginRun(const edm::Run &run, const edm::EventSetup &c)
const PhiMemoryImage patterns[9]
virtual void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
bool filterInactiveTriggers_
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
std::vector< SumHistBinData > phoQTestsForSumBit_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
virtual void endRun(const edm::Run &run, const edm::EventSetup &c)
std::vector< std::string > phoHLTFilterNames_
int getQTestResults_(const std::string &filterName, const std::vector< std::string > &pattern) const
EgHLTOfflineSummaryClient(const EgHLTOfflineSummaryClient &rhs)
bool runClientEndLumiBlock_
volatile std::atomic< bool > shutdown_flag false
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setCurrentFolder(const std::string &fullpath)
static void fillQTestData_(const edm::ParameterSet &iConfig, std::vector< SumHistBinData > &qTests, const std::string &label)