CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
singlemuon_example.py
Go to the documentation of this file.
2 import copy
3 
4 
5 
6 # Basic process setup ----------------------------------------------------------
7 process = cms.Process("G4eRefit")
8 process.source = cms.Source("PoolSource",
9 # fileNames = cms.untracked.vstring( '/store/caf/user/lenzip/Geant4e/TwentyKsMC/digi-reco/digireco_DIGI_L1_DIGI2RAW_RAW2DIGI_L1Reco_RECO_1.root') ,
10 # fileNames = cms.untracked.vstring('root://xrootd.unl.edu//store/mc/Phys14DR/DYJetsToLL_M-50_13TeV-madgraph-pythia8-tauola_v2/GEN-SIM-RAW/AVE30BX50_tsg_PHYS14_ST_V1-v1/30000/000055D9-148B-E411-86DF-20CF3027A560.root'),
11  fileNames = cms.untracked.vstring('root://xrootd.unl.edu//store/relval/CMSSW_7_4_0_pre5_ROOT6/RelValADDMonoJet_d3MD3_13/GEN-SIM-RECO/MCRUN2_73_V7-v1/00000/1A00E748-AFA2-E411-8D85-0025905A60A8.root'),
12 
13  skipEvents = cms.untracked.uint32( 0 )
14 )
15 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) )
16 #-------------------------------------------------------------------------------
17 
18 # Includes + Global Tag --------------------------------------------------------
19 process.load("FWCore/MessageService/MessageLogger_cfi")
20 process.load('Configuration/StandardSequences/Services_cff')
21 process.load('Configuration/StandardSequences/MagneticField_38T_cff')
22 process.load('Configuration.StandardSequences.Geometry_cff')
23 process.load('Configuration/StandardSequences/GeometryPilot2_cff')
24 process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi")
25 process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAlong_cfi")
26 process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorOpposite_cfi")
27 process.load("RecoMuon.DetLayers.muonDetLayerGeometry_cfi")
28 #process.load('RecoJets/Configuration/RecoJetAssociations_cff')
29 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
30 process.load("Configuration.StandardSequences.Reconstruction_cff")
31 
32 process.load("Configuration.EventContent.EventContent_cff")
33 
34 # Includes + Global Tag --------------------------------------------------------
35 process.load("FWCore/MessageService/MessageLogger_cfi")
36 process.load("TrackPropagation.Geant4e.geantRefit_cff")
37 
38 from Configuration.AlCa.GlobalTag import GlobalTag
39 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:mc', '')
40 #-------------------------------------------------------------------------------
41 
42 # Reduce amount of messages ----------------------------------------------------
43 #process.MessageLogger.default = cms.untracked.PSet(ERROR = cms.untracked.PSet(limit = cms.untracked.int32(5)))
44 #process.MessageLogger.cerr.FwkReport.reportEvery = 100
45 #-----------------------------------------------------------
46 process.out = cms.OutputModule( "PoolOutputModule",
47  outputCommands = cms.untracked.vstring(
48  'keep *',
49  #'keep *_laserAlignmentT0Producer_*_*'
50  ),
51  fileName = cms.untracked.string( 'test.root' )
52 )
53 
54 
55 ## measurementtrackerevent needs to be added explicitly here
56 # this solution thanks to: https://github.com/lceard/cmssw/commit/b47b82220a01c78e5415bf3fdc9b7c58c362a70e
57 process.g4RefitPath = cms.Path( process.MeasurementTrackerEvent * process.geant4eTrackRefit )
58 process.e = cms.EndPath(process.out)
59 process.schedule = cms.Schedule( process.g4RefitPath, process.e )