ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/SelMods/src/WBFExampleAnalysisMod.cc
(Generate patch)

Comparing UserCode/MitPhysics/SelMods/src/WBFExampleAnalysisMod.cc (file contents):
Revision 1.3 by ceballos, Wed Dec 22 20:23:45 2010 UTC vs.
Revision 1.4 by ceballos, Wed Dec 22 20:31:51 2010 UTC

# Line 52 | Line 52 | void WBFExampleAnalysisMod::SlaveBegin()
52    // Selection Histograms
53    //*************************************************************************************************
54    AddTH1(fWBFSelection,"fWBFSelection", ";Cut Number;Number of Events", 7, -1.5, 5.5);
55 +  AddTH1(fWBFDeltaPhi, "fWBFDeltaPhi",  ";Delta Phi;Number of Events",   90,0.,180  );
56  
57    //***********************************************************************************************
58    // N-1 Histograms
# Line 133 | Line 134 | void WBFExampleAnalysisMod::Process()
134      }
135      if(zVarMin < 1) passCut[5] = false;
136    }
137 +
138    //*********************************************************************************************
139    //Make Selection Histograms. Number of events passing each level of cut
140    //*********************************************************************************************  
141    bool passAllCuts = true;
142    for(int c=0; c<nCuts; c++) passAllCuts = passAllCuts & passCut[c];
143 <    
143 >  
144 >  if(passAllCuts){
145 >    double deltaPhiJJ = MathUtils::DeltaPhi(CleanJets->At(0)->Phi(),
146 >                                            CleanJets->At(1)->Phi())* 180.0 / TMath::Pi();
147 >    fWBFDeltaPhi->Fill(deltaPhiJJ,NNLOWeight->GetVal());
148 >  }
149 >  
150    //Cut Selection Histograms
151    fWBFSelection->Fill(-1,NNLOWeight->GetVal());
152    for (int k=0;k<nCuts;k++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines