Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:25:11

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process('CALIB')
0005 
0006 process.MessageLogger = cms.Service("MessageLogger",
0007                                     debugModules = cms.untracked.vstring("*"),
0008                                     log = cms.untracked.PSet(threshold = cms.untracked.string('INFO')),
0009                                     destinations = cms.untracked.vstring('log')
0010                                     )
0011 
0012 
0013 process.TFileService =  cms.Service( "TFileService",
0014                                      fileName = cms.string(""),
0015                                      closeFileFast = cms.untracked.bool(True)
0016                                      )
0017 
0018 process.source = cms.Source ( "PoolSource",
0019                               fileNames = cms.untracked.vstring(""),
0020                               secondaryFileNames = cms.untracked.vstring()
0021                               )
0022 
0023 
0024 #------------------------------------------
0025 # Load standard sequences.
0026 #------------------------------------------
0027 process.load('Configuration.EventContent.EventContent_cff')
0028 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0029 process.load('Configuration.StandardSequences.MagneticField_cff')
0030 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0031 
0032 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0033 process.load("Configuration.StandardSequences.Reconstruction_cff")
0034 
0035 #------------------------------------------
0036 # Load ClusterToDigiProducer
0037 #------------------------------------------
0038 
0039 process.load('RecoLocalTracker.SiStripClusterizer.SiStripClusterToDigiProducer_cfi')
0040 
0041 process.siStripClustersNew = process.siStripClusters.clone()
0042 for inTag in process.siStripClustersNew.DigiProducersList:
0043     inTag.moduleLabel = "siStripClustersToDigis"
0044 
0045 process.siStripClusters.Clusterizer.RemoveApvShots    = cms.bool(False)
0046 process.siStripClustersNew.Clusterizer.RemoveApvShots = cms.bool(True)
0047 
0048 #------------------------------------------
0049 # Load DQM 
0050 #------------------------------------------
0051 
0052 process.load("DQM.SiStripCommon.TkHistoMap_cff")
0053 
0054 process.load("DQM.SiStripMonitorCluster.SiStripMonitorCluster_cfi")
0055 
0056 process.SiStripMonitorClusterNew = process.SiStripMonitorCluster.clone()
0057 process.SiStripMonitorClusterNew.TopFolderName = "ClusterToDigi"
0058 process.SiStripMonitorClusterNew.ClusterProducerStrip = 'siStripClustersNew'
0059 
0060 print(process.SiStripMonitorClusterNew.ClusterProducerStrip)
0061 print(process.SiStripMonitorCluster.ClusterProducerStrip)
0062 
0063 process.SiStripMonitorCluster.TH1ClusterWidth.Nbinx          = cms.int32(129)
0064 process.SiStripMonitorCluster.TH1ClusterWidth.xmax           = cms.double(128.5)
0065 process.SiStripMonitorCluster.TH1ClusterDigiPos.moduleswitchon= cms.bool(True)
0066 
0067 
0068 process.SiStripMonitorClusterNew.TH1ClusterWidth.Nbinx          = cms.int32(129)
0069 process.SiStripMonitorClusterNew.TH1ClusterWidth.xmax           = cms.double(128.5)
0070 process.SiStripMonitorClusterNew.TH1ClusterDigiPos.moduleswitchon= cms.bool(True)
0071 #------------------------------------------
0072 # Load apvshotanalyzer
0073 #------------------------------------------
0074 process.load("DPGAnalysis.SiStripTools.eventwithhistoryproducerfroml1abc_cfi")
0075 process.load("DPGAnalysis.SiStripTools.apvshotsanalyzer_cfi")
0076 process.apvshotsanalyzer.digiCollection.moduleLabel = "siStripClustersToDigis" 
0077 
0078 #------------------------------------------
0079 # Paths
0080 #------------------------------------------
0081 
0082 
0083 process.skimming = cms.EDFilter("FilterOutScraping",
0084                                 applyfilter = cms.untracked.bool(True),
0085                                 debugOn = cms.untracked.bool(True),
0086                                 numtrack = cms.untracked.uint32(10),
0087                                 thresh = cms.untracked.double(0.2)
0088                                 )
0089 
0090 process.outpath = cms.EndPath(process.skimming+
0091                               process.consecutiveHEs+
0092                               process.siStripDigis+
0093                               process.siStripZeroSuppression+
0094                               process.siStripClusters+
0095                               process.SiStripMonitorCluster+
0096                               process.siStripClustersToDigis+
0097                               process.siStripClustersNew+
0098                               process.SiStripMonitorClusterNew+
0099                               process.apvshotsanalyzer
0100                               ) 
0101 
0102 
0103 #---------------------------------------------------------
0104 # Run Dependent Configuration
0105 #---------------------------------------------------------
0106 
0107 #process.GlobalTag.globaltag = 'GR09_R_34X_V3::All'
0108 process.GlobalTag.globaltag = 'GR_R_44_V14::All'
0109 
0110 process.TFileService.fileName = cms.string("apvShotsAnalysis.root")
0111 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(500) )
0112 
0113 process.source.fileNames = cms.untracked.vstring(
0114 "/store/data/Run2011B/MinimumBias/RAW-RECO/ValSkim-PromptSkim-v1/0000/00A7606D-22F9-E011-8437-001A92971BDC.root"
0115 )