Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:08:27

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 from RecoTracker.PixelLowPtUtilities.ClusterShapeHitFilterESProducer_cfi import *
0028 from RecoLocalTracker.SiStripClusterizer.SiStripClusterChargeCut_cfi import *
0029 from DQM.SiPixelPhase1Track.SiPixelPhase1EfficiencyExtras_cfi import *
0030 
0031 PerModule.enabled = False
0032 IsOffline.enabled=True
0033 
0034 siPixelPhase1OfflineDQM_source = cms.Sequence(SiPixelPhase1RawDataAnalyzer
0035                                             + SiPixelPhase1DigisAnalyzer
0036                                             + SiPixelPhase1DeadFEDChannelsAnalyzer
0037                                             + SiPixelPhase1ClustersAnalyzer
0038                                             + SiPixelPhase1RecHitsAnalyzer
0039                                             + SiPixelPhase1TrackResidualsAnalyzer
0040                                             + SiPixelPhase1TrackClustersAnalyzer
0041                                             + SiPixelPhase1TrackEfficiencyAnalyzer
0042                                             )
0043 
0044 
0045 #Cosmics config
0046 
0047 siPixelPhase1OfflineDQM_source_cosmics = siPixelPhase1OfflineDQM_source.copyAndExclude([
0048     SiPixelPhase1TrackEfficiencyAnalyzer 
0049 ])
0050 
0051 SiPixelPhase1TrackResidualsAnalyzer_cosmics = SiPixelPhase1TrackResidualsAnalyzer.clone(
0052     Tracks = "ctfWithMaterialTracksP5",
0053     trajectoryInput = "ctfWithMaterialTracksP5",
0054     VertexCut = False # don't cuts based on the primary vertex position for cosmics
0055 )
0056 
0057 siPixelPhase1OfflineDQM_source_cosmics.replace(SiPixelPhase1TrackResidualsAnalyzer,
0058                                                SiPixelPhase1TrackResidualsAnalyzer_cosmics)
0059 
0060 SiPixelPhase1RecHitsAnalyzer_cosmics = SiPixelPhase1RecHitsAnalyzer.clone(
0061     onlyValidHits = True, # In Cosmics the efficiency plugin will not run, so we monitor only valid hits
0062     src = "ctfWithMaterialTracksP5",
0063     VertexCut = False
0064 )
0065 
0066 siPixelPhase1OfflineDQM_source_cosmics.replace(SiPixelPhase1RecHitsAnalyzer,
0067                                                SiPixelPhase1RecHitsAnalyzer_cosmics)
0068 
0069 SiPixelPhase1TrackClustersAnalyzer_cosmics = SiPixelPhase1TrackClustersAnalyzer.clone(
0070     tracks = "ctfWithMaterialTracksP5",
0071     VertexCut = False
0072 )
0073 
0074 siPixelPhase1OfflineDQM_source_cosmics.replace(SiPixelPhase1TrackClustersAnalyzer,
0075                                                SiPixelPhase1TrackClustersAnalyzer_cosmics)
0076 
0077 
0078 #heavy ions config
0079 
0080 siPixelPhase1OfflineDQM_source_hi = siPixelPhase1OfflineDQM_source.copy()
0081 
0082 SiPixelPhase1RecHitsAnalyzer_hi = SiPixelPhase1RecHitsAnalyzer.clone(
0083     src = "hiGeneralTracks"
0084 )
0085 
0086 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1RecHitsAnalyzer,
0087                                           SiPixelPhase1RecHitsAnalyzer_hi)
0088 
0089 SiPixelPhase1TrackResidualsAnalyzer_hi = SiPixelPhase1TrackResidualsAnalyzer.clone(
0090     Tracks = "hiGeneralTracks",
0091     trajectoryInput = "hiRefittedForPixelDQM",
0092     vertices = "hiSelectedVertex"
0093 )
0094 
0095 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1TrackResidualsAnalyzer,
0096                                           SiPixelPhase1TrackResidualsAnalyzer_hi)
0097 
0098 SiPixelPhase1TrackClustersAnalyzer_hi = SiPixelPhase1TrackClustersAnalyzer.clone(
0099     tracks = "hiGeneralTracks",
0100     vertices = "hiSelectedVertex"
0101 )
0102 
0103 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1TrackClustersAnalyzer,
0104                                                SiPixelPhase1TrackClustersAnalyzer_hi)
0105 
0106 SiPixelPhase1TrackEfficiencyAnalyzer_hi = SiPixelPhase1TrackEfficiencyAnalyzer.clone(
0107     tracks = "hiGeneralTracks",
0108     primaryvertices = "hiSelectedVertex"
0109 )
0110 
0111 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1TrackEfficiencyAnalyzer,
0112                                                SiPixelPhase1TrackEfficiencyAnalyzer_hi)