CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/Configuration/Skimming/python/autoSkim.py

Go to the documentation of this file.
00001 ## autoSkim 2012 (7E33 HLT menu) --> starting from Run2012B, ... 
00002 autoSkim = {
00003     'BJetPlusX' : 'LogError+LogErrorMonitor',
00004     'BTag' : 'LogError+LogErrorMonitor+HighLumi',
00005     'Commissioning' : 'LogError+LogErrorMonitor+EcalActivity',
00006     'Cosmics' : 'LogError+LogErrorMonitor+CosmicSP',
00007     'DoubleElectron' : 'LogError+LogErrorMonitor+ZElectron+DiTau+HZZ+HighLumi',
00008     'DoubleMu' : 'LogError+LogErrorMonitor+Zmmg+HZZ+EXOHSCP+HighLumi',
00009     'DoublePhoton' : 'LogError+LogErrorMonitor',
00010     'DoublePhotonHighPt' : 'LogError+LogErrorMonitor',
00011     'ElectronHad' : 'LogError+LogErrorMonitor',
00012     'HTMHT' : 'LogError+LogErrorMonitor+HighMET',
00013     'HcalNZS' : 'LogError+LogErrorMonitor',
00014     'JetHT' : 'LogError+LogErrorMonitor+EXOHSCP+HighLumi',
00015     'JetMon' : 'LogError+LogErrorMonitor+HighLumi',
00016     'MET' : 'LogError+LogErrorMonitor+ZHbb+HighMET+EXOHSCP',
00017     'MinimumBias' : 'LogError+LogErrorMonitor+HLTPhysics+HighLumi',
00018     'MuEG' : 'LogError+LogErrorMonitor+HZZ',
00019     'MuHad' : 'LogError+LogErrorMonitor',
00020     'MuOnia' : 'LogError+LogErrorMonitor+ChiB',
00021     'MultiJet' : 'LogError+LogErrorMonitor+HighMET+HighLumi',
00022     'NoBPTX' : 'LogError+LogErrorMonitor+EXOHSCP',
00023     'PhotonHad' : 'LogError+LogErrorMonitor+EXOMonoPhoton',
00024     'SingleElectron' : 'LogError+LogErrorMonitor+WElectron+HighMET+TOPElePlusJets+DiTau',
00025     'SingleMu' : 'LogError+LogErrorMonitor+ZMu+HighMET+EXOHSCP+TOPMuPlusJets+MuTau',
00026     'SinglePhoton' : 'LogError+LogErrorMonitor+EXODisplacedPhoton+HighMET+EXOMonoPhoton',
00027     'Tau' : 'LogError+LogErrorMonitor',
00028     'TauPlusX' : 'LogError+LogErrorMonitor+MuTauMET',
00029     }
00030 
00031 ## autoSkim 2012 (5E33 HLT menu) --> only Run2012A
00032 """
00033 autoSkim = {
00034     'BTag' : 'LogError+LogErrorMonitor+HighLumi',
00035     'Commissioning' : 'LogError+LogErrorMonitor+EcalActivity',
00036     'Cosmics' : 'LogError+LogErrorMonitor+CosmicSP',    
00037     'DoubleElectron' : 'LogError+LogErrorMonitor+ZElectron+DiTau+HZZ+HighLumi',
00038     'DoubleMu' : 'LogError+LogErrorMonitor+HZZ+Zmmg+EXOHSCP+HighLumi',
00039     'ElectronHad' : 'LogError+LogErrorMonitor+EXOHSCP',
00040     'HcalNZS' : 'LogError+LogErrorMonitor',
00041     'HT' : 'LogError+LogErrorMonitor+EXOHSCP+HighMET',
00042     'Jet' : 'LogError+LogErrorMonitor+HighLumi',
00043     'MET' : 'LogError+LogErrorMonitor+ZHbb+EXOHSCP+HighMET',
00044     'MinimumBias' : 'LogError+LogErrorMonitor+HLTPhysics+HighLumi',    
00045     'MuEG' : 'LogError+LogErrorMonitor+HZZ',
00046     'MuHad' : 'LogError+LogErrorMonitor',
00047     'MuOnia' : 'LogError+LogErrorMonitor+ChiB',
00048     'MultiJet' : 'LogError+LogErrorMonitor+HighMET+HighLumi',
00049     'Photon' : 'LogError+LogErrorMonitor+HighMET+EXOMonoPhoton',
00050     'PhotonHad' : 'LogError+LogErrorMonitor+EXOMonoPhoton',
00051     'SingleElectron' : 'LogError+LogErrorMonitor+HighMET+DiTau+WElectron',
00052     'SingleMu' : 'LogError+LogErrorMonitor+ZMu+HighMET+EXOHSCP+MuTau',
00053     'Tau' : 'LogError+LogErrorMonitor',
00054     'TauPlusX' : 'LogError+LogErrorMonitor+MuTauMET',
00055     }
00056 """
00057 
00058 # IMPORTANT NOTE for Run2012A :
00059 # TOPElePlusJets should go in ElectronHad
00060 # TOPMuPlusJets should go to MuHad
00061 # However, the configurations in the release, used for prompt skimming
00062 # starting from Run2012B, are not good for Run2012A (since trigger names changed).
00063 # So the TOP skims above have been removed from the Run2012A skim matrix
00064 # and cannot be produced at the moment for this run period
00065 
00066 
00067 ## autoSkim 2013 (pPb HLT menu) --> only pPb run (Jan-Feb)
00068 """
00069 autoSkim = {
00070     'PAMuon' : 'PsiMuMuPA+UpsMuMuPA+ZMuMuPA+HighPtPA',
00071     'PAHighPt' : 'HighPtPA+FlowCorrPA',
00072     }
00073 """
00074 
00075 ########################################################
00076 ### 53X re-processing in 2013: pp data collected in 2012
00077 ### (Created on Jan 21th, 2013 by Francesco Santanastasio)
00078 ########################################################
00079 
00080 ## Run2012A (53X reprocessing)
00081 """
00082 autoSkim = {
00083     'BTag' : 'LogError+LogErrorMonitor+HighLumi',
00084     'Commissioning' : 'LogError+LogErrorMonitor+EcalActivity',
00085     'Cosmics' : 'LogError+LogErrorMonitor+CosmicSP',
00086     'DoubleElectron' : 'LogError+LogErrorMonitor+ZElectron+DiTau+HZZ+HighLumi',
00087     'DoubleMu' : 'LogError+LogErrorMonitor+HZZ+Zmmg+EXOHSCP+HighLumi',
00088     'ElectronHad' : 'LogError+LogErrorMonitor+EXOHSCP',
00089     'HcalNZS' : 'LogError+LogErrorMonitor',
00090     'HT' : 'LogError+LogErrorMonitor+EXOHSCP+HighMET',
00091     'Jet' : 'LogError+LogErrorMonitor+HighLumi',
00092     'MET' : 'LogError+LogErrorMonitor+ZHbb+EXOHSCP+HighMET',
00093     'MinimumBias' : 'LogError+LogErrorMonitor+HLTPhysics+HighLumi',
00094     'MuEG' : 'LogError+LogErrorMonitor+HZZ',
00095     'MuHad' : 'LogError+LogErrorMonitor',
00096     'MuOnia' : 'LogError+LogErrorMonitor+ChiB',
00097     'MultiJet' : 'LogError+LogErrorMonitor+HighMET+HighLumi',
00098     'Photon' : 'LogError+LogErrorMonitor+HighMET+EXOMonoPhoton',
00099     'PhotonHad' : 'LogError+LogErrorMonitor+EXOMonoPhoton',
00100     'SingleElectron' : 'LogError+LogErrorMonitor+HighMET+DiTau+WElectron',
00101     'SingleMu' : 'LogError+LogErrorMonitor+ZMu+HighMET+EXOHSCP+MuTau',
00102     'Tau' : 'LogError+LogErrorMonitor',
00103     'TauPlusX' : 'LogError+LogErrorMonitor+MuTauMET',
00104     }
00105 """
00106 
00107 ## Run2012B and Run2012C (53X reprocessing)
00108 """
00109 autoSkim = {
00110     'BJetPlusX' : 'LogError+LogErrorMonitor',
00111     'BTag' : 'LogError+LogErrorMonitor+HighLumi',
00112     'Commissioning' : 'LogError+LogErrorMonitor+EcalActivity',
00113     'Cosmics' : 'LogError+LogErrorMonitor+CosmicSP',
00114     'DoubleElectron' : 'LogError+LogErrorMonitor+ZElectron+DiTau+HZZ+HighLumi',
00115     'DoubleMuParked' : 'LogError+LogErrorMonitor+Zmmg+HZZ+EXOHSCP+HighLumi',
00116     'DoublePhoton' : 'LogError+LogErrorMonitor',
00117     'DoublePhotonHighPt' : 'LogError+LogErrorMonitor',
00118     'ElectronHad' : 'LogError+LogErrorMonitor',
00119     'HTMHTParked' : 'LogError+LogErrorMonitor+HighMET',
00120     'HcalNZS' : 'LogError+LogErrorMonitor',
00121     'JetHT' : 'LogError+LogErrorMonitor+EXOHSCP+HighLumi',
00122     'JetMon' : 'LogError+LogErrorMonitor+HighLumi',
00123     'MET' : 'LogError+LogErrorMonitor+ZHbb+HighMET+EXOHSCP',
00124     'MinimumBias' : 'LogError+LogErrorMonitor+HLTPhysics+HighLumi',
00125     'MuEG' : 'LogError+LogErrorMonitor+HZZ',
00126     'MuHad' : 'LogError+LogErrorMonitor',
00127     'MuOnia' : 'LogError+LogErrorMonitor+ChiB',
00128     'MuOniaParked' : 'LogError+LogErrorMonitor',
00129     'NoBPTX' : 'LogError+LogErrorMonitor+EXOHSCP',
00130     'PhotonHad' : 'LogError+LogErrorMonitor+EXOMonoPhoton',
00131     'SingleElectron' : 'LogError+LogErrorMonitor+WElectron+HighMET+TOPElePlusJets+DiTau',
00132     'SingleMu' : 'LogError+LogErrorMonitor+ZMu+HighMET+EXOHSCP+TOPMuPlusJets+MuTau',
00133     'SinglePhoton' : 'LogError+LogErrorMonitor+EXODisplacedPhoton+HighMET+EXOMonoPhoton',
00134     'TauParked' : 'LogError+LogErrorMonitor',
00135     'TauPlusX' : 'LogError+LogErrorMonitor+MuTauMET',
00136     'VBF1Parked' : 'LogError+LogErrorMonitor',
00137     }
00138 """
00139 
00140 # --> NOTE for Run2012B,C: we have remove this
00141 # 'MultiJet1Parked' : 'LogError+LogErrorMonitor+HighMET+HighLumi',
00142 # since the re-reco already happened at the end of 2012.
00143 # If those skims can run with RAW and AOD in input we could produce them later in 2013.
00144 
00145 
00146 ## Run2012D (53X reprocessing)
00147 """
00148 autoSkim = {
00149     'BJetPlusX' : 'LogError+LogErrorMonitor',
00150     'BTag' : 'LogError+LogErrorMonitor+HighLumi',
00151     'Commissioning' : 'LogError+LogErrorMonitor+EcalActivity',
00152     'Cosmics' : 'LogError+LogErrorMonitor+CosmicSP',
00153     'DoubleElectron' : 'LogError+LogErrorMonitor+ZElectron+DiTau+HZZ+HighLumi',
00154     'DoubleMuParked' : 'LogError+LogErrorMonitor+Zmmg+HZZ+EXOHSCP+HighLumi',
00155     'DoublePhoton' : 'LogError+LogErrorMonitor',
00156     'DoublePhotonHighPt' : 'LogError+LogErrorMonitor',
00157     'ElectronHad' : 'LogError+LogErrorMonitor',
00158     'HTMHTParked' : 'LogError+LogErrorMonitor+HighMET',
00159     'HcalNZS' : 'LogError+LogErrorMonitor',
00160     'JetHT' : 'LogError+LogErrorMonitor+EXOHSCP+HighLumi',
00161     'JetMon' : 'LogError+LogErrorMonitor+HighLumi',
00162     'METParked' : 'LogError+LogErrorMonitor+ZHbb+HighMET+EXOHSCP',
00163     'MinimumBias' : 'LogError+LogErrorMonitor+HLTPhysics+HighLumi',
00164     'MuEG' : 'LogError+LogErrorMonitor+HZZ',
00165     'MuHad' : 'LogError+LogErrorMonitor',
00166     'MuOnia' : 'LogError+LogErrorMonitor+ChiB',
00167     'MuOniaParked' : 'LogError+LogErrorMonitor',
00168     'MultiJet1Parked' : 'LogError+LogErrorMonitor+HighMET+HighLumi',
00169     'NoBPTX' : 'LogError+LogErrorMonitor+EXOHSCP',
00170     'PhotonHad' : 'LogError+LogErrorMonitor+EXOMonoPhoton',
00171     'SingleElectron' : 'LogError+LogErrorMonitor+WElectron+HighMET+TOPElePlusJets+DiTau',
00172     'SingleMu' : 'LogError+LogErrorMonitor+ZMu+HighMET+EXOHSCP+TOPMuPlusJets+MuTau',
00173     'SinglePhotonParked' : 'LogError+LogErrorMonitor+EXODisplacedPhoton+HighMET+EXOMonoPhoton',
00174     'TauParked' : 'LogError+LogErrorMonitor',
00175     'TauPlusX' : 'LogError+LogErrorMonitor+MuTauMET',
00176     'VBF1Parked' : 'LogError+LogErrorMonitor',
00177     'HLTPhysicsParked' : 'LogError+LogErrorMonitor',
00178     'ZeroBiasParked' : 'LogError+LogErrorMonitor',
00179     }
00180 """
00181 
00182 ## autoSkim 2011
00183 """
00184     'MinimumBias':'MuonTrack+BeamBkg+ValSkim+LogError+HSCPSD',
00185     'ZeroBias':'LogError',
00186     'Commissioning':'DT+LogError',
00187     'Cosmics':'CosmicSP+LogError',
00188     'Mu' : 'WMu+ZMu+HighMET+LogError',    
00189     'EG':'WElectron+ZElectron+HighMET+LogError',
00190     'Electron':'WElectron+ZElectron+HighMET+LogError',
00191     'Photon':'WElectron+ZElectron+HighMET+LogError+DiPhoton+EXOHPTE',
00192     'JetMETTau':'LogError+Tau',
00193     'JetMET':'HighMET+LogError',
00194     'BTau':'LogError+Tau',
00195     'Jet':'HighMET+LogError',
00196     'METFwd':'HighMET+LogError',
00197     'SingleMu' : 'WMu+ZMu+HighMET+LogError+HWW+HZZ+DiTau+EXOHSCP',
00198     'DoubleMu' : 'WMu+ZMu+HighMET+LogError+HWW+HZZ+EXOHSCP',
00199     'SingleElectron' : 'WElectron+HighMET+LogError+HWW+HZZ+Tau',
00200     'DoubleElectron' : 'ZElectron+LogError+HWW+HZZ',
00201     'MuEG' : 'LogError+HWW+HZZ',
00202     'METBTag': 'HighMET+LogError+EXOHSCP',
00203     'BTag': 'LogError+EXOHSCP',
00204     'MET': 'HighMET+LogError+EXOHSCP',
00205 
00206     'HT': 'HighMET+LogError',
00207 
00208     'Tau': 'LogError',
00209     'PhotonHad': 'LogError',
00210     'MuHad': 'LogError',
00211     'MultiJet': 'LogError',
00212     'MuOnia': 'LogError',
00213     'ElectronHad': 'LogError',
00214     'TauPlusX': 'LogError',
00215 """
00216 
00217 autoSkimPDWG = {
00218     
00219     }
00220 
00221 autoSkimDPG = {
00222 
00223     }
00224 
00225 def mergeMapping(map1,map2):
00226     merged={}
00227     for k in list(set(map1.keys()+map2.keys())):
00228         items=[]
00229         if k in map1: 
00230             items.append(map1[k])
00231         if k in map2:
00232             items.append(map2[k])
00233         merged[k]='+'.join(items)
00234     return merged
00235     
00236 #autoSkim = mergeMapping(autoSkimPDWG,autoSkimDPG)
00237 #print autoSkim