Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:33:38

0001 
0002 import sys
0003 import os
0004 
0005 import electronDbsDiscovery
0006 
0007 import FWCore.ParameterSet.Config as cms
0008 
0009 from TrackingTools.Configuration.TrackingTools_cff import *
0010 
0011 process = cms.Process("electrons")
0012 
0013 process.load("Configuration.StandardSequences.Services_cff")
0014 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0015 process.load("Configuration.StandardSequences.MagneticField_cff")
0016 process.load("FWCore.MessageService.MessageLogger_cfi")
0017 
0018 process.load("Configuration.StandardSequences.RawToDigi_cff")
0019 process.load("Configuration.StandardSequences.Reconstruction_cff")
0020 
0021 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0022 process.load("Configuration.EventContent.EventContent_cff")
0023 
0024 process.source = cms.Source ("PoolSource",
0025     fileNames = cms.untracked.vstring(),
0026     secondaryFileNames = cms.untracked.vstring(),
0027 )
0028 
0029 process.source.fileNames.extend(electronDbsDiscovery.search())
0030 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
0031 
0032 process.out = cms.OutputModule("PoolOutputModule",
0033     outputCommands = cms.untracked.vstring('drop *', 
0034         'keep recoBeamSpot*_*_*_*',
0035         'keep recoGenParticle*_*_*_*',
0036         'keep *HepMCProduct_*_*_*',
0037         'keep recoElectronSeed*_*_*_*', 
0038         'keep recoSuperCluster*_*_*_*', 
0039         'keep recoTrack*_*_*_*', 
0040         'keep recoGsfTrack*_*_*_*', 
0041         'keep *_iterativeCone5CaloJets_*_*', 
0042         'keep *_iterativeCone5GenJets_*_*', 
0043         'keep *_gsfElectronCores_*_*', 
0044         'keep *_gsfElectrons_*_*'
0045     ),
0046     fileName = cms.untracked.string(os.environ['TEST_HISTOS_FILE'])
0047 )
0048 
0049 process.p = cms.Path(process.gsfElectrons)
0050 process.outpath = cms.EndPath(process.out)
0051 process.out.fileName = cms.untracked.string(os.environ['TEST_HISTOS_FILE'])
0052 process.GlobalTag.globaltag = os.environ['TEST_GLOBAL_TAG']+'::All'
0053 
0054 
0055