CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
monteCarloValidationTemplates.py
Go to the documentation of this file.
1 ######################################################################
2 ######################################################################
3 mcValidateTemplate="""
4 import FWCore.ParameterSet.Config as cms
5 
6 process = cms.Process("TkVal")
7 process.load("FWCore.MessageService.MessageLogger_cfi")
8 process.MessageLogger = cms.Service("MessageLogger",
9  destinations = cms.untracked.vstring('LOGFILE_McValidate_.oO[name]Oo.',
10  'cout')
11 )
12 
13 ### standard includes
14 process.load('Configuration.Geometry.GeometryPilot2_cff')
15 process.load("Configuration.StandardSequences.RawToDigi_cff")
16 process.load("Configuration.EventContent.EventContent_cff")
17 process.load("Configuration.StandardSequences.Reconstruction_cff")
18 process.load("Configuration.StandardSequences..oO[magneticField]Oo._cff")
19 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
20 
21 ### conditions
22 process.load("Alignment.OfflineValidation.GlobalTag_cff")
23 process.GlobalTag.globaltag = '.oO[GlobalTag]Oo.'
24 process.es_prefer_GlobalTag = cms.ESPrefer("PoolDBESSource", "GlobalTag")
25 
26 .oO[condLoad]Oo.
27 
28 
29 ### validation-specific includes
30 process.load("SimTracker.TrackAssociatorProducers.trackAssociatorByHits_cfi")
31 process.load("Validation.RecoTrack.cuts_cff")
32 process.load("Validation.RecoTrack.MultiTrackValidator_cff")
33 process.load("SimGeneral.TrackingAnalysis.trackingParticles_cfi")
34 
35 ### configuration MultiTrackValidator ###
36 process.multiTrackValidator.outputFile = '.oO[outputFile]Oo.'
37 
38 process.multiTrackValidator.associators = ['trackAssociatorByHits']
39 process.multiTrackValidator.UseAssociators = cms.bool(True)
40 process.multiTrackValidator.label = ['generalTracks']
41 
42 .oO[datasetDefinition]Oo.
43 process.source.inputCommands = cms.untracked.vstring('keep *', 'drop *_MEtoEDMConverter_*_*') # hack to get rid of the memory consumption problem in 2_2_X and beond
44 
45 process.options = cms.untracked.PSet(
46  wantSummary = cms.untracked.bool(False),
47  Rethrow = cms.untracked.vstring("ProductNotFound"), # make this exception fatal
48  fileMode = cms.untracked.string('NOMERGE') # no ordering needed, but calls endRun/beginRun etc. at file boundaries
49 )
50 
51 process.re_tracking_and_TP = cms.Sequence(process.mix*process.trackingParticles*
52  process.siPixelRecHits*process.siStripMatchedRecHits*
53  process.ckftracks*
54  process.cutsRecoTracks*
55  process.trackAssociatorByHits*
56  process.multiTrackValidator
57  )
58 
59 process.re_tracking = cms.Sequence(process.siPixelRecHits*process.siStripMatchedRecHits*
60  process.ckftracks*
61  process.cutsRecoTracks*
62  process.trackAssociatorByHits*
63  process.multiTrackValidator
64  )
65 
66 ### final path and endPath
67 process.p = cms.Path(process.re_tracking)
68 """
69