15 desc.addUntracked<
double>(
"confidenceLevel", 0.683);
16 desc.addUntracked<
std::string>(
"logCategory",
"GEMEfficiencyHarvester");
19 desc.addUntracked<std::vector<std::string> >(
"folders", {
"GEM/Efficiency/muonSTA"});
20 descriptions.
add(
"gemEfficiencyHarvester",
desc);
32 for (
const auto& [
key,
value] : me_pairs) {
34 const auto& [me_num, me_den] =
value;
41 const TH2F* h_num = me_num->getTH2F();
42 if (h_num ==
nullptr) {
47 const TH2F* h_den = me_den->getTH2F();
48 if (h_den ==
nullptr) {
54 if (not parsing_success) {
62 const char* eff_chamber_name = Form(
"eff_chamber_%s", gem_name.c_str());
63 if (TH1F* eff =
makeEfficiency(h_chamber_num, h_chamber_den, eff_chamber_name)) {
64 ibooker.
book1D(eff_chamber_name, eff);
69 const char* eff_ieta_name = Form(
"eff_ieta_%s", gem_name.c_str());
70 if (TH1F* eff =
makeEfficiency(h_ieta_num, h_ieta_den, eff_ieta_name)) {
71 ibooker.
book1D(eff_ieta_name, eff);
void bookDetector1DEfficiency(DQMStore::IBooker &, DQMStore::IGetter &, const std::string &)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
GEMEfficiencyHarvester(const edm::ParameterSet &)
TH1F * makeEfficiency(const TH1F *, const TH1F *, const char *name=nullptr, const char *title=nullptr)
const std::string kLogCategory_
void bookEfficiencyAuto(DQMStore::IBooker &, DQMStore::IGetter &, const std::string &)
static void fillDescriptions(edm::ConfigurationDescriptions &)
Log< level::Error, false > LogError
~GEMEfficiencyHarvester() override
TH1F * projectHistogram(const TH2F *, const unsigned int)
key
prepare the HTCondor submission files and eventually submit them
void add(std::string const &label, ParameterSetDescription const &psetDescription)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
std::tuple< bool, std::string, std::string, bool > parseEfficiencySourceName(std::string)
std::map< std::string, MEPair > makeEfficiencySourcePair(DQMStore::IBooker &, DQMStore::IGetter &, const std::string &, const std::string prefix="")
const std::vector< std::string > kFolders_