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