18 MEP me_rollEfficiencyBarrel_eff =
19 booker.
book1D(
"RollEfficiencyBarrel_eff",
"Roll efficiency in Barrel;Efficiency [%]", 50 + 2, -2, 100 + 2);
20 MEP me_rollEfficiencyEndcap_eff =
21 booker.
book1D(
"RollEfficiencyEndcap_eff",
"Roll efficiency in Endcap;Efficiency [%]", 50 + 2, -2, 100 + 2);
23 const double maxNoise = 1
e-7;
24 MEP me_rollNoiseBarrel_noise = booker.
book1D(
"RollNoiseBarrel_noise",
25 "Roll noise in Barrel;Noise level [Event^{-1}cm^{-2}]",
28 maxNoise + maxNoise / 25);
29 MEP me_rollNoiseEndcap_noise = booker.
book1D(
"RollNoiseEndcap_noise",
30 "Roll noise in Endcap;Noise level [Event^{-1}cm^{-2}]",
33 maxNoise + maxNoise / 25);
35 MEP me_matchOccupancyBarrel_detId = getter.
get(subDir_ +
"/Occupancy/MatchOccupancyBarrel_detId");
36 MEP me_matchOccupancyEndcap_detId = getter.
get(subDir_ +
"/Occupancy/MatchOccupancyEndcap_detId");
37 MEP me_refOccupancyBarrel_detId = getter.
get(subDir_ +
"/Occupancy/RefOccupancyBarrel_detId");
38 MEP me_refOccupancyEndcap_detId = getter.
get(subDir_ +
"/Occupancy/RefOccupancyEndcap_detId");
40 if (me_matchOccupancyBarrel_detId and me_refOccupancyBarrel_detId) {
41 TH1 *h_matchOccupancyBarrel_detId = me_matchOccupancyBarrel_detId->
getTH1();
42 TH1 *h_refOccupancyBarrel_detId = me_refOccupancyBarrel_detId->getTH1();
44 for (
int bin = 1,
nBin = h_matchOccupancyBarrel_detId->GetNbinsX();
bin <=
nBin; ++
bin) {
45 const double nRec = h_matchOccupancyBarrel_detId->GetBinContent(
bin);
46 const double nRef = h_refOccupancyBarrel_detId->GetBinContent(
bin);
48 const double eff = nRef ? nRec / nRef * 100 : -1;
50 me_rollEfficiencyBarrel_eff->
Fill(eff);
54 if (me_matchOccupancyEndcap_detId and me_refOccupancyEndcap_detId) {
55 TH1 *h_matchOccupancyEndcap_detId = me_matchOccupancyEndcap_detId->
getTH1();
56 TH1 *h_refOccupancyEndcap_detId = me_refOccupancyEndcap_detId->getTH1();
58 for (
int bin = 1,
nBin = h_matchOccupancyEndcap_detId->GetNbinsX();
bin <=
nBin; ++
bin) {
59 const double nRec = h_matchOccupancyEndcap_detId->GetBinContent(
bin);
60 const double nRef = h_refOccupancyEndcap_detId->GetBinContent(
bin);
62 const double eff = nRef ? nRec / nRef * 100 : -1;
64 me_rollEfficiencyEndcap_eff->
Fill(eff);
68 MEP me_eventCount = getter.
get(subDir_ +
"/Occupancy/EventCount");
69 const double nEvent = me_eventCount ? me_eventCount->
getTH1()->GetBinContent(1) : 1;
70 MEP me_allOccupancyBarrel_detId = getter.
get(subDir_ +
"/Occupancy/OccupancyBarrel_detId");
71 MEP me_rollAreaBarrel_detId = getter.
get(subDir_ +
"/Occupancy/RollAreaBarrel_detId");
72 if (me_allOccupancyBarrel_detId and me_rollAreaBarrel_detId) {
73 TH1 *h_noiseOccupancyBarrel_detId = me_allOccupancyBarrel_detId->
getTH1();
74 TH1 *h_rollAreaBarrel_detId = me_rollAreaBarrel_detId->getTH1();
76 for (
int bin = 1,
nBin = h_noiseOccupancyBarrel_detId->GetNbinsX();
bin <=
nBin; ++
bin) {
77 const double noiseCount = h_noiseOccupancyBarrel_detId->GetBinContent(
bin);
78 const double area = h_rollAreaBarrel_detId->GetBinContent(
bin);
81 me_rollNoiseBarrel_noise->
Fill(-maxNoise / 50);
87 MEP me_allOccupancyEndcap_detId = getter.
get(subDir_ +
"/Occupancy/OccupancyEndcap_detId");
88 MEP me_rollAreaEndcap_detId = getter.
get(subDir_ +
"/Occupancy/RollAreaEndcap_detId");
89 if (me_allOccupancyEndcap_detId and me_rollAreaEndcap_detId) {
90 TH1 *h_noiseOccupancyEndcap_detId = me_allOccupancyEndcap_detId->
getTH1();
91 TH1 *h_rollAreaEndcap_detId = me_rollAreaEndcap_detId->getTH1();
93 for (
int bin = 1,
nBin = h_noiseOccupancyEndcap_detId->GetNbinsX();
bin <=
nBin; ++
bin) {
94 const double noiseCount = h_noiseOccupancyEndcap_detId->GetBinContent(
bin);
95 const double area = h_rollAreaEndcap_detId->GetBinContent(
bin);
98 me_rollNoiseEndcap_noise->
Fill(-maxNoise / 50);
virtual void setCurrentFolder(std::string const &fullpath)
#define DEFINE_FWK_MODULE(type)
virtual MonitorElement * get(std::string const &fullpath) const
RPCRecHitValidClient::MonitorElement * MEP
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
RPCRecHitValidClient(const edm::ParameterSet &pset)
void dqmEndJob(DQMStore::IBooker &booker, DQMStore::IGetter &getter) override