CMS 3D CMS Logo

ALCARECOSiStripCalZeroBias_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Set the HLT paths
5 ALCARECOSiStripCalZeroBiasHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
6  andOr = True, # choose logical OR between Triggerbits
7 # HLTPaths = [
8 # #SiStripCalZeroBias
9 # "HLT_ZeroBias",
10 # #Random Trigger for Cosmic Runs
11 # 'RandomPath'
12 # ],
13  eventSetupPathsKey='SiStripCalZeroBias',
14  throw = False # tolerate triggers stated above, but not available
15 )
16 
17 # Select only events where tracker had HV on (according to DCS bit information)
18 # AND respective partition is in the run (according to FED information)
19 import CalibTracker.SiStripCommon.SiStripDCSFilter_cfi
20 DCSStatusForSiStripCalZeroBias = CalibTracker.SiStripCommon.SiStripDCSFilter_cfi.siStripDCSFilter.clone()
21 
22 # Include masking only from Cabling and O2O
24 siStripQualityESProducerUnbiased = CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi.siStripQualityESProducer.clone()
25 siStripQualityESProducerUnbiased.appendToDataLabel = 'unbiased'
26 siStripQualityESProducerUnbiased.ListOfRecordToMerge = cms.VPSet(
27  cms.PSet(
28  record = cms.string( 'SiStripDetCablingRcd' ), # bad components from cabling
29  tag = cms.string( '' )
30  ),
31  cms.PSet(
32  record = cms.string( 'SiStripBadChannelRcd' ), # bad components from O2O
33  tag = cms.string( '' )
34  )
35 )
36 
37 
38 # Clusterizer #
40 
41 siStripUnbiasedClusterizerConditions = SiStripClusterizerConditionsESProducer.clone(QualityLabel="unbiased", Label="unbiased")
42 calZeroBiasClusters = siStripClusters.clone()
43 calZeroBiasClusters.Clusterizer.ConditionsLabel = 'unbiased'
44 
45 # Not persistent collections needed by the filters in the AlCaReco DQM
48 
49 # SiStripQuality (only to test the different data labels)#
50 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
51 qualityStatistics = DQMEDAnalyzer("SiStripQualityStatistics",
52  TkMapFileName = cms.untracked.string(''),
53  dataLabel = cms.untracked.string('unbiased')
54  )
55 
56 # Sequence #
57 seqALCARECOSiStripCalZeroBias = cms.Sequence(ALCARECOSiStripCalZeroBiasHLT*DCSStatusForSiStripCalZeroBias*calZeroBiasClusters*APVPhases*consecutiveHEs)
58 
59 
60 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
61 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
62 (pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOSiStripCalZeroBiasHLT,
63  eventSetupPathsKey='SiStripCalZeroBiasHI'
64 )
65 
66 # Select pp-like events based on the pixel cluster multiplicity
67 import HLTrigger.special.hltPixelActivityFilter_cfi
68 HLTPixelActivityFilterForSiStripCalZeroBias = HLTrigger.special.hltPixelActivityFilter_cfi.hltPixelActivityFilter.clone()
69 HLTPixelActivityFilterForSiStripCalZeroBias.maxClusters = 500
70 HLTPixelActivityFilterForSiStripCalZeroBias.inputTag = 'siPixelClusters'
71 
72 seqALCARECOSiStripCalZeroBiasHI = cms.Sequence(ALCARECOSiStripCalZeroBiasHLT*HLTPixelActivityFilterForSiStripCalZeroBias*DCSStatusForSiStripCalZeroBias*calZeroBiasClusters*APVPhases*consecutiveHEs)
73 
74 #Specify we want to use our other sequence
75 (pp_on_XeXe_2017 | pp_on_AA).toReplaceWith(seqALCARECOSiStripCalZeroBias,
76  seqALCARECOSiStripCalZeroBiasHI
77 )
SiStripClusterizer_cfi
hltHighLevel_cfi
apvcyclephaseproducerfroml1tsDB_cfi
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
SiStripQualityESProducer_cfi
eventwithhistoryproducerfroml1abc_cfi