Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:27

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # Set the HLT paths
0004 import HLTrigger.HLTfilters.hltHighLevel_cfi
0005 ALCARECOSiStripCalZeroBiasHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
0006     andOr = True, # choose logical OR between Triggerbits
0007 #    HLTPaths = [
0008 #        #SiStripCalZeroBias
0009 #        "HLT_ZeroBias",
0010 #        #Random Trigger for Cosmic Runs
0011 #        'RandomPath'
0012 #        ],
0013     eventSetupPathsKey='SiStripCalZeroBias',
0014     throw = False # tolerate triggers stated above, but not available
0015 )
0016 
0017 # Select only events where tracker had HV on (according to DCS bit information)
0018 # AND respective partition is in the run (according to FED information)
0019 import CalibTracker.SiStripCommon.SiStripDCSFilter_cfi
0020 DCSStatusForSiStripCalZeroBias = CalibTracker.SiStripCommon.SiStripDCSFilter_cfi.siStripDCSFilter.clone()
0021 
0022 # Include masking only from Cabling and O2O
0023 import CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi
0024 siStripQualityESProducerUnbiased = CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi.siStripQualityESProducer.clone()
0025 siStripQualityESProducerUnbiased.appendToDataLabel = 'unbiased'
0026 siStripQualityESProducerUnbiased.ListOfRecordToMerge = cms.VPSet(
0027     cms.PSet(
0028         record = cms.string( 'SiStripDetCablingRcd' ), # bad components from cabling
0029         tag = cms.string( '' )
0030     ),
0031     cms.PSet(
0032         record = cms.string( 'SiStripBadChannelRcd' ), # bad components from O2O
0033         tag = cms.string( '' )
0034     )
0035 )
0036 
0037 
0038 # Clusterizer #
0039 from RecoLocalTracker.SiStripClusterizer.SiStripClusterizer_cfi import *
0040 
0041 siStripUnbiasedClusterizerConditions = SiStripClusterizerConditionsESProducer.clone(QualityLabel="unbiased", Label="unbiased")
0042 calZeroBiasClusters = siStripClusters.clone()
0043 if hasattr(calZeroBiasClusters, "Clusterizer"): calZeroBiasClusters.Clusterizer.ConditionsLabel = 'unbiased'
0044 
0045 # Not persistent collections needed by the filters in the AlCaReco DQM
0046 from DPGAnalysis.SiStripTools.eventwithhistoryproducerfroml1abc_cfi import *
0047 from DPGAnalysis.SiStripTools.apvcyclephaseproducerfroml1tsDB_cfi import *
0048 
0049 # SiStripQuality (only to test the different data labels)#
0050 from CalibTracker.SiStripQuality.siStripQualityStatistics_cfi import siStripQualityStatistics
0051 qualityStatistics = siStripQualityStatistics.clone(StripQualityLabel=cms.string("unbiased"))
0052 
0053 # Sequence #
0054 seqALCARECOSiStripCalZeroBias = cms.Sequence(ALCARECOSiStripCalZeroBiasHLT*DCSStatusForSiStripCalZeroBias*calZeroBiasClusters*APVPhases*consecutiveHEs)
0055 
0056 ## customizations for the pp_on_AA eras
0057 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0058 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0059 (pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOSiStripCalZeroBiasHLT,
0060                                       eventSetupPathsKey='SiStripCalZeroBiasHI'
0061 )
0062 
0063 # Select pp-like events based on the pixel cluster multiplicity
0064 import HLTrigger.special.hltPixelActivityFilter_cfi
0065 HLTPixelActivityFilterForSiStripCalZeroBias = HLTrigger.special.hltPixelActivityFilter_cfi.hltPixelActivityFilter.clone()
0066 HLTPixelActivityFilterForSiStripCalZeroBias.maxClusters = 500
0067 HLTPixelActivityFilterForSiStripCalZeroBias.inputTag    = 'siPixelClusters'
0068 
0069 seqALCARECOSiStripCalZeroBiasHI = cms.Sequence(ALCARECOSiStripCalZeroBiasHLT*HLTPixelActivityFilterForSiStripCalZeroBias*DCSStatusForSiStripCalZeroBias*calZeroBiasClusters*APVPhases*consecutiveHEs)
0070 
0071 #Specify we want to use our other sequence 
0072 (pp_on_XeXe_2017 | pp_on_AA).toReplaceWith(seqALCARECOSiStripCalZeroBias,
0073                                            seqALCARECOSiStripCalZeroBiasHI
0074 )