Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /Validation/CaloTowers/test/CaloScan/template.py_run2 is written in an unsupported language. File is not indexed.

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 ### RANDOM setting (change last digit(s) to make runs different !)
0006 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0007 
0008 process.load("Configuration.StandardSequences.Simulation_cff")
0009 process.load("Configuration.StandardSequences.Reconstruction_cff")
0010 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
0011 process.load('Configuration/StandardSequences/DigiToRaw_cff')
0012 process.load('Configuration/StandardSequences/RawToDigi_cff')
0013 
0014 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0015 from Configuration.AlCa.autoCond import autoCond
0016 process.GlobalTag.globaltag = autoCond['run2_mc']
0017 
0018 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0019 process.load("Configuration.StandardSequences.GeometryDB_cff")
0020 process.load("Configuration.StandardSequences.MagneticField_cff")
0021 process.g4SimHits.UseMagneticField = False
0022 
0023 process.load("DQMServices.Core.DQMStore_cfi")
0024 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(2000) 
0028 )
0029 # Input source
0030 process.source = cms.Source("PoolSource",
0031     firstEvent = cms.untracked.uint32(XXXXX), 
0032     fileNames = cms.untracked.vstring('file:mc.root') 
0033 ) 
0034 
0035 process.FEVT = cms.OutputModule("PoolOutputModule",
0036      outputCommands = cms.untracked.vstring('drop *', 'keep *_MEtoEDMConverter_*_*'),
0037      splitLevel = cms.untracked.int32(0),
0038      fileName = cms.untracked.string("output.root")
0039 )
0040 
0041 process.VtxSmeared.SigmaX = 0.00001
0042 process.VtxSmeared.SigmaY = 0.00001
0043 process.VtxSmeared.SigmaZ = 0.00001
0044 
0045 process.load("Validation.HcalHits.HcalSimHitsValidation_cfi")
0046 process.HcalSimHitsAnalyser.outputFile = cms.untracked.string('HcalSimHitsValidation.root')
0047 
0048 process.load("Validation.HcalDigis.HcalDigisParam_cfi")
0049 process.hcaldigisAnalyzer.outputFile = cms.untracked.string('HcalDigisValidationRelVal.root')
0050 
0051 process.load("Validation.HcalRecHits.HcalRecHitParam_cfi")
0052 
0053 process.load("Validation.CaloTowers.CaloTowersParam_cfi")
0054 process.calotowersAnalyzer.outputFile = cms.untracked.string('CaloTowersValidationRelVal.root')
0055 
0056 #--- replace hbhereco with hbheprereco
0057 delattr(process,"hbhereco")
0058 process.hbhereco = process.hbheprereco.clone()
0059 process.hcalLocalRecoSequence = cms.Sequence(process.hbhereco+process.hfreco+process.horeco)
0060 
0061 #--- post-LS1 customization 
0062 process.mix.digitizers.hcal.minFCToDelay=cms.double(5.) # new TS model
0063 process.mix.digitizers.hcal.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
0064 process.mix.digitizers.hcal.ho.siPMCode = cms.int32(1)
0065 process.mix.digitizers.hcal.ho.pixels = cms.int32(2500)
0066 process.mix.digitizers.hcal.ho.doSiPMSmearing = cms.bool(False)
0067 process.mix.digitizers.hcal.hf1.samplingFactor = cms.double(0.67)
0068 process.mix.digitizers.hcal.hf2.samplingFactor = cms.double(0.67)
0069 process.g4SimHits.HFShowerLibrary.FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root'
0070 
0071 #---------- PATH
0072 # -- NB: for vertex smearing the Label should be: "unsmeared" 
0073 # for GEN produced since 760pre6, for older GEN - just "": 
0074 process.VtxSmeared.src = cms.InputTag("generator", "") 
0075 process.generatorSmeared = cms.EDProducer("GeneratorSmearedProducer")
0076 process.g4SimHits.Generator.HepMCProductLabel = 'VtxSmeared' 
0077 
0078 process.p = cms.Path(
0079  process.VtxSmeared *
0080  process.generatorSmeared *
0081  process.g4SimHits *
0082  process.mix *
0083  process.ecalDigiSequence * 
0084  process.hcalDigiSequence *
0085  process.addPileupInfo *
0086  process.bunchSpacingProducer *
0087  process.ecalPacker *
0088  process.esDigiToRaw *
0089  process.hcalRawData *
0090  process.rawDataCollector *
0091  process.ecalDigis *
0092  process.ecalPreshowerDigis *
0093  process.hcalDigis *
0094  process.calolocalreco *
0095  process.caloTowersRec *
0096  process.hcalnoise *
0097  process.HcalSimHitsAnalyser *
0098  process.hcaldigisAnalyzer *
0099  process.calotowersAnalyzer *
0100  process.hcalRecoAnalyzer *
0101  process.MEtoEDMConverter
0102 )
0103 
0104 process.outpath = cms.EndPath(process.FEVT)
0105