Skip to content

Commit

Permalink
Modified disappearing muons skimming module to create auto
Browse files Browse the repository at this point in the history
configuration from fillDescriptions and load them into cff file
  • Loading branch information
Michael Revering committed Mar 13, 2023
1 parent f927847 commit 8ee8512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 35 deletions.
36 changes: 2 additions & 34 deletions Configuration/Skimming/python/PDWG_EXODisappMuon_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,8 @@
]
)

disappMuonsSelection = cms.EDFilter('DisappearingMuonsSkimming',
recoMuons = cms.InputTag("muons"),
tracks = cms.InputTag("generalTracks"),
StandaloneTracks = cms.InputTag("standAloneMuons"),
primaryVertices = cms.InputTag("offlinePrimaryVertices"),
EERecHits = cms.InputTag("reducedEcalRecHitsEE"),
EBRecHits = cms.InputTag("reducedEcalRecHitsEB"),
TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
muonPathsToPass = cms.vstring("HLT_IsoMu24_v","HLT_IsoMu27_v"),
minMuPt = cms.double(26),
maxMuEta = cms.double(2.4),
minTrackEta = cms.double(0),
maxTrackEta = cms.double(2.4),
minTrackPt = cms.double(20),
maxTransDCA = cms.double(0.005),
maxLongDCA = cms.double(0.05),
maxVtxChi = cms.double(3.),
minInvMass = cms.double(50),
maxInvMass = cms.double(150),
trackIsoConesize = cms.double(0.3),
trackIsoInnerCone = cms.double(0.01),
ecalIsoConesize = cms.double(0.4),
minEcalHitE = cms.double(0.3),
maxTrackIso = cms.double(0.05),
maxEcalIso = cms.double(10),
minSigInvMass = cms.double(76),
maxSigInvMass = cms.double(106),
minStandaloneDr = cms.double(1.),
maxStandaloneDE = cms.double(-0.5),
keepOffPeak = cms.bool(True),
keepSameSign = cms.bool(True),
keepTotalRegion = cms.bool(True),
keepPartialRegion = cms.bool(True)
)
from Configuration.Skimming.disappearingMuonsSkimming_cfi import *
disappMuonsSelection = disappearingMuonsSkimming.clone()

EXODisappMuonSkimSequence = cms.Sequence(
exoDisappMuonsHLT+disappMuonsSelection
Expand Down
2 changes: 1 addition & 1 deletion Configuration/Skimming/src/DisappearingMuonsSkimming.cc
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ void DisappearingMuonsSkimming::fillDescriptions(edm::ConfigurationDescriptions&
desc.add<bool>("keepSameSign", true);
desc.add<bool>("keepTotalRegion", true);
desc.add<bool>("keepPartialRegion", true);
descriptions.add("disappMuonsSelection", desc);
descriptions.addWithDefaultLabel(desc);
}

// ------------ method called once each job just before starting event loop ------------
Expand Down

0 comments on commit 8ee8512

Please sign in to comment.