CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 .oO[LoadGlobalTagTemplate]Oo.
22 
23 .oO[condLoad]Oo.
24 
25 
26 ### validation-specific includes
27 process.load("SimTracker.TrackAssociatorProducers.trackAssociatorByHits_cfi")
28 process.load("Validation.RecoTrack.cuts_cff")
29 process.load("Validation.RecoTrack.MultiTrackValidator_cff")
30 process.load("SimGeneral.TrackingAnalysis.trackingParticles_cfi")
31 
32 ### configuration MultiTrackValidator ###
33 process.multiTrackValidator.outputFile = '.oO[outputFile]Oo.'
34 
35 process.multiTrackValidator.associators = ['trackAssociatorByHits']
36 process.multiTrackValidator.UseAssociators = cms.bool(True)
37 process.multiTrackValidator.label = ['generalTracks']
38 
39 .oO[datasetDefinition]Oo.
40 process.source.inputCommands = cms.untracked.vstring('keep *', 'drop *_MEtoEDMConverter_*_*') # hack to get rid of the memory consumption problem in 2_2_X and beond
41 
42 process.options = cms.untracked.PSet(
43  wantSummary = cms.untracked.bool(False),
44  Rethrow = cms.untracked.vstring("ProductNotFound"), # make this exception fatal
45  fileMode = cms.untracked.string('NOMERGE') # no ordering needed, but calls endRun/beginRun etc. at file boundaries
46 )
47 
48 process.re_tracking_and_TP = cms.Sequence(process.mix*process.trackingParticles*
49  process.siPixelRecHits*process.siStripMatchedRecHits*
50  process.ckftracks*
51  process.cutsRecoTracks*
52  process.trackAssociatorByHits*
53  process.multiTrackValidator
54  )
55 
56 process.re_tracking = cms.Sequence(process.siPixelRecHits*process.siStripMatchedRecHits*
57  process.ckftracks*
58  process.cutsRecoTracks*
59  process.trackAssociatorByHits*
60  process.multiTrackValidator
61  )
62 
63 ### final path and endPath
64 process.p = cms.Path(process.re_tracking)
65 """
66