CMS 3D CMS Logo

autoSkim.py
Go to the documentation of this file.
1 autoSkim = {
2 
3  # Skim 2023
4  'BTagMu' : 'LogError+LogErrorMonitor',
5  'DisplacedJet' : 'EXODisplacedJet+EXODelayedJet+EXODTCluster+EXOLLPJetHCAL+LogError+LogErrorMonitor',
6  'JetMET0' : 'JetHTJetPlusHOFilter+EXOHighMET+EXODelayedJetMET+EXODisappTrk+LogError+LogErrorMonitor',
7  'JetMET1' : 'JetHTJetPlusHOFilter+EXOHighMET+EXODelayedJetMET+EXODisappTrk+LogError+LogErrorMonitor',
8  'EGamma0':'ZElectron+WElectron+EXOMONOPOLE+EXODisappTrk+IsoPhotonEB+LogError+LogErrorMonitor',
9  'EGamma1':'ZElectron+WElectron+EXOMONOPOLE+EXODisappTrk+IsoPhotonEB+LogError+LogErrorMonitor',
10  'Tau' : 'EXODisappTrk+LogError+LogErrorMonitor',
11  'Muon0' : 'ZMu+EXODisappTrk+EXOCSCCluster+EXODisappMuon+LogError+LogErrorMonitor',
12  'Muon1' : 'ZMu+EXODisappTrk+EXOCSCCluster+EXODisappMuon+LogError+LogErrorMonitor',
13  'MuonEG' : 'TopMuEG+LogError+LogErrorMonitor',
14  'NoBPTX' : 'EXONoBPTXSkim+LogError+LogErrorMonitor',
15  'HcalNZS' : 'LogError+LogErrorMonitor',
16  'HLTPhysics' : 'LogError+LogErrorMonitor',
17  'ZeroBias' : 'LogError+LogErrorMonitor',
18  'Commissioning' : 'EcalActivity+LogError+LogErrorMonitor',
19  'Cosmics':'CosmicSP+CosmicTP+LogError+LogErrorMonitor',
20  'ParkingDoubleMuonLowMass0': 'ReserveDMu+LogError+LogErrorMonitor',
21  'ParkingDoubleMuonLowMass1': 'ReserveDMu+LogError+LogErrorMonitor',
22  'ParkingDoubleMuonLowMass2': 'ReserveDMu+LogError+LogErrorMonitor',
23  'ParkingDoubleMuonLowMass3': 'ReserveDMu+LogError+LogErrorMonitor',
24  'ParkingDoubleMuonLowMass4': 'ReserveDMu+LogError+LogErrorMonitor',
25  'ParkingDoubleMuonLowMass5': 'ReserveDMu+LogError+LogErrorMonitor',
26  'ParkingDoubleMuonLowMass6': 'ReserveDMu+LogError+LogErrorMonitor',
27  'ParkingDoubleMuonLowMass7': 'ReserveDMu+LogError+LogErrorMonitor',
28 
29  # These should be uncommented when 2022 data reprocessing
30  # Dedicated skim for 2022
31  #'JetMET' : 'JetHTJetPlusHOFilter+EXOHighMET+EXODelayedJetMET+EXODisappTrk+LogError+LogErrorMonitor',
32  #'EGamma':'ZElectron+WElectron+EXOMONOPOLE+EXODisappTrk+LogError+LogErrorMonitor',
33  #'Muon' : 'ZMu+EXODisappTrk+EXODisappMuon+LogError+LogErrorMonitor',
34  #'DisplacedJet' : 'EXODisplacedJet+EXODelayedJet+EXODTCluster+EXOCSCCluster+EXOLLPJetHCAL+LogError+LogErrorMonitor',
35  #'JetHT' : 'JetHTJetPlusHOFilter+LogError+LogErrorMonitor',
36  #'MET' : 'EXOHighMET+EXODelayedJetMET+EXODisappTrk+LogError+LogErrorMonitor',
37  #'SingleMuon' : 'ZMu+EXODisappTrk+EXODisappMuon+LogError+LogErrorMonitor',
38  #'DoubleMuon' : 'LogError+LogErrorMonitor',
39 
40  # Used in unit test scenario ppEra_Run2_2018
41  'SingleMuon': 'LogError+LogErrorMonitor',
42 }
43 
44 # For 2023 PbPb skims
45 for i_split in range(32):
46  autoSkim[f'HIPhysicsRawPrime{i_split}'] = 'PbPbEMu+PbPbZEE+PbPbZMM+LogError+LogErrorMonitor'
47 
48 autoSkimRunII = {
49  'BTagCSV' : 'LogError+LogErrorMonitor',
50  'BTagMu' : 'LogError+LogErrorMonitor',
51  'HTMHT' : 'LogError+LogErrorMonitor',
52  'JetHT' : 'JetHTJetPlusHOFilter+LogError+LogErrorMonitor',
53  'DisplacedJet' : 'LogError+LogErrorMonitor',
54  'MET' : 'HighMET+EXOMONOPOLE+LogError+LogErrorMonitor',
55  'SingleElectron' : 'LogError+LogErrorMonitor',
56  'SinglePhoton' : 'SinglePhotonJetPlusHOFilter+EXOMONOPOLE+LogError+LogErrorMonitor',
57  'DoubleEG' : 'ZElectron+EXOMONOPOLE+LogError+LogErrorMonitor',
58  'EGamma':'SinglePhotonJetPlusHOFilter+ZElectron+EXOMONOPOLE+LogError+LogErrorMonitor',
59  'Tau' : 'LogError+LogErrorMonitor',
60  'SingleMuon' : 'MuonPOGSkim+ZMu+MuTau+LogError+LogErrorMonitor',
61  'DoubleMuon' : 'LogError+LogErrorMonitor',
62  'MuonEG' : 'TopMuEG+LogError+LogErrorMonitor',
63  'DoubleMuonLowMass' : 'BPHSkim+LogError+LogErrorMonitor',
64  'MuOnia' : 'BPHSkim+LogError+LogErrorMonitor',
65  'Charmonium' : 'MuonPOGJPsiSkim+BPHSkim+LogError+LogErrorMonitor',
66  'NoBPTX' : 'EXONoBPTXSkim+LogError+LogErrorMonitor',
67  'HcalHPDNoise' : 'LogError+LogErrorMonitor',
68  'HcalNZS' : 'LogError+LogErrorMonitor',
69  'HLTPhysics' : 'LogError+LogErrorMonitor',
70  'ZeroBias' : 'LogError+LogErrorMonitor',
71  'Commissioning' : 'EcalActivity+LogError+LogErrorMonitor',
72  'Cosmics':'CosmicSP+CosmicTP+LogError+LogErrorMonitor',
73  'ParkingBPH':'SkimBPark+LogError+LogErrorMonitor',
74 }
75 #2018 EGamma is a merged datasets of SingleElectron, SinglePhoton, DoubleEG
76 
77 autoSkimRunI = {
78  'MinBias':'MuonTrack+BeamBkg+ValSkim+LogError+HSCPSD',
79  'ZeroBias':'LogError',
80  'Commissioning':'DT+LogError',
81  'Cosmics':'CosmicSP+CosmicTP+LogError',
82  'Mu' : 'WMu+ZMu+HighMET+LogError',
83  'EG':'WElectron+ZElectron+HighMET+LogError',
84  'TopMuEG':'TopMuEG+LogError',
85  'Electron':'WElectron+ZElectron+HighMET+LogError',
86  'Photon':'WElectron+ZElectron+HighMET+LogError+DiPhoton+EXOHPTE',
87  'JetMETTau':'LogError+Tau',
88  'JetMET':'HighMET+LogError',
89  'BTau':'LogError+Tau',
90  'Jet':'HighMET+LogError',
91  'METFwd':'HighMET+LogError',
92  'SingleMu' : 'WMu+ZMu+HighMET+LogError+HWW+HZZ+DiTau+EXOHSCP',
93  'DoubleMu' : 'WMu+ZMu+HighMET+LogError+HWW+HZZ+EXOHSCP',
94  'SingleElectron' : 'WElectron+HighMET+LogError+HWW+HZZ+Tau',
95  'DoubleElectron' : 'ZElectron+LogError+HWW+HZZ',
96  'MuEG' : 'LogError+HWW+HZZ',
97  'METBTag': 'HighMET+LogError+EXOHSCP',
98  'BTag': 'LogError+EXOHSCP',
99  'MET': 'HighMET+LogError+EXOHSCP',
100  'HighMET': 'HighMET+LogError',
101  'HT': 'HighMET+LogError',
102  'Tau': 'LogError',
103  'MuTau': 'MuTau+LogError',
104  'PhotonHad': 'LogError',
105  'MuHad': 'LogError',
106  'MultiJet': 'LogError',
107  'MuOnia': 'LogError',
108  'ElectronHad': 'LogError',
109  'TauPlusX': 'LogError',
110 }
111 
112 autoSkimPDWG = {
113 }
114 
115 autoSkimDPG = {
116 }
117 
118 def mergeMapping(map1,map2):
119  merged={}
120  for k in list(set(map1.keys()+map2.keys())):
121  items=[]
122  if k in map1:
123  items.append(map1[k])
124  if k in map2:
125  items.append(map2[k])
126  merged[k]='+'.join(items)
127  return merged
128 
129 #autoSkim = mergeMapping(autoSkimPDWG,autoSkimDPG)
130 #print autoSkim
def mergeMapping(map1, map2)
Definition: autoSkim.py:118
static std::string join(char **cmd)
Definition: RemoteFile.cc:19