ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Selection/src/applySelection.cc
(Generate patch)

Comparing UserCode/MitHzz4l/Selection/src/applySelection.cc (file contents):
Revision 1.51 by dkralph, Fri Jul 6 15:28:19 2012 UTC vs.
Revision 1.52 by khahn, Wed Jul 11 18:24:39 2012 UTC

# Line 221 | Line 221 | int main(int argc, char** argv)
221  
222    
223    FOTuple foTree( nt.getFile(), (const char*)"FOtree");
224 +  foTree.makeInfoBranch(evtinfo);
225    foTree.makeFailedLeptonBranch(failingLeptons);
226    foTree.makePassedLeptonBranch(passingLeptons);
227  
# Line 420 | Line 421 | int main(int argc, char** argv)
421            hltchain->GetEntry(0);
422            hltTable->Clear();
423            fillTriggerNames(hltTable, hltTableStrings );
424 +          hltTable->Print();
425          }
426          if( ctrl.debug ) cout << "file is : " << currentFile  << endl;
427          fillTriggerBits( hltTable, trigMask, triggerBits );
# Line 508 | Line 510 | int main(int argc, char** argv)
510          TLorentzVector pfmet; pfmet.SetPxPyPzE(metArr->At(0)->Mex(),metArr->At(0)->Mey(),0,0);
511          fillEventInfo( info, pfmet, evtinfo, ctrl.mc ? getNPU(puArr) : 0);
512          if( ctrl.mc) {
513 <          //      if( std::string(ctrl.efftype) != std::string("WTF?")) {
512 <            setEffiencyWeights(ctrl.era, ret4l, weights);
513 <            //    } else {
514 <            //      weights.won = weights.woff = 1.;
515 <            //    }
513 >          setEffiencyWeights(ctrl.era, ret4l, triggerBits, hltTable, hltObjArr, fTrigObjs, weights);
514            if(ctrl.debug)
515              cout << "w: " << weights.w << "\t"
516                   << "npuw: " << weights.npuw << "\t"
# Line 548 | Line 546 | int main(int argc, char** argv)
546                   << endl;
547            }
548          }
549 +        TLorentzVector pfmet; pfmet.SetPxPyPzE(metArr->At(0)->Mex(),metArr->At(0)->Mey(),0,0);
550 +        fillEventInfo( info, pfmet, evtinfo, ctrl.mc ? getNPU(puArr) : 0);
551          foTree.Fill();
552        } else {
553          if(ctrl.debug)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines