ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/AnaTools/src/CutFlow.cc
(Generate patch)

Comparing UserCode/OSUT3Analysis/AnaTools/src/CutFlow.cc (file contents):
Revision 1.4 by ahart, Fri Sep 7 20:20:05 2012 UTC vs.
Revision 1.5 by ahart, Tue Nov 27 20:54:55 2012 UTC

# Line 64 | Line 64 | CutFlow::pass () const
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          {
# Line 92 | Line 92 | CutFlow::fillCutFlow ()
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines