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)) {
97 std::vector<std::string> fullSubPathHLTFolders =
dbe_->
getSubdirs();
98 for(
unsigned int j=0;
j<fullSubPathHLTFolders.size();
j++) {
107 LogDebug(
"JetMETHLTOfflineClient")<<
"Number of MEs for this HLT path = " << hltMEs.size() << std::endl;
109 for(
unsigned int k=0;
k<hltMEs.size();
k++) {
113 if ((hltMEs[
k]->getName().
find(
"ME_Numerator")!=std::string::npos) && hltMEs[
k]->getName().
find(
"ME_Numerator")==0){
124 for(
unsigned int l=0;
l<hltMEs.size();
l++) {
125 if (hltMEs[
l]->getName() ==
"ME_Denominator"+
name){
127 if(name.find(
"EtaPhi") !=std::string::npos) {
128 TH2F* tNumerator = hltMEs[
k]->getTH2F();
129 TH2F* tDenominator = hltMEs[
l]->getTH2F();
133 TH2F *teff = (TH2F*) tNumerator->Clone(title.c_str());
134 teff->Divide(tNumerator,tDenominator,1,1);
140 TH1F* tNumerator = hltMEs[
k]->
getTH1F();
141 TH1F* tDenominator = hltMEs[
l]->getTH1F();
145 TH1F *teff = (TH1F*) tNumerator->Clone(title.c_str());
146 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::vector< MonitorElement * > getContents(const std::string &path) const
TH1F * getTH1F(void) const
virtual ~JetMETHLTOfflineClient()
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_()