Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:32:30

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("ValidationSimDigiChain")
0004 #
0005 # Master configuration for the magnetic field
0006 process.load('MagneticField.Engine.uniformMagneticField_cfi')
0007 
0008 # Geometry master configuration
0009 #
0010 process.load('Geometry.EcalTestBeam.TBH4GeometryXML_cfi')
0011 process.load('Geometry.CaloEventSetup.CaloGeometry_cfi')
0012 
0013 process.load("Configuration.StandardSequences.Services_cff")
0014 
0015 process.load("CalibCalorimetry.Configuration.Ecal_FakeConditions_cff")
0016 
0017 process.load("FWCore.MessageService.MessageLogger_cfi")
0018 
0019 process.load("Configuration.EventContent.EventContent_cff")
0020 
0021 # re-create the CrossingFrame
0022 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
0023 
0024 # ECAL validation sequences
0025 #
0026 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0027 
0028 # DQM services
0029 process.load("DQMServices.Core.DQM_cfg")
0030 process.DQM.collectorHost = ''
0031 
0032 process.load("Validation.EcalHits.ecalSimHitsValidationSequence_cff")
0033 process.load("Validation.EcalDigis.ecalDigisValidationSequence_cff")
0034 process.ecalDigisValidation.EBdigiCollection = cms.InputTag('simEcalUnsuppressedDigis')
0035 process.ecalBarrelDigisValidation.EBdigiCollection = cms.InputTag('simEcalUnsuppressedDigis')
0036 process.load("Validation.EcalRecHits.ecalRecHitsValidationSequence_cff")
0037 process.ecalRecHitsValidation.EBuncalibrechitCollection = cms.InputTag('ecalTBSimWeightUncalibRecHit:EcalUncalibRecHitsEB')
0038 process.ecalRecHitsValidation.EBrechitCollection = cms.InputTag('ecalTBSimRecHit:EcalRecHitsEB')
0039 process.ecalBarrelRecHitsValidation.EBuncalibrechitCollection = cms.InputTag('ecalTBSimWeightUncalibRecHit:EcalUncalibRecHitsEB')
0040 process.ecalBarrelRecHitsValidation.EBdigiCollection = cms.InputTag('simEcalUnsuppressedDigis')
0041 
0042 process.ecalTBValidation = cms.EDProducer("EcalTBValidation",
0043                                           digiCollection = cms.string(''),
0044                                           digiProducer = cms.string('simEcalUnsuppressedDigis'),
0045                                           hitCollection = cms.string('EcalUncalibRecHitsEB'),
0046                                           hitProducer = cms.string('ecalTBSimWeightUncalibRecHit'),
0047                                           hodoRecInfoCollection = cms.string('EcalTBHodoscopeRecInfo'),
0048                                           hodoRecInfoProducer = cms.string('ecalTBSimHodoscopeReconstructor'),
0049                                           tdcRecInfoCollection = cms.string('EcalTBTDCRecInfo'),
0050                                           tdcRecInfoProducer = cms.string('ecalTBSimTDCReconstructor'),
0051                                           eventHeaderCollection = cms.string(''),
0052                                           eventHeaderProducer = cms.string('SimEcalEventHeader'),
0053                                           data = cms.untracked.int32(1),
0054                                           xtalInBeam = cms.untracked.int32(248),
0055                                           rootfile = cms.untracked.string('EcalTBValidation.root'),
0056                                           verbose = cms.untracked.bool(True)
0057 )                                          
0058 
0059 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0060 
0061 process.ecalSimValid  = cms.Sequence( process.ecalSimHitsValidationSequence + process.ecalDigisValidationSequence + process.ecalRecHitsValidationSequence + process.ecalTBValidation + process.MEtoEDMConverter )   
0062 
0063 process.maxEvents = cms.untracked.PSet(
0064     input = cms.untracked.int32(-1)
0065 )
0066 process.source = cms.Source("PoolSource",
0067     fileNames = cms.untracked.vstring('file:H4TB_50GeV_default_QGSP_BERT_EMV.root')
0068 )
0069 
0070 process.FEVT = cms.OutputModule("PoolOutputModule",
0071     process.FEVTDEBUGEventContent,
0072     outputCommands = cms.untracked.vstring('keep *_MEtoEDMConverter_*_*'),
0073     fileName = cms.untracked.string('EcalTBH4Validation.root')
0074 )
0075 
0076 process.p0 = cms.Path(process.mix)
0077 process.p2 = cms.Path(process.ecalSimValid)
0078 process.outpath = cms.EndPath(process.FEVT)
0079 process.schedule = cms.Schedule(process.p0,process.p2,process.outpath)
0080 
0081 process.mix.playback = True
0082 
0083 # drop the plain root file outputs of all analyzers
0084 # Note: all the validation "analyzers" are EDFilters!
0085 for filter in (getattr(process,f) for f in process.filters_()):
0086     if hasattr(filter,"outputFile"):
0087         filter.outputFile=""
0088         #Catch the problem with valid_HB.root that uses OutputFile instead of outputFile
0089         if hasattr(filter,"OutputFile"):
0090             filter.OutputFile=""
0091