ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/LEP3/selections.py
(Generate patch)

Comparing UserCode/LEP3/selections.py (file contents):
Revision 1.1 by mzanetti, Sun May 27 21:18:51 2012 UTC vs.
Revision 1.2 by mzanetti, Thu Jun 7 14:48:57 2012 UTC

# Line 1 | Line 1
1   #!/usr/bin/env python
2 import ROOT
2  
3 < def passMuonSelections(muon):
4 <    isGoodMuon = True
5 <    if muon.p()<5: isGoodMuon = False
7 <    return isGoodMuon
3 > from muonSelections import *
4 > from electronSelections import *
5 > from photonSelections import *
6  
7 < def passPreselections(cleanMuons):
8 <    isGoodEvent = True
9 <    if len(cleanMuons)<2: isGoodEvent = False
10 <    return isGoodEvent
7 > def passLeptonSelections(leptons):
8 >    if len(leptons)<2: return False
9 >    if leptons[0].charge()+leptons[1].charge() != 0: return False
10 >    return True
11 >
12 > def passPreselections(dilep):
13 >    if dilep.M()<10: return False
14 >    return True

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines