Skip to content

Commit cfc538c

Browse files
committed
Add muon skim for 2025 light ion run
1 parent ed4d10f commit cfc538c

File tree

4 files changed

+95
-0
lines changed

4 files changed

+95
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import FWCore.ParameterSet.Config as cms
2+
3+
# single high-pT muon skim sequence
4+
5+
HighPtMuonSelection = "(isTrackerMuon || isGlobalMuon) && abs(eta) <= 2.4 && pt > 10."
6+
7+
highPtMuonSelectorForMuonIon = cms.EDFilter("PATMuonRefSelector",
8+
src = cms.InputTag("slimmedMuons"),
9+
cut = cms.string(HighPtMuonSelection),
10+
filter = cms.bool(True)
11+
)
12+
13+
highPtMuonCountFilterForMuonIon = cms.EDFilter("MuonRefPatCount",
14+
src = cms.InputTag("slimmedMuons"),
15+
cut = cms.string(HighPtMuonSelection),
16+
minNumber = cms.uint32(1)
17+
)
18+
19+
HighPtMuonIonSkimSequence = cms.Sequence(
20+
highPtMuonSelectorForMuonIon *
21+
highPtMuonCountFilterForMuonIon
22+
)
23+
24+
25+
# loose dimuon skim sequence
26+
27+
LooseMuonSelection = "(isTrackerMuon || isGlobalMuon) && ((abs(eta) <= 1.0 && pt > 3.3) || (1.0 < abs(eta) <= 2.4 && pt > 1.0))"
28+
29+
looseMuonSelectorForMuonIon = cms.EDFilter("PATMuonRefSelector",
30+
src = cms.InputTag("slimmedMuons"),
31+
cut = cms.string(LooseMuonSelection),
32+
filter = cms.bool(True)
33+
)
34+
35+
looseMuonCountFilterForMuonIon = cms.EDFilter("MuonRefPatCount",
36+
src = cms.InputTag("slimmedMuons"),
37+
cut = cms.string(LooseMuonSelection),
38+
minNumber = cms.uint32(2)
39+
)
40+
41+
42+
dimuonMassCutForMuonIon = cms.EDProducer("CandViewShallowCloneCombiner",
43+
checkCharge = cms.bool(True),
44+
cut = cms.string(''),
45+
decay = cms.string("looseMuonSelectorForMuonIon@+ looseMuonSelectorForMuonIon@-")
46+
)
47+
48+
dimuonCountFilterForMuonIon = cms.EDFilter("CandViewCountFilter",
49+
src = cms.InputTag("dimuonMassCutForMuonIon"),
50+
minNumber = cms.uint32(1)
51+
)
52+
53+
# dimuon skim sequence
54+
DimuonIonSkimSequence = cms.Sequence(
55+
looseMuonSelectorForMuonIon *
56+
looseMuonCountFilterForMuonIon *
57+
dimuonMassCutForMuonIon *
58+
dimuonCountFilterForMuonIon
59+
)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import FWCore.ParameterSet.Config as cms
2+
3+
from Configuration.EventContent.EventContent_cff import MINIAODEventContent
4+
5+
skimMINIAODEventContent = MINIAODEventContent.clone()
6+
skimMINIAODEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
7+
skimMINIAODEventContent.outputCommands.append("drop *_*_*_SKIM")
8+
9+
from Configuration.Skimming.Ion_MuonSkim_cff import *
10+
11+
HighPtMuonIonSkimPath = cms.Path( HighPtMuonIonSkimSequence )
12+
SKIMStreamIonHighPtMuon = cms.FilteredStream(
13+
responsible = 'HI PAG',
14+
name = 'IonHighPtMuon',
15+
paths = (HighPtMuonIonSkimPath),
16+
content = skimMINIAODEventContent.outputCommands,
17+
selectEvents = cms.untracked.PSet(),
18+
dataTier = cms.untracked.string('USER')
19+
)
20+
21+
DimuonIonSkimPath = cms.Path( DimuonIonSkimSequence )
22+
SKIMStreamIonDimuon = cms.FilteredStream(
23+
responsible = 'HI PAG',
24+
name = 'IonDimuon',
25+
paths = (DimuonIonSkimPath),
26+
content = skimMINIAODEventContent.outputCommands,
27+
selectEvents = cms.untracked.PSet(),
28+
dataTier = cms.untracked.string('USER')
29+
)
30+
31+
#####################

Configuration/Skimming/python/autoSkim.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
#'SingleMuon': 'LogError+LogErrorMonitor',
4141
}
4242

43+
# For 2025 Ion skims
44+
for i_split in range(60):
45+
autoSkim[f'IonPhysics{i_split}'] = 'IonHighPtMuon+IonDimuon+LogError+LogErrorMonitor'
46+
4347
# For 2024 PbPb skims
4448
for i_split in range(20):
4549
autoSkim[f'HIForward{i_split}'] = 'UPCMonopole+LogError+LogErrorMonitor'

Configuration/StandardSequences/python/Skims_cff.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ def getSkimDataTier(skimname):
4949
from Configuration.Skimming.Skims_PDWG_cff import *
5050
from Configuration.Skimming.Skims_PA_cff import *
5151
from Configuration.Skimming.Skims_PbPb_cff import *
52+
from Configuration.Skimming.Skims_Ion_cff import *

0 commit comments

Comments
 (0)