CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/FastSimulation/EventProducer/python/FamosSimHits_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # Here so that python translator can see the names
00004 # Now beta function vertex smearing 
00005 #from FastSimulation.Event.Early10TeVCollisionVertexGenerator_cfi import *
00006 #from FastSimulation.Event.Realistic7TeV2011CollisionVertexGenerator_cfi import *
00007 from FastSimulation.Configuration.CommonInputs_cff import *
00008 if(fastsimPrimaryVertex=='Realistic8TeV'):
00009     from FastSimulation.Event.Realistic8TeVCollisionVertexGenerator_cfi import *
00010 else:
00011     from FastSimulation.Event.Realistic7TeV2011CollisionVertexGenerator_cfi import *
00012     
00013 
00014 from FastSimulation.Event.ParticleFilter_cfi import *
00015 from FastSimulation.MaterialEffects.MaterialEffects_cfi import *
00016 from FastSimulation.TrajectoryManager.ActivateDecays_cfi import *
00017 from FastSimulation.TrajectoryManager.TrackerSimHits_cfi import *
00018 from FastSimulation.Calorimetry.Calorimetry_cff import *
00019 
00020 MaterialEffectsForMuonsBlock.MaterialEffectsForMuons.use_hardcoded_geometry = True
00021 MaterialEffectsBlock.MaterialEffects.use_hardcoded_geometry = True
00022 
00023 
00024 famosSimHits = cms.EDProducer("FamosProducer",
00025     # FastCalorimetry
00026     FamosCalorimetryBlock,
00027     # Conditions to save Tracker SimHits 
00028     TrackerSimHitsBlock,
00029     # Material effects to be simulated in the tracker material and associated cuts
00030     MaterialEffectsBlock,
00031     # Material effects for muons in ECAL
00032     MaterialEffectsForMuonsInECALBlock,
00033     # Material effects for muons in HCAL
00034     MaterialEffectsForMuonsInHCALBlock,
00035     # (De)activate decays of unstable particles (K0S, etc...)
00036     ActivateDecaysBlock,
00037     # Kinematic cuts for the particle filter in the SimEvent
00038     ParticleFilterBlock,
00039     # The HepMCProduct source
00040     SourceLabel = cms.InputTag("generator"),
00041     # The genParticle source (in case there is no HepMCProduct)
00042     GenParticleLabel = cms.InputTag("genParticles"),
00043     # If false, no SimTrack collection for Muons is stored
00044     SimulateMuons = cms.bool(True),
00045     # The beam spot source
00046     BeamSpotLabel = cms.InputTag("offlineBeamSpot"),
00047     # Run Number
00048     RunNumber = cms.untracked.int32(1001),
00049     Verbosity = cms.untracked.int32(0),
00050     # If false, no misalignment can be applied in the tracker
00051     ApplyAlignment = cms.bool(False),
00052     # If false, no SimHits are simulated in the tracker
00053     # (but the tracker material is still here)
00054     SimulateTracking = cms.bool(True),
00055     # If false, no PCaloHits are produced
00056     SimulateCalorimetry = cms.bool(True),
00057     # If the following is false, no B field map is used, 
00058     # and B is set to 4 T altogether
00059     UseMagneticField = cms.bool(True),
00060     # The primary vertex smearing 
00061     VertexGenerator = cms.PSet(
00062         myVertexGenerator
00063     )
00064 )
00065 
00066