Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-15 23:34:16

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                                       siteLocalConfig = cms.untracked.bool(True),
0021                                       toGet = cms.VPSet(cms.PSet(
0022     record = cms.string('EcalChannelStatusRcd'),
0023     tag = cms.string('EcalChannelStatus_may2009_mc')
0024     )
0025                                                         ),
0026                                       
0027                                       messagelevel = cms.untracked.uint32(0),
0028                                       timetype = cms.string('runnumber'),
0029                                       connect = cms.string('frontier://FrontierProd/CMS_COND_31X_ECAL'), ##cms_conditions_data/CMS_COND_ECAL"
0030                                       
0031                                       authenticationMethod = cms.untracked.uint32(1)
0032                                       )
0033 
0034 # process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0035 # process.GlobalTag.globaltag = 'MC_31X_V6::All'
0036 
0037 #input_files.append( "/store/relval/2008/4/17/RelVal-RelValTTbar-1208465820/0000/0ABDA540-EE0C-DD11-BA9F-000423D94990.root" )
0038 input_files = vstring('/store/relval/CMSSW_3_1_2/RelValSingleGammaPt35/GEN-SIM-RECO/MC_31X_V3-v1/0007/123C78F5-9078-DE11-8BAD-001D09F23A61.root',
0039                       '/store/relval/CMSSW_3_1_2/RelValSingleGammaPt35/GEN-SIM-RECO/MC_31X_V3-v1/0006/E6C7ED95-4878-DE11-B082-000423D98BE8.root'
0040                       );
0041 
0042 
0043 process.source = Source("PoolSource",
0044     fileNames = untracked( input_files )
0045 )
0046 
0047 process.maxEvents = untracked.PSet( input = untracked.int32( 1000 ) )
0048 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0049 
0050 process.output = cms.OutputModule("PoolOutputModule",
0051                                   fileName = cms.untracked.string('filteredSC.root'),
0052                                   SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('p1')
0053                                   )
0054 )
0055 
0056 
0057 process.filterProbCluster = EDFilter("ProbClustersFilter",
0058                                      maxDistance = int32(100),
0059                                      maxGoodFraction = double(1.),
0060                                      reducedBarrelRecHitCollection = InputTag("reducedEcalRecHitsEB"),
0061                                      reducedEndcapRecHitCollection = InputTag("reducedEcalRecHitsEE"),
0062                                      barrelClusterCollection = InputTag("correctedHybridSuperClusters"),
0063                                      endcapClusterCollection = InputTag("correctedMulti5x5SuperClustersWithPreshower")
0064                                      
0065 )
0066 
0067 process.testEcalClusterSeverityAlgo = EDAnalyzer("testEcalClusterSeverityAlgo",
0068     reducedBarrelRecHitCollection = InputTag("reducedEcalRecHitsEB"),
0069     reducedEndcapRecHitCollection = InputTag("reducedEcalRecHitsEE"),
0070     barrelClusterCollection = InputTag("correctedHybridSuperClusters"),
0071     endcapClusterCollection = InputTag("correctedMulti5x5SuperClustersWithPreshower")
0072 )
0073 
0074 process.p1 = Path( process.filterProbCluster)
0075 process.e = cms.EndPath( process.output )
0076