Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22976 from deguio/hcalMisfires_backportOf22974
Update the ADC->fC table, simplify the charge reconstruction algorithm
- Loading branch information
Showing
4 changed files
with
172 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from RecoMET.METFilters.hcallaserevent_cfi import * # from fillDescriptions | ||
|
||
try: | ||
from hcalLaserBadEvents_2011 import badEvents | ||
except: | ||
print "<hcalLaserEventFilter_cfi> WARNING! No explicit list 'badEvents.py' containing bad HCAL laser run/events was found!" | ||
badEvents=[] | ||
|
||
hcalLaserEventFilter = cms.EDFilter("HcalLaserEventFilter", | ||
vetoByRunEventNumber=cms.untracked.bool(False), | ||
# Add each bad event as run #, event # in this list | ||
BadRunEventNumbers=cms.untracked.vuint32(badEvents | ||
# badEvents file contains 218 bad events, as of 28 Nov. 2011 | ||
hcalLaserEventFilter = hcallaserevent.clone(BadRunEventNumbers=cms.vuint32(badEvents) ) | ||
|
||
from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018 | ||
run2_HCAL_2018.toModify( hcalLaserEventFilter, | ||
vetoByHBHEOccupancy=False, | ||
minOccupiedHBHE=8000, | ||
) | ||
|
||
), | ||
vetoByHBHEOccupancy=cms.untracked.bool(True), | ||
minOccupiedHBHE=cms.untracked.uint32(4000), # minimum number of HBHErechits that must be present for HBHEOccupancy filter to remove event | ||
|
||
debug = cms.untracked.bool(False), | ||
reverseFilter = cms.untracked.bool(False), # if True, will select only events failing filter, rather than events passing | ||
hbheInputLabel=cms.untracked.InputTag("hbhereco"), | ||
hcalNoiseSummaryLabel=cms.untracked.InputTag("hcalnoise"), | ||
taggingMode = cms.bool(False), | ||
maxerrormessage = cms.untracked.int32(5), # max number of error messages to print | ||
forceUseRecHitCollection=cms.untracked.bool(False), # if specified, will attempt to use HBHE RecHit Collection directly; otherwise, will use information as stored in HcalNoiseSummary object for CMSSW_5_2_0 and above. (If CMSSW version is < 5_2_0, RecHit collection will be used automatically, since HcalNoiseSummary in those versions didn't contain this filter info) | ||
forceUseHcalNoiseSummary=cms.untracked.bool(False), # Can likewise specify to force the use of Hcal Noise Summary, regardless of CMSSW version. Perhaps this should be the default, since version checked doesn't allow for comparison of patched older versions with new version? | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.