21 edm::LogError(
"TopElectronHLTOfflineClient") <<
"unable to get DQMStore service, upshot is no client histograms will be made";
57 std::vector<std::string> regions;
58 regions.push_back(
"EB");
59 regions.push_back(
"EE");
62 std::vector<std::string> eleIdNames;
70 std::vector<std::string> vars;
71 vars.push_back(
"_et");
72 vars.push_back(
"_eta");
73 vars.push_back(
"_phi");
74 vars.push_back(
"_isolEm");
75 vars.push_back(
"_isolHad");
76 vars.push_back(
"_minDeltaR");
77 vars.push_back(
"_global_n30jets");
78 vars.push_back(
"_global_sumEt");
79 vars.push_back(
"_gsftrack_etaError");
80 vars.push_back(
"_gsftrack_phiError");
81 vars.push_back(
"_gsftrack_numberOfValidHits");
82 vars.push_back(
"_gsftrack_dzPV");
85 for (
size_t i = 0;
i < eleIdNames.size(); ++
i)
86 for (
size_t j = 0;
j < regions.size(); ++
j)
87 for (
size_t k = 0;
k < vars.size(); ++
k)
166 TH1F* passHist = pass->
getTH1F();
167 if(passHist->GetSumw2N()==0)
169 TH1F* allHist = all->
getTH1F();
170 if(allHist->GetSumw2N()==0)
173 TH1F* effHist = (TH1F*) passHist->Clone(name.c_str());
174 effHist->Divide(passHist,allHist,1,1,
"B");
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
std::vector< std::string > superMeNames_
TopElectronHLTOfflineClient(const TopElectronHLTOfflineClient &rhs)
virtual void endRun(const edm::Run &run, const edm::EventSetup &c)
std::vector< std::string > electronIdNames_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
bool runClientEndLumiBlock_
MonitorElement * makeEffMonElemFromPassAndAll(const std::string &name, const MonitorElement *pass, const MonitorElement *fail)
std::vector< std::string > electronTriggerNames_
void setVerbose(unsigned level)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void createSingleEffHists(const std::string &, const std::string &, const std::string &)
virtual void beginRun(const edm::Run &run, const edm::EventSetup &c)
std::vector< std::string > superTriggerNames_
TH1F * getTH1F(void) const
virtual void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
void setCurrentFolder(const std::string &fullpath)
std::vector< std::string > eleMeNames_
virtual ~TopElectronHLTOfflineClient()