CMS 3D CMS Logo

ALCARECOSiPixelCalZeroBias_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Set the HLT paths
5 ALCARECOSiPixelCalZeroBiasHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
6  andOr = True, ## choose logical OR between Triggerbits
7  #"regular" Zero Bias
8  #HLTPaths = ["HLT_ZeroBias_v*"],
9  #eventSetupPathsKey = 'SiPixelCalZeroBias',
10  eventSetupPathsKey = 'SiStripCalZeroBias',# use the trigger bit of SiStripCalZeroBias
11  throw = False # tolerate triggers stated above, but not available
12  )
13 
14 # Select only events where tracker had HV on (according to DCS bit information)
15 # AND respective partition is in the run (according to FED information)
16 import DPGAnalysis.Skims.skim_detstatus_cfi
17 ALCARECOSiPixelCalZeroBiasDCSFilter = DPGAnalysis.Skims.skim_detstatus_cfi.dcsstatus.clone(
18  DetectorType = cms.vstring('BPIX','FPIX'),
19  ApplyFilter = cms.bool(True),
20  AndOr = cms.bool(True),
21  DebugOn = cms.untracked.bool(False)
22 )
23 
24 # SiPixelStatus producer
26 # fit as function of lumi sections
27 siPixelStatusProducer.SiPixelStatusProducerParameters.resetEveryNLumi = 1
28 
29 # Sequence #
30 seqALCARECOSiPixelCalZeroBias = cms.Sequence(ALCARECOSiPixelCalZeroBiasHLT*ALCARECOSiPixelCalZeroBiasDCSFilter*siPixelStatusProducer)
31 
32 ## customizations for the pp_on_AA eras
33 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
34 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
35 (pp_on_XeXe_2017 | pp_on_AA_2018).toModify(ALCARECOSiPixelCalZeroBiasHLT,
36  eventSetupPathsKey='SiStripCalZeroBiasHI'
37  )