ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/SFrameTools/src/Selection.cxx
(Generate patch)

Comparing UserCode/UHHAnalysis/SFrameTools/src/Selection.cxx (file contents):
Revision 1.2 by rkogler, Wed Jun 6 08:22:12 2012 UTC vs.
Revision 1.4 by peiffer, Fri Jun 8 14:01:43 2012 UTC

# Line 10 | Line 10 | Selection::Selection(std::string name):
10    Ntotal=0;
11   }
12  
13 + void Selection::resetCutFlow(){
14 +  Ntotal=0;
15 +  for(unsigned int i=0; i<m_cuts.size(); ++i){
16 +    m_cutflow[i]=0;
17 +  }
18 + }
19 +
20   void Selection::addSelectionModule(SelectionModule* sel){
21 +  m_logger << DEBUG << "Adding selection module: " << sel->description() << SLogger::endmsg;
22    m_cuts.push_back(sel);
23    m_cutflow.push_back(0);
24   }
# Line 41 | Line 49 | bool Selection::passInvertedSelection(Ba
49    return false;
50   }
51  
52 + bool Selection::passSelection(){
53 +  ObjectHandler* objs = ObjectHandler::Instance();
54 +  BaseCycleContainer* bcc = objs->GetBaseCycleContainer();
55 +  return passSelection(bcc);
56 + }
57 +
58 + bool Selection::passInvertedSelection(){
59 +  ObjectHandler* objs = ObjectHandler::Instance();
60 +  BaseCycleContainer* bcc = objs->GetBaseCycleContainer();
61 +  return passInvertedSelection(bcc);
62 + }
63 +
64   void Selection::printCutFlow(){
65  
66    using namespace std;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines