Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-28 23:48:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQM.SiPixelPhase1Common.HistogramManager_cfi import *
0004 
0005 SuperimoposePlotsInOnlineBlocks=True
0006 IsOffline.enabled=False
0007 
0008 
0009 StandardSpecifications1D.append(
0010         Specification(OverlayCurvesForTiming).groupBy("PXBarrel/PXLayer/OnlineBlock") # per-layer with history for online
0011                                  .groupBy("PXBarrel/PXLayer", "EXTEND_Y")
0012                                  .save()
0013   )
0014   
0015 StandardSpecifications1D.append(
0016       Specification(OverlayCurvesForTiming).groupBy("PXForward/PXDisk/OnlineBlock") # per-layer with history for online
0017                                .groupBy("PXForward/PXDisk", "EXTEND_Y")
0018                                .save()
0019   )
0020   
0021 StandardSpecifications1D.append(
0022       Specification(OverlayCurvesForTiming).groupBy("PXBarrel/OnlineBlock") # per-layer with history for online
0023                      .groupBy("PXBarrel", "EXTEND_Y")
0024                      .save()
0025   )
0026 StandardSpecifications1D.append(
0027       Specification(OverlayCurvesForTiming).groupBy("PXForward/OnlineBlock") # per-layer with history for online
0028                      .groupBy("PXForward", "EXTEND_Y")
0029                      .save()
0030   )
0031   
0032   
0033 # To Configure Phase1 DQM for Phase0 data
0034 SiPixelPhase1Geometry.upgradePhase = 1
0035 
0036 #define number of lumis for overlayed plots
0037 SiPixelPhase1Geometry.onlineblock = 150
0038 
0039 # Turn on 'online' harvesting. This has to be set before other configs are 
0040 # loaded (due to how the DefaultHisto PSet is later cloned), therefore it is
0041 # here and not in the harvestng config.
0042 DefaultHisto.perLumiHarvesting = True
0043 DefaultHistoDigiCluster.perLumiHarvesting = True
0044 DefaultHistoSummary.perLumiHarvesting = True
0045 DefaultHistoTrack.perLumiHarvesting = True
0046 
0047 
0048 # Pixel Digi Monitoring
0049 from DQM.SiPixelPhase1Common.SiPixelPhase1Digis_cfi import *
0050 
0051 # Cluster (track-independent) monitoring
0052 from DQM.SiPixelPhase1Common.SiPixelPhase1Clusters_cfi import *
0053 
0054 # We could overwrite the Harvesters like this, and use the custom() steps to
0055 # perform resetting of histograms.
0056 #SiPixelPhase1ClustersHarvester = cms.EDAnalyzer("SiPixelPhase1OnlineHarvester",
0057 #    histograms = SiPixelPhase1ClustersConf,
0058 #    geometry = SiPixelPhase1Geometry
0059 #)
0060 
0061 
0062 # Raw data errors
0063 from DQM.SiPixelPhase1Common.SiPixelPhase1RawData_cfi import *
0064 from DQM.SiPixelPhase1Common.SiPixelPhase1DeadFEDChannels_cfi import *
0065 
0066 from DQM.SiPixelPhase1Common.SiPixelPhase1GeometryDebug_cfi import *
0067 
0068 #Summary maps
0069 from DQM.SiPixelPhase1Summary.SiPixelPhase1Summary_cfi import *
0070 
0071 # Track cluster                                                                                                                                                                            
0072 from DQM.SiPixelPhase1Track.SiPixelPhase1TrackClusters_cfi import *
0073 SiPixelPhase1TrackClustersOnTrackCorrCharge.enabled=cms.bool(False)
0074 SiPixelPhase1TrackTemplateCorr.enabled=cms.bool(False)
0075 SiPixelPhase1TrackClustersOnTrackCorrChargeOuter.enabled=cms.bool(False)
0076 SiPixelPhase1TrackTemplateCorrOuter.enabled=cms.bool(False)
0077 SiPixelPhase1TrackClustersOnTrackCorrChargeInner.enabled=cms.bool(False)
0078 SiPixelPhase1TrackTemplateCorrInner.enabled=cms.bool(False)
0079 from DQM.SiPixelPhase1Track.SiPixelPhase1TrackResiduals_cfi import *
0080 
0081 siPixelPhase1OnlineDQM_source = cms.Sequence(
0082    SiPixelPhase1DigisAnalyzer
0083  + SiPixelPhase1DeadFEDChannelsAnalyzer
0084  + SiPixelPhase1ClustersAnalyzer
0085  + SiPixelPhase1RawDataAnalyzer
0086  + SiPixelPhase1TrackClustersAnalyzer
0087  + SiPixelPhase1TrackResidualsAnalyzer
0088 # + SiPixelPhase1GeometryDebugAnalyzer
0089 )
0090 
0091 siPixelPhase1OnlineDQM_harvesting = cms.Sequence(
0092    SiPixelPhase1DigisHarvester 
0093  + SiPixelPhase1DeadFEDChannelsHarvester
0094  + SiPixelPhase1ClustersHarvester
0095  + SiPixelPhase1RawDataHarvester
0096  + SiPixelPhase1TrackClustersHarvester
0097  + SiPixelPhase1TrackResidualsHarvester
0098  + RunQTests_online
0099  + SiPixelPhase1SummaryOnline
0100 # + SiPixelPhase1GeometryDebugHarvester
0101 )
0102 
0103 ## Additional settings for cosmic runs                                                                                                                                                     
0104 
0105 SiPixelPhase1TrackClustersAnalyzer_cosmics = SiPixelPhase1TrackClustersAnalyzer.clone(
0106     tracks = "ctfWithMaterialTracksP5",
0107     VertexCut = False
0108 )
0109 
0110 SiPixelPhase1TrackResidualsAnalyzer_cosmics = SiPixelPhase1TrackResidualsAnalyzer.clone(
0111     Tracks = "ctfWithMaterialTracksP5",
0112     trajectoryInput = "ctfWithMaterialTracksP5",
0113     VertexCut = False
0114 )
0115 
0116 siPixelPhase1OnlineDQM_source_cosmics = cms.Sequence(
0117    SiPixelPhase1DigisAnalyzer
0118  + SiPixelPhase1DeadFEDChannelsAnalyzer
0119  + SiPixelPhase1ClustersAnalyzer
0120  + SiPixelPhase1RawDataAnalyzer
0121  + SiPixelPhase1TrackClustersAnalyzer_cosmics
0122  + SiPixelPhase1TrackResidualsAnalyzer_cosmics
0123 )
0124 
0125 ## Additional settings for pp_run                                                                                                                                         
0126 SiPixelPhase1TrackClustersAnalyzer_pprun = SiPixelPhase1TrackClustersAnalyzer.clone(
0127     tracks = "initialStepTracksPreSplitting",
0128     clusterShapeCache = "siPixelClusterShapeCachePreSplitting",
0129     vertices = 'firstStepPrimaryVerticesPreSplitting',
0130     VertexCut = False
0131 )
0132 
0133 SiPixelPhase1TrackResidualsAnalyzer_pprun = SiPixelPhase1TrackResidualsAnalyzer.clone(
0134     Tracks = "initialStepTracksPreSplitting",
0135     trajectoryInput = "initialStepTracksPreSplitting",
0136     VertexCut = False
0137 )
0138 
0139 siPixelPhase1OnlineDQM_source_pprun = cms.Sequence(
0140    SiPixelPhase1DigisAnalyzer
0141  + SiPixelPhase1DeadFEDChannelsAnalyzer
0142  + SiPixelPhase1ClustersAnalyzer
0143  + SiPixelPhase1RawDataAnalyzer
0144  + SiPixelPhase1TrackClustersAnalyzer_pprun
0145  + SiPixelPhase1TrackResidualsAnalyzer_pprun
0146 )
0147 
0148 siPixelPhase1OnlineDQM_timing_harvesting = siPixelPhase1OnlineDQM_harvesting.copyAndExclude([
0149  RunQTests_online,
0150  SiPixelPhase1SummaryOnline,
0151 ])