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.1 by mzanetti, Sun May 27 21:18:51 2012 UTC vs.
Revision 1.3 by mzanetti, Mon Jun 11 23:27:38 2012 UTC

# Line 5 | Line 5 | from DataFormats.FWLite import Events, H
5   def edmObjects() :
6      handles = {}
7      handles['muons']  = Handle ("std::vector<reco::Muon>")
8 +    handles['electrons']  = Handle ("std::vector<reco::GsfElectron>")
9 +    handles['photons']  = Handle ("std::vector<reco::Photon>")
10 +    handles['missingEnergy'] = Handle("std::vector<reco::PFMET>")
11 +    handles['jets'] = Handle("std::vector<reco::PFJet>")
12 +    handles['conversions']  = Handle ("std::vector<reco::Conversion>")
13 +
14      labels = {}
15      labels['muons'] = ("muons")
16 +    labels['electrons'] = ("gsfElectrons")
17 +    labels['photons'] = ("photons")
18 +    labels['missingEnergy'] = ("pfMet")
19 +    labels['jets'] = ("ak5PFJets")
20 +    labels['conversions'] = ("allConversions")
21 +
22      return handles, labels
23  
24 < def getDataset(name='WW', eosPath='/store/user/klute/LEP3/'):
24 > def getDataset(eosPath='/store/user/klute/LEP3/ZZ'):
25      import subprocess
26      inputFilesSet = []
27 <    eosFolderContent = subprocess.Popen('cmsLs '+eosPath+name, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
27 >    eosFolderContent = subprocess.Popen('cmsLs '+eosPath, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
28      for line in eosFolderContent.stdout.readlines():
29          filename = ''
30          if len(line)>1:
31              filename = line.split()[4]
32              #print filename
33 <        if filename.find('.root')>-1 and filename.find('aod')>-1:
33 >        if filename.find('.root')>-1 and filename.find('aod')>-1 and filename.find('aod.root')==-1:
34              inputFilesSet.append('root://eoscms.cern.ch//eos/cms/'+filename)
35      return inputFilesSet
36  
37  
38 + lep3Datasets = {'signal':('/store/cmst3/user/pjanot/LEP3/',240),
39 +                'WW':('/store/cmst3/user/pjanot/LEP3/WW/',17200),
40 +                'qqbar':('/store/cmst3/user/pjanot/LEP3/QQBAR/',50300),
41 +                'ZZ':('/store/user/klute/LEP3/ZZ/',1000),
42 +                'Zee':('/store/user/klute/LEP3/Zee/',1000), # FIXME
43 +                'Zmm':('/store/user/klute/LEP3/Zmm/',1000), # FIXME
44 +                'Ztt':('/store/user/klute/LEP3/Ztt/',1000), # FIXME
45 +                'Zgamma':('/store/user/klute/LEP3/Zgamma/',1000), # FIXME
46 +                }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines