64 |
|
} |
65 |
|
|
66 |
|
void |
67 |
< |
CutFlow::fillCutFlow () |
67 |
> |
CutFlow::fillCutFlow (double w) |
68 |
|
{ |
69 |
|
bool fillCumulative = true, fillComplement = true; |
70 |
|
double complement = -1.0; |
71 |
|
|
72 |
< |
cutFlow_->Fill (0.5); |
73 |
< |
selection_->Fill (0.5); |
72 |
> |
cutFlow_->Fill (0.5, w); |
73 |
> |
selection_->Fill (0.5, w); |
74 |
|
for (vector<string>::const_iterator cut = cutNames_.begin (); cut != cutNames_.end (); cut++) |
75 |
|
{ |
76 |
|
if (cuts_[*cut]) |
77 |
|
{ |
78 |
|
double binCenter = selection_->GetBinCenter (cut - cutNames_.begin () + 2); |
79 |
|
|
80 |
< |
selection_->Fill (binCenter); |
80 |
> |
selection_->Fill (binCenter, w); |
81 |
|
if (fillCumulative) |
82 |
< |
cutFlow_->Fill (binCenter); |
82 |
> |
cutFlow_->Fill (binCenter, w); |
83 |
|
} |
84 |
|
else |
85 |
|
{ |
92 |
|
} |
93 |
|
if (fillCumulative) |
94 |
|
{ |
95 |
< |
rejection_->Fill (0.5); |
95 |
> |
rejection_->Fill (0.5, w); |
96 |
|
for (vector<string>::const_iterator cut = cutNames_.begin (); cut != cutNames_.end (); cut++) |
97 |
|
{ |
98 |
|
double binCenter = rejection_->GetBinCenter (cut - cutNames_.begin () + 2); |
99 |
|
|
100 |
< |
rejection_->Fill (binCenter); |
100 |
> |
rejection_->Fill (binCenter, w); |
101 |
|
} |
102 |
|
} |
103 |
|
if (!fillCumulative && fillComplement) |
104 |
< |
rejection_->Fill (complement); |
104 |
> |
rejection_->Fill (complement, w); |
105 |
|
} |
106 |
|
|
107 |
|
void |