## Process definition ## process = cms.Process("APE") # we need conditions #process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") #process.GlobalTag.globaltag = 'IDEAL_V11::All' #;;;;;;;;;;;;;;;new line;;;;;;;;;;;;;;; process.load("Configuration.StandardSequences.Services_cff") process.load("Configuration.StandardSequences.MagneticField_cff") process.load("CondCore.DBCommon.CondDBCommon_cfi") process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.load("Configuration.Geometry.GeometryRecoDB_cff") process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_design', '') #;;;;;;;;;;;;;;;;;;;;;;;;;;;;; # include "Configuration/StandardSequences/data/FakeConditions.cff" # initialize magnetic field #process.load("Configuration.StandardSequences.MagneticField_cff") # ideal geometry and interface #process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi") #process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi") # for Muon: include "Geometry/MuonNumbering/data/muonNumberingInitialization.cfi" # track selection for alignment #process.load("Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi") # Alignment producer
process.MessageLogger.cerr.threshold = 'INFO' process.MessageLogger.cerr.FwkReport.reportEvery = 1000 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) # ---------------------------------------------------------------------- # -- Database configuration process.load("CondCore.CondDB.CondDB_cfi") # -- Conditions process.load("Configuration.StandardSequences.MagneticField_38T_cff") process.load("Configuration.Geometry.GeometryDB_cff") process.load("RecoVertex.BeamSpotProducer.BeamSpot_cfi") process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, '80X_mcRun2_asymptotic_RealisticBS_25ns_13TeV2016_v1_mc', '') # ---------------------------------------------------------------------- # POOLSOURCE process.source.duplicateCheckMode = cms.untracked.string('noDuplicateCheck') # ---------------------------------------------------------------------- rootFileName = "bmm-mc-RunIISpring16DR80-XXXX.root" process.tree = cms.EDAnalyzer( "HFTree", verbose = cms.untracked.int32(0), printFrequency = cms.untracked.int32(100),
process.load('Configuration.StandardSequences.Services_cff') #process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Configuration.EventContent.EventContent_cff') process.load('Configuration.StandardSequences.GeometryRecoDB_cff') process.load( 'Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff') process.load('Configuration.StandardSequences.EndOfProcess_cff') process.load( 'Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff' ) process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '') process.GlobalTag = GlobalTag(process.GlobalTag, '102X_dataRun2_Sep2018ABC_v2', '') #process.Tracer = cms.Service("Tracer") process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(-1)) process.MessageLogger.cerr.FwkReport.reportEvery = 100 process.source = cms.Source( "PoolSource", fileNames=cms.untracked.vstring( '/store/data/Run2018A/ParkingBPH1/AOD/05May2019-v1/00000/04879D85-8B10-E747-9EAA-A2324D784F44.root', )) #process.load("PhysicsTools.PatAlgos.patSequences_cff") process.load('PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff')
import FWCore.ParameterSet.Config as cms process = cms.Process('ggKit') process.load("FWCore.MessageLogger.MessageLogger_cfi") process.options = cms.untracked.PSet(allowUnscheduled=cms.untracked.bool(True)) process.load('Configuration.StandardSequences.GeometryRecoDB_cff') #process.load("Configuration.Geometry.GeometryRecoDB_cff") process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff" ) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc') process.GlobalTag = GlobalTag(process.GlobalTag, '80X_mcRun2_asymptotic_2016_TrancheIV_v8') process.load("Configuration.StandardSequences.MagneticField_cff") #process.Tracer = cms.Service("Tracer") process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(1000)) process.MessageLogger.cerr.FwkReport.reportEvery = 1000 #jec from sqlite process.load("CondCore.DBCommon.CondDBCommon_cfi") from CondCore.DBCommon.CondDBSetup_cfi import * process.jec = cms.ESSource( "PoolDBESSource", CondDBSetup, connect=cms.string('sqlite:Summer16_23Sep2016V4_MC.db'), toGet=cms.VPSet( cms.PSet(
# Geometry, GT, and other standard sequences process.load('Configuration.Geometry.GeometryExtended2023D17Reco_cff') process.load("Configuration.StandardSequences.MagneticField_cff") process.load('Configuration.StandardSequences.Services_cff') process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') process.load('Configuration.EventContent.EventContent_cff') process.load( 'Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff') process.load('Configuration.StandardSequences.EndOfProcess_cff') process.load( 'Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff' ) process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, '91X_upgrade2023_realistic_v3', '') # Log settings process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = 1000 process.MessageLogger.cerr.threshold = 'INFO' process.MessageLogger.categories.append('MyAna') process.MessageLogger.cerr.INFO = cms.untracked.PSet( limit=cms.untracked.int32(-1)) # Input process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(-1)) process.source = cms.Source( "PoolSource", fileNames=cms.untracked.vstring(*(
fileNames=cms.untracked.vstring( '/store/mc/RunIIFall15DR76/DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/AODSIM/PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/00000/08DC4220-16A7-E511-AF59-1CC1DE19286E.root' #'/store/mc/RunIIFall15MiniAODv2/GluGluHToZZTo4L_M125_13TeV_powheg2_JHUgenV6_pythia8/MINIAODSIM/PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/50000/0AFC3AB4-96B9-E511-AE01-5065F3817221.root', #'/store/mc/RunIIFall15MiniAODv2/GluGluHToZZTo4L_M125_13TeV_powheg2_JHUgenV6_pythia8/MINIAODSIM/PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/50000/06A78A71-97B9-E511-A22A-24BE05C3CBD1.root', ) #'/store/mc/RunIIFall15MiniAODv2/DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/MINIAODSIM/PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/70000/002ABFCA-A0B9-E511-B9BA-0CC47A57CD6A.root') #/store/mc/RunIISpring15MiniAODv2/DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/MINIAODSIM/74X_mcRun2_asymptotic_v2-v1/60000/02CDE51A-726D-E511-B2C4-0025905C96EA.root') #root://xrootd.unl.edu//store/mc/RunIISpring15DR74/DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/AODSIM/Asympt25ns_MCRUN2_74_V9-v1/50000/0071FA3B-5738-E511-8E71-20CF3027A59F.root') #fileNames = cms.untracked.vstring('/store/mc/RunIISpring15DR74/DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/AODSIM/Asympt25ns_MCRUN2_74_V9-v1/50000/0AD4F3AF-CE36-E511-AC8A-008CFA1974CC.root') ) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, '76X_mcRun2_asymptotic_v12', '') # MCRUN2_74_V8 process.TFileService = cms.Service("TFileService", fileName=cms.string(fileNameForSample + '.root')) process.MessageLogger.cerr.threshold = 'WARNING' process.MessageLogger.categories.append('Demo') process.MessageLogger.cerr.INFO = cms.untracked.PSet( limit=cms.untracked.int32(-1)) process.MessageLogger = cms.Service( "MessageLogger", destinations=cms.untracked.vstring('LOG', 'critical'), LOG=cms.untracked.PSet( threshold=cms.untracked.string('ERROR'), # DEBUG filename=cms.untracked.string(fileNameForSample + '.log')),
#------------------------------------------------------------------------------------ # Various python configuration files #------------------------------------------------------------------------------------ # Need to set up MessageLogger process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1) # Need to set up the global tag # Which to use? https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideFrontierConditions process.load( 'Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff' ) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'GR_P_V49', '') # Need the topology to unpack process.load("Geometry.HcalEventSetup.HcalTopology_cfi") # Make trigger tower geometry process.HcalTrigTowerGeometryESProducer = cms.ESProducer( "HcalTrigTowerGeometryESProducer") # Need to unpack digis from RAW process.load("EventFilter.HcalRawToDigi.HcalRawToDigi_cfi") # Use an emap that has the uTCA (now from the database) from CalibCalorimetry.HcalPlugins.Hcal_FrontierConditions_cff import es_pool
'Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff' ) process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = 1 process.options = cms.untracked.PSet(wantSummary=cms.untracked.bool(True)) process.options.allowUnscheduled = cms.untracked.bool(True) process.source = cms.Source( "PoolSource", fileNames=cms.untracked.vstring( 'file:/lustre/cmswork/cmsdata/ronchese/store/data/Run2017C/Charmonium/MINIAOD/PromptReco-v1/000/299/593/00000/08B4E8B6-1271-E711-81CF-02163E01A72B.root' )) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, '94X_dataRun2_ReReco_EOY17_v2', '') #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '') #from PhysicsTools.PatAlgos.tools.coreTools import runOnData #runOnData( process, outputModules = [] ) ### vtxTagInfo process.load('RecoBTag/SoftLepton/softLepton_cff') #process.load('RecoBTag/SoftLepton/softPFMuonTagInfos_cfi') #process.load('RecoBTag/SoftLepton/softPFElectronTagInfos_cfi') process.load( 'RecoBTag/SecondaryVertex/pfInclusiveSecondaryVertexFinderTagInfos_cfi') process.load('RecoBTag/ImpactParameter/pfImpactParameterTagInfos_cfi') #process.load('RecoBTag/SecondaryVertex/secondaryVertexTagInfos_cfi')
SelectEvents=cms.vstring('generation_step')), dataset=cms.untracked.PSet(dataTier=cms.untracked.string('GEN-SIM-DIGI'), filterName=cms.untracked.string('')), eventAutoFlushCompressedSize=cms.untracked.int32(1048576), # fileName = cms.untracked.string('out_digi.root'), fileName=cms.untracked.string('out_digi_100GeV_1000evts.root'), # fileName = cms.untracked.string('out_digi_1To100GeV_1000evts.root'), outputCommands=process.FEVTDEBUGHLTEventContent.outputCommands, splitLevel=cms.untracked.int32(0)) # Additional output definition # Other statements process.genstepfilter.triggerConditions = cms.vstring("generation_step") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgradePLS3', '') process.generator = cms.EDProducer("FlatRandomPtGunProducer", AddAntiParticle=cms.bool(True), PGunParameters=cms.PSet( MaxEta=cms.double(2.2), MaxPhi=cms.double(3.14159265359), MaxPt=cms.double(100.01), MinEta=cms.double(1.5), MinPhi=cms.double(-3.14159265359), MinPt=cms.double(99.99), PartID=cms.vint32(-13)), Verbosity=cms.untracked.int32(0), firstRun=cms.untracked.uint32(1), psethack=cms.string('single mu pt 100'))
SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('generation_step') ) ) # Additional output definition # Other statements process.mix.input.nbPileupEvents.averageNumber = cms.double(20.000000) process.mix.bunchspace = cms.int32(25) process.mix.minBunch = cms.int32(-12) process.mix.maxBunch = cms.int32(3) process.mix.input.fileNames = cms.untracked.vstring(['/store/mc/Fall13/MinBias_TuneA2MB_13TeV-pythia8/GEN-SIM/POSTLS162_V1-v1/10000/001CB469-A91E-E311-9BFE-0025907FD24A.root', '/store/mc/Fall13/MinBias_TuneA2MB_13TeV-pythia8/GEN-SIM/POSTLS162_V1-v1/10000/009CB248-A81C-E311-ACD8-00259073E4F0.root', '/store/mc/Fall13/MinBias_TuneA2MB_13TeV-pythia8/GEN-SIM/POSTLS162_V1-v1/10000/009F81D5-B21C-E311-966C-BCAEC50971D0.root', '/store/mc/Fall13/MinBias_TuneA2MB_13TeV-pythia8/GEN-SIM/POSTLS162_V1-v1/10000/00B5BB8C-A91E-E311-816A-782BCB1F5E6B.root', '/store/mc/Fall13/MinBias_TuneA2MB_13TeV-pythia8/GEN-SIM/POSTLS162_V1-v1/10000/00B8F676-BA1C-E311-BA87-0019B9CABFB6.root', '/store/mc/Fall13/MinBias_TuneA2MB_13TeV-pythia8/GEN-SIM/POSTLS162_V1-v1/10000/00DD7446-B51D-E311-B714-001E6739CEB1.root', '/store/mc/Fall13/MinBias_TuneA2MB_13TeV-pythia8/GEN-SIM/POSTLS162_V1-v1/10000/021E1B53-101D-E311-886F-00145EDD7569.root', '/store/mc/Fall13/MinBias_TuneA2MB_13TeV-pythia8/GEN-SIM/POSTLS162_V1-v1/10000/022A782D-A51C-E311-9856-80000048FE80.root', '/store/mc/Fall13/MinBias_TuneA2MB_13TeV-pythia8/GEN-SIM/POSTLS162_V1-v1/10000/026FE678-BA1C-E311-BEF5-00D0680BF90A.root', '/store/mc/Fall13/MinBias_TuneA2MB_13TeV-pythia8/GEN-SIM/POSTLS162_V1-v1/10000/02A10BDE-B21C-E311-AB59-00266CF327C0.root']) process.genstepfilter.triggerConditions=cms.vstring("generation_step") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'PHYS14_25_V3', '') process.generator = cms.EDFilter("Pythia8HadronizerFilter", ExternalDecays = cms.PSet( Tauola = cms.untracked.PSet( UseTauolaPolarization = cms.bool(True), InputCards = cms.PSet( mdtau = cms.int32(0), pjak2 = cms.int32(0), pjak1 = cms.int32(0) ) ), parameterSets = cms.vstring('Tauola') ), maxEventsToPrint = cms.untracked.int32(1), pythiaPylistVerbosity = cms.untracked.int32(1),
def CompactSkim(process, inFileNames, outFileName, Global_Tag='auto:run2_mc', MC=True, Filter=True): patAlgosToolsTask = getPatAlgosToolsTask(process) process.load('Configuration.StandardSequences.Services_cff') process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Configuration.EventContent.EventContent_cff') process.load('Configuration.StandardSequences.GeometryRecoDB_cff') process.load( 'Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff') process.load('Configuration.StandardSequences.EndOfProcess_cff') patAlgosToolsTask.add(process.MEtoEDMConverter) process.load( 'Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff' ) process.MessageLogger.cerr.FwkReport.reportEvery = 100 process.options = cms.untracked.PSet(wantSummary=cms.untracked.bool(False)) process.source = cms.Source('PoolSource', fileNames=cms.untracked.vstring(inFileNames)) process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(-1)) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, Global_Tag, '') # make patCandidates, select and clean them process.load('PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff') patAlgosToolsTask.add(process.patCandidatesTask) process.load( 'PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff') patAlgosToolsTask.add(process.selectedPatCandidatesTask) process.load('PhysicsTools.PatAlgos.cleaningLayer1.cleanPatCandidates_cff') patAlgosToolsTask.add(process.cleanPatCandidatesTask) process.patMuons.embedTrack = True process.selectedPatMuons.cut = cms.string( 'muonID(\"TMOneStationTight\")' ' && abs(innerTrack.dxy) < 0.3' ' && abs(innerTrack.dz) < 20.' ' && innerTrack.hitPattern.trackerLayersWithMeasurement > 5' ' && innerTrack.hitPattern.pixelLayersWithMeasurement > 0' ' && innerTrack.quality(\"highPurity\")') #make patTracks from PhysicsTools.PatAlgos.tools.trackTools import makeTrackCandidates makeTrackCandidates( process, label='TrackCands', # output collection tracks=cms.InputTag('generalTracks'), # input track collection particleType='pi+', # particle type (for assigning a mass) preselection='pt > 0.7', # preselection cut on candidates selection='pt > 0.7', # selection on PAT Layer 1 objects isolation={}, # isolations to use (set to {} for None) isoDeposits=[], mcAs=None # replicate MC match as the one used for Muons ) process.patTrackCands.embedTrack = True # dimuon = Onia2MUMU process.load('HeavyFlavorAnalysis.Onia2MuMu.onia2MuMuPAT_cfi') patAlgosToolsTask.add(process.onia2MuMuPAT) process.onia2MuMuPAT.muons = cms.InputTag('cleanPatMuons') process.onia2MuMuPAT.primaryVertexTag = cms.InputTag( 'offlinePrimaryVertices') process.onia2MuMuPAT.beamSpotTag = cms.InputTag('offlineBeamSpot') process.onia2MuMuPATCounter = cms.EDFilter( 'CandViewCountFilter', src=cms.InputTag('onia2MuMuPAT'), minNumber=cms.uint32(1), filter=cms.bool(True)) # reduce MC genParticles a la miniAOD process.load('PhysicsTools.PatAlgos.slimming.genParticles_cff') patAlgosToolsTask.add(process.genParticlesTask) process.packedGenParticles.inputVertices = cms.InputTag( 'offlinePrimaryVertices') # make photon candidate conversions for P-wave studies process.load( 'HeavyFlavorAnalysis.Onia2MuMu.OniaPhotonConversionProducer_cfi') patAlgosToolsTask.add(process.PhotonCandidates) # add v0 with tracks embed process.load('HeavyFlavorAnalysis.Onia2MuMu.OniaAddV0TracksProducer_cfi') patAlgosToolsTask.add(process.oniaV0Tracks) # Pick branches you want to keep SlimmedEventContent = [ 'keep recoVertexs_offlinePrimaryVertices_*_*', 'keep *_inclusiveSecondaryVertices_*_*', 'keep *_offlineBeamSpot_*_*', 'keep *_TriggerResults_*_HLT', 'keep *_gtDigis_*_RECO', 'keep *_cleanPatTrackCands_*_*', 'keep *_PhotonCandidates_*_*', 'keep *_onia2MuMuPAT_*_*', 'keep *_generalV0Candidates_*_*', 'keep *_oniaV0Tracks_*_*', 'keep PileupSummaryInfos_*_*_*' ] if not MC: from PhysicsTools.PatAlgos.tools.coreTools import runOnData runOnData(process, outputModules=[]) else: SlimmedEventContent += [ 'keep patPackedGenParticles_packedGenParticles_*_*', 'keep recoGenParticles_prunedGenParticles_*_*', 'keep GenFilterInfo_*_*_*', 'keep GenEventInfoProduct_generator_*_*', 'keep GenRunInfoProduct_*_*_*' ] process.FilterOutput = cms.Path(process.onia2MuMuPATCounter) process.out = cms.OutputModule( 'PoolOutputModule', fileName=cms.untracked.string(outFileName), outputCommands=cms.untracked.vstring('drop *', *SlimmedEventContent), SelectEvents=cms.untracked.PSet( SelectEvents=cms.vstring('FilterOutput')) if Filter else cms.untracked.PSet()) process.outpath = cms.EndPath(process.out, patAlgosToolsTask)
import FWCore.ParameterSet.Config as cms process = cms.Process("GenAnalyzer") #process.load("FWCore.MessageService.MessageLogger_cfi") process.load('Configuration/StandardSequences/Services_cff') process.load('Configuration/StandardSequences/GeometryExtended_cff') process.load('Configuration/StandardSequences/MagneticField_38T_cff') process.load( 'Configuration/StandardSequences/FrontierConditions_GlobalTag_cff') globalTag = "" globalTag = '100X_upgrade2018_realistic_v10' process.GlobalTag.globaltag = cms.string(globalTag) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, globalTag, '') process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(-1)) process.source = cms.Source( "PoolSource", duplicateCheckMode=cms.untracked.string('noDuplicateCheck'), #skipEvents = cms.untracked.uint32(842), fileNames=cms.untracked.vstring( "file:/eos/uscms/store/group/l1upgrades/MC2020SPSToYY_NoGenCut/SPSToYY_13TeV_pythia8/crab_RunIIAutumn18MiniAOD-102X_upgrade2018_realistic_v15-GENSIM-SPSTo4mu-noGenCut-v1/200709_040832/0002/FourMu_qqorggMC_2600.root" )) process.GenAnalyzer = cms.EDAnalyzer( 'GenAnalyzer', genParticlesAOD=cms.InputTag('genParticles')) process.p = cms.Path( #process.hiGenParticles * #process.genParticles * process.GenAnalyzer)
#process.source = cms.Source("PoolSource",fileNames = files, process.source = cms.Source( "PoolSource", fileNames=cms.untracked.vstring( 'file:reco_fourTracksVertexing_1.root', 'file:reco_fourTracksVertexing_2.root', 'file:reco_fourTracksVertexing_3.root', 'file:reco_fourTracksVertexing_4.root', #'/store/user/ltsai/vertexProducer/20181228revision/Charmonium/2016RunC_vertexProducer/181228_101222/0000/vertexProducer_BdRemoved_9.root' #'file:///home/ltsai/ReceivedFile/tmp/vertexProducer_BdRemoved_1-10.root' ), duplicateCheckMode=cms.untracked.string('noDuplicateCheck')) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '') process.GlobalTag = GlobalTag(process.GlobalTag, '80X_dataRun2_2016LegacyRepro_v3', '') #process.GlobalTag = GlobalTag(process.GlobalTag, '94X_dataRun2_ReReco_EOY17_v1', '') process.TFileService = cms.Service( 'TFileService', fileName=cms.string('tree_VCCAnalyzer_forTest.root'), closeFileFast=cms.untracked.bool(True)) process.VertexCompCandAnalyzer = cms.EDAnalyzer( 'VertexCompCandAnalyzer', pL0BCandsLabel=cms.string( "fourTracksFromVCCProducer:pL0B:myVertexingProcedure"), nL0BCandsLabel=cms.string( "fourTracksFromVCCProducer:nL0B:myVertexingProcedure"), LbL0CandsLabel=cms.string( "fourTracksFromVCCProducer:LbL0:myVertexingProcedure"),
filterName = cms.untracked.string('') ), dropMetaData = cms.untracked.string('ALL'), eventAutoFlushCompressedSize = cms.untracked.int32(15728640), fastCloning = cms.untracked.bool(False), # fileName = cms.untracked.string('file:miniaodv2.root'), fileName = cms.untracked.string('file:T2bW_<mSTOP>_seed<seed>_decayed_1000024_<mNLSP>__1000022_<mLSP>_step3.root'), outputCommands = process.MINIAODSIMEventContent.outputCommands, overrideInputFileSplitLevels = cms.untracked.bool(True) ) # Additional output definition # Other statements from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, '74X_mcRun2_asymptotic_v2', '') # Path and EndPath definitions process.Flag_trkPOG_toomanystripclus53X = cms.Path(~process.toomanystripclus53X) process.Flag_EcalDeadCellBoundaryEnergyFilter = cms.Path(process.EcalDeadCellBoundaryEnergyFilter) process.Flag_HBHENoiseIsoFilter = cms.Path(process.HBHENoiseFilterResultProducer+process.HBHENoiseIsoFilter) process.Flag_trackingFailureFilter = cms.Path(process.goodVertices+process.trackingFailureFilter) process.Flag_goodVertices = cms.Path(process.primaryVertexFilter) process.Flag_hcalLaserEventFilter = cms.Path(process.hcalLaserEventFilter) process.Flag_CSCTightHaloFilter = cms.Path(process.CSCTightHaloFilter) process.Flag_trkPOGFilters = cms.Path(process.trkPOGFilters) process.Flag_eeBadScFilter = cms.Path(process.eeBadScFilter) process.Flag_trkPOG_manystripclus53X = cms.Path(~process.manystripclus53X) process.Flag_METFilters = cms.Path(process.metFilters) process.Flag_trkPOG_logErrorTooManyClusters = cms.Path(~process.logErrorTooManyClusters) process.Flag_HBHENoiseFilter = cms.Path(process.HBHENoiseFilterResultProducer+process.HBHENoiseFilter)
"PoolOutputModule", dataset=cms.untracked.PSet(dataTier=cms.untracked.string(''), filterName=cms.untracked.string('')), eventAutoFlushCompressedSize=cms.untracked.int32(5242880), fileName=cms.untracked.string('reco_RAW2DIGI_RECO.root'), #outputCommands = process.RECOSIMEventContent.outputCommands, outputCommands=cms.untracked.vstring("drop *"), splitLevel=cms.untracked.int32(0)) # Additional output definition # Other statements from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag #process.GlobalTag = GlobalTag(process.GlobalTag, '74X_dataRun2_Prompt_v0', '') #process.GlobalTag = GlobalTag(process.GlobalTag, '74X_dataRun2_Candidate_2015_10_09_09_41_36', '') process.GlobalTag = GlobalTag(process.GlobalTag, '74X_dataRun2_Candidate_2015_11_03_11_22_18', '') ########################### ## new tracker alignment ## process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff" ) #process.GlobalTag.globaltag = '74X_dataRun2_Prompt_v0' #process.GlobalTag.globaltag = '74X_dataRun2_Candidate_2015_10_09_09_41_36' #process.GlobalTag.globaltag = '74X_dataRun2_Candidate_2015_11_03_11_22_18' process.GlobalTag.globaltag = '74X_dataRun2_EOY_Candidate_v0' #cp /afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/MP/MPproduction/mp1885/jobData/jobm1/alignments_MP.db test/ #https://hypernews.cern.ch/HyperNews/CMS/get/tif-alignment/490/2/1.html process.GlobalTag.toGet = cms.VPSet(
# Generic configuration ######################################## if 'CMSSW_7_4_12' in cmssw_version: globalTags = ['74X_mcRun2_design_v2'] elif 'CMSSW_7_4_1_patch4' in cmssw_version: globalTags = ['MCRUN2_74_V9'] elif 'CMSSW_7_6_3' in cmssw_version: globalTags = ['76X_mcRun2_asymptotic_RunIIFall15DR76_v1'] print 'CMSSW_VERSION is %s' % cmssw_version print 'Using the following global tags [MC, DATA]:' print globalTags process.load( 'Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff' ) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, globalTags[0], '') process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1) process.MessageLogger.cerr.FwkReport.limit = 20 process.MessageLogger.cerr.default.limit = 100 process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(-1)) process.source = cms.Source( "PoolSource", # eventsToProcess = cms.untracked.VEventRange("1:36:3523-1:36:3523"), fileNames=cms.untracked.vstring( options.inputFiles #'/store/user/yoshin/EmJetMC/GENSIM/EmergingJets_mass_X_d_1000_mass_pi_d_2_tau_pi_d_0p001_TuneCUETP8M1_13TeV_pythia8Mod/mass_X_d_1000_mass_pi_d_2_tau_pi_d_0p001/161025_194532/0000/output_1.root', #'/store/user/yoshin/EmJetMC/GENSIM/EmergingJets_mass_X_d_1000_mass_pi_d_10_tau_pi_d_0p001_TuneCUETP8M1_13TeV_pythia8Mod/mass_X_d_1000_mass_pi_d_10_tau_pi_d_0p001/161025_194636/0000/output_1.root'
process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1) process.MessageLogger.cerr = cms.untracked.PSet(threshold = cms.untracked.string("ERROR")) # Geometry #process.load("Configuration.StandardSequences.Geometry_cff") #process.load('Configuration.StandardSequences.GeometryRecoDB_cff') #process.load("Geometry.CaloEventSetup.CaloTopology_cfi") #process.load("Geometry.CaloEventSetup.CaloGeometry_cff") # process.load('Configuration.StandardSequences.GeometryRecoDB_cff') #process.load("Configuration.Geometry.GeometryIdeal_cff" ) process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff" ) process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff') from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, '80X_dataRun2_Prompt_v16') process.source = cms.Source("PoolSource", skipEvents = cms.untracked.uint32(0), fileNames = cms.untracked.vstring( #'/store/relval/CMSSW_9_0_0_pre4/RelValMinBias_13/GEN-SIM-RECO/90X_upgrade2017_realistic_v6_C1-v1/00000/4A007E08-21FD-E611-A97E-0CC47A7C35D2.root', #'/store/mc/RunIISpring15DR74/MinBias_TuneCUETP8M1_13TeV-pythia8/GEN-SIM-RECO/NoPURawReco_castor_MCRUN2_74_V8B-v1/00000/0228FAE3-200E-E511-BAA9-485B3919F0A3.root', #'/store/mc/RunIISpring15DR74/MinBias_TuneZ2star_13TeV-pythia6/GEN-SIM-RECO/NoPU0TRawReco_magnetOff_MCRUN2_740TV0-v1/50000/026AC35A-5B10-E511-9479-0002C90B395A.root', '/store/data/Run2017A/ZeroBias1/RECO/PromptReco-v3/000/296/663/00000/0C40FCDC-5C58-E711-8393-02163E01A50C.root', #'/store/relval/CMSSW_8_0_27/ZeroBias/RECO/2017_04_18_18_14_PRnewco_80X_dataRun2_2016LegacyRepro_v3-v1/00000/0050CF28-9124-E711-B363-0025905B85D6.root', #'/store/relval/CMSSW_8_0_27/ZeroBias/RECO/2017_04_18_18_14_PRnewco_80X_dataRun2_2016LegacyRepro_v3-v1/00000/04318A50-8D24-E711-874D-0025905B858E.root', #'/store/relval/CMSSW_9_2_2/RelValProdMinBias/GEN-SIM-RECO/91X_mcRun1_realistic_v2-v2/10000/7473BBA6-B14D-E711-8057-0CC47A7452D8.root', #' /store/mc/RunIISummer16MiniAODv2/DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/MINIAODSIM/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6_ext2-v1/100000/00099D43-77ED-E611-8889-5065F381E1A1.root', #'/store/relval/CMSSW_8_0_0/SingleElectron/RECO/80X_dataRun2_relval_v0_RelVal_sigEl2015B-v1/10000/062034D6-1CDA-E511-B192-0025905A6138.root', # '/store/relval/CMSSW_3_5_0/RelValMinBias/GEN-SIM-RECO/MC_3XY_V21-v1/0013/F6E3FFAC-6113-DF11-AF06-001BFCDBD15E.root', # '/store/relval/CMSSW_3_5_0/RelValMinBias/GEN-SIM-RECO/MC_3XY_V21-v1/0012/BA183BD4-3813-DF11-B015-00304867902C.root',
# Set the process options -- Display summary at the end, enable unscheduled execution process.options = cms.untracked.PSet(allowUnscheduled=cms.untracked.bool(True), wantSummary=cms.untracked.bool(False)) process.source = cms.Source( "PoolSource", fileNames=cms.untracked.vstring( '/store/data/Run2016H/ZeroBias/MINIAOD/PromptReco-v3/000/284/036/00000/C0BE85AC-589F-E611-8F78-02163E011EC2.root' ), secondaryFileNames=cms.untracked.vstring()) process.load( 'Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff' ) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, str(dataVersion.getGlobalTag()), '') print "GlobalTag=" + dataVersion.getGlobalTag() # Set up electron ID (VID framework) # https://twiki.cern.ch/twiki/bin/view/CMS/MultivariateElectronIdentificationRun2 from PhysicsTools.SelectorUtils.tools.vid_id_tools import * switchOnVIDElectronIdProducer(process, DataFormat.MiniAOD) # define which IDs we want to produce and add them to the VID producer for idmod in [ 'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_PHYS14_PU20bx25_nonTrig_V1_cff' ]: setupAllVIDIdsInModule(process, idmod, setupVIDElectronSelection) # Set up HBHE noise filter # https://twiki.cern.ch/twiki/bin/viewauth/CMS/MissingETOptionalFiltersRun2 print "Setting up HBHE noise filter"
process.load('Configuration.StandardSequences.GeometryDB_cff') process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi") process.load('Configuration.StandardSequences.MagneticField_38T_cff') process.load('Configuration.StandardSequences.EndOfProcess_cff') process.load( 'Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff' ) process.load( "RecoVertex.PrimaryVertexProducer.OfflinePrimaryVerticesRecovery_cfi") process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(-1)) #process.MessageLogger.cerr.FwkReport.reportEvery = 100 from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '') process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000") process.GlobalTag.toGet.extend([ cms.PSet( record=cms.string("HeavyIonRcd"), tag=cms.string("CentralityTable_HFtowers200_HydjetDrum5F_v1020x01_mc"), connect=cms.string("frontier://FrontierProd/CMS_CONDITIONS"), label=cms.untracked.string("HFtowers")), ]) process.options = cms.untracked.PSet( Rethrow=cms.untracked.vstring('ProductNotFound')) process.source = cms.Source( "PoolSource",
process.load('Configuration/StandardSequences/RawToDigi_Data_cff') ## HLT Filter Splash import HLTrigger.HLTfilters.hltHighLevel_cfi process.spashesHltFilter = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone( throw=cms.bool(False), HLTPaths=[ 'HLT_EG20*', 'HLT_SplashEcalSumET', 'HLT_Calibration', 'HLT_EcalCalibration', 'HLT_HcalCalibration', 'HLT_Random', 'HLT_Physics', 'HLT_HcalNZS', 'HLT_SplashEcalSumET', 'HLTriggerFinalPath' ]) ## GlobalTag Conditions Related from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, '74X_dataRun2_Prompt_v2', '') #run2_data', '') ## Process Digi To Raw Step process.digiStep = cms.Sequence(process.ecalDigis + process.ecalPreshowerDigis) ## Process Reco ### Print Out Some Messages process.MessageLogger = cms.Service( "MessageLogger", cout=cms.untracked.PSet(threshold=cms.untracked.string('WARNING')), categories=cms.untracked.vstring('ecalTimeTree'), destinations=cms.untracked.vstring('cout')) # enable the TrigReport and TimeReport process.options = cms.untracked.PSet(
######################################## # Generic configuration ######################################## if 'CMSSW_7_4_12' in cmssw_version: globalTags = ['74X_mcRun2_design_v2', '74X_dataRun2_Prompt_v3'] elif 'CMSSW_7_4_1_patch4' in cmssw_version: globalTags = ['MCRUN2_74_V9', '74X_dataRun2_Prompt_v0'] print 'CMSSW_VERSION is %s' % cmssw_version print 'Using the following global tags [MC, DATA]:' print globalTags process.load( 'Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff' ) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, globalTags[options.data], '') process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1) process.MessageLogger.cerr.FwkReport.limit = 20 process.MessageLogger.cerr.default.limit = 100 process.MessageLogger.suppressWarning = cms.untracked.vstring( 'triggerSelection') process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(100)) process.source = cms.Source( "PoolSource", # eventsToProcess = cms.untracked.VEventRange("1:36:3523-1:36:3523"), fileNames=cms.untracked.vstring( # signal FEVTDEBUG ModelB
dataset = cms.untracked.PSet( dataTier = cms.untracked.string('GEN-SIM-RAW'), filterName = cms.untracked.string('') ), eventAutoFlushCompressedSize = cms.untracked.int32(5242880), fileName = cms.untracked.string(outputFileName), outputCommands = process.RAWSIMEventContent.outputCommands, splitLevel = cms.untracked.int32(0) ) # Additional output definition # Other statements process.genstepfilter.triggerConditions=cms.vstring("generation_step") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:mc', '') process.generator = cms.EDFilter("Pythia8HadronizerFilter", comEnergy = cms.double(13000.0), filterEfficiency = cms.untracked.double(1.0), maxEventsToPrint = cms.untracked.int32(1), pythiaHepMCVerbosity = cms.untracked.bool(False), pythiaPylistVerbosity = cms.untracked.int32(1) PythiaParameters = cms.PSet( parameterSets = cms.vstring('pythia8CommonSettings', 'pythia8CUEP8M1Settings', 'pythia8PowhegEmissionVetoSettings', 'processParameters'), processParameters = cms.vstring('POWHEG:nFinal = 1', '25:onMode = off', '25:onIfMatch = 23 23',
import FWCore.ParameterSet.Config as cms process = cms.Process("PIXEL") # Services process.load('Configuration.StandardSequences.Services_cff') process.TFileService = cms.Service("TFileService", fileName = cms.string('GainCalibration.root')) process.MessageLogger = cms.Service("MessageLogger", text_output = cms.untracked.PSet(threshold = cms.untracked.string('ERROR')), destinations = cms.untracked.vstring('text_output') ) # GlobalTag process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff') from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '') # SLink Data --> Digis process.load('Configuration.StandardSequences.RawToDigi_Data_cff') process.source = cms.Source("PixelSLinkDataInputSource", fedid = cms.untracked.int32(-1), runNumber = cms.untracked.int32(-1), fileNames = cms.untracked.vstring('FILENAME') ) process.siPixelDigis.InputLabel = 'source' # Digis --> Calib Digis process.load("DPGAnalysis-SiPixelTools.GainCalibration.SiPixelCalibDigiProducer_cfi") # Instead of the old calib.dat file, configure these factors here process.siPixelCalibDigis.Repeat = cms.int32(5) process.siPixelCalibDigis.CalibMode = cms.string('GainCalibration') process.siPixelCalibDigis.vCalValues_Int = cms.vint32(
process.load('Configuration.StandardSequences.GeometryRecoDB_cff') process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff') process.load('Configuration.StandardSequences.EndOfProcess_cff') process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff') process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = 1 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) process.options.allowUnscheduled = cms.untracked.bool(True) process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring('file:/lustre/cmswork/cmsdata/ronchese/store/data/Run2017C/Charmonium/MINIAOD/PromptReco-v1/000/299/593/00000/08B4E8B6-1271-E711-81CF-02163E01A72B.root') ) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, '92X_dataRun2_Prompt_v2', '') #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '') #from PhysicsTools.PatAlgos.tools.coreTools import runOnData #runOnData( process, outputModules = [] ) ### vtxTagInfo process.load('RecoBTag/SoftLepton/softLepton_cff') #process.load('RecoBTag/SoftLepton/softPFMuonTagInfos_cfi') #process.load('RecoBTag/SoftLepton/softPFElectronTagInfos_cfi') process.load('RecoBTag/SecondaryVertex/pfInclusiveSecondaryVertexFinderTagInfos_cfi') process.load('RecoBTag/ImpactParameter/pfImpactParameterTagInfos_cfi') #process.load('RecoBTag/SecondaryVertex/secondaryVertexTagInfos_cfi')
process.load('Configuration.StandardSequences.GeometryDB_cff') process.load('Configuration.StandardSequences.MagneticField_38T_cff') #process.load('Configuration.StandardSequences.Reconstruction_cff') #process.load('Configuration.StandardSequences.ReconstructionHeavyIons_cff') process.load('Configuration.StandardSequences.EndOfProcess_cff') #process.load('HeavyIonsAnalysis.Configuration.collisionEventSelection_cff') #process.load('Configuration.EventContent.EventContentHeavyIons_cff') process.load( 'Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff' ) process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(-1)) process.MessageLogger.cerr.FwkReport.reportEvery = 100 from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, '75X_dataRun2_v13', '') process.options = cms.untracked.PSet( Rethrow=cms.untracked.vstring('ProductNotFound')) #fN = cms.untracked.vstring(); #for line in open('flist').read().splitlines(): # fN.append('file:'+line); # process.source = cms.Source( "PoolSource", fileNames=cms.untracked.vstring("file:FullTrack_1.root")) #import FWCore.PythonUtilities.LumiList as LumiList #import FWCore.ParameterSet.Types as CfgTypes #process.source.lumisToProcess = CfgTypes.untracked(CfgTypes.VLuminosityBlockRange()) #JSONfile = 'Cert_210498-211631_HI_PromptReco_Collisions13_JSON_v2.txt'
# initialize MessageLogger and output report process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1) process.MessageLogger.cerr = cms.untracked.PSet( threshold=cms.untracked.string("ERROR")) process.load('Configuration.StandardSequences.GeometryRecoDB_cff') process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff" ) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag #process.GlobalTag = GlobalTag(process.GlobalTag, '80X_dataRun2_Prompt_v16') #process.GlobalTag = GlobalTag(process.GlobalTag, '92X_dataRun2_Prompt_v5') #process.GlobalTag = GlobalTag(process.GlobalTag, '92X_dataRun2_2017Repro_v4') process.GlobalTag = GlobalTag(process.GlobalTag, '101X_dataRun2_Express_v7') #process.GlobalTag = GlobalTag(process.GlobalTag, '94X_dataRun2_Prompt_Candidate_forTkDPG_v2') process.load("Configuration.StandardSequences.MagneticField_cff") ## Geometry ##process.load("Configuration.Geometry.Geometry_cff") #old ##process.load("Configuration.StandardSequences.GeometryDB_cff") #process.load("Configuration.Geometry.GeometryRecoDB_cff") ##process.load('Configuration.Geometry.GeometryIdeal_cff') # #process.load("Geometry.CaloEventSetup.CaloTopology_cfi") ##process.load("Geometry.CaloEventSetup.CaloGeometry_cff") # ## initialize magnetic field #process.load("Configuration.StandardSequences.MagneticField_cff") ##process.load("MagneticField.Engine.autoMagneticFieldProducer_cfi")
"EmptyIOVSource", timetype=cms.string('runnumber'), # The RunInfo for this run is NOT in the globalTag firstValue=cms.uint64(options.runNumber), lastValue=cms.uint64(options.runNumber), interval=cms.uint64(1)) process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(1)) # You can get the bad channel records from a GlobalTag or from specific tags using a PoolDBESSource and an ESPrefer process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff" ) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '') # process.poolDBESSource = cms.ESSource("PoolDBESSource", # BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'), # DBParameters = cms.PSet( # messageLevel = cms.untracked.int32(0), # authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb') # ), # timetype = cms.untracked.string('runnumber'), # connect = cms.string('oracle://cms_orcon_prod/cms_cond_31x_run_info'), # toGet = cms.VPSet( # cms.PSet( # record = cms.string('RunInfoRcd'), # tag = cms.string('runinfo_start_31X_hlt') # ), # )
process.options = cms.untracked.PSet( SkipEvent = cms.untracked.vstring('ProductNotFound') ) process.source = cms.Source ("PoolSource", fileNames = cms.untracked.vstring ( "file:/home/weifengji/StoppedParticles_Run2/AnalysisFramework/CMSSW_7_4_5_ROOT5/src/StoppPtls/Collection/test/RECOWithStoppedParticleEvents.root" ), ) process.load('Configuration.StandardSequences.GeometryRecoDB_cff') process.load('Configuration.StandardSequences.MagneticField_38T_cff') process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff') from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'MCRUN2_74_V9', '') process.candidateStoppPtlstest = cms.EDProducer ("testproducer" ) process.myPath = cms.Path(process.candidateStoppPtlstest) process.load('Configuration.EventContent.EventContent_cff') process.RECOSIMoutput = cms.OutputModule("PoolOutputModule", compressionAlgorithm = cms.untracked.string('LZMA'), compressionLevel = cms.untracked.int32(4), dataset = cms.untracked.PSet( dataTier = cms.untracked.string('RECOSIM'), filterName = cms.untracked.string('') ),
process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(10)) ##################################################################################### # Load Global Tag, Geometry, etc. ##################################################################################### process.load('Configuration.StandardSequences.Services_cff') process.load('Configuration.Geometry.GeometryDB_cff') process.load('Configuration.StandardSequences.MagneticField_38T_cff') process.load( 'Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff' ) process.load('FWCore.MessageService.MessageLogger_cfi') from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '') process.HiForest.GlobalTagLabel = process.GlobalTag.globaltag # Customization from HeavyIonsAnalysis.Configuration.CommonFunctions_cff import overrideJEC_pp5020 process = overrideJEC_pp5020(process) ##################################################################################### # Define tree output ##################################################################################### process.TFileService = cms.Service("TFileService", fileName=cms.string("HiForestAOD.root")) ##################################################################################### # Additional Reconstruction and Analysis: Main Body
compressionAlgorithm=cms.untracked.string('LZMA'), compressionLevel=cms.untracked.int32(4), dataset=cms.untracked.PSet(dataTier=cms.untracked.string(''), filterName=cms.untracked.string('')), dropMetaData=cms.untracked.string('ALL'), eventAutoFlushCompressedSize=cms.untracked.int32(15728640), fastCloning=cms.untracked.bool(False), fileName=cms.untracked.string('miniAOD-prod_PAT.root'), outputCommands=process.MINIAODEventContent.outputCommands, overrideInputFileSplitLevels=cms.untracked.bool(True)) # Additional output definition # Other statements from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'GR_R_74_V8', '') # Path and EndPath definitions process.endjob_step = cms.EndPath(process.endOfProcess) process.MINIAODoutput_step = cms.EndPath(process.MINIAODoutput) #do not add changes to your config after this point (unless you know what you are doing) from FWCore.ParameterSet.Utilities import convertToUnscheduled process = convertToUnscheduled(process) process.load('Configuration.StandardSequences.PAT_cff') # customisation of the process. # Automatic addition of the customisation function from PhysicsTools.PatAlgos.slimming.miniAOD_tools from PhysicsTools.PatAlgos.slimming.miniAOD_tools import miniAOD_customizeAllData