CMS 3D CMS Logo

MuonGEMRecHitsHarvestor.cc
Go to the documentation of this file.
5 
7  : MuonGEMBaseHarvestor(pset, "MuonGEMRecHitsHarvestor") {
8  region_ids_ = pset.getUntrackedParameter<std::vector<Int_t> >("regionIds");
9  station_ids_ = pset.getUntrackedParameter<std::vector<Int_t> >("stationIds");
10  layer_ids_ = pset.getUntrackedParameter<std::vector<Int_t> >("layerIds");
11 }
12 
14 
16  TString occ_folder = "MuonGEMRecHitsV/GEMRecHitsTask/Occupancy/";
17  TString eff_folder = "MuonGEMRecHitsV/GEMRecHitsTask/Efficiency/";
18 
19  for (const auto& region_id : region_ids_) {
20  TString name_suf_re = GEMUtils::getSuffixName(region_id);
21  TString title_suf_re = GEMUtils::getSuffixTitle(region_id);
22 
23  // NOTE Eta
24  TString rechit_eta_path = occ_folder + "matched_rechit_occ_eta" + name_suf_re;
25  TString simhit_eta_path = occ_folder + "muon_simhit_occ_eta" + name_suf_re;
26 
27  TString eff_eta_name = "eff_eta" + name_suf_re;
28  TString eff_eta_title = "Eta Efficiency :" + title_suf_re;
29 
30  bookEff1D(booker, getter, rechit_eta_path, simhit_eta_path, eff_folder, eff_eta_name, eff_eta_title);
31 
32  for (const auto& station_id : station_ids_) {
33  TString name_suf_re_st = GEMUtils::getSuffixName(region_id, station_id);
34  TString title_suf_re_st = GEMUtils::getSuffixTitle(region_id, station_id);
35 
36  // NOTE Phi
37  TString rechit_phi_path = occ_folder + "matched_rechit_occ_phi" + name_suf_re_st;
38  TString simhit_phi_path = occ_folder + "muon_simhit_occ_phi" + name_suf_re_st;
39 
40  TString eff_phi_name = "eff_phi" + name_suf_re_st;
41  TString eff_phi_title = "Phi Efficiency :" + title_suf_re_st;
42 
43  bookEff1D(booker, getter, rechit_phi_path, simhit_phi_path, eff_folder, eff_phi_name, eff_phi_title);
44 
45  // NOTE Detector Component
46  TString rechit_det_path = occ_folder + "matched_rechit_occ_det" + name_suf_re_st;
47  TString simhit_det_path = occ_folder + "muon_simhit_occ_det" + name_suf_re_st;
48 
49  TString eff_det_name = "eff_det" + name_suf_re_st;
50  TString eff_det_title = "Detector Component Efficiency :" + title_suf_re_st;
51 
52  bookEff2D(booker, getter, rechit_det_path, simhit_det_path, eff_folder, eff_det_name, eff_det_title);
53 
54  } // station loop
55  } // region loop
56 }
MessageLogger.h
GEMUtils::getSuffixName
TString getSuffixName(Int_t region_id)
Definition: GEMValidationUtils.cc:5
GEMValidationUtils.h
MakerMacros.h
MuonGEMRecHitsHarvestor::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: MuonGEMRecHitsHarvestor.cc:15
MuonGEMRecHitsHarvestor::region_ids_
std::vector< Int_t > region_ids_
Definition: MuonGEMRecHitsHarvestor.h:14
edm::ParameterSet
Definition: ParameterSet.h:47
MuonGEMBaseHarvestor::bookEff2D
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")
Definition: MuonGEMBaseHarvestor.cc:100
MuonGEMRecHitsHarvestor::station_ids_
std::vector< Int_t > station_ids_
Definition: MuonGEMRecHitsHarvestor.h:14
MuonGEMBaseHarvestor
Definition: MuonGEMBaseHarvestor.h:14
MuonGEMBaseHarvestor::bookEff1D
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")
Definition: MuonGEMBaseHarvestor.cc:75
MuonGEMRecHitsHarvestor::MuonGEMRecHitsHarvestor
MuonGEMRecHitsHarvestor(const edm::ParameterSet &)
Definition: MuonGEMRecHitsHarvestor.cc:6
MuonGEMRecHitsHarvestor::layer_ids_
std::vector< Int_t > layer_ids_
Definition: MuonGEMRecHitsHarvestor.h:14
dqm::implementation::IGetter
Definition: DQMStore.h:484
GEMUtils::getSuffixTitle
TString getSuffixTitle(Int_t region_id)
Definition: GEMValidationUtils.cc:34
dqm::implementation::IBooker
Definition: DQMStore.h:43
MuonGEMRecHitsHarvestor.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MuonGEMRecHitsHarvestor::~MuonGEMRecHitsHarvestor
~MuonGEMRecHitsHarvestor() override
Definition: MuonGEMRecHitsHarvestor.cc:13