1 #ifndef Validation_MuonGEMHits_MuonGEMBaseHarvestor_h
2 #define Validation_MuonGEMHits_MuonGEMBaseHarvestor_h
25 const TH1F& passed,
const TH1F&
total,
const char*
name,
const char*
title, Double_t confidence_level = 0.683);
27 TH2F*
computeEfficiency(
const TH2F& passed,
const TH2F& total,
const char* name,
const char* title);
31 const TString& passed_path,
32 const TString& total_path,
34 const TString& eff_name,
35 const TString& eff_title =
"Efficiency");
39 const TString& passed_path,
40 const TString& total_path,
41 const TString& folder,
42 const TString& eff_name,
43 const TString& eff_title =
"Efficiency");
49 #endif // Validation_MuonGEMHits_MuonGEMBaseHarvestor_h
57 std::vector<std::string> mes = getter.
getMEs();
65 if (
auto tmp_me = getter.
get(path.Data())) {
66 if (
auto tmp_hist = dynamic_cast<T*>(tmp_me->getRootObject()->Clone())) {
const std::string kLogCategory_
virtual void setCurrentFolder(std::string const &fullpath)
Log< level::Error, false > LogError
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void bookEff2D(DQMStore::IBooker &ibooker, DQMStore::IGetter &getter, const TString &passed_path, const TString &total_path, const TString &folder, const TString &eff_name, const TString &eff_title="Efficiency")
MuonGEMBaseHarvestor(const edm::ParameterSet &, std::string)
void bookEff1D(DQMStore::IBooker &ibooker, DQMStore::IGetter &getter, const TString &passed_path, const TString &total_path, const TString &folder, const TString &eff_name, const TString &eff_title="Efficiency")
virtual MonitorElement * get(std::string const &fullpath) const
T * getElement(DQMStore::IGetter &getter, const TString &path)
Log< level::Info, false > LogInfo
virtual std::vector< std::string > getMEs() const
TProfile * computeEfficiency(const TH1F &passed, const TH1F &total, const char *name, const char *title, Double_t confidence_level=0.683)