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

Comparing UserCode/LEP3/auxiliar.py (file contents):
Revision 1.2 by mzanetti, Thu Jun 7 14:48:56 2012 UTC vs.
Revision 1.4 by mzanetti, Sat Jun 30 16:31:03 2012 UTC

# Line 1 | Line 1
1   #!/usr/bin/env python
2  
3   from DataFormats.FWLite import Events, Handle
4 + import math
5 +
6 + def deltaPhi(phi1, phi2):
7 +    result = phi1 - phi2
8 +    while (result > math.pi): result -= 2*math.pi
9 +    while (result <= -math.pi): result += 2*math.pi
10 +    return result
11 +
12 + def deltaR(eta1, phi1, eta2, phi2):
13 +    deta = eta1 - eta2
14 +    dphi = deltaPhi(phi1, phi2)
15 +    return math.sqrt(deta*deta + dphi*dphi)
16  
17   def edmObjects() :
18      handles = {}
# Line 10 | Line 22 | def edmObjects() :
22      handles['missingEnergy'] = Handle("std::vector<reco::PFMET>")
23      handles['jets'] = Handle("std::vector<reco::PFJet>")
24      handles['conversions']  = Handle ("std::vector<reco::Conversion>")
25 +    handles['pfCandidates']  = Handle ("std::vector<reco::PFCandidate>")
26  
27      labels = {}
28      labels['muons'] = ("muons")
# Line 18 | Line 31 | def edmObjects() :
31      labels['missingEnergy'] = ("pfMet")
32      labels['jets'] = ("ak5PFJets")
33      labels['conversions'] = ("allConversions")
34 <
34 >    labels['pfCandidates'] = ("particleFlow")
35 >    
36      return handles, labels
37  
38   def getDataset(eosPath='/store/user/klute/LEP3/ZZ'):
# Line 35 | Line 49 | def getDataset(eosPath='/store/user/klut
49      return inputFilesSet
50  
51  
52 + #/store/cmst3/user/pjanot/LEP3/MUMU
53 + #/store/cmst3/user/pjanot/LEP3/QQBAR
54 + #/store/cmst3/user/pjanot/LEP3/TAUTAU
55 + #/store/cmst3/user/pjanot/LEP3/WENU
56 + #/store/cmst3/user/pjanot/LEP3/WW
57 + #/store/cmst3/user/pjanot/LEP3/ZEE
58 + #/store/cmst3/user/pjanot/LEP3/ZNNB
59 + #/store/cmst3/user/pjanot/LEP3/ZZ
60 +
61 +
62   lep3Datasets = {'signal':('/store/cmst3/user/pjanot/LEP3/',240),
63                  'WW':('/store/cmst3/user/pjanot/LEP3/WW/',17200),
64                  'qqbar':('/store/cmst3/user/pjanot/LEP3/QQBAR/',50300),
65                  'ZZ':('/store/user/klute/LEP3/ZZ/',1000),
66 +                'Zee':('/store/user/klute/LEP3/Zee/',1000), # FIXME
67 +                'Zmm':('/store/user/klute/LEP3/Zmm/',1000), # FIXME
68 +                'Ztt':('/store/user/klute/LEP3/Ztt/',1000), # FIXME
69 +                'Zgamma':('/store/user/klute/LEP3/Zgamma/',1000), # FIXME
70                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines