Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:10

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TrackingTruthOutputTest")
0004 process.load("FWCore.MessageService.MessageLogger_cfi")
0005 
0006 # Standard includes
0007 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
0008 process.load("Configuration.StandardSequences.RawToDigi_cff")
0009 process.load("Configuration.EventContent.EventContent_cff")
0010 process.load("Configuration.StandardSequences.Reconstruction_cff")
0011 process.load("Configuration.StandardSequences.MagneticField_cff")
0012 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
0013 
0014 # Conditions
0015 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0016 process.GlobalTag.globaltag = 'STARTUP31X_V2::All'
0017 
0018 # Playback
0019 process.load("SimGeneral.TrackingAnalysis.Playback_cfi")
0020 
0021 # Validation-specific includes
0022 
0023 process.load("SimTracker.TrackAssociatorProducers.trackAssociatorByHits_cfi")
0024 process.load("Validation.RecoTrack.cuts_cff")
0025 process.load("Validation.RecoTrack.MultiTrackValidator_cff")
0026 process.load("SimGeneral.TrackingAnalysis.trackingParticles_cfi")
0027 process.load("DQMServices.Components.EDMtoMEConverter_cff")
0028 process.load("Validation.Configuration.postValidation_cff")
0029 
0030 # TrackHistory includes
0031 
0032 process.load("SimTracker.TrackHistory.TrackClassifier_cff")
0033 
0034 from SimTracker.TrackHistory.CategorySelectors_cff import *
0035 
0036 # Configuration MultiTrackValidator
0037 
0038 process.multiTrackValidator.associators = ['trackAssociatorByHits']
0039 process.multiTrackValidator.useLogPt = cms.untracked.bool(True)
0040 process.multiTrackValidator.minpT = cms.double(-1)
0041 process.multiTrackValidator.maxpT = cms.double(3)
0042 process.multiTrackValidator.nintpT = cms.int32(40)
0043 
0044 process.cutsRecoTracks.quality = cms.vstring('highPurity')
0045 process.multiTrackValidator.label = ['cutsRecoTracks']
0046 process.multiTrackValidator.UseAssociators = cms.bool(True)
0047 
0048 process.options = cms.untracked.PSet(
0049     wantSummary = cms.untracked.bool(True)
0050 )
0051 
0052 # Configuration for TrackHistory 
0053 
0054 process.add_( 
0055   cms.Service("TFileService",
0056       fileName = cms.string("TrackingTruthHistory.root")
0057   )
0058 )
0059 
0060 process.trackCategorySelector = TrackingParticleCategorySelector(
0061     src = cms.InputTag('mix', 'MergedTrackTruth'),
0062     cut = cms.string("is('SignalEvent')")
0063 )
0064 
0065 process.trackingParticleCategoriesAnalyzer = cms.EDAnalyzer("TrackingParticleCategoriesAnalyzer",
0066     process.trackClassifier
0067 )
0068 
0069 process.trackingParticleCategoriesAnalyzer.trackingTruth = 'trackCategorySelector'
0070 
0071 # Sequences and paths
0072 
0073 process.trackingTruth = cms.Sequence(
0074     process.mix * process.trackingParticles
0075 )
0076 
0077 process.validation = cms.Sequence(
0078     process.cutsRecoTracks * process.trackAssociatorByHits * process.multiTrackValidator * process.trackCategorySelector * process.trackingParticleCategoriesAnalyzer
0079 )
0080 
0081 process.p = cms.Path(process.trackingTruth * process.validation)
0082 
0083 # Input definition
0084 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(5000) )
0085 readFiles = cms.untracked.vstring()
0086 secFiles = cms.untracked.vstring() 
0087 process.source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
0088 
0089 readFiles.extend( [
0090        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-RECO/STARTUP31X_V2_156BxLumiPileUp-v1/0008/8ADB0D58-967C-DE11-B9E8-001D09F2305C.root',
0091        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-RECO/STARTUP31X_V2_156BxLumiPileUp-v1/0008/2093B78A-DA7C-DE11-A400-001D09F2437B.root',
0092        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-RECO/STARTUP31X_V2_156BxLumiPileUp-v1/0007/F6E7AC61-4D7C-DE11-A86F-001D09F2A465.root',
0093        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-RECO/STARTUP31X_V2_156BxLumiPileUp-v1/0007/E6938DB2-4D7C-DE11-A56C-000423D991D4.root',
0094        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-RECO/STARTUP31X_V2_156BxLumiPileUp-v1/0007/BAD7002F-507C-DE11-BE09-001D09F29597.root',
0095        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-RECO/STARTUP31X_V2_156BxLumiPileUp-v1/0007/ACCA8D9C-4D7C-DE11-83F8-001D09F24D67.root',
0096        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-RECO/STARTUP31X_V2_156BxLumiPileUp-v1/0007/96A9C809-5A7C-DE11-A3C2-000423D98950.root',
0097        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-RECO/STARTUP31X_V2_156BxLumiPileUp-v1/0007/847835A2-4C7C-DE11-8EB7-000423D9880C.root',
0098        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-RECO/STARTUP31X_V2_156BxLumiPileUp-v1/0007/54493560-527C-DE11-B497-001D09F25109.root',
0099        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-RECO/STARTUP31X_V2_156BxLumiPileUp-v1/0007/524126BE-4E7C-DE11-B020-000423D9880C.root',
0100        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-RECO/STARTUP31X_V2_156BxLumiPileUp-v1/0007/16C79B9F-6C7C-DE11-9428-000423D174FE.root'
0101 ] )
0102 
0103 secFiles.extend( [
0104        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0008/9A0ED789-DA7C-DE11-B6D3-001D09F29619.root',
0105        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0008/38598951-967C-DE11-8578-001D09F24D8A.root',
0106        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/FCAA7A27-557C-DE11-8064-000423D99658.root',
0107        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/F09E1E99-4D7C-DE11-B7F0-001D09F29619.root',
0108        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/D6E18955-527C-DE11-A90C-001D09F24691.root',
0109        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/C851451B-4C7C-DE11-916F-000423D944F0.root',
0110        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/BADEB400-5F7C-DE11-8CFB-000423D98EA8.root',
0111        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/B4E20C35-4D7C-DE11-96C6-000423D95030.root',
0112        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/AC51B347-507C-DE11-BA3E-001D09F29533.root',
0113        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/8E540997-4D7C-DE11-9DE7-000423D6CA42.root',
0114        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/8CAFCA68-4D7C-DE11-B74D-000423D987E0.root',
0115        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/8C80A0DF-4D7C-DE11-B927-000423D98BC4.root',
0116        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/82F85C38-5C7C-DE11-9560-000423D6B444.root',
0117        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/800E8389-717C-DE11-BB29-001D09F251FE.root',
0118        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/748AEF76-4D7C-DE11-8476-000423D60FF6.root',
0119        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/6A74F5A3-6C7C-DE11-8818-001D09F29597.root',
0120        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/6240240D-4D7C-DE11-A4B2-001D09F29619.root',
0121        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/620E14B8-4D7C-DE11-84D7-000423D9517C.root',
0122        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/60CFC2A5-4C7C-DE11-B10F-001D09F2A465.root',
0123        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/5E3D53A2-4E7C-DE11-93B5-001D09F29533.root',
0124        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/52C1668C-4C7C-DE11-9ED5-000423D996C8.root',
0125        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/525343E9-4E7C-DE11-BB53-000423D992A4.root',
0126        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/4E79CA36-4E7C-DE11-B9F4-000423D98B6C.root',
0127        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/4896D74B-4C7C-DE11-8C89-000423D95030.root',
0128        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/46915BAA-4D7C-DE11-982C-000423D98B6C.root',
0129        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/4266283B-517C-DE11-A330-001D09F29597.root',
0130        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/2EE85113-5A7C-DE11-B311-000423D9853C.root',
0131        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/2AD3566E-4F7C-DE11-919E-000423D98F98.root',
0132        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/20C67138-777C-DE11-88DB-000423D6B5C4.root',
0133        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/10E83CB6-587C-DE11-918C-000423D987FC.root',
0134        '/store/relval/CMSSW_3_2_2/RelValTTbar_Tauola/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2_156BxLumiPileUp-v1/0007/0AD718DF-517C-DE11-A59E-000423DD2F34.root'
0135 ] )