CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/SimCalorimetry/CastorSim/data/CastorDigiValidation.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("CastorTest")
00004 
00005 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
00006 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
00007 process.load("Configuration.StandardSequences.GeometryExtended_cff")
00008 process.load("Configuration.EventContent.EventContent_cff")
00009 
00010 process.load("SimG4Core.Application.g4SimHits_cfi")
00011 process.load("Configuration.StandardSequences.Generator_cff")
00012 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
00013 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
00014 
00015 process.load("SimCalorimetry.CastorSim.castordigi_cfi")
00016 
00017 process.load("RecoLocalCalo.CastorReco.CastorSimpleReconstructor_cfi")
00018 
00019 
00020 process.load("CondCore.DBCommon.CondDBSetup_cfi")
00021 process.load("CondCore.DBCommon.CondDBCommon_cfi")
00022 
00023 process.load('RecoLocalCalo.Castor.Castor_cff')
00024 process.castor_db_producer = cms.ESProducer("CastorDbProducer")
00025 
00026 process.MessageLogger = cms.Service("MessageLogger",
00027     destinations = cms.untracked.vstring('cout')
00028 )
00029 
00030 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
00031 
00032 process.RandomNumberGeneratorService.theSource.initialSeed = 15875319
00033 process.RandomNumberGeneratorService.generator.initialSeed = 9792301
00034 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 2263014
00035 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 124
00036 process.RandomNumberGeneratorService.mix.initialSeed = 22159
00037 process.RandomNumberGeneratorService.simCastorDigis.initialSeed = 210
00038 
00039 
00040 process.maxEvents = cms.untracked.PSet(
00041     input = cms.untracked.int32(10)
00042 )
00043 
00044 process.source = cms.Source("EmptySource")
00045 
00046 process.generator = cms.EDProducer("FlatRandomEGunProducer",
00047     PGunParameters = cms.PSet(
00048         PartID = cms.vint32(13),
00049         MinEta = cms.double(5.2),
00050         MaxEta = cms.double(6.6),
00051         MinPhi = cms.double(-3.14),
00052         MaxPhi = cms.double(3.14),
00053         MinE = cms.double(50.00),
00054         MaxE = cms.double(50.00)
00055     ),
00056     AddAntiParticle = cms.bool(True),
00057     Verbosity = cms.untracked.int32(0)
00058 )
00059 
00060 
00061 process.es_pool = cms.ESSource( "PoolDBESSource",
00062      process.CondDBSetup,
00063      timetype = cms.string('runnumber'),
00064 #   connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierPrep/CMS_COND_30X_HCAL'),
00065     connect = cms.string('sqlite_file:testExample.db'),
00066      authenticationMethod = cms.untracked.uint32(0),
00067      toGet = cms.VPSet(
00068          cms.PSet(
00069              record = cms.string('CastorPedestalsRcd'),
00070              tag = cms.string('castor_pedestals_v1.0_test')
00071              ),
00072          cms.PSet(
00073              record = cms.string('CastorPedestalWidthsRcd'),
00074              tag = cms.string('castor_widths_v1.0_test')
00075              ),
00076          cms.PSet(
00077              record = cms.string('CastorGainsRcd'),
00078              tag = cms.string('castor_gains_v1.0_test')
00079              ),
00080          cms.PSet(
00081              record = cms.string('CastorQIEDataRcd'),
00082              tag = cms.string('castor_qie_v1.0_test')
00083              ),
00084          cms.PSet(
00085              record = cms.string('CastorElectronicsMapRcd'),
00086              tag = cms.string('castor_emap_v1.0_test')
00087               ),
00088          cms.PSet(
00089              record = cms.string('CastorChannelQualityRcd'),
00090              tag = cms.string('castor_channelstatus_v1.0_test')
00091 
00092              )
00093              
00094      )
00095 )
00096 process.es_hardcode = cms.ESSource("CastorHardcodeCalibrations",
00097      toGet = cms.untracked.vstring('GainWidths')
00098  )
00099 
00100 process.common_maximum_timex = cms.PSet( # need to be localy redefined
00101    MaxTrackTime  = cms.double(500.0),  # need to be localy redefined
00102    MaxTimeNames  = cms.vstring(), # need to be localy redefined
00103    MaxTrackTimes = cms.vdouble()  # need to be localy redefined
00104 )
00105 
00106 
00107 
00108 process.CaloSD = cms.PSet(
00109     DetailedTiming = cms.bool(False),
00110     EminTrack = cms.double(1.0),
00111     Verbosity = cms.int32(0),
00112     UseMap = cms.bool(True),
00113     CheckHits = cms.int32(25)
00114 )
00115 
00116 
00117 
00118 
00119 
00120 process.o1 = cms.OutputModule("PoolOutputModule",
00121     fileName = cms.untracked.string('gen-sim-digi-reco_muon.root')
00122 )
00123 
00124 process.p1 = cms.Path(process.generator*process.pgen*process.VtxSmeared*process.g4SimHits*process.mix*process.simCastorDigis*process.castorreco)
00125 #*process.CastorFullReco)
00126 process.outpath=cms.EndPath(process.o1)
00127 
00128 process.g4SimHits.UseMagneticField = False
00129 process.g4SimHits.Physics.DefaultCutValue = 10. 
00130 
00131 process.g4SimHits.Generator.ApplyEtaCuts = False
00132 process.g4SimHits.UseMagneticField = False
00133 
00134 process.g4SimHits.CaloTrkProcessing.TestBeam = True
00135 
00136 process.g4SimHits.StackingAction = cms.PSet(
00137    process.common_heavy_suppression,
00138    process.common_maximum_timex,        # need to be localy redefined
00139    TrackNeutrino = cms.bool(False),
00140    KillHeavy     = cms.bool(False),
00141    SaveFirstLevelSecondary = cms.untracked.bool(True),
00142    SavePrimaryDecayProductsAndConversionsInTracker = cms.untracked.bool(True),
00143    SavePrimaryDecayProductsAndConversionsInCalo    = cms.untracked.bool(True),
00144    SavePrimaryDecayProductsAndConversionsInMuon    = cms.untracked.bool(True)
00145 )
00146 
00147 process.g4SimHits.SteppingAction = cms.PSet(
00148    process.common_maximum_timex, # need to be localy redefined
00149    KillBeamPipe            = cms.bool(True),
00150    CriticalEnergyForVacuum = cms.double(2.0),
00151    CriticalDensity         = cms.double(1e-15),
00152    EkinNames               = cms.vstring(),
00153    EkinThresholds          = cms.vdouble(),
00154    EkinParticles           = cms.vstring(),
00155    Verbosity               = cms.untracked.int32(0)
00156 )
00157 
00158 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
00159     type = cms.string('CastorTestAnalysis'),
00160     CastorTestAnalysis = cms.PSet(
00161         EventNtupleFileName = cms.string('eventNtuple_muon.root'),
00162         Verbosity = cms.int32(0),
00163         StepNtupleFileName = cms.string('stepNtuple_electron.root'),
00164         StepNtupleFlag = cms.int32(0),
00165         EventNtupleFlag = cms.int32(1)
00166     )
00167 ))
00168 
00169