Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:28

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('TEST')
0004 process.add_( cms.Service("Timing"))
0005 process.load("PerfTools.Callgrind.callgrindSwitch_cfi")
0006 process.load('Configuration/StandardSequences/Services_cff')
0007 process.load('FWCore/MessageService/MessageLogger_cfi')
0008 process.MessageLogger = cms.Service("MessageLogger",
0009                                     debugModules = cms.untracked.vstring("HLTClusterizer"),
0010                                     destinations = cms.untracked.vstring('log.txt'))
0011 
0012 # Configuration which varies with source
0013 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
0014 process.load('Configuration/StandardSequences/MagneticField_38T_cff')
0015 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0016 process.GlobalTag.globaltag = 'MC_31X_V2::All'
0017 
0018 process.load('Configuration/StandardSequences/RawToDigi_cff')
0019 process.load('RecoLocalTracker/SiStripZeroSuppression/SiStripZeroSuppression_SimData_cfi')
0020 
0021 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(20))
0022 process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring(
0023     '/store/relval/CMSSW_3_1_1/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V2-v1/0002/EA8E5AF7-576B-DE11-BA98-001D09F24498.root'))
0024 
0025 
0026 # Configuration which varies depending on what to compare
0027 process.NewClusterizer = cms.EDProducer("SiStripClusterizer",
0028                                         Clusterizer = cms.PSet( Algorithm = cms.string("ThreeThresholdAlgorithm"),
0029                                                                 ChannelThreshold = cms.double(2),
0030                                                                 SeedThreshold    = cms.double(3),
0031                                                                 ClusterThreshold = cms.double(5),
0032                                                                 MaxSequentialHoles = cms.uint32(0),
0033                                                                 MaxSequentialBad   = cms.uint32(0),
0034                                                                 MaxAdjacentBad     = cms.uint32(1),
0035                                                                 ConditionsLabel = cms.string("")),
0036                                         DigiProducersList = cms.VInputTag( cms.InputTag('siStripDigis','ZeroSuppressed'),
0037                                                                            cms.InputTag('siStripZeroSuppression','VirginRaw'),
0038                                                                            cms.InputTag('siStripZeroSuppression','ProcessedRaw'),
0039                                                                            cms.InputTag('siStripZeroSuppression','ScopeMode')))
0040 process.NewStripByStrip = cms.EDProducer("StripByStripTestDriver",
0041                                          Algorithm = cms.string("ThreeThresholdAlgorithm"),
0042                                          ChannelThreshold = cms.double(2),
0043                                          SeedThreshold    = cms.double(3),
0044                                          ClusterThreshold = cms.double(5),
0045                                          MaxSequentialHoles = cms.uint32(0),
0046                                          MaxSequentialBad   = cms.uint32(0),
0047                                          MaxAdjacentBad     = cms.uint32(1),
0048                                          ConditionsLabel = cms.string(""),
0049                                          DigiProducer = cms.InputTag('siStripDigis','ZeroSuppressed'),
0050                                          HLT = cms.bool(False)
0051                                          )
0052 process.HLTStripByStrip = cms.EDProducer("StripByStripTestDriver",
0053                                          ClusterizerAlgorithm = cms.untracked.string('ThreeThreshold'),
0054                                          ChannelThreshold = cms.untracked.double(2.0),
0055                                          SeedThreshold = cms.untracked.double(3.0),
0056                                          MaxHolesInCluster = cms.untracked.uint32(0),
0057                                          ClusterThreshold = cms.untracked.double(5.0),
0058                                          DigiProducer = cms.InputTag('siStripDigis','ZeroSuppressed'),
0059                                          HLT = cms.bool(True)
0060                                          )
0061 process.CompareNewHLT = cms.EDAnalyzer("CompareClusters",
0062                                        Clusters1 = cms.InputTag('NewClusterizer',''),
0063                                        Clusters2 = cms.InputTag('HLTStripByStrip',''),
0064                                        Digis     = cms.InputTag('siStripDigis','ZeroSuppressed')
0065                                        )
0066 process.CompareNewNew = cms.EDAnalyzer("CompareClusters",
0067                                        Clusters1 = cms.InputTag('NewClusterizer',''),
0068                                        Clusters2 = cms.InputTag('NewStripByStrip',''),
0069                                        Digis     = cms.InputTag('siStripDigis','ZeroSuppressed')
0070                                        )
0071 
0072 process.p1 = cms.Path(   process.siStripDigis *
0073                          process.siStripZeroSuppression *
0074                          #process.profilerStart *
0075                          process.NewClusterizer *
0076                          process.HLTStripByStrip *
0077                          process.NewStripByStrip *
0078                          #process.profilerStop *
0079                          process.CompareOldHLT *
0080                          process.CompareNewNew
0081                          )