Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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 StandardSpecifications1D_Num.append(
0033       Specification(OverlayCurvesForTiming).groupBy("DetId/Event") # per-layer with history for online
0034                                .reduce("COUNT")
0035                                .groupBy("PXBarrel/PXLayer/OnlineBlock") 
0036                                .groupBy("PXBarrel/PXLayer", "EXTEND_Y")
0037                                .save()
0038   )
0039 
0040 StandardSpecifications1D_Num.append(
0041       Specification(OverlayCurvesForTiming).groupBy("DetId/Event") # per-layer with history for online
0042                                .reduce("COUNT")
0043                                .groupBy("PXForward/PXDisk/OnlineBlock") 
0044                                .groupBy("PXForward/PXDisk", "EXTEND_Y")
0045                                .save()
0046   )
0047 
0048 #StandardSpecifications1D_Num.append(
0049 #      Specification(OverlayCurvesForTiming).groupBy("PXBarrel/OnlineBlock/PXLayer/Event") # per-layer with history for online
0050 #                     .reduce("COUNT")
0051 #                     .groupBy("PXBarrel/OnlineBlock") 
0052 #                     .groupBy("PXBarrel", "EXTEND_Y")
0053 #                     .save()
0054 #  )
0055 
0056 
0057 StandardSpecifications1D_Num.append(
0058 Specification(OverlayCurvesForTiming).groupBy("DetId/Event")
0059                      .reduce("COUNT")
0060                      .groupBy("PXBarrel/OnlineBlock")
0061                      .groupBy("PXBarrel", "EXTEND_Y")
0062                      .save()
0063 )
0064 
0065 
0066 StandardSpecifications1D_Num.append(
0067 Specification(OverlayCurvesForTiming).groupBy("DetId/Event")
0068                      .reduce("COUNT")
0069                      .groupBy("PXForward/OnlineBlock")
0070                      .groupBy("PXForward", "EXTEND_Y")
0071                      .save()
0072 )
0073 
0074 #StandardSpecifications1D_Num.append(
0075 #      Specification(OverlayCurvesForTiming).groupBy("PXForward/OnlineBlock/PXDisk/Event") # per-layer with history for online
0076 #                     .reduce("COUNT")
0077 #                     .groupBy("PXForward/OnlineBlock") 
0078 #                     .groupBy("PXForward", "EXTEND_Y")
0079 #                     .save()
0080 #  )
0081 #
0082   
0083 # To Configure Phase1 DQM for Phase0 data
0084 SiPixelPhase1Geometry.upgradePhase = 1
0085 SiPixelPhase1Geometry.onlineblock = 15
0086 # Turn on 'online' harvesting. This has to be set before other configs are 
0087 # loaded (due to how the DefaultHisto PSet is later cloned), therefore it is
0088 # here and not in the harvestng config.
0089 DefaultHisto.perLumiHarvesting = True
0090 DefaultHistoDigiCluster.perLumiHarvesting = True
0091 DefaultHistoSummary.perLumiHarvesting = True
0092 DefaultHistoTrack.perLumiHarvesting = True
0093 
0094 
0095 # Pixel Digi Monitoring
0096 from DQM.SiPixelPhase1Common.SiPixelPhase1Digis_cfi import *
0097 
0098 # Cluster (track-independent) monitoring
0099 from DQM.SiPixelPhase1Common.SiPixelPhase1Clusters_cfi import *
0100 
0101 # Track cluster 
0102 from DQM.SiPixelPhase1Track.SiPixelPhase1TrackClusters_cfi import *
0103 from DQM.SiPixelPhase1Track.SiPixelPhase1TrackResiduals_cfi import *
0104 
0105 
0106 # Raw data errors
0107 from DQM.SiPixelPhase1Common.SiPixelPhase1RawData_cfi import *
0108 
0109 from DQM.SiPixelPhase1Common.SiPixelPhase1GeometryDebug_cfi import *
0110 
0111 from DQM.SiPixelPhase1Track.SiPixelPhase1TrackEfficiency_cfi import *
0112 
0113 siPixelPhase1OnlineDQM_source = cms.Sequence(
0114    SiPixelPhase1DigisAnalyzer
0115  + SiPixelPhase1ClustersAnalyzer
0116  + SiPixelPhase1RawDataAnalyzer
0117  + SiPixelPhase1TrackClustersAnalyzer
0118  + SiPixelPhase1TrackResidualsAnalyzer
0119 )
0120 
0121 siPixelPhase1OnlineDQM_harvesting = cms.Sequence(
0122    SiPixelPhase1DigisHarvester 
0123  + SiPixelPhase1ClustersHarvester
0124  + SiPixelPhase1RawDataHarvester
0125  + SiPixelPhase1TrackClustersHarvester
0126  + SiPixelPhase1TrackResidualsHarvester
0127  + SiPixelPhase1TrackEfficiencyHarvester
0128 )
0129 
0130 ## Additional settings for cosmic runs 
0131 
0132 SiPixelPhase1TrackClustersAnalyzer_cosmics = SiPixelPhase1TrackClustersAnalyzer.clone(
0133     tracks = "ctfWithMaterialTracksP5", 
0134     VertexCut = False
0135 )
0136 
0137 SiPixelPhase1TrackResidualsAnalyzer_cosmics = SiPixelPhase1TrackResidualsAnalyzer.clone(
0138     Tracks = "ctfWithMaterialTracksP5",
0139     trajectoryInput = "ctfWithMaterialTracksP5",
0140     VertexCut = False
0141 )
0142 
0143 SiPixelPhase1TrackEfficiencyAnalyzer_cosmics=SiPixelPhase1TrackEfficiencyAnalyzer.clone(
0144     tracks = "ctfWithMaterialTracksP5"
0145 )
0146 
0147 siPixelPhase1OnlineDQM_source_cosmics = cms.Sequence(
0148    SiPixelPhase1DigisAnalyzer
0149  + SiPixelPhase1ClustersAnalyzer
0150  + SiPixelPhase1RawDataAnalyzer
0151  + SiPixelPhase1TrackClustersAnalyzer_cosmics
0152  + SiPixelPhase1TrackResidualsAnalyzer_cosmics
0153 )
0154 
0155 ## Additional settings for pp_run (Phase 0 test)
0156 SiPixelPhase1TrackClustersAnalyzer_pprun = SiPixelPhase1TrackClustersAnalyzer.clone(
0157     tracks  = "initialStepTracksPreSplitting",
0158     clusterShapeCache = "siPixelClusterShapeCachePreSplitting",
0159     vertices = 'firstStepPrimaryVerticesPreSplitting',
0160     VertexCut = False
0161 )
0162 
0163 SiPixelPhase1TrackResidualsAnalyzer_pprun = SiPixelPhase1TrackResidualsAnalyzer.clone(
0164     Tracks = "initialStepTracksPreSplitting",
0165     trajectoryInput = "initialStepTracksPreSplitting",
0166     VertexCut = False
0167 )
0168 
0169 SiPixelPhase1TrackEfficiencyAnalyzer_pprun = SiPixelPhase1TrackEfficiencyAnalyzer.clone(
0170     tracks = "initialStepTracksPreSplitting",
0171     VertexCut = False
0172 )
0173 
0174 siPixelPhase1OnlineDQM_source_pprun = cms.Sequence(
0175    SiPixelPhase1DigisAnalyzer
0176  + SiPixelPhase1ClustersAnalyzer
0177  + SiPixelPhase1RawDataAnalyzer
0178  + SiPixelPhase1TrackClustersAnalyzer_pprun
0179  + SiPixelPhase1TrackResidualsAnalyzer_pprun
0180  + SiPixelPhase1TrackEfficiencyAnalyzer_pprun
0181 )
0182