15 edm::LogError(
"JetMETHLTOfflineClient") <<
"unable to get DQMStore service, upshot is no client histograms will be made";
78 LogDebug(
"JetMETHLTOfflineClient") <<
"runClient" << std::endl;
81 std::vector<MonitorElement*> hltMEs;
85 for(
unsigned int i=0;
i<fullPathHLTFolders.size();
i++) {
89 if ((fullPathHLTFolders[
i].
find(
"Eff")!=std::string::npos)) {
96 std::vector<std::string> fullSubPathHLTFolders =
dbe_->
getSubdirs();
97 for(
unsigned int j=0;
j<fullSubPathHLTFolders.size();
j++) {
104 LogDebug(
"JetMETHLTOfflineClient")<<
"Number of MEs for this HLT path = " << hltMEs.size() << std::endl;
106 for(
unsigned int k=0;
k<hltMEs.size();
k++) {
110 if ((hltMEs[
k]->
getName().
find(
"ME_Numerator")!=std::string::npos) && hltMEs[
k]->
getName().
find(
"ME_Numerator")==0){
112 std::string
name = hltMEs[
k]->getName();
119 for(
unsigned int l=0;
l<hltMEs.size();
l++) {
122 if(name.find(
"EtaPhi") !=std::string::npos)
125 TH2F* tNumerator = hltMEs[
k]->
getTH2F();
126 TH2F* tDenominator = hltMEs[
l]->getTH2F();
128 std::string
title =
"Eff_"+hltMEs[
k]->getTitle();
130 TH2F *teff = (TH2F*) tNumerator->Clone(title.c_str());
131 teff->Divide(tNumerator,tDenominator,1,1);
136 TH1F* tNumerator = hltMEs[
k]->
getTH1F();
137 TH1F* tDenominator = hltMEs[
l]->getTH1F();
139 std::string
title =
"Eff_"+hltMEs[
k]->getTitle();
141 TH1F *teff = (TH1F*) tNumerator->Clone(title.c_str());
142 teff->Divide(tNumerator,tDenominator,1,1);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::string > getSubdirs(void) const
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
virtual void beginRun(const edm::Run &run, const edm::EventSetup &c)
virtual void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void setVerbose(unsigned level)
std::string getName(Reflex::Type &cc)
std::vector< MonitorElement * > getContents(const std::string &path) const
TH1F * getTH1F(void) const
virtual ~JetMETHLTOfflineClient()
TH2F * getTH2F(void) const
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
virtual void endRun(const edm::Run &run, const edm::EventSetup &c)
JetMETHLTOfflineClient(const edm::ParameterSet &)
void setCurrentFolder(const std::string &fullpath)
virtual void runClient_()