CMS 3D CMS Logo

MuonGEMDigisHarvestor.cc
Go to the documentation of this file.
3 
5  : MuonGEMBaseHarvestor(pset, "MuonGEMDigisHarvestor") {
6  // to make it compatible to both full geometry and slice test
7  region_ids_ = pset.getUntrackedParameter<std::vector<Int_t> >("regionIds");
8  station_ids_ = pset.getUntrackedParameter<std::vector<Int_t> >("stationIds");
9  layer_ids_ = pset.getUntrackedParameter<std::vector<Int_t> >("layerIds");
10 }
11 
13 
15  TString occ_folder = "MuonGEMDigisV/GEMDigisTask/Strip/Occupancy/";
16  TString eff_folder = "MuonGEMDigisV/GEMDigisTask/Strip/Efficiency/";
17 
18  for (Int_t region_id : region_ids_) {
19  TString name_suffix_re = GEMUtils::getSuffixName(region_id);
20  TString title_suffix_re = GEMUtils::getSuffixTitle(region_id);
21 
22  // NOTE eta efficiency
23  TString strip_eta_name = "matched_strip_occ_eta" + name_suffix_re;
24  TString simhit_eta_name = "muon_simhit_occ_eta" + name_suffix_re;
25  TString strip_eta_path = occ_folder + strip_eta_name;
26  TString simhit_eta_path = occ_folder + simhit_eta_name;
27  TString eff_eta_name = "eff_eta" + name_suffix_re;
28  TString eff_eta_title = "Eta Efficiency (Muon Only) :" + title_suffix_re;
29 
30  bookEff1D(booker, getter, strip_eta_path, simhit_eta_path, eff_folder, eff_eta_name, eff_eta_title);
31 
32  for (Int_t station_id : station_ids_) {
33  TString name_suffix_re_st = GEMUtils::getSuffixName(region_id, station_id);
34  TString title_suffix_re_st = GEMUtils::getSuffixTitle(region_id, station_id);
35 
36  // NOTE phi efficiency
37  TString strip_phi_name = "matched_strip_occ_phi" + name_suffix_re_st;
38  TString simhit_phi_name = "muon_simhit_occ_phi" + name_suffix_re_st;
39  TString strip_phi_path = occ_folder + strip_phi_name;
40  TString simhit_phi_path = occ_folder + simhit_phi_name;
41  TString eff_phi_name = "eff_phi" + name_suffix_re_st;
42  TString eff_phi_title = "Phi Efficiency (Muon Only) :" + title_suffix_re;
43 
44  bookEff1D(booker, getter, strip_phi_path, simhit_phi_path, eff_folder, eff_phi_name, eff_phi_title);
45 
46  // NOTE Detector Component efficiency
47  TString strip_det_name = "matched_strip_occ_det" + name_suffix_re_st;
48  TString simhit_det_name = "muon_simhit_occ_det" + name_suffix_re_st;
49  TString strip_det_path = occ_folder + strip_det_name;
50  TString simhit_det_path = occ_folder + simhit_det_name;
51  TString eff_det_name = "eff_det" + name_suffix_re_st;
52  TString eff_det_title = "Detector Component Efficiency (Muon Only) :" + title_suffix_re_st;
53 
54  bookEff2D(booker, getter, strip_det_path, simhit_det_path, eff_folder, eff_det_name, eff_det_title);
55 
56  } // statino loop
57  } // region loop
58 }
MuonGEMDigisHarvestor::station_ids_
std::vector< Int_t > station_ids_
Definition: MuonGEMDigisHarvestor.h:16
MessageLogger.h
MuonGEMDigisHarvestor::MuonGEMDigisHarvestor
MuonGEMDigisHarvestor(const edm::ParameterSet &)
constructor
Definition: MuonGEMDigisHarvestor.cc:4
MuonGEMDigisHarvestor::region_ids_
std::vector< Int_t > region_ids_
Definition: MuonGEMDigisHarvestor.h:16
MuonGEMDigisHarvestor::layer_ids_
std::vector< Int_t > layer_ids_
Definition: MuonGEMDigisHarvestor.h:16
GEMUtils::getSuffixName
TString getSuffixName(Int_t region_id)
Definition: GEMValidationUtils.cc:5
MuonGEMDigisHarvestor::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: MuonGEMDigisHarvestor.cc:14
MuonGEMDigisHarvestor.h
edm::ParameterSet
Definition: ParameterSet.h:36
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
MuonGEMDigisHarvestor::~MuonGEMDigisHarvestor
~MuonGEMDigisHarvestor() override
destructor
Definition: MuonGEMDigisHarvestor.cc:12
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
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
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27