CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
example_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 process = cms.Process("EXAMPLE")
3 
4 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) )
5 
6 process.load("Configuration.Generator.PythiaUESettings_cfi")
7 
8 # the following lines are required by hit tracking
9 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
10 process.load("Configuration.StandardSequences.Geometry_cff")
11 process.load("Configuration.StandardSequences.MagneticField_cff")
12 process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
13 process.load("Configuration.StandardSequences.Reconstruction_cff")
14 process.GlobalTag.globaltag = 'MC_31X_V5::All'
15 
16 
17 TauolaDefaultInputCards = cms.PSet(
18  InputCards = cms.vstring('TAUOLA = 0 0 102 ! TAUOLA ') # 114=l+jet, 102=only muons
19 )
20 TauolaNoPolar = cms.PSet(
21  UseTauolaPolarization = cms.bool(False)
22 )
23 TauolaPolar = cms.PSet(
24  UseTauolaPolarization = cms.bool(True)
25 )
26 
27 process.load("TauAnalysis.MCEmbeddingTools.MCParticleReplacer_cfi")
28 process.newSource.algorithm = "Ztautau"
29 process.newSource.verbose = True
30 
31 process.selectMuons = cms.EDProducer('SelectParticles',
32  TrackAssociatorParameters = cms.PSet(
33  muonMaxDistanceSigmaX = cms.double(0.0),
34  muonMaxDistanceSigmaY = cms.double(0.0),
35  CSCSegmentCollectionLabel = cms.InputTag("cscSegments"),
36  dRHcal = cms.double(9999.0),
37  dREcal = cms.double(9999.0),
38  CaloTowerCollectionLabel = cms.InputTag("towerMaker"),
39  useEcal = cms.bool(True),
40  dREcalPreselection = cms.double(0.05),
41  HORecHitCollectionLabel = cms.InputTag("horeco"),
42  dRMuon = cms.double(9999.0),
43  crossedEnergyType = cms.string('SinglePointAlongTrajectory'),
44  propagateAllDirections = cms.bool(True),
45  muonMaxDistanceX = cms.double(5.0),
46  muonMaxDistanceY = cms.double(5.0),
47  useHO = cms.bool(True),
48  accountForTrajectoryChangeCalo = cms.bool(False),
49  DTRecSegment4DCollectionLabel = cms.InputTag("dt4DSegments"),
50  EERecHitCollectionLabel = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
51  dRHcalPreselection = cms.double(0.2),
52  useMuon = cms.bool(True),
53  useCalo = cms.bool(False),
54  EBRecHitCollectionLabel = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
55  dRMuonPreselection = cms.double(0.2),
56  truthMatch = cms.bool(False),
57  HBHERecHitCollectionLabel = cms.InputTag("hbhereco"),
58  useHcal = cms.bool(True)
59  ),
60  muonInputTag = cms.InputTag("muons")
61 )
62 
63 process.source = cms.Source("PoolSource",
64  skipBadFiles = cms.untracked.bool(True),
65  skipEvents = cms.untracked.uint32(0),
66  fileNames = cms.untracked.vstring('file:/home/elpis/ekp/events/copy_Zmumu_Summer08_IDEAL_V9_v1_GEN-SIM-RECO_2008-12-29_0.root')
67 )
68 
69 process.load("Configuration.EventContent.EventContent_cff")
70 process.load("FWCore.MessageService.MessageLogger_cfi")
71 process.MessageLogger.cerr.threshold = 'DEBUG'
72 
73 process.OUTPUT = cms.OutputModule("PoolOutputModule",
74  outputCommands = cms.untracked.vstring("keep *_*_*_*"),
75  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('p1')),
76  fileName = cms.untracked.string('grid_job_output.root')
77 )
78 
79 
80 process.dump = cms.EDAnalyzer("EventContentAnalyzer")
81 
82 #process.raw2digi_step = cms.Path(process.RawToDigi)
83 #process.reconstruction_step = cms.Path(process.reconstruction)
84 
85 process.p1 = cms.Path(process.selectMuons*process.newSource)
86 #process.p1 = cms.Path(process.RawToDigi*process.reconstruction*process.selectMuonHits)
87 
88 #process.outpath = cms.EndPath(process.OUTPUT)
89 #
90 
91 
92