Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:26:52

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TKAN")
0004 #process = cms.Process("TEST")
0005 
0006 # The number of events to be processed.
0007 process.maxEvents = cms.untracked.PSet(
0008     input = cms.untracked.int32(-1)
0009 )
0010 
0011 ###process.Tracer = cms.Service("Tracer")
0012 
0013 
0014 # Include the RandomNumberGeneratorService definition
0015 process.load("IOMC.RandomEngine.IOMC_cff")
0016 
0017 # For histograms
0018 process.load("DQMServices.Core.DQM_cfg")
0019 
0020 ## # Input
0021 process.source = cms.Source(
0022     "PoolSource",
0023   #  debugFlag = cms.untracked.bool(True),
0024   #  debugVebosity = cms.untracked.uint32(10),
0025     fileNames = cms.untracked.vstring(
0026 ##    'file:fevt.root'
0027 ##    'file:test.root'
0028 ##        #'file:SinglePion_FastFull_0.root',
0029 ##        #'file:SinglePion_FastFull_1.root',
0030 ##        #'file:SinglePion_FastFull_2.root',
0031 ##        #'file:SinglePion_FastFull_3.root',
0032 ##        #'file:SinglePion_FastFull_4.root',
0033 ##        #'file:SinglePion_FastFull_5.root',
0034 ##        #'file:SinglePion_FastFull_6.root',
0035 ##        #'file:SinglePion_FastFull_7.root'
0036 ## ##        'file:SinglePion_FastFull_All.root'
0037     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E0_1.root',
0038     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E1_1.root',
0039     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E2_1.root',
0040     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E3_1.root',
0041     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E3_2.root',
0042     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E4_1.root',
0043     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E4_2.root',
0044     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E5_1.root',
0045     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E5_2.root',
0046     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E5_3.root',
0047     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E5_4.root',
0048     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E6_1.root',
0049     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E6_2.root',
0050     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E6_3.root',
0051     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E6_4.root',
0052     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E7_1.root',
0053     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E7_2.root',
0054     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E7_3.root',
0055     'rfio:/castor/cern.ch/user/a/azzi/CMSSW350pre2/fevt_SinglePion_E7_4.root'
0056 # '/store/relval/CMSSW_3_5_0_pre5/RelValSingleMuPt100/GEN-SIM-RECO/MC_3XY_V20-v1/0008/0E27D097-550E-DF11-8A0D-0030487A322E.root',
0057 #       '/store/relval/CMSSW_3_5_0_pre5/RelValSingleMuPt100/GEN-SIM-RECO/MC_3XY_V20-v1/0007/30D8606B-E70D-DF11-A1DB-001617E30E28.root'
0058     ),
0059     noEventSort=cms.untracked.bool(True),
0060     duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
0061     )
0062 
0063 
0064 #process.generalTracksHighPurity = cms.EDFilter("QualityFilter",
0065 #                                               TrackQuality = cms.string('highPurity'),
0066 #                                               recTracks = cms.InputTag("generalTracks")
0067 #                                               )
0068 
0069 
0070 process.testTK = cms.EDFilter(
0071     "testGeneralTracks",
0072     TestParticleFilter = cms.PSet(
0073     # Particles with |eta| > etaMax (momentum direction at primary vertex) 
0074     # are not simulated 
0075     etaMax = cms.double(5.0),
0076     # Charged particles with pT < pTMin (GeV/c) are not simulated
0077     pTMin = cms.double(0.0),
0078     # Particles with energy smaller than EMin (GeV) are not simulated
0079     EMin = cms.double(0.0),
0080     # Protons with energy in excess of this value (GeV) will kept no matter what
0081     EProton = cms.double(99999.0)
0082     ),
0083     Full = cms.InputTag("generalTracksHighPurity","","PROD"),
0084     ##    Full = cms.InputTag("generalTracksHighPurity","","TKAN"),
0085     ##   Full = cms.InputTag("generalTracks","","HLT"),
0086     Fast = cms.InputTag("generalTracks","","TKAN"),
0087     )
0088 
0089 # Famos SimHits 
0090 process.load("FastSimulation.Configuration.CommonInputs_cff")
0091 process.GlobalTag.globaltag = "MC_3XY_V15::All"
0092 
0093 process.load("FastSimulation.Configuration.FamosSequences_cff")
0094 
0095 # Magnetic field
0096 process.load("Configuration.StandardSequences.MagneticField_40T_cff")
0097 #process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0098 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
0099 # No SimHits
0100 process.fastSimProducer.SimulateCalorimetry = False
0101 
0102 # Path to run what is needed
0103 process.p = cms.Path(
0104     # Produce fast sim with full sim !
0105     process.famosWithTracks *
0106     # Analyse Fast and Full simultaneously
0107     process.testTK
0108 )
0109 
0110 # Keep the logging output to a nice level #
0111 process.load("FWCore.MessageService.MessageLogger_cfi")
0112 process.MessageLogger.cerr.enable = False
0113 process.MessageLogger.files.test = dict(extension = 'txt')
0114 
0115 # Should be commented out in the analysis step
0116 process.o1 = cms.OutputModule(
0117     "PoolOutputModule",
0118     fileName = cms.untracked.string('SinglePion_FastFull.root'),
0119     outputCommands = cms.untracked.vstring(
0120        "keep *",
0121        "drop *_mix_*_*"
0122     )
0123 )
0124 ##process.outpath = cms.EndPath(process.o1)
0125 
0126 ##process.load('logger_cfi')
0127 
0128 ##process.MessageLogger._moduleCanTalk('iterativeFirstTracksCandidateWithPairs')
0129 ##process.MessageLogger._moduleCanTalk('iterativeFirstTracksCandidateWithTriplets')
0130 
0131 ##process.MessageLogger._moduleCanTalk('iterativeFirstTracksWithPairs')
0132 ##process.MessageLogger._moduleCanTalk('iterativeFirstTracksWithTriplets')
0133 
0134 ##process.MessageLogger._moduleCanTalk('iterativeSecondTrackCandidatesWithTriplets')
0135 ##process.MessageLogger._moduleCanTalk('iterativeSecondTracksWithTriplets')
0136 
0137 ##process.MessageLogger._moduleCanTalk('iterativeThirdTrackCandidatesWithPairs')
0138 ##process.MessageLogger._moduleCanTalk('iterativeThirdTracksWithPairs')
0139 
0140 ##process.MessageLogger._moduleCanTalk('iterativeFourthTrackCandidatesWithPairs')
0141 ##process.MessageLogger._moduleCanTalk('iterativeFourthTracksWithPairs')
0142 
0143 ##process.MessageLogger._moduleCanTalk('iterativeFifthTrackCandidatesWithPairs')
0144 ##process.MessageLogger._moduleCanTalk('iterativeFifthTracksWithPairs')
0145 
0146 ##process.MessageLogger._categoryCanTalk('TrackProducer')
0147 ##process.MessageLogger._categoryCanTalk('TrackFitters')
0148 ##process.MessageLogger._categoryCanTalk('FastTracking')
0149