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

Comparing UserCode/MitHzz4l/NonMCBackground/src/MuonFakeRateMod.cc (file contents):
Revision 1.4 by anlevin, Thu Jul 5 19:34:29 2012 UTC vs.
Revision 1.7 by anlevin, Wed Jul 18 09:05:38 2012 UTC

# Line 30 | Line 30 | const Float_t g_muon_mass = 105.658369e-
30  
31   void mithep::MuonFakeRateMod::SlaveBegin()
32   {
33 +
34    denominatorType.push_back(1);
35    denominatorType.push_back(2);
36  
# Line 85 | Line 86 | void mithep::MuonFakeRateMod::SlaveBegin
86    }
87    
88    rlrm.AddJSONFile("/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions12/8TeV/Prompt/Cert_190456-194479_8TeV_PromptReco_Collisions12_JSON.txt");
89 +
90   }
91  
92   void mithep::MuonFakeRateMod::SlaveTerminate()
# Line 126 | Line 128 | void mithep::MuonFakeRateMod::Process()
128    
129    fillTriggerBits( GetHLTTable(), fTrigMask, fTriggerBits );
130    
131 +  PFnoPUflag.clear();
132    makePFnoPUArray(fPFCandidates, PFnoPUflag, fPrimVerts );
133      
134    if(fPFMet->At(0)->Et() >25) return;
# Line 150 | Line 153 | void mithep::MuonFakeRateMod::Process()
153    }
154    for(Int_t i=0; i<fElectrons->GetEntries(); i++) {
155      const Electron *ele = fElectrons->At(i);
156 <    if(electron2012CutBasedIDMedium(ele, fPrimVerts->At(0), fPFCandidates, fConversions, fPileupEnergyDensity)) goodElectrons.push_back(ele);
156 >    if(electronPOG2012CutBasedIDMedium(ele, fPrimVerts->At(0), fPFCandidates, fConversions, fPileupEnergyDensity)) goodElectrons.push_back(ele);
157  
158    }    
159    
# Line 290 | Line 293 | void mithep::MuonFakeRateMod::Process()
293          if(!muonIDPFSelection(ctrl,  mu, fPrimVerts->At(0), fPFCandidates ).looseID()) passNumerator = kFALSE;
294          if(fabs(mu->Ip3dPVSignificance()) > 4) passNumerator = kFALSE;  
295          if(!muonReferenceIsoSelection(ctrl,mu,fPrimVerts->At(0),fPFCandidates,fPileupEnergyDensity,eraMu,photonsToVeto).passLooseIso()) passNumerator = kFALSE;                
296 <        
297 <        if (passNumerator)
295 <          fake_muon_pass[denominatorTypeIndex] = passNumerator ? 1 : 0;
296 >      
297 >        fake_muon_pass[denominatorTypeIndex] = passNumerator ? 1 : 0;
298          
299          fOutputTrees[denominatorTypeIndex]->Fill();
300          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines