Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /Validation/CaloTowers/test/CaloScan/template.py_since760pre6_forGEN_760pre6 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.HcalSimHitsAnalyser = cms.EDAnalyzer("HcalSimHitsValidation",
0046     outputFile = cms.untracked.string('HcalSimHitsValidation.root')
0047 )   
0048 
0049 process.hcalDigiAnalyzer = cms.EDAnalyzer("HcalDigisValidation",
0050     outputFile                = cms.untracked.string('HcalDigisValidationRelVal.root'),
0051     digiLabel                 = cms.InputTag("hcalDigis"),
0052     zside                     = cms.untracked.string('*'),
0053     mode                      = cms.untracked.string('multi'),
0054 
0055     hcalselector              = cms.untracked.string('all'),
0056     mc                        = cms.untracked.string('yes') # 'yes' for MC
0057 )   
0058 
0059 process.hcalRecoAnalyzer = cms.EDAnalyzer("HcalRecHitsValidation",
0060     outputFile                = cms.untracked.string('HcalRecHitValidationRelVal.root'),
0061     HBHERecHitCollectionLabel = cms.untracked.InputTag("hbhereco"),
0062     HFRecHitCollectionLabel   = cms.untracked.InputTag("hfreco"),
0063     HORecHitCollectionLabel   = cms.untracked.InputTag("horeco"),
0064     eventype                  = cms.untracked.string('single'),
0065     ecalselector              = cms.untracked.string('yes'),
0066     hcalselector              = cms.untracked.string('all'),
0067     mc                        = cms.untracked.string('yes')  # default !
0068 )
0069 
0070 process.hcalTowerAnalyzer = cms.EDAnalyzer("CaloTowersValidation",
0071     outputFile               = cms.untracked.string('CaloTowersValidationRelVal.root'),
0072     CaloTowerCollectionLabel = cms.untracked.InputTag('towerMaker'),
0073     hcalselector             = cms.untracked.string('all'),
0074     mc                       = cms.untracked.string('yes')  # default!
0075 )
0076 
0077 #--- replace hbhereco with hbheprereco
0078 delattr(process,"hbhereco")
0079 process.hbhereco = process.hbheprereco.clone()
0080 process.hcalLocalRecoSequence = cms.Sequence(process.hbhereco+process.hfreco+process.horeco)
0081 
0082 
0083 #--- post-LS1 customization 
0084 process.mix.digitizers.hcal.minFCToDelay=cms.double(5.) # new TS model
0085 process.mix.digitizers.hcal.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
0086 process.mix.digitizers.hcal.ho.siPMCode = cms.int32(1)
0087 process.mix.digitizers.hcal.ho.pixels = cms.int32(2500)
0088 process.mix.digitizers.hcal.ho.doSiPMSmearing = cms.bool(False)
0089 process.mix.digitizers.hcal.hf1.samplingFactor = cms.double(0.67)
0090 process.mix.digitizers.hcal.hf2.samplingFactor = cms.double(0.67)
0091 process.g4SimHits.HFShowerLibrary.FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root'
0092 
0093 
0094 
0095 #---------- PATH
0096 process.g4SimHits.Generator.HepMCProductLabel = 'VtxSmeared'
0097 process.generatorSmeared = cms.EDProducer("GeneratorSmearedProducer")
0098 
0099 process.p = cms.Path(
0100  process.VtxSmeared *
0101  process.generatorSmeared *
0102  process.g4SimHits *
0103  process.mix *
0104  process.ecalDigiSequence * 
0105  process.hcalDigiSequence *
0106  process.addPileupInfo *
0107  process.bunchSpacingProducer *
0108  process.ecalPacker *
0109  process.esDigiToRaw *
0110  process.hcalRawData *
0111  process.rawDataCollector *
0112  process.ecalDigis *
0113  process.ecalPreshowerDigis *
0114  process.hcalDigis *
0115  process.calolocalreco *
0116  process.caloTowersRec *
0117  process.hcalnoise *
0118  process.HcalSimHitsAnalyser *
0119  process.hcalDigiAnalyzer *
0120  process.hcalTowerAnalyzer *
0121  process.hcalRecoAnalyzer *
0122  process.MEtoEDMConverter
0123 )
0124 
0125 process.outpath = cms.EndPath(process.FEVT)
0126