Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:34:38

0001 #
0002 # Stand-alone creation of RelVal-plot root file for Strips and Phase0 or Phase1 pixels
0003 # This is derived from Validation/TrackerRecHits/test/
0004 #    SiPixelRecHitsValid_cfg.py
0005 #    SiStripRecHitsValid_cfg.py
0006 # Commented sections support crossing frames with pileup
0007 #  Bill Ford 10 Oct 2017
0008 
0009 import FWCore.ParameterSet.Config as cms
0010 
0011 # from Configuration.Eras.Era_Run2_2016_cff import Run2_2016
0012 # process = cms.Process("RecHitsValid", Run2_2016)
0013 from Configuration.Eras.Era_Run2_2017_cff import Run2_2017
0014 process = cms.Process("RecHitsValid", Run2_2017)
0015 
0016 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0017 from Configuration.AlCa.GlobalTag import GlobalTag
0018 # (See /Configuration/AlCa/python/autoCond.py)
0019 # process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0020 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '')
0021 
0022 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0023 process.load("Configuration.StandardSequences.Services_cff")
0024 process.load("Configuration.StandardSequences.MagneticField_cff")
0025 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0026 
0027 # process.load('Configuration.StandardSequences.DigiToRaw_cff')  # for remaking recHits
0028 
0029 process.load('Configuration.StandardSequences.RawToDigi_cff')
0030 process.load('Configuration.StandardSequences.L1Reco_cff')
0031 process.load("Configuration.StandardSequences.Reconstruction_cff")
0032 
0033 process.load("Validation.TrackerRecHits.SiPixelRecHitsValid_cfi")
0034 process.load("Validation.SiPixelPhase1ConfigV.SiPixelPhase1OfflineDQM_harvestingV_cff")
0035 process.load("Validation.TrackerRecHits.SiStripRecHitsValid_cfi")
0036 
0037 process.pixRecHitsValid_step = cms.Sequence(process.pixRecHitsValid)
0038 process.stripRecHitsValid_step = cms.Sequence(process.stripRecHitsValid)
0039 process.pixPhase1RecHitsValid_step = cms.Sequence(process.SiPixelPhase1RecHitsAnalyzerV*process.SiPixelPhase1RecHitsHarvesterV)
0040 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
0041 phase1Pixel.toReplaceWith(process.pixRecHitsValid_step, process.pixPhase1RecHitsValid_step)
0042 process.validation_step = cms.Sequence(process.pixRecHitsValid_step*process.stripRecHitsValid_step)
0043 
0044 process.load("DQMServices.Components.DQMFileSaver_cfi")
0045 process.dqmSaver.workflow = cms.untracked.string('/my/relVal/tracker')
0046 
0047 # No pileup
0048 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
0049 
0050 # From-scratch pileup; needs DigiToRaw in path
0051 # process.load("SimGeneral.MixingModule.mixHighLumPU_cfi")
0052 # process.mix.input.fileNames = cms.untracked.vstring([
0053 #  '/store/relval/CMSSW_7_1_0_pre4/RelValProdMinBias_13/GEN-SIM-RAW/POSTLS171_V1-v2/00000/0275ACA6-3CAA-E311-9DAF-02163E00E62F.root',
0054 #  '/store/relval/CMSSW_7_1_0_pre4/RelValProdMinBias_13/GEN-SIM-RAW/POSTLS171_V1-v2/00000/54DD7A36-3DAA-E311-A92B-0025904B11C0.root',
0055 #  '/store/relval/CMSSW_7_1_0_pre4/RelValProdMinBias_13/GEN-SIM-RAW/POSTLS171_V1-v2/00000/D6560D41-36AA-E311-BF6E-02163E00EBBC.root'
0056 #   ])
0057 
0058 # For playback pileup mode
0059 #  TTbar_13/<tier>/PU25ns sample
0060 #  (from config found in DAS for above sample)
0061 #
0062 # process.load('SimGeneral.MixingModule.mix_POISSON_average_cfi')
0063 # process.mix.input.nbPileupEvents.averageNumber = cms.double(10.000000)
0064 # process.mix.bunchspace = cms.int32(25)
0065 # process.mix.minBunch = cms.int32(-8)  # -8
0066 # process.mix.maxBunch = cms.int32(3)  # 3
0067 # process.mix.input.fileNames = cms.untracked.vstring([
0068 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/0C2DD921-1586-E311-9EA9-02163E00EA98.root',
0069 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/42450CEB-1086-E311-B439-02163E00EB7E.root',
0070 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/502D6922-0986-E311-828F-02163E00A10F.root',
0071 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/7AA4094E-1986-E311-8F3E-003048D2BC06.root',
0072 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/7AF1A921-0D86-E311-86D7-02163E00E6CC.root',
0073 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/88A9162C-0C86-E311-A244-02163E009E82.root',
0074 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/88CDC2A6-1186-E311-A9F5-02163E00E5C7.root',
0075 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/96AC49A8-0F86-E311-BBB4-02163E00EA8B.root',
0076 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/A4846C0D-0B86-E311-8B2E-003048FEB9EE.root',
0077 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/BA98B978-0A86-E311-A451-02163E00E680.root',
0078 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/C04929C2-0D86-E311-A247-003048FEADBC.root',
0079 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/D0E99AF9-0E86-E311-8C6C-00304894528A.root',
0080 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/DCC5CAB6-0786-E311-BBDF-00237DDBEBD0.root',
0081 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/DEACF0AD-0B86-E311-9C27-0030489455E0.root',
0082 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/ECC297E5-1286-E311-846F-001D09F241E6.root',
0083 #   '/store/relval/CMSSW_7_1_0_pre1/RelValMinBias_13/GEN-SIM/POSTLS170_V1-v1/00000/EEC1F7A5-3786-E311-80B3-BCAEC532970F.root'
0084 #
0085 #   ])
0086 # process.mix.playback = True
0087 # process.mix.digitizers = cms.PSet()
0088 # for a in process.aliases: delattr(process, a)
0089 
0090 #
0091 # Configure RecHits validator
0092 #
0093 # process.stripRecHitsValid.TH1Resolxrphi.xmax=cms.double(0.00002)
0094 # process.stripRecHitsValid.TH1ResolxStereo.xmax=cms.double(0.01)
0095 # process.stripRecHitsValid.TH1ResolxMatched.xmax=cms.double(0.01)
0096 # process.stripRecHitsValid.TH1ResolyMatched.xmax=cms.double(0.05)
0097 # process.stripRecHitsValid.TH1NumTotrphi.xmax=cms.double(100000.)
0098 # process.stripRecHitsValid.TH1NumTotStereo.xmax=cms.double(100000.)
0099 # process.stripRecHitsValid.TH1NumTotMatched.xmax=cms.double(100000.)
0100 # process.stripRecHitsValid.TH1Numrphi.xmax=cms.double(50000.)
0101 # process.stripRecHitsValid.TH1NumStereo.xmax=cms.double(50000.)
0102 # process.stripRecHitsValid.TH1NumMatched.xmax=cms.double(50000.)
0103 
0104 #
0105 # Configure associator
0106 #
0107 # process.pixRecHitsValid.associateHitbySimTrack = cms.bool(True)
0108 # process.stripRecHitsValid.associateHitbySimTrack = cms.bool(True)
0109 #
0110 # Read simHits from prompt collections
0111 process.pixRecHitsValid.ROUList = cms.vstring(
0112     'TrackerHitsPixelBarrelLowTof', 
0113     'TrackerHitsPixelBarrelHighTof', 
0114     'TrackerHitsPixelEndcapLowTof', 
0115     'TrackerHitsPixelEndcapHighTof'
0116     )
0117 process.SiPixelPhase1RecHitsAnalyzerV.ROUList = cms.vstring(
0118     'TrackerHitsPixelBarrelLowTof', 
0119     'TrackerHitsPixelBarrelHighTof', 
0120     'TrackerHitsPixelEndcapLowTof', 
0121     'TrackerHitsPixelEndcapHighTof'
0122     )
0123 process.stripRecHitsValid.ROUList = cms.vstring(
0124     'TrackerHitsTIBLowTof', 
0125     'TrackerHitsTIBHighTof', 
0126     'TrackerHitsTIDLowTof', 
0127     'TrackerHitsTIDHighTof', 
0128     'TrackerHitsTOBLowTof', 
0129     'TrackerHitsTOBHighTof', 
0130     'TrackerHitsTECLowTof', 
0131     'TrackerHitsTECHighTof'
0132     )
0133 
0134 inputfiles=cms.untracked.vstring(
0135 # '/store/relval/CMSSW_9_4_0_pre1/RelValSingleMuPt100/GEN-SIM-DIGI-RAW/93X_mc2017_realistic_v3-v1/00000/409345CD-F79C-E711-8383-0CC47A4D76C8.root',
0136 # '/store/relval/CMSSW_9_4_0_pre1/RelValSingleMuPt100/GEN-SIM-DIGI-RAW/93X_mc2017_realistic_v3-v1/00000/9C783844-F79C-E711-96E3-0CC47A4D76AA.root',
0137 # '/store/relval/CMSSW_9_4_0_pre1/RelValSingleMuPt100/GEN-SIM-DIGI-RAW/93X_mc2017_realistic_v3-v1/00000/DC94E5C6-F79C-E711-B3EC-0CC47A4D7606.root'
0138 
0139 # '/store/relval/CMSSW_9_2_4/RelValSingleMuPt1000_UP15/GEN-SIM-DIGI-RAW-HLTDEBUG/91X_mcRun2_asymptotic_v3-v1/00000/2470004C-8D62-E711-817C-0CC47A78A4B8.root',
0140 # '/store/relval/CMSSW_9_2_4/RelValSingleMuPt1000_UP15/GEN-SIM-DIGI-RAW-HLTDEBUG/91X_mcRun2_asymptotic_v3-v1/00000/5A844742-8D62-E711-B923-0CC47A4C8E38.root'
0141 
0142 # '/store/relval/CMSSW_9_3_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/92X_mcRun2_asymptotic_v2-v1/00000/3219D083-8C63-E711-8FB8-0CC47A4D7628.root',
0143 # '/store/relval/CMSSW_9_3_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/92X_mcRun2_asymptotic_v2-v1/00000/487A39C6-8C63-E711-8FCB-0CC47A4D7698.root',
0144 # '/store/relval/CMSSW_9_3_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/92X_mcRun2_asymptotic_v2-v1/00000/84519579-8D63-E711-86B0-0CC47A4C8EB6.root',
0145 # '/store/relval/CMSSW_9_3_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/92X_mcRun2_asymptotic_v2-v1/00000/9EA8737B-8C63-E711-A46C-0025905B85CC.root',
0146 # '/store/relval/CMSSW_9_3_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/92X_mcRun2_asymptotic_v2-v1/00000/F6CF72E4-8B63-E711-96DA-0025905A6068.root',
0147 # '/store/relval/CMSSW_9_3_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW-HLTDEBUG/92X_mcRun2_asymptotic_v2-v1/00000/FC762B97-8C63-E711-8CEE-0CC47A7C353E.root'
0148 
0149 '/store/relval/CMSSW_9_4_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW/93X_mc2017_realistic_v3-v1/00000/00D622D4-A79C-E711-8A41-0CC47A7C35D8.root',
0150 '/store/relval/CMSSW_9_4_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW/93X_mc2017_realistic_v3-v1/00000/28D592D3-A79C-E711-BE47-0CC47A7C3458.root',
0151 '/store/relval/CMSSW_9_4_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW/93X_mc2017_realistic_v3-v1/00000/2C0B8FD4-A79C-E711-BF8F-0CC47A4D761A.root',
0152 '/store/relval/CMSSW_9_4_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW/93X_mc2017_realistic_v3-v1/00000/54C1ABAB-A89C-E711-BEDF-0025905A60BE.root',
0153 '/store/relval/CMSSW_9_4_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW/93X_mc2017_realistic_v3-v1/00000/5C3C3FD7-A79C-E711-91A6-0CC47A7C35A8.root',
0154 '/store/relval/CMSSW_9_4_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW/93X_mc2017_realistic_v3-v1/00000/7E1D18E2-A79C-E711-969D-0025905A610A.root',
0155 '/store/relval/CMSSW_9_4_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW/93X_mc2017_realistic_v3-v1/00000/E2715BD7-A79C-E711-807F-0025905B859E.root',
0156 '/store/relval/CMSSW_9_4_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW/93X_mc2017_realistic_v3-v1/00000/E2772BAB-A89C-E711-945D-0025905B857C.root',
0157 '/store/relval/CMSSW_9_4_0_pre1/RelValQCD_Pt_3000_3500_13/GEN-SIM-DIGI-RAW/93X_mc2017_realistic_v3-v1/00000/FE788BD4-A79C-E711-B5D3-0CC47A4C8F08.root'
0158 
0159 )
0160 secinputfiles=cms.untracked.vstring(
0161 )
0162 
0163 process.source = cms.Source("PoolSource",
0164     fileNames = inputfiles,
0165     secondaryFileNames = secinputfiles
0166     , inputCommands=cms.untracked.vstring('keep *', 
0167       'drop l1tEMTFHitExtras_simEmtfDigis_CSC_HLT',
0168       'drop l1tEMTFHitExtras_simEmtfDigis_RPC_HLT',
0169       'drop l1tEMTFTrackExtras_simEmtfDigis__HLT'
0170     )
0171 )
0172 
0173 # # Input source
0174 # process.source = cms.Source("PoolSource",
0175 #     fileNames = cms.untracked.vstring('file:../10008.0_SingleMuPt100+SingleMuPt100_pythia8_2017_GenSimFullINPUT+DigiFull_2017+RecoFull_2017+ALCAFull_2017+HARVESTFull_2017/step2.root'),
0176 #     # fileNames = cms.untracked.vstring('file:../1321.0_SingleMuPt100_UP15+SingleMuPt100_UP15INPUT+DIGIUP15+RECOUP15+HARVESTUP15/step2.root'),
0177 #     secondaryFileNames = cms.untracked.vstring()
0178 # )
0179 
0180 process.options = cms.untracked.PSet(
0181   # SkipEvent = cms.untracked.vstring('ProductNotFound')
0182 )
0183 
0184 # Insert this in path to see what products the event contains
0185 process.content = cms.EDAnalyzer("EventContentAnalyzer")
0186 
0187 # To enable debugging:
0188 # [scram b clean ;] scram b USER_CXXFLAGS="-DEDM_ML_DEBUG"
0189 
0190 # process.load("SimTracker.TrackerHitAssociation.test.messageLoggerDebug_cff")
0191 
0192 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0193 
0194 # Number of events (-1 = all)
0195 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) )
0196 
0197 process.p1 = cms.Path(
0198     # process.content*
0199     process.mix
0200     # *process.DigiToRaw  # for remaking recHits
0201     *process.RawToDigi
0202     *process.L1Reco
0203     *process.reconstruction
0204     *process.validation_step
0205     *process.dqmSaver
0206     )
0207 
0208 # # customisation of the process.
0209 
0210 # # Automatic addition of the customisation function from SimGeneral.MixingModule.fullMixCustomize_cff
0211 # from SimGeneral.MixingModule.fullMixCustomize_cff import setCrossingFrameOn 
0212 
0213 # #call to customisation function setCrossingFrameOn imported from SimGeneral.MixingModule.fullMixCustomize_cff
0214 # process = setCrossingFrameOn(process)
0215 
0216 # # End of customisation functions
0217