import FWCore.ParameterSet.Config as cms process = cms.Process("MssmHbb") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1000) ## Using MINIAOD. GlobalTag just in case jet re-clustering, L1 trigger filter etc is needed to be done process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag( process.GlobalTag, globaltag='76X_mcRun2_asymptotic_RunIIFall15DR76_v1') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') ## fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool(False) process.GlobalTag.ReconnectEachRun = cms.untracked.bool(False) process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(100)) output_file = 'test_mc.root' ## TFileService process.TFileService = cms.Service("TFileService", fileName=cms.string(output_file)) # ## ============ TRIGGER FILTER =============== BE CAREFUL!!!
import FWCore.ParameterSet.Config as cms process = cms.Process("MAOD") # initialize MessageLogger and output report process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = 1000 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff') from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = 'MCRUN2_72_V1A::All') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_COND_31X_GLOBALTAG' process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) from JetMETCorrections.Configuration.JetCorrectionServices_cff import * process.ak4PFCHSL1Fastjet = cms.ESProducer( 'L1FastjetCorrectionESProducer', level = cms.string('L1FastJet'), algorithm = cms.string('AK4PFchs'), srcRho = cms.InputTag( 'fixedGridRhoAll' ) ) process.ak4PFchsL2Relative = ak4CaloL2Relative.clone( algorithm = 'AK4PFchs' ) process.ak4PFchsL3Absolute = ak4CaloL3Absolute.clone( algorithm = 'AK4PFchs' )
'TriggerResults', '', 'HLTFake') process.hltDQMHLTScalers.processname = 'HLTFake' if 'hltDQML1SeedLogicScalers' in process.__dict__: process.hltDQML1SeedLogicScalers.processname = 'HLTFake' # limit the number of events to be processed process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(100)) # enable the TrigReport and TimeReport process.options = cms.untracked.PSet(wantSummary=cms.untracked.bool(True)) # override the GlobalTag, connection string and pfnPrefix if 'GlobalTag' in process.__dict__: from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag='auto:run1_hlt_Fake') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string( 'frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace( 'frontier://FrontierProd/', 'frontier://FrontierProd/') # fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool(False) process.GlobalTag.ReconnectEachRun = cms.untracked.bool(False) if 'MessageLogger' in process.__dict__: process.MessageLogger.categories.append('TriggerSummaryProducerAOD') process.MessageLogger.categories.append('L1GtTrigReport') process.MessageLogger.categories.append('HLTrigReport') process.MessageLogger.categories.append('FastReport')
import os import FWCore.ParameterSet.Config as cms process = cms.Process("MssmHbb") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(-1) ## Using MINIAOD. GlobalTag just in case jet re-clustering, L1 trigger filter etc is needed to be done process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag #process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = '74X_dataRun2_Prompt_v1') process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag='74X_dataRun2_v5') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') ## fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool(False) process.GlobalTag.ReconnectEachRun = cms.untracked.bool(False) process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(3000)) output_file = 'output_new_jec.root' ## TFileService process.TFileService = cms.Service("TFileService", fileName=cms.string(output_file))
import FWCore.ParameterSet.Config as cms process = cms.Process("MssmHbb") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1) ## Using MINIAOD. GlobalTag just in case jet re-clustering, L1 trigger filter etc is needed to be done process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = '76X_dataRun2_16Dec2015_v0') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') ## fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool( False ) process.GlobalTag.ReconnectEachRun = cms.untracked.bool( False ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) ) output_file = 'test_data.root' ## TFileService process.TFileService = cms.Service("TFileService", fileName = cms.string(output_file) ) ## ============ TRIGGER FILTER =============== ## Enable below at cms.Path if needed process.triggerSelection = cms.EDFilter( "TriggerResultsFilter",
# Generate ttbar events process.load("Configuration.Generator.TTbar_cfi") # L1 Menu and prescale factors : useful for testing all L1 paths # Note: the L1 conditions and menu now come from the GlobalTag ! # Common inputs, with fake conditions (not fake ay more!) process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff") process.load('FastSimulation.Configuration.Geometries_cff') # Get frontier conditions from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag,'auto:run2_mc_GRun') # L1 Emulator and HLT Setup #process.load("FastSimulation.HighLevelTrigger.HLTSetup_cff") # Famos sequences process.load("FastSimulation.Configuration.FamosSequences_cff") # Parametrized magnetic field (new mapping, 4.0 and 3.8T) #process.load("Configuration.StandardSequences.MagneticField_40T_cff") process.load("Configuration.StandardSequences.MagneticField_38T_cff") process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True # HLT paths -- defined from ConfigDB # This one is created on the fly by FastSimulation/Configuration/test/ExampleWithHLT_py.csh process.load("FastSimulation.Configuration.HLT_GRun_cff")
import FWCore.ParameterSet.Config as cms process = cms.Process("MssmHbb") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1000) ## Using MINIAOD. GlobalTag just in case jet re-clustering, L1 trigger filter etc is needed to be done process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag='74X_mcRun2_asymptotic_v2') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') ## fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool(False) process.GlobalTag.ReconnectEachRun = cms.untracked.bool(False) process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(100)) output_file = 'ntuple.root' ## TFileService process.TFileService = cms.Service("TFileService", fileName=cms.string(output_file)) ## ============ TRIGGER FILTER =============== ## Enable below at cms.Path if needed
#process.load("Configuration.StandardSequences.MagneticField_40T_cff") process.load("Configuration.StandardSequences.MagneticField_38T_cff") process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True # If you want to turn on/off pile-up process.load( 'FastSimulation.PileUpProducer.PileUpSimulator_2012_Startup_inTimeOnly_cff' ) #process.load('FastSimulation.PileUpProducer.mix_2012_Startup_inTimeOnly_cff') # You may not want to simulate everything for your study process.famosSimHits.SimulateCalorimetry = True process.famosSimHits.SimulateTracking = True # Get frontier conditions - not applied in the HCAL, see below from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, 'auto:run1_mc') # Allow reading of the tracker geometry from the DB process.load( 'CalibTracker/Configuration/Tracker_DependentRecords_forGlobalTag_nofakes_cff' ) # Apply ECAL miscalibration from FastSimulation.CaloRecHitsProducer.CaloRecHits_cff import * if (CaloMode == 0 or CaloMode == 2): process.ecalRecHit.doMiscalib = True # Apply Tracker misalignment process.famosSimHits.ApplyAlignment = True process.misalignedTrackerGeometry.applyAlignment = True process.misalignedDTGeometry.applyAlignment = True process.misalignedCSCGeometry.applyAlignment = True
import FWCore.ParameterSet.Config as cms process = cms.Process("MssmHbb") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1) ## Using MINIAOD. GlobalTag just in case jet re-clustering, L1 trigger filter etc is needed to be done process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag='76X_dataRun2_16Dec2015_v0') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') ## fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool(False) process.GlobalTag.ReconnectEachRun = cms.untracked.bool(False) process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(100)) output_file = 'test_data.root' ## TFileService process.TFileService = cms.Service("TFileService", fileName=cms.string(output_file)) ## ============ TRIGGER FILTER ===============
import FWCore.ParameterSet.Config as cms process = cms.Process("MssmHbb") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1000) ## Using MINIAOD. GlobalTag just in case jet re-clustering, L1 trigger filter etc is needed to be done process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = '76X_mcRun2_asymptotic_RunIIFall15DR76_v1') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') ## fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool( False ) process.GlobalTag.ReconnectEachRun = cms.untracked.bool( False ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) ) output_file = 'test_mc.root' ## TFileService process.TFileService = cms.Service("TFileService", fileName = cms.string(output_file) ) # ## ============ TRIGGER FILTER =============== BE CAREFUL!!! # ## Enable below at cms.Path if needed # process.triggerSelection = cms.EDFilter( "TriggerResultsFilter", # triggerConditions = cms.vstring(
import FWCore.ParameterSet.Config as cms process = cms.Process("Demo") process.load("Analyzers.TriggerAnalyzers.l1TurnOnVsHltObjectAnalyzer_cfi") process.load("FWCore.MessageService.MessageLogger_cfi") process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") if "GlobalTag" in process.__dict__: from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag="80X_dataRun2_Prompt_v9") process.GlobalTag.connect = "frontier://FrontierProd/CMS_CONDITIONS" process.GlobalTag.pfnPrefix = cms.untracked.string("frontier://FrontierProd/") for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace("frontier://FrontierProd/", "frontier://FrontierProd/") process.GlobalTag.RefreshEachRun = cms.untracked.bool(False) process.GlobalTag.ReconnectEachRun = cms.untracked.bool(False) process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(-1)) # process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) ) process.options = cms.untracked.PSet(wantSummary=cms.untracked.bool(True)) process.source = cms.Source( "PoolSource", fileNames=cms.untracked.vstring( "file:/afs/cern.ch/work/j/jalimena/CMSSW_8_0_12/src/HLTrigger/Configuration/test/outputPhysicsEGammaCommissioning.root" #'/store/relval/CMSSW_8_0_11/HLTPhysics/FEVTDEBUGHLT/80X_dataRun2_HLT_relval_v11_RelVal_hltPhy2015D-v1/10000/00387150-F334-E611-B810-0025905A60F2.root' ), )
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_cff') process.load('Configuration.StandardSequences.Digi_cff') process.load('Configuration.StandardSequences.SimL1Emulator_cff') process.load('Configuration.StandardSequences.DigiToRaw_cff') process.load('Configuration.StandardSequences.RawToDigi_cff') process.load('Configuration.StandardSequences.ReconstructionHeavyIons_cff') process.load('FWCore.MessageService.MessageLogger_cfi') # PbPb 53X MC from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = '75X_mcRun2_HeavyIon_v7') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') process.GlobalTag.RefreshEachRun = cms.untracked.bool( False ) process.GlobalTag.ReconnectEachRun = cms.untracked.bool( False ) process.GlobalTag.toGet.extend([ cms.PSet(record = cms.string("HeavyIonRcd"), tag = cms.string("CentralityTable_HFtowers200_HydjetDrum5_v750x02_mc"), connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"), label = cms.untracked.string("HFtowersHydjetDrum5") ), ])
import FWCore.ParameterSet.Config as cms process = cms.Process("DQM") # DQM service process.load("DQMServices.Core.DQMStore_cfi") # Global Tag from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(globaltag='auto:run2_hlt_GRun') process.GlobalTag.connect = cms.string( 'frontier://FrontierProd/CMS_CONDITIONS') process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') # Source process.source = cms.Source( "PoolSource", fileNames=cms.untracked.vstring( '/store/data/Run2015D/L1Accept/RAW/v1/000/259/721/00000/52AFE8AC-6D78-E511-AF38-02163E0136CA.root' )) process.load("DQM.HLTEvF.triggerBxMonitor_cfi") process.triggerBxMonitor.l1tResults = cms.untracked.InputTag( 'hltGtDigis', '', 'HLT') process.triggerBxMonitor.hltResults = cms.untracked.InputTag( 'TriggerResults', '', 'HLT') process.load('DQMServices.Components.DQMFileSaver_cfi') process.dqmSaver.workflow = "/HLT/TriggerBxMonitor/All" process.endp = cms.EndPath(process.triggerBxMonitor + process.dqmSaver)
connectionTimeOut = cms.untracked.int32( 0 ), connectionRetrialPeriod = cms.untracked.int32( 10 ) ), RefreshAlways = cms.untracked.bool( False ), connect = cms.string( "frontier://(proxyurl=http://localhost:3128)(serverurl=http://localhost:800\ 0/FrontierOnProd)(serverurl=http://localhost:8000/FrontierOnProd)(retrieve-ziplevel=0)/CMS_CONDITIONS\ " ), ReconnectEachRun = cms.untracked.bool( True ), BlobStreamerName = cms.untracked.string( "TBufferBlobStreamingService" ), DumpStat = cms.untracked.bool( False ) ) if 'GlobalTag' in process.__dict__: from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = 'MCHI2_74_V3') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') # fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool( False ) process.GlobalTag.ReconnectEachRun = cms.untracked.bool( False ) process.TrackerDigiGeometryESModule = cms.ESProducer( "TrackerDigiGeometryESModule", appendToDataLabel = cms.string( "" ), fromDDD = cms.bool( False ), trackerGeometryConstants = cms.PSet( ROCS_X = cms.int32( 0 ),
import FWCore.ParameterSet.Config as cms process = cms.Process("MssmHbb") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1000) ## Using MINIAOD. GlobalTag just in case jet re-clustering, L1 trigger filter etc is needed to be done process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = 'MCRUN2_74_V9') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') ## fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool( False ) process.GlobalTag.ReconnectEachRun = cms.untracked.bool( False ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) ) output_file = 'test_mc.root' ## TFileService process.TFileService = cms.Service("TFileService", fileName = cms.string(output_file) ) ## ============ TRIGGER FILTER =============== ## Enable below at cms.Path if needed process.triggerSelection = cms.EDFilter( "TriggerResultsFilter", triggerConditions = cms.vstring(
import FWCore.ParameterSet.Config as cms process = cms.Process("Demo") process.load("FWCore.MessageService.MessageLogger_cfi") process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = 'MCRUN2_74_V9',conditions='TrackerAlignmentExtendedError_2011Realistic_v1_mc,TrackerAlignmentErrorExtendedRcd,frontier://FrontierProd/CMS_CONDITIONS+MuonDTAPEObjectsExtended_v0_mc,DTAlignmentErrorExtendedRcd,frontier://FrontierProd/CMS_CONDITIONS+MuonCSCAPEObjectsExtended_v0_mc,CSCAlignmentErrorExtendedRcd,frontier://FrontierProd/CMS_CONDITIONS+EcalSamplesCorrelation_mc,EcalSamplesCorrelationRcd,frontier://FrontierProd/CMS_CONDITIONS+EcalPulseShapes_mc,EcalPulseShapesRcd,frontier://FrontierProd/CMS_CONDITIONS+EcalPulseCovariances_mc,EcalPulseCovariancesRcd,frontier://FrontierProd/CMS_CONDITIONS') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') # fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool( False ) process.GlobalTag.ReconnectEachRun = cms.untracked.bool( False ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) ## TFileService process.TFileService = cms.Service("TFileService", fileName = cms.string('ntuple_pat_2.root') ) # Ntuplizer process.MonteCarloStudies = cms.EDAnalyzer("Ntuplizer", MonteCarlo = cms.bool(True), CrossSection = cms.double(3.0001143e06), GenFilterInfo = cms.InputTag("genFilterEfficiencyProducer","","SIM"), UseFullName = cms.bool(False), # EventFilter = cms.VInputTag(cms.InputTag("nEventsTotal"),
import FWCore.ParameterSet.Config as cms process = cms.Process("DQM") # DQM service process.load("DQMServices.Core.DQMStore_cfi") # MessageLogger process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = 1000 # Global Tag from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(globaltag = '80X_dataRun2_HLT_v12') process.GlobalTag.connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') # Source process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( 'file:/data/samples/VirginRaw/run279473/VRZeroBias0_run279473_ls134-136.root', 'file:/data/samples/VirginRaw/run279473/VRZeroBias1_run279473_ls134-136.root', 'file:/data/samples/VirginRaw/run279473/VRZeroBias2_run279473_ls134-136.root', 'file:/data/samples/VirginRaw/run279473/VRZeroBias3_run279473_ls134-136.root', 'file:/data/samples/VirginRaw/run279473/VRZeroBias4_run279473_ls134-136.root', 'file:/data/samples/VirginRaw/run279473/VRZeroBias5_run279473_ls134-136.root', 'file:/data/samples/VirginRaw/run279473/VRZeroBias6_run279473_ls134-136.root', 'file:/data/samples/VirginRaw/run279473/VRZeroBias7_run279473_ls134-136.root' # '/store/data/Run2016G/HLTPhysics0/RAW/v1/000/279/931/00000/FC813BFF-1F71-E611-9B4B-02163E014421.root' #'/store/data/Run2016B/HLTPhysics2/RAW/v1/000/272/022/00000/4CE23DEB-CB0D-E611-A6AC-02163E01181C.root' ) )
# Input source process.source = cms.Source("PoolSource", secondaryFileNames = cms.untracked.vstring(), fileNames = cms.untracked.vstring( "/store/user/mnguyen/Hydjet_Quenched_MinBias_5020GeV/HydjetMB_740pre8_MCHI2_74_V3_53XBS_DIGI-RAW/6da45e4e90741bc03dbd9aec5f36c050/step2_DIGI_L1_DIGI2RAW_HLT_RAW2DIGI_L1Reco_100_1_nRy.root" ) ) process.options = cms.untracked.PSet() # Other statements from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag if MONTECARLO: process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = 'MCHI2_74_V3') else: process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = 'GR_P_V27A') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.load('L1Trigger.L1TCalorimeter.caloConfigStage1HI_cfi') process.load('L1Trigger.L1TCalorimeter.L1TCaloStage1_HIFromRaw_cff') if MONTECARLO: # HCAL TP hack for MC only process.load('L1Trigger.L1TCalorimeter.L1TRerunHCALTP_FromRaw_cff') process.ecalDigis.InputLabel = cms.InputTag("rawDataCollector") process.hcalDigis.InputLabel = cms.InputTag("rawDataCollector") process.simRctDigis.ecalDigis = cms.VInputTag( cms.InputTag( 'ecalDigis:EcalTriggerPrimitives' ) ) process.simRctDigis.hcalDigis = cms.VInputTag( cms.InputTag( 'simHcalTriggerPrimitiveDigis' ) )
process.load('FWCore/MessageService/MessageLogger_cfi') #process.MessageLogger.cerr.FwkReport.reportEvery = 100 #process.MessageLogger.cerr.threshold = cms.untracked.string('INFO') process.load("Configuration.Geometry.GeometryDB_cff") process.load( 'Configuration/StandardSequences/FrontierConditions_GlobalTag_cff') process.load( 'Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff' ) process.load("Configuration.StandardSequences.MagneticField_cff") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag( process.GlobalTag, globaltag='MCRUN2_74_V9A', conditions= 'TrackerAlignmentExtendedError_2011Realistic_v1_mc,TrackerAlignmentErrorExtendedRcd,frontier://FrontierProd/CMS_CONDITIONS+MuonDTAPEObjectsExtended_v0_mc,DTAlignmentErrorExtendedRcd,frontier://FrontierProd/CMS_CONDITIONS+MuonCSCAPEObjectsExtended_v0_mc,CSCAlignmentErrorExtendedRcd,frontier://FrontierProd/CMS_CONDITIONS+EcalSamplesCorrelation_mc,EcalSamplesCorrelationRcd,frontier://FrontierProd/CMS_CONDITIONS+EcalPulseShapes_mc,EcalPulseShapesRcd,frontier://FrontierProd/CMS_CONDITIONS+EcalPulseCovariances_mc,EcalPulseCovariancesRcd,frontier://FrontierProd/CMS_CONDITIONS' ) #process.GlobalTag.globaltag = cms.string('PHYS14_25_V2::All') process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(-1)) process.source = cms.Source( "PoolSource", fileNames=cms.untracked.vstring(options.inputFiles), dropDescendantsOfDroppedBranches=cms.untracked.bool(False), inputCommands=cms.untracked.vstring( 'keep *' #'drop patTaus_*_*_*', #'drop *PFTau*_*_*_*' ))
import FWCore.ParameterSet.Config as cms process = cms.Process("MssmHbb") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1) ## Using MINIAOD. GlobalTag just in case jet re-clustering, L1 trigger filter etc is needed to be done process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = '76X_dataRun2_v15') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') ## fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool( False ) process.GlobalTag.ReconnectEachRun = cms.untracked.bool( False ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) ) output_file = 'test_data.root' ## TFileService process.TFileService = cms.Service("TFileService", fileName = cms.string(output_file) ) ## ============ TRIGGER FILTER =============== ## Enable below at cms.Path if needed process.triggerSelection = cms.EDFilter( "TriggerResultsFilter",
'file:/afs/cern.ch/user/h/hardenbr/eos/cms/store/data/Commissioning2015/AlCaP0/RAW/v1/000/246/342/00000/FA28465E-F506-E511-BF44-02163E011D36.root', 'file:/afs/cern.ch/user/h/hardenbr/eos/cms/store/data/Commissioning2015/AlCaP0/RAW/v1/000/246/345/00000/1CEF73A3-0807-E511-8E48-02163E0142EA.root', 'file:/afs/cern.ch/user/h/hardenbr/eos/cms/store/data/Commissioning2015/AlCaP0/RAW/v1/000/246/345/00000/58B5D16B-0807-E511-BF0D-02163E013653.root', 'file:/afs/cern.ch/user/h/hardenbr/eos/cms/store/data/Commissioning2015/AlCaP0/RAW/v1/000/246/345/00000/7C976761-0807-E511-8890-02163E011A81.root', 'file:/afs/cern.ch/user/h/hardenbr/eos/cms/store/data/Commissioning2015/AlCaP0/RAW/v1/000/246/345/00000/CA51F769-0807-E511-B4E7-02163E0134CC.root' )) # limit the number of events to be processed process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32( -1 ) ) # enable the TrigReport and TimeReport process.options = cms.untracked.PSet( # SkipEvent = cms.untracked.vstring('ProductNotFound'), wantSummary = cms.untracked.bool( True ) ) # override the GlobalTag, connection string and pfnPrefix if 'GlobalTag' in process.__dict__: from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = 'GR_P_V54') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') # fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool( False ) process.GlobalTag.ReconnectEachRun = cms.untracked.bool( False )
# Parametrized magnetic field (new mapping, 4.0 and 3.8T) #process.load("Configuration.StandardSequences.MagneticField_40T_cff") process.load("Configuration.StandardSequences.MagneticField_38T_cff") process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True # If you want to turn on/off pile-up process.load('FastSimulation.PileUpProducer.PileUpSimulator_2012_Startup_inTimeOnly_cff') #process.load('FastSimulation.PileUpProducer.mix_2012_Startup_inTimeOnly_cff') # You may not want to simulate everything for your study process.famosSimHits.SimulateCalorimetry = True process.famosSimHits.SimulateTracking = True # Get frontier conditions - not applied in the HCAL, see below from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag,'auto:run1_mc') # Allow reading of the tracker geometry from the DB process.load('CalibTracker/Configuration/Tracker_DependentRecords_forGlobalTag_nofakes_cff') # Apply ECAL miscalibration from FastSimulation.CaloRecHitsProducer.CaloRecHits_cff import * if(CaloMode==0 or CaloMode==2): process.ecalRecHit.doMiscalib = True # Apply Tracker misalignment process.famosSimHits.ApplyAlignment = True process.misalignedTrackerGeometry.applyAlignment = True process.misalignedDTGeometry.applyAlignment = True process.misalignedCSCGeometry.applyAlignment = True # Attention ! for the HCAL IDEAL==STARTUP
# Input source process.source = cms.Source("PoolSource", secondaryFileNames = cms.untracked.vstring(), fileNames = cms.untracked.vstring( #"/store/user/mnguyen/Hydjet_Quenched_MinBias_5020GeV/HydjetMB_740pre8_MCHI2_74_V3_53XBS_DIGI-RAW/6da45e4e90741bc03dbd9aec5f36c050/step2_DIGI_L1_DIGI2RAW_HLT_RAW2DIGI_L1Reco_100_1_nRy.root" #"file:/afs/cern.ch/work/g/ginnocen/public/FilesForUnpackers/skim_10_1_wd2.root" "root://xrootd.cmsaf.mit.edu//store/user/mnguyen/Hydjet_Quenched_MinBias_5020GeV/HydjetMB_740pre8_MCHI2_74_V3_53XBS_DIGI-RAW/6da45e4e90741bc03dbd9aec5f36c050/step2_DIGI_L1_DIGI2RAW_HLT_RAW2DIGI_L1Reco_100_1_nRy.root" ) ) process.options = cms.untracked.PSet() # Other statements from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = 'auto:run2_mc_HIon') process.load('L1Trigger.L1TCalorimeter.caloConfigStage1HI_cfi') # Use PPFromRaw because it grabs the MC info correctly, then change parameters # to match the HI emulator. process.load('L1Trigger.L1TCalorimeter.L1TCaloStage1_PPFromRaw_cff') process.load('L1Trigger.L1TCalorimeter.caloStage1RCTLuts_cff') process.caloStage1Params.jetSeedThreshold = cms.double(0.) process.RCTConfigProducers.eicIsolationThreshold = cms.uint32(7) process.RCTConfigProducers.hOeCut = cms.double(999) process.RCTConfigProducers.eMinForHoECut = cms.double(999) process.RCTConfigProducers.eMaxForHoECut = cms.double(999) process.RCTConfigProducers.hMinForHoECut = cms.double(999) process.RCTConfigProducers.eMinForFGCut = cms.double(999)
import FWCore.ParameterSet.Config as cms process = cms.Process("jectxt") process.load('Configuration.StandardSequences.Services_cff') process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') # define your favorite global tag (OLD GTs) #process.GlobalTag.globaltag = 'PHYS14_25_V2::All' # define your favorite global tag (newer GTs in condDBv2) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = '74X_mcRun2_asymptotic_v2') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1)) process.source = cms.Source("EmptySource") process.read = cms.EDAnalyzer('JetCorrectorDBReader', # below is the communication to the database payloadName = cms.untracked.string('AK4PFchs'), # this is used ONLY for the name of the printed txt files. You can use any name that you like, # but it is recommended to use the GT name that you retrieved the files from. globalTag = cms.untracked.string(process.GlobalTag.globaltag.value().replace("::All","")), printScreen = cms.untracked.bool(False), createTextFile = cms.untracked.bool(True) ) process.p = cms.Path(process.read)
import FWCore.ParameterSet.Config as cms process = cms.Process("Demo") process.load("Analyzers.TriggerAnalyzers.hltAnalyzer_cfi") process.load("FWCore.MessageService.MessageLogger_cfi") process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') if 'GlobalTag' in process.__dict__: from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = 'MCRUN2_72_V3A') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') process.GlobalTag.RefreshEachRun = cms.untracked.bool( False ) process.GlobalTag.ReconnectEachRun = cms.untracked.bool( False ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) #process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) ) process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( 'file:/afs/cern.ch/work/j/jalimena/CMSSW_7_2_2_patch2/src/HLTrigger/Configuration/test/outputA_L1MuOpenSeeds_mchamp500.root' ) ) process.TFileService = cms.Service( "TFileService", fileName = cms.string( 'histosHltAnalyzer_mchamp500_L1MuOpenSeeds.root' )
process.hltDQML1SeedLogicScalers.processname = 'HLTFake' # limit the number of events to be processed process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32( 100 ) ) # enable the TrigReport and TimeReport process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool( True ) ) # override the GlobalTag, connection string and pfnPrefix if 'GlobalTag' in process.__dict__: from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = 'auto:run1_hlt_Fake') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') for pset in process.GlobalTag.toGet.value(): pset.connect = pset.connect.value().replace('frontier://FrontierProd/', 'frontier://FrontierProd/') # fix for multi-run processing process.GlobalTag.RefreshEachRun = cms.untracked.bool( False ) process.GlobalTag.ReconnectEachRun = cms.untracked.bool( False ) if 'MessageLogger' in process.__dict__: process.MessageLogger.categories.append('TriggerSummaryProducerAOD') process.MessageLogger.categories.append('L1GtTrigReport') process.MessageLogger.categories.append('HLTrigReport') process.MessageLogger.categories.append('FastReport') # add specific customizations
filterName = cms.untracked.string('') ), eventAutoFlushCompressedSize = cms.untracked.int32(5242880), fileName = cms.untracked.string('file:AMSB_chargino_step2b.root'), outputCommands = process.RAWSIMEventContent.outputCommands, splitLevel = cms.untracked.int32(0) ) # Additional output definition # Other statements from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'MCRUN2_74_V9', '') from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = 'MCRUN2_74_V9', conditions = 'L1Menu_Collisions2015_25nsStage1_v5,L1GtTriggerMenuRcd,frontier://FrontierProd/CMS_CONDITIONS') # Path and EndPath definitions process.endjob_step = cms.EndPath(process.endOfProcess) process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput) # Schedule definition process.schedule = cms.Schedule() process.schedule.extend(process.HLTSchedule) process.schedule.extend([process.endjob_step,process.RAWSIMoutput_step]) # customisation of the process. # Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.postLS1Customs from SLHCUpgradeSimulations.Configuration.postLS1Customs import customisePostLS1
import FWCore.ParameterSet.Config as cms process = cms.Process("jectxt") process.load('Configuration.StandardSequences.Services_cff') process.load( 'Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') # define your favorite global tag (OLD GTs) #process.GlobalTag.globaltag = 'PHYS14_25_V2::All' # define your favorite global tag (newer GTs in condDBv2) from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag #process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = '80X_mcRun2_asymptotic_2016_TrancheIV_v8') process.GlobalTag = customiseGlobalTag( process.GlobalTag, globaltag='80X_dataRun2_2016SeptRepro_v7') process.GlobalTag.connect = 'frontier://FrontierProd/CMS_CONDITIONS' process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/') process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(1)) process.source = cms.Source("EmptySource") #process.source.firstRun = cms.untracked.uint32(251883) #process.source.firstRun = cms.untracked.uint32(260577) process.read = cms.EDAnalyzer( 'JetCorrectorDBReader', # below is the communication to the database payloadName=cms.untracked.string('AK4PFchs'), # this is used ONLY for the name of the printed txt files. You can use any name that you like, # but it is recommended to use the GT name that you retrieved the files from. globalTag=cms.untracked.string(process.GlobalTag.globaltag.value().replace( "::All", "")), printScreen=cms.untracked.bool(False), createTextFile=cms.untracked.bool(True))
import FWCore.ParameterSet.Config as cms process = cms.Process( "TEST" ) process.load('Configuration.StandardSequences.Services_cff') process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff') process.load('Configuration.EventContent.EventContent_cff') process.load('Configuration.Geometry.GeometryIdeal_cff') recordOverrides = { ('L1RCTParametersRcd', None) : ('L1RCTParametersRcd_L1TDevelCollisions_ExtendedScaleFactorsV4_HIDisabledFGHOE', None) } from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag as customiseGlobalTag process.GlobalTag = customiseGlobalTag(process.GlobalTag, 'auto:run2_data', recordOverrides) process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000") process.source = cms.Source( "PoolSource", fileNames = cms.untracked.vstring( 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/FE492579-3273-E511-A753-02163E0146F8.root', 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/04C7E49A-3273-E511-9994-02163E0141EC.root', 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/143F6A65-3273-E511-A3D9-02163E011834.root', 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/32062764-3273-E511-B1C3-02163E01422C.root', 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/3E6F499A-3273-E511-A07B-02163E01424B.root', 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/5295B07B-3273-E511-B9D5-02163E01452F.root', 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/5862F676-3273-E511-8248-02163E0137F1.root', 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/5A498671-3273-E511-A058-02163E011890.root', 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/5EE4B39A-3273-E511-BFE5-02163E0141EC.root', 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/723F3465-3273-E511-B52C-02163E013815.root', 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/86F74965-3273-E511-906E-02163E011962.root', 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/AC5B5264-3273-E511-85BD-02163E01430B.root', 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/C4941A6E-3273-E511-AC70-02163E0128B4.root', 'root://eoscms//eos/cms/store/data/Run2015D/ZeroBias/RAW/v1/000/259/163/00000/CAF7EC64-3273-E511-A06A-02163E0146A5.root',