Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:30:45

0001 # ######################################################################
0002 #
0003 # pixelLumi.py
0004 #
0005 # ----------------------------------------------------------------------
0006 import os
0007 import FWCore.ParameterSet.Config as cms
0008 process = cms.Process("Lumi")
0009 
0010 # ----------------------------------------------------------------------
0011 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0012 process.MessageLogger.cerr.threshold = 'INFO'
0013 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0014 process.MessageLogger.HLTrigReport=dict()
0015 process.MessageLogger.L1GtTrigReport=dict()
0016 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0017 
0018 # -- Database configuration
0019 process.load("CondCore.CondDB.CondDB_cfi")
0020 
0021 # -- Conditions
0022 
0023 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0024 process.load("Configuration.StandardSequences.GeometryRecoDB_cff") #
0025 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cfi")
0026 
0027 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0028 from Configuration.AlCa.GlobalTag import GlobalTag
0029 
0030 #process.GlobalTag = GlobalTag(process.GlobalTag, '80X_mcRun2_asymptotic_v14', '')
0031 process.GlobalTag = GlobalTag(process.GlobalTag, '90X_upgrade2023_realistic_v1', '')
0032 
0033 
0034 process.load("Configuration.StandardSequences.Reconstruction_cff") # 
0035 # -- number of events
0036 process.maxEvents = cms.untracked.PSet(
0037     input = cms.untracked.int32(-1)
0038     )
0039 
0040 # -- skimming
0041 process.zerobiasfilter = cms.EDFilter("HLTHighLevel",
0042    TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
0043    #HLTPaths = cms.vstring("HLT_ZeroBias_v*"),
0044    HLTPaths = cms.vstring("*ZeroBias*"),
0045    eventSetupPathsKey = cms.string(""),
0046    andOr = cms.bool(True),
0047    throw = cms.bool(False)
0048     )
0049 
0050 # the main Analyzer
0051 process.lumi = cms.EDAnalyzer(
0052     "PCCNTupler",
0053     verbose                      = cms.untracked.int32(0),
0054     #rootFileName                 = cms.untracked.string(rootFileName),
0055     #type                         = cms.untracked.string(getDataset(process.source.fileNames[0])),
0056     globalTag                    = process.GlobalTag.globaltag,
0057     dumpAllEvents                = cms.untracked.int32(0),
0058     vertexCollLabel              = cms.untracked.InputTag('offlinePrimaryVertices'),
0059     pixelClusterLabel            = cms.untracked.InputTag('siPixelClusters'), # even in Phase2, for now.
0060     saveType                     = cms.untracked.string('Event'), # LumiSect, LumiNib, Event
0061     sampleType                   = cms.untracked.string('MC'), # MC, DATA
0062     includeVertexInformation     = cms.untracked.bool(True),
0063     includePixels                = cms.untracked.bool(True),
0064     splitByBX                    = cms.untracked.bool(True),
0065     L1GTReadoutRecordLabel       = cms.untracked.InputTag('gtDigis'), 
0066     hltL1GtObjectMap             = cms.untracked.InputTag('hltL1GtObjectMap'), 
0067     HLTResultsLabel              = cms.untracked.InputTag('TriggerResults::HLT'),
0068     pixelPhase2Geometry          = cms.untracked.bool(True),
0069     )
0070 
0071 # -- Path
0072 process.p = cms.Path(
0073     process.zerobiasfilter*
0074     process.lumi
0075     )
0076 
0077 
0078 outFile = 'pcc_Data_PixVtx_Event_90X.root'
0079 process.TFileService = cms.Service("TFileService",fileName = cms.string(outFile)) 
0080 readFiles = cms.untracked.vstring() 
0081 secFiles = cms.untracked.vstring() 
0082 process.source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles) 
0083 readFiles.extend([
0084 # Min Bias 90X files with 2023D4 geometry and timing. no pu.
0085  '/store/relval/CMSSW_9_0_0_pre2/RelValMinBias_14TeV/GEN-SIM-RECO/90X_upgrade2023_realistic_v1_2023D4Timing-v1/10000/28088B65-66C2-E611-BF89-0CC47A7C347A.root',
0086  '/store/relval/CMSSW_9_0_0_pre2/RelValMinBias_14TeV/GEN-SIM-RECO/90X_upgrade2023_realistic_v1_2023D4Timing-v1/10000/20D68D58-3CC2-E611-B15B-0CC47A4C8F18.root',
0087  '/store/relval/CMSSW_9_0_0_pre2/RelValMinBias_14TeV/GEN-SIM-RECO/90X_upgrade2023_realistic_v1_2023D4Timing-v1/10000/94242929-30C3-E611-B3E0-0025905B85DC.root',
0088  '/store/relval/CMSSW_9_0_0_pre2/RelValMinBias_14TeV/GEN-SIM-RECO/90X_upgrade2023_realistic_v1_2023D4Timing-v1/10000/F46D98E7-EAC2-E611-936E-0CC47A7452D0.root',
0089  '/store/relval/CMSSW_9_0_0_pre2/RelValMinBias_14TeV/GEN-SIM-RECO/90X_upgrade2023_realistic_v1_2023D4Timing-v1/10000/36D3D8CD-3BC2-E611-908A-0025905A6088.root',
0090 #'/store/mc/RunIISummer16DR80/MinBias_TuneCUETP8M1_13TeV-pythia8/GEN-SIM-RECO/NoPU_RECO_80X_mcRun2_asymptotic_v14-v1/100000/00150044-D075-E611-AAE8-001E67505A2D.root', # 80X file
0091 #'/store/data/Run2015A/ZeroBias1/RECO/PromptReco-v1/000/250/786/00000/B4CDEBBC-F52A-E511-808D-02163E011CE8.root', 
0092 ])