File indexing completed on 2025-04-17 02:42:26
0001 from FWCore.ParameterSet.Config import *
0002
0003 process = Process("test")
0004
0005 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0006
0007 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0008
0009 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
0010
0011 process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
0012
0013 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
0014
0015 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0016
0017 from CondCore.DBCommon.CondDBSetup_cfi import *
0018 process.ecalConditions = cms.ESSource("PoolDBESSource",
0019 CondDBSetup,
0020 toGet = cms.VPSet(cms.PSet(
0021 record = cms.string('EcalChannelStatusRcd'),
0022 tag = cms.string('EcalChannelStatus_may2009_mc')
0023 )
0024 ),
0025
0026 connect = cms.string('frontier://FrontierProd/CMS_COND_31X_ECAL'),
0027
0028 )
0029
0030
0031
0032
0033
0034 input_files = vstring('/store/relval/CMSSW_3_1_2/RelValSingleGammaPt35/GEN-SIM-RECO/MC_31X_V3-v1/0007/123C78F5-9078-DE11-8BAD-001D09F23A61.root',
0035 '/store/relval/CMSSW_3_1_2/RelValSingleGammaPt35/GEN-SIM-RECO/MC_31X_V3-v1/0006/E6C7ED95-4878-DE11-B082-000423D98BE8.root'
0036 );
0037
0038
0039 process.source = Source("PoolSource",
0040 fileNames = untracked( input_files )
0041 )
0042
0043 process.maxEvents = untracked.PSet( input = untracked.int32( 1000 ) )
0044 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0045
0046 process.output = cms.OutputModule("PoolOutputModule",
0047 fileName = cms.untracked.string('filteredSC.root'),
0048 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('p1')
0049 )
0050 )
0051
0052
0053 process.filterProbCluster = EDFilter("ProbClustersFilter",
0054 maxDistance = int32(100),
0055 maxGoodFraction = double(1.),
0056 reducedBarrelRecHitCollection = InputTag("reducedEcalRecHitsEB"),
0057 reducedEndcapRecHitCollection = InputTag("reducedEcalRecHitsEE"),
0058 barrelClusterCollection = InputTag("correctedHybridSuperClusters"),
0059 endcapClusterCollection = InputTag("correctedMulti5x5SuperClustersWithPreshower")
0060
0061 )
0062
0063 process.testEcalClusterSeverityAlgo = EDAnalyzer("testEcalClusterSeverityAlgo",
0064 reducedBarrelRecHitCollection = InputTag("reducedEcalRecHitsEB"),
0065 reducedEndcapRecHitCollection = InputTag("reducedEcalRecHitsEE"),
0066 barrelClusterCollection = InputTag("correctedHybridSuperClusters"),
0067 endcapClusterCollection = InputTag("correctedMulti5x5SuperClustersWithPreshower")
0068 )
0069
0070 process.p1 = Path( process.filterProbCluster)
0071 process.e = cms.EndPath( process.output )
0072