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 # Raw data
0004 from DQM.SiPixelPhase1Common.SiPixelPhase1RawData_cfi import *
0005 # Pixel Digi Monitoring
0006 from DQM.SiPixelPhase1Common.SiPixelPhase1Digis_cfi import *
0007 from DQM.SiPixelPhase1Common.SiPixelPhase1DeadFEDChannels_cfi import *
0008 # Cluster (track-independent) monitoring
0009 from DQM.SiPixelPhase1Common.SiPixelPhase1Clusters_cfi import *
0010 # RecHit (clusters)
0011 from DQM.SiPixelPhase1Track.SiPixelPhase1RecHits_cfi import *
0012 # Residuals
0013 from DQM.SiPixelPhase1Track.SiPixelPhase1TrackResiduals_cfi import *
0014 from DQM.SiPixelPhase1Track.SiPixelPhase1ResidualsExtra_cfi import *
0015 # Clusters ontrack/offtrack (also general tracks)
0016 from DQM.SiPixelPhase1Track.SiPixelPhase1TrackClusters_cfi import *
0017 # Hit Efficiencies
0018 from DQM.SiPixelPhase1Track.SiPixelPhase1TrackEfficiency_cfi import *
0019 # FED/RAW Data
0020 from DQM.SiPixelPhase1Common.SiPixelPhase1RawData_cfi import *
0021 #Summary maps
0022 from DQM.SiPixelPhase1Summary.SiPixelPhase1Summary_cfi import *
0023 #Barycenter plots
0024 from DQM.SiPixelPhase1Summary.SiPixelBarycenter_cfi import *
0025 
0026 
0027 
0028 from RecoPixelVertexing.PixelLowPtUtilities.ClusterShapeHitFilterESProducer_cfi import *
0029 from RecoLocalTracker.SiStripClusterizer.SiStripClusterChargeCut_cfi import *
0030 from DQM.SiPixelPhase1Track.SiPixelPhase1EfficiencyExtras_cfi import *
0031 
0032 PerModule.enabled = False
0033 IsOffline.enabled=True
0034 
0035 siPixelPhase1OfflineDQM_source = cms.Sequence(SiPixelPhase1RawDataAnalyzer
0036                                             + SiPixelPhase1DigisAnalyzer
0037                                             + SiPixelPhase1DeadFEDChannelsAnalyzer
0038                                             + SiPixelPhase1ClustersAnalyzer
0039                                             + SiPixelPhase1RecHitsAnalyzer
0040                                             + SiPixelPhase1TrackResidualsAnalyzer
0041                                             + SiPixelPhase1TrackClustersAnalyzer
0042                                             + SiPixelPhase1TrackEfficiencyAnalyzer
0043                                             )
0044 
0045 
0046 #Cosmics config
0047 
0048 siPixelPhase1OfflineDQM_source_cosmics = siPixelPhase1OfflineDQM_source.copyAndExclude([
0049     SiPixelPhase1TrackEfficiencyAnalyzer 
0050 ])
0051 
0052 SiPixelPhase1TrackResidualsAnalyzer_cosmics = SiPixelPhase1TrackResidualsAnalyzer.clone(
0053     Tracks = "ctfWithMaterialTracksP5",
0054     trajectoryInput = "ctfWithMaterialTracksP5",
0055     VertexCut = False # don't cuts based on the primary vertex position for cosmics
0056 )
0057 
0058 siPixelPhase1OfflineDQM_source_cosmics.replace(SiPixelPhase1TrackResidualsAnalyzer,
0059                                                SiPixelPhase1TrackResidualsAnalyzer_cosmics)
0060 
0061 SiPixelPhase1RecHitsAnalyzer_cosmics = SiPixelPhase1RecHitsAnalyzer.clone(
0062     onlyValidHits = True, # In Cosmics the efficiency plugin will not run, so we monitor only valid hits
0063     src = "ctfWithMaterialTracksP5",
0064     VertexCut = False
0065 )
0066 
0067 siPixelPhase1OfflineDQM_source_cosmics.replace(SiPixelPhase1RecHitsAnalyzer,
0068                                                SiPixelPhase1RecHitsAnalyzer_cosmics)
0069 
0070 SiPixelPhase1TrackClustersAnalyzer_cosmics = SiPixelPhase1TrackClustersAnalyzer.clone(
0071     tracks = "ctfWithMaterialTracksP5",
0072     VertexCut = False
0073 )
0074 
0075 siPixelPhase1OfflineDQM_source_cosmics.replace(SiPixelPhase1TrackClustersAnalyzer,
0076                                                SiPixelPhase1TrackClustersAnalyzer_cosmics)
0077 
0078 
0079 #heavy ions config
0080 
0081 siPixelPhase1OfflineDQM_source_hi = siPixelPhase1OfflineDQM_source.copy()
0082 
0083 SiPixelPhase1RecHitsAnalyzer_hi = SiPixelPhase1RecHitsAnalyzer.clone(
0084     src = "hiGeneralTracks"
0085 )
0086 
0087 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1RecHitsAnalyzer,
0088                                           SiPixelPhase1RecHitsAnalyzer_hi)
0089 
0090 SiPixelPhase1TrackResidualsAnalyzer_hi = SiPixelPhase1TrackResidualsAnalyzer.clone(
0091     Tracks = "hiGeneralTracks",
0092     trajectoryInput = "hiRefittedForPixelDQM",
0093     vertices = "hiSelectedVertex"
0094 )
0095 
0096 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1TrackResidualsAnalyzer,
0097                                           SiPixelPhase1TrackResidualsAnalyzer_hi)
0098 
0099 SiPixelPhase1TrackClustersAnalyzer_hi = SiPixelPhase1TrackClustersAnalyzer.clone(
0100     tracks = "hiGeneralTracks",
0101     vertices = "hiSelectedVertex"
0102 )
0103 
0104 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1TrackClustersAnalyzer,
0105                                                SiPixelPhase1TrackClustersAnalyzer_hi)
0106 
0107 SiPixelPhase1TrackEfficiencyAnalyzer_hi = SiPixelPhase1TrackEfficiencyAnalyzer.clone(
0108     tracks = "hiGeneralTracks",
0109     primaryvertices = "hiSelectedVertex"
0110 )
0111 
0112 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1TrackEfficiencyAnalyzer,
0113                                                SiPixelPhase1TrackEfficiencyAnalyzer_hi)