44 MonitorElement *hSumEta[4], *hSumPhi[4], *hPurityEta[3], *hPurityPhi[3];
47 for (
int i = 0;
i < 4; ++
i) {
50 int nbinEta = igetter.
get(hname1)->
getTH1F()->GetNbinsX();
51 double xminEta = igetter.
get(hname1)->
getTH1F()->GetBinLowEdge(1);
53 igetter.
get(hname1)->
getTH1F()->GetBinLowEdge(nbinEta) + igetter.
get(hname1)->
getTH1F()->GetBinWidth(nbinEta);
56 int nbinPhi = igetter.
get(hname2)->
getTH1F()->GetNbinsX();
57 double xminPhi = igetter.
get(hname2)->
getTH1F()->GetBinLowEdge(1);
59 igetter.
get(hname2)->
getTH1F()->GetBinLowEdge(nbinEta) + igetter.
get(hname2)->
getTH1F()->GetBinWidth(nbinEta);
65 sprintf(
name,
"hPurity%sEta",
types[
i].c_str());
66 sprintf(
title,
"Purity of %s sample vs #eta",
types[
i].c_str());
68 sprintf(
name,
"hPurity%sPhi",
types[
i].c_str());
69 sprintf(
title,
"Purity of %s sample vs #phi",
types[
i].c_str());
74 for (
int i = 0;
i < 4; ++
i) {
78 std::cout <<
"PostProcesor " << hname1 <<
" " << igetter.
get(hname1) << std::endl;
84 std::cout <<
"PostProcesor " << hname2 <<
" " << igetter.
get(hname2) << std::endl;
89 for (
int i = 0;
i < 3; ++
i) {
90 hPurityEta[
i]->
getTH1F()->Divide(hSumEta[
i + 1]->getTH1F(), hSumEta[
i]->getTH1F(), 1, 1);
91 hPurityPhi[
i]->
getTH1F()->Divide(hSumPhi[
i + 1]->getTH1F(), hSumPhi[
i]->getTH1F(), 1, 1);