Skip to content

Commit

Permalink
Update the PbPb skims for 2024 data taking
Browse files Browse the repository at this point in the history
  • Loading branch information
flodamas committed Oct 21, 2024
1 parent b9283b1 commit 041c459
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Configuration/Skimming/python/PbPb_EMuSkim_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# HLT dimuon trigger
import HLTrigger.HLTfilters.hltHighLevel_cfi
hltEMuHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
hltEMuHI.HLTPaths = ["HLT_HIEle*Gsf_v*","HLT_HIL3SingleMu*_v*"]
hltEMuHI.HLTPaths = ["HLT_HIEle*Gsf_v*","HLT_HIL2SingleMu12_v*"]
hltEMuHI.throw = False
hltEMuHI.andOr = True

Expand Down
2 changes: 1 addition & 1 deletion Configuration/Skimming/python/PbPb_ZEESkim_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# HLT dimuon trigger
import HLTrigger.HLTfilters.hltHighLevel_cfi
hltZEEHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
hltZEEHI.HLTPaths = ["HLT_HIEle*Gsf_v*"]
hltZEEHI.HLTPaths = ["HLT_HIEle*Gsf_v*","HLT_HIDoubleEle*"]
hltZEEHI.throw = False
hltZEEHI.andOr = True

Expand Down
4 changes: 2 additions & 2 deletions Configuration/Skimming/python/PbPb_ZMMSkim_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# HLT dimuon trigger
import HLTrigger.HLTfilters.hltHighLevel_cfi
hltZMMPbPb = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
hltZMMPbPb.HLTPaths = ["HLT_HIL3SingleMu*_v*"]
hltZMMPbPb.HLTPaths = ["HLT_HIL2SingleMu7_v*"]
hltZMMPbPb.throw = False
hltZMMPbPb.andOr = True

Expand All @@ -17,7 +17,7 @@
# selection of dimuons with mass in Z range
muonSelectorForZMM = cms.EDFilter("MuonSelector",
src = cms.InputTag("muons"),
cut = cms.string("(isPFMuon && isGlobalMuon) && pt > 20."),
cut = cms.string("(isPFMuon && isGlobalMuon) && pt > 15. && abs(eta) < 2.4"),
filter = cms.bool(True)
)

Expand Down
26 changes: 17 additions & 9 deletions Configuration/Skimming/python/PbPb_ZMuSkimMuonDPG_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,22 @@

PbPbZMuHLTFilter = copy.deepcopy(hltHighLevel)
PbPbZMuHLTFilter.throw = cms.bool(False)
PbPbZMuHLTFilter.HLTPaths = ["HLT_HIL3Mu*"]
PbPbZMuHLTFilter.HLTPaths = ["HLT_HIL2SingleMu7*","HLT_HIL2SingleMu12*"]

# selection of valid vertex
primaryVertexFilterForPbPbZMuSkim = cms.EDFilter("VertexSelector",
src = cms.InputTag("offlinePrimaryVertices"),
cut = cms.string("!isFake && abs(z) <= 25 && position.Rho <= 2"),
filter = cms.bool(True),
)

### Z -> MuMu candidates
# Get muons of needed quality for Zs

###create a track collection with generic kinematic cuts
looseMuonsForPbPbZMuSkim = cms.EDFilter("TrackSelector",
src = cms.InputTag("generalTracks"),
cut = cms.string('pt > 10 && abs(eta)<2.4 && (charge!=0)'),
cut = cms.string('pt > 5 && abs(eta)<2.4 && (charge!=0)'),
filter = cms.bool(True)
)

Expand Down Expand Up @@ -86,7 +93,7 @@

tightMuonsForPbPbZMuSkim = cms.EDFilter("MuonSelector",
src = cms.InputTag("muons"),
cut = cms.string("(isGlobalMuon) && pt > 25. && (abs(eta)<2.4) && (isPFMuon>0) && (globalTrack().normalizedChi2() < 10) && (globalTrack().hitPattern().numberOfValidMuonHits()>0)&& (numberOfMatchedStations() > 1)&& (innerTrack().hitPattern().numberOfValidPixelHits() > 0)&& (innerTrack().hitPattern().trackerLayersWithMeasurement() > 5) && ((isolationR03().sumPt/pt)<0.1)"),
cut = cms.string("(isGlobalMuon) && pt > 15. && (abs(eta)<2.4) && (isPFMuon>0) && (globalTrack().normalizedChi2() < 10) && (globalTrack().hitPattern().numberOfValidMuonHits()>0) && (numberOfMatchedStations() > 1) && (innerTrack().hitPattern().numberOfValidPixelHits() > 0) && (innerTrack().hitPattern().trackerLayersWithMeasurement() > 5)"),
filter = cms.bool(True)
)

Expand All @@ -96,8 +103,8 @@
# build Z-> MuMu candidates
dimuonsForPbPbZMuSkim = cms.EDProducer("CandViewShallowCloneCombiner",
checkCharge = cms.bool(False),
cut = cms.string('(mass > 60) && (charge=0)'),
decay = cms.string("tightMuonsForPbPbZMuSkim looseIsoMuonsForPbPbZMuSkim")
cut = cms.string('(mass > 60) && (charge=0)'),
decay = cms.string("tightMuonsForPbPbZMuSkim looseMuonsForPbPbZMuSkim")
)


Expand All @@ -111,11 +118,12 @@

diMuonSelSeqForPbPbZMuSkim = cms.Sequence(
PbPbZMuHLTFilter *
primaryVertexFilterForPbPbZMuSkim *
looseMuonsForPbPbZMuSkim *
ConcretelooseMuonsForPbPbZMuSkim *
tkIsoDepositTkForPbPbZMuSkim *
allPatTracksForPbPbZMuSkim *
looseIsoMuonsForPbPbZMuSkim *
#ConcretelooseMuonsForPbPbZMuSkim *
#tkIsoDepositTkForPbPbZMuSkim *
#allPatTracksForPbPbZMuSkim *
#looseIsoMuonsForPbPbZMuSkim *
tightMuonsForPbPbZMuSkim *
dimuonsForPbPbZMuSkim *
dimuonsFilterForPbPbZMuSkim
Expand Down
2 changes: 1 addition & 1 deletion Configuration/Skimming/python/autoSkim.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

# For 2023 PbPb skims
for i_split in range(32):
autoSkim[f'HIPhysicsRawPrime{i_split}'] = 'PbPbEMu+PbPbZEE+PbPbZMM+LogError+LogErrorMonitor'
autoSkim[f'HIPhysicsRawPrime{i_split}'] = 'PbPbEMu+PbPbZEE+PbPbZMu+LogError+LogErrorMonitor'

autoSkimRunII = {
'BTagCSV' : 'LogError+LogErrorMonitor',
Expand Down

0 comments on commit 041c459

Please sign in to comment.