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

Comparing UserCode/MitHzz4l/NonMCBackground/src/applyEMU.cc (file contents):
Revision 1.5 by dkralph, Mon Jun 25 18:08:04 2012 UTC vs.
Revision 1.10 by dkralph, Tue Jan 15 10:02:46 2013 UTC

# Line 55 | Line 55 | using namespace std;
55  
56   #include "TriggerUtils.h"
57   #include "PassHLT.h"
58 #include "Angles.h"
58   #include "KinematicsStruct.h"
59   #include "InfoStruct.h"
60   #include "GenInfoStruct.h"
# Line 297 | Line 296 | int main(int argc, char** argv)
296      string fname = string(chain->GetFile()->GetEndpointUrl()->GetFile());
297      setEra( fname, ctrl );
298  
300
299      // pfNoPU
300      PFnoPUflag.clear();
301      int pfnopu_size = makePFnoPUArray( pfArr, PFnoPUflag, vtxArr );
# Line 333 | Line 331 | int main(int argc, char** argv)
331      // lepton/kinematic selection ...
332      failingLeptons.clear();
333      passingLeptons.clear();
334 <    EventData ret4l =
334 >    EventData ret4l;
335          
336 <      apply_HZZ4L_EMU_selection(ctrl, info,
337 <                                hltTable,
338 <                                hltObjArr,
339 <                                fTrigObjs,
340 <                                vtxArr,
341 <                                pfArr,
342 <                                puDArr,
343 <                                electronArr,
344 <                                &electronReferencePreSelection,
345 <                                &electronReferenceIDMVASelectionV1,
346 <                                &electronReferenceIsoSelection,
347 <                                muonArr,
348 <                                &muonReferencePreSelection,
349 <                                &muonIDPFSelection,
350 <                                &muonReferenceIsoSelection);
351 <      
336 >      ret4l = apply_HZZ4L_EMU_selection(ctrl, info,
337 >                                        hltTable,
338 >                                        hltObjArr,
339 >                                        fTrigObjs,
340 >                                        vtxArr,
341 >                                        pfArr,
342 >                                        puDArr,
343 >                                        fConversions,
344 >                                        electronArr,
345 >                                        &electronReferencePreSelection,
346 >                                        &electronReferenceIDMVASelectionV1,
347 >                                        &electronReferenceIsoSelection,
348 >                                        muonArr,
349 >                                        &muonReferencePreSelection,
350 >                                        &muonIDPFSelection,
351 >                                        &muonReferenceIsoSelection);
352        
353      if( ret4l.status.pass() ) {
354 <        
354 >      fillKinematics(ret4l,kinematics);
355        TLorentzVector pfmet; pfmet.SetPxPyPzE(metArr->At(0)->Mex(),metArr->At(0)->Mey(),0,0);
356        fillEventInfo( info, pfmet, evtinfo, ctrl.mc ? getNPU(puArr) : 0, vtxArr->GetEntries());
357        foTree.Fill();
360        
361      // if( ctrl.mc)
362      //        setEffiencyWeights(ctrl.era, ret4l, weights);
363      if(ientry<10000) cout << "\n\nWARNING: not setting eff weights\n\n" << endl;
364        
358        nt.Fill();
359      }
360 <      
360 >    
361    }
362    foTree.getFile()->cd();
363    foTree.getTree()->Write();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines