Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:17

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("eg")
0004 
0005 # The number of events to be processed.
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(==TOTEV==)
0008 )
0009 
0010 # Include the RandomNumberGeneratorService definition
0011 process.load("IOMC.RandomEngine.IOMC_cff")
0012 
0013 # Histograms
0014 process.load("DQMServices.Core.DQM_cfg")
0015 
0016 # Input files
0017 process.source = cms.Source(
0018     "PoolSource",
0019     debugFlag = cms.untracked.bool(True),
0020     debugVebosity = cms.untracked.uint32(10),
0021     #  
0022     # Pion 15 GeV
0023     fileNames = cms.untracked.vstring(
0024         'file:==INPUTFILE==_0.root', 
0025         'file:==INPUTFILE==_1.root', 
0026         'file:==INPUTFILE==_2.root', 
0027         'file:==INPUTFILE==_3.root', 
0028         'file:==INPUTFILE==_4.root'
0029     )
0030 )
0031 
0032 process.testNU = cms.EDFilter(
0033     "testNuclearInteractions",
0034     TestParticleFilter = cms.PSet(
0035         # Particles with |eta| > etaMax (momentum direction at primary vertex) 
0036         # are not simulated 
0037         etaMax = cms.double(5.0),
0038         # Charged particles with pT < pTMin (GeV/c) are not simulated
0039         pTMin = cms.double(0.0),
0040         # Particles with energy smaller than EMin (GeV) are not simulated
0041         EMin = cms.double(0.0),
0042         # Protons with energy in excess of this value (GeV) will kept no matter what
0043         EProton = cms.double(99999.0)
0044     ),
0045     SaveNuclearInteractions = cms.bool(True),
0046     MaxNumberOfNuclearInteractions = cms.uint32(==MAXNU==),
0047     NUEventFile = cms.untracked.string('==NUFILE=='),
0048     OutputFile = cms.untracked.string('==ROOTFILE==')
0049 )
0050 
0051 # Famos SimHits 
0052 process.load("FastSimulation.Configuration.CommonInputsFake_cff")
0053 process.load("FastSimulation.Configuration.FamosSequences_cff")
0054 process.load("Configuration.StandardSequences.MagneticField_40T_cff")
0055 #process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0056 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
0057 process.famosSimHits.SimulateCalorimetry = False
0058 process.famosSimHits.SimulateTracking = False
0059 
0060 # Path to run what is needed
0061 process.p = cms.Path(
0062     process.offlineBeamSpot+
0063     process.famosPileUp+
0064     process.famosSimHits+
0065     process.testNU
0066 )
0067 
0068 
0069 # Keep the logging output to a nice level #
0070 process.load("FWCore.MessageService.MessageLogger_cfi")
0071 process.MessageLogger.cerr.enable = False
0072 process.MessageLogger.files.detailedInfo = dict(extension = 'txt')
0073