37 std::stringstream meName1;
40 std::stringstream meName2;
43 std::stringstream binName;
62 meName1<<globalFolder_<<
"Azimutal/ExGregDistroDm"<<
abs(
i)<<
"R"<<
j;
63 meName2<<globalFolder_<<
"Azimutal/OcGregDistroDm"<<
abs(
i)<<
"R"<<
j;
67 binName<<
"RE-"<<
i<<
"/"<<
j;
70 meName1<<globalFolder_<<
"Azimutal/ExGregDistroD"<<
abs(
i)<<
"R"<<
j;
71 meName2<<globalFolder_<<
"Azimutal/OcGregDistroD"<<
abs(
i)<<
"R"<<
j;
75 binName<<
"RE+"<<
abs(
i)<<
"/"<<
j;
79 myMe1 = igetter.
get(meName1.str());
80 myMe2 = igetter.
get(meName2.str());
83 TH1 * histo1 = myMe1->
getTH1();
84 TH1 * histo2 = myMe2->
getTH1();
86 int exg = histo1->Integral();
87 int obg = histo2->Integral();
91 eff = (double)obg/(
double)exg;
92 err =
sqrt(eff*(1-eff)/(
double)exg);}
94 if(k%2 != 0 && k < 7){
98 else if(k%2 == 0 && k < 7){
112 for(
int i=1;
i<=6;
i++){
119 for(
int j=-2;
j<=2;
j++){
123 meName1<<globalFolder_<<
"BarrelPerLayer/ExpLayerWm"<<
abs(
j);
124 meName2<<globalFolder_<<
"BarrelPerLayer/ObsLayerWm"<<
abs(
j);}
126 meName1<<globalFolder_<<
"BarrelPerLayer/ExpLayerW"<<
j;
127 meName2<<globalFolder_<<
"BarrelPerLayer/ObsLayerW"<<
j;}
129 myMe1 = igetter.
get(meName1.str());
130 myMe2 = igetter.
get(meName2.str());
138 eff = (double)Obs/(
double)Exp;
139 err =
sqrt(eff*(1-eff)/(
double)Exp);}
143 binName<<
"Layer "<<
i;
T getUntrackedParameter(std::string const &, T const &) const
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * get(const std::string &path)
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
MonitorElement * EfficiencyPerLayer
MonitorElement * book1D(Args &&...args)
Abs< T >::type abs(const T &t)
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
MonitorElement * EfficiencyPerRing
void setCurrentFolder(const std::string &fullpath)
RPCEfficiencyPerRingLayer(const edm::ParameterSet &iConfig)
Constructor.
double getBinContent(int binx) const
get content of bin (1-D)
virtual ~RPCEfficiencyPerRingLayer()
Destructor.
std::string globalFolder_
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override