Exemplo n.º 1
0
process.load("FWCore.MessageService.MessageLogger_cfi")

process.load("Configuration.StandardSequences.GeometryDB_cff")
process.load("Configuration.StandardSequences.MagneticField_cff")
#process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff") # gives deprecated message in 80X but still runs
process.load(
    "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
from Configuration.AlCa.GlobalTag import GlobalTag

process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(100))
process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1000)

import os
if os.environ["CMSSW_VERSION"].count("CMSSW_7_6"):
    process.GlobalTag = GlobalTag(process.GlobalTag,
                                  '76X_mcRun2_asymptotic_v13')
elif os.environ["CMSSW_VERSION"].count("CMSSW_8_0"):
    process.GlobalTag = GlobalTag(process.GlobalTag,
                                  '80X_mcRun2_asymptotic_2016_miniAODv2')
else:
    raise Exception, "The default setup for microAODstd.py does not support releases other than 76X and 80X"

process.RandomNumberGeneratorService = cms.Service(
    "RandomNumberGeneratorService")
process.RandomNumberGeneratorService.flashggRandomizedPhotons = cms.PSet(
    initialSeed=cms.untracked.uint32(16253245))

# 2012 data
#process.GlobalTag = GlobalTag(process.GlobalTag, 'GR_R_74_V8A::All')
#process.source = cms.Source("PoolSource",fileNames=cms.untracked.vstring(
#        "/store/relval/CMSSW_7_4_0_pre9/DoubleElectron/MINIAOD/GR_R_74_V8A_RelVal_zEl2012D-v1/00000/5A04EF0A-29D4-E411-BB12-003048FFCC2C.root",
process.AODSIMoutput = cms.OutputModule(
    "PoolOutputModule",
    compressionAlgorithm=cms.untracked.string('LZMA'),
    compressionLevel=cms.untracked.int32(4),
    dataset=cms.untracked.PSet(dataTier=cms.untracked.string('AODSIM'),
                               filterName=cms.untracked.string('')),
    eventAutoFlushCompressedSize=cms.untracked.int32(15728640),
    fileName=cms.untracked.string(
        'file:SUS-RunIISummer16DR80Premix-00036.root'),
    outputCommands=process.AODSIMEventContent.outputCommands)

# Additional output definition

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag,
                              '80X_mcRun2_asymptotic_2016_TrancheIV_v6', '')

# Path and EndPath definitions
process.raw2digi_step = cms.Path(process.RawToDigi)
process.reconstruction_step = cms.Path(process.reconstruction)
process.eventinterpretaion_step = cms.Path(process.EIsequence)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.AODSIMoutput_step = cms.EndPath(process.AODSIMoutput)

# Schedule definition
process.schedule = cms.Schedule(process.raw2digi_step,
                                process.reconstruction_step,
                                process.eventinterpretaion_step,
                                process.endjob_step, process.AODSIMoutput_step)

# customisation of the process.
Exemplo n.º 3
0
import FWCore.ParameterSet.Config as cms

process = cms.Process("Source")

#process.load("DQM.SiStripCommon.MessageLogger_cfi")

process.load("DQM.SiStripCommon.DaqMonitorROOTBackEnd_cfi")

process.load('Configuration.Geometry.GeometryRecoDB_cff')
process.load(
    'Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data')

process.SiStripDetInfoFileReader = cms.Service("SiStripDetInfoFileReader")

process.sistripconn = cms.ESProducer("SiStripConnectivity")

#CHANGED -- use a list to have more than 255 args
list = [
    '/store/data/Run2016G/VRRandom0/RAW/v1/000/280/667/00000/04ABEFF1-8E7A-E611-995E-02163E014384.root',
    '/store/data/Run2016G/VRRandom0/RAW/v1/000/280/667/00000/0623B0EC-9F7A-E611-81EC-02163E011FA0.root',
    '/store/data/Run2016G/VRRandom0/RAW/v1/000/280/667/00000/0A0C7BF6-A17A-E611-9CEE-02163E014165.root',
    '/store/data/Run2016G/VRRandom0/RAW/v1/000/280/667/00000/0C3F7AEC-9F7A-E611-84AA-02163E0144E4.root',
    '/store/data/Run2016G/VRRandom0/RAW/v1/000/280/667/00000/0C62CDEE-9F7A-E611-99AF-02163E0143EF.root',
    '/store/data/Run2016G/VRRandom0/RAW/v1/000/280/667/00000/0CBE29F0-9F7A-E611-9B3A-02163E011C02.root',
    '/store/data/Run2016G/VRRandom0/RAW/v1/000/280/667/00000/1435443E-9F7A-E611-A015-02163E014136.root',
    '/store/data/Run2016G/VRRandom0/RAW/v1/000/280/667/00000/144C4E40-9F7A-E611-A094-02163E014789.root',
    '/store/data/Run2016G/VRRandom0/RAW/v1/000/280/667/00000/1AD7CDDE-9F7A-E611-8221-FA163E69A996.root',
    '/store/data/Run2016G/VRRandom0/RAW/v1/000/280/667/00000/220866EF-9F7A-E611-A918-FA163E2648F7.root',
    '/store/data/Run2016G/VRRandom0/RAW/v1/000/280/667/00000/228C2EEE-9F7A-E611-AE1D-02163E011DFF.root',
process.load('Configuration.StandardSequences.Services_cff')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.EventContent.EventContent_cff')
#process.load('Configuration.Geometry.GeometryExtended2023TTIReco_cff')
process.load(
    'Configuration.Geometry.GeometryExtendedPhase2TkBE5DPixel10DReco_cff')
process.load('Configuration.Geometry.GeometryExtendedPhase2TkBE5DPixel10D_cff')
process.load('Configuration.StandardSequences.MagneticField_38T_PostLS1_cff')
process.load('Configuration.StandardSequences.L1TrackTrigger_cff')
process.load(
    'Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.load('Geometry.TrackerGeometryBuilder.StackedTrackerGeometry_cfi')
process.load('IOMC.EventVertexGenerators.VtxSmearedGauss_cfi')

from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgradePLS3', '')

############################################################
# Path definitions & schedule
############################################################

#run the tracking
BeamSpotFromSim = cms.EDProducer("BeamSpotFromSimProducer")
process.TT_step = cms.Path(process.TrackTriggerTTTracks)
process.TTAssociator_step = cms.Path(process.TrackTriggerAssociatorTracks)

############################################################
# Define the track ntuple process, MyProcess is the (unsigned) PDGID corresponding to the process which is run
# e.g. single electron/positron = 11
#      single pion+/pion- = 211
#      single muon+/muon- = 13
Exemplo n.º 5
0
import os
import FWCore.ParameterSet.Config as cms

process = cms.Process("FED")

# conditions
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
process.load('Configuration.StandardSequences.MagneticField_cff')
process.load(
    'Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')

from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '103X_dataRun2_HLT_v1', '')

# services
process.load('FWCore.MessageService.MessageLogger_cfi')

# input
#import sys, os, inspect
#sys.path.append(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))))
#process.load('sourceFromRaw_Run2018D_HLTPhysics_cff')
## process.load('sourceFromRaw_Run2018D_JetHT_cff')

#process.source = cms.Source("PoolSource",
#fileNames = cms.untracked.vstring('/store/data/Run2018D/EphemeralHLTPhysics1/RAW/v1/000/323/775/00000/A27DFA33-8FCB-BE42-A2D2-1A396EEE2B6E.root')
#)

process.source = cms.Source(
    "PoolSource",
    fileNames=cms.untracked.vstring(
        'file:/mnt/ceph/users/fwyzard/store/data/Run2018D/HLTPhysics/RAW/v1/000/321/177/00000/6225A60D-B99E-E811-AAF2-FA163E33DDD7.root',
    eventAutoFlushCompressedSize=cms.untracked.int32(5242880),
    outputCommands=process.RECOSIMEventContent.outputCommands,
    fileName=cms.untracked.string(
        'SinglePi0Pt5-50_cfi_py_GEN_SIM_DIGI_L1_DIGI2RAW_RAW2DIGI_L1Reco_RECO.root'
    ),
    dataset=cms.untracked.PSet(filterName=cms.untracked.string(''),
                               dataTier=cms.untracked.string('RECOSIM')),
    SelectEvents=cms.untracked.PSet(
        SelectEvents=cms.vstring('generation_step')))

# Additional output definition

# Other statements
process.genstepfilter.triggerConditions = cms.vstring("generation_step")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'START61_V11::All', '')

process.generator = cms.EDProducer("FlatRandomPtGunProducer",
                                   PGunParameters=cms.PSet(
                                       MaxPt=cms.double(50.0),
                                       MinPt=cms.double(5.0),
                                       PartID=cms.vint32(111),
                                       MaxEta=cms.double(2.6),
                                       MaxPhi=cms.double(3.14159265359),
                                       MinEta=cms.double(1.5),
                                       MinPhi=cms.double(-3.14159265359)),
                                   Verbosity=cms.untracked.int32(0),
                                   psethack=cms.string('single gamma pt 35'),
                                   AddAntiParticle=cms.bool(False),
                                   firstRun=cms.untracked.uint32(1))
Exemplo n.º 7
0
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 import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'STARTHI53_LV1::All', '')

from HeavyIonsAnalysis.Configuration.CommonFunctions_cff import *
overrideGT_PbPb2760(process)

process.HeavyIonGlobalParameters = cms.PSet(
    centralityVariable=cms.string("HFtowers"),
    nonDefaultGlauberModel=cms.string("Hydjet_Drum"),
    centralitySrc=cms.InputTag("hiCentrality"))

#####################################################################################
# Define tree output
#####################################################################################

process.TFileService = cms.Service("TFileService",
                                   fileName=cms.string("HiForest.root"))
Exemplo n.º 8
0
process.NANOAODSIMoutput = cms.OutputModule(
    "NanoAODOutputModule",
    compressionAlgorithm=cms.untracked.string('LZMA'),
    compressionLevel=cms.untracked.int32(9),
    dataset=cms.untracked.PSet(dataTier=cms.untracked.string('NANOAODSIM'),
                               filterName=cms.untracked.string('')),
    fileName=cms.untracked.string(
        'TTbar_nano102x_on_mini94x_2017_mc_NANO_test.root'),
    outputCommands=process.NANOAODSIMEventContent.outputCommands)

# Additional output definition

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '102X_mc2017_realistic_v7',
                              '')

# Path and EndPath definitions
process.nanoAOD_step = cms.Path(process.nanoSequenceMC)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.NANOAODSIMoutput_step = cms.EndPath(process.NANOAODSIMoutput)

# Schedule definition
process.schedule = cms.Schedule(process.nanoAOD_step, process.endjob_step,
                                process.NANOAODSIMoutput_step)
from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
associatePatAlgosToolsTask(process)

#Setup FWK for multithreaded
process.options.numberOfThreads = cms.untracked.uint32(8)
process.options.numberOfStreams = cms.untracked.uint32(0)
Exemplo n.º 9
0
    compressionAlgorithm=cms.untracked.string('LZMA'),
    compressionLevel=cms.untracked.int32(4),
    dataset=cms.untracked.PSet(dataTier=cms.untracked.string('MINIAOD'),
                               filterName=cms.untracked.string('')),
    dropMetaData=cms.untracked.string('ALL'),
    eventAutoFlushCompressedSize=cms.untracked.int32(15728640),
    fastCloning=cms.untracked.bool(False),
    fileName=cms.untracked.string('RAWskimmed_inMINIAOD.root'),
    outputCommands=process.MINIAODEventContent.outputCommands,
    overrideInputFileSplitLevels=cms.untracked.bool(True))

# Additional output definition

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '76X_dataRun2_v15', '')

# Path and EndPath definitions
process.raw2digi_step = cms.Path(process.RawToDigi)
process.L1Reco_step = cms.Path(process.L1Reco)
process.reconstruction_step = cms.Path(process.reconstruction)
process.Flag_trackingFailureFilter = cms.Path(process.goodVertices +
                                              process.trackingFailureFilter)
process.Flag_goodVertices = cms.Path(process.primaryVertexFilter)
process.Flag_CSCTightHaloFilter = cms.Path(process.CSCTightHaloFilter)
process.Flag_trkPOGFilters = cms.Path(process.trkPOGFilters)
process.Flag_trkPOG_logErrorTooManyClusters = cms.Path(
    ~process.logErrorTooManyClusters)
process.Flag_EcalDeadCellTriggerPrimitiveFilter = cms.Path(
    process.EcalDeadCellTriggerPrimitiveFilter)
process.Flag_ecalLaserCorrFilter = cms.Path(process.ecalLaserCorrFilter)
Exemplo n.º 10
0
    dataset=cms.untracked.PSet(dataTier=cms.untracked.string(''),
                               filterName=cms.untracked.string('')),
    eventAutoFlushCompressedSize=cms.untracked.int32(5242880),
    fileName=cms.untracked.string(
        'SinglePiPt10_pythia8_cfi_py_GEN_SIM_DIGI_L1_DIGI2RAW_RAW2DIGI_RECO.root'
    ),
    outputCommands=process.FEVTDEBUGEventContent.outputCommands,
    splitLevel=cms.untracked.int32(0))

# Additional output definition

# Other statements
process.genstepfilter.triggerConditions = cms.vstring("generation_step")
process.mix.digitizers = cms.PSet(process.theDigitizersValid)
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag,
                              '90X_upgrade2017_realistic_v20', '')

process.generator = cms.EDFilter(
    "Pythia8PtGun",
    PGunParameters=cms.PSet(AddAntiParticle=cms.bool(True),
                            MaxEta=cms.double(2.5),
                            MaxPhi=cms.double(3.14159265359),
                            MaxPt=cms.double(10.01),
                            MinEta=cms.double(-2.5),
                            MinPhi=cms.double(-3.14159265359),
                            MinPt=cms.double(9.99),
                            ParticleID=cms.vint32(211)),
    PythiaParameters=cms.PSet(parameterSets=cms.vstring()),
    Verbosity=cms.untracked.int32(0),
    firstRun=cms.untracked.uint32(1),
    psethack=cms.string('single pi pt 10'))
Exemplo n.º 11
0
    outputCommands=process.RAWSIMEventContent.outputCommands,
    fileName=cms.untracked.string(
        'file:step1_PYTHIA8DijetsPt20_RPRECO_CMS_SIM_newformat_v1.root'),
    dataset=cms.untracked.PSet(filterName=cms.untracked.string(''),
                               dataTier=cms.untracked.string('SIM')))

# Additional output definition
outputCommandsRP = [
    'keep *_totemRPAnalysis_*_*', 'drop *_*_TotemHitsRP_SIM',
    'drop *_*_TotemHitsT1_SIM', 'drop *_*_TotemHitsT2Gem_SIM'
]
process.RAWSIMoutput.outputCommands.extend(outputCommandsRP)

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'MCRUN2_71_V3::All', '')

# Path and EndPath definitions
process.simulation_step = cms.Path(process.psim)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)

# Schedule definition
process.schedule = cms.Schedule(process.simulation_step, process.endjob_step,
                                process.RAWSIMoutput_step)

# customisation of the process.

# Automatic addition of the customisation function from Configuration.DataProcessing.Utils
from Configuration.DataProcessing.Utils import addMonitoring
process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
    splitLevel = cms.untracked.int32(0),
    eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
    outputCommands = process.RAWSIMEventContent.outputCommands,
    fileName = cms.untracked.string('HSCPstopToBottom_M_200_100mm_Tune4C_8TeV_pythia8_cff_DIGI_L1_DIGI2RAW_HLT_PU.root'),
    dataset = cms.untracked.PSet(
        filterName = cms.untracked.string(''),
        dataTier = cms.untracked.string('GEN-SIM-RAW')
    )
)

# Additional output definition

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'START53_V19::All', '')

# Path and EndPath definitions
process.digitisation_step = cms.Path(process.pdigi)
process.L1simulation_step = cms.Path(process.SimL1Emulator)
process.digi2raw_step = cms.Path(process.DigiToRaw)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)

# Schedule definition
process.schedule = cms.Schedule(process.digitisation_step,process.L1simulation_step,process.digi2raw_step)
process.schedule.extend(process.HLTSchedule)
process.schedule.extend([process.endjob_step,process.RAWSIMoutput_step])

# customisation of the process.
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('RecoHI.HiCentralityAlgos.CentralityBin_cfi')

process.load('RecoParticleFlow.PFClusterProducer.particleFlowCluster_cff')
process.load('RecoParticleFlow.Configuration.RecoParticleFlow_cff')

process.load('FWCore.MessageService.MessageLogger_cfi')

# PbPb 53X MC
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'START53_LV6::All', '')

from HeavyIonsAnalysis.Configuration.CommonFunctions_cff import *
#overrideCentrality(process)
overrideGT_pp2760(process)
overrideJEC_pp2760(process)

#process.HeavyIonGlobalParameters = cms.PSet(
#    centralityVariable = cms.string("HFtowersTrunc"),
#    nonDefaultGlauberModel = cms.string(""),
#    centralitySrc = cms.InputTag("pACentrality")
#    )

#####################################################################################
# Define tree output
#####################################################################################
# Output definition

process.RAWoutput = cms.OutputModule(
    "PoolOutputModule",
    dataset=cms.untracked.PSet(dataTier=cms.untracked.string('RAW'),
                               filterName=cms.untracked.string('')),
    eventAutoFlushCompressedSize=cms.untracked.int32(5242880),
    fileName=cms.untracked.string('PreRAWskimmed.root'),
    outputCommands=process.RAWEventContent.outputCommands,
    splitLevel=cms.untracked.int32(0))

# Additional output definition

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag,
                              '80X_dataRun2_2016LegacyRepro_v4', '')

# Path and EndPath definitions
process.raw2digi_step = cms.Path(process.RawToDigi)
process.L1Reco_step = cms.Path(process.L1Reco)
process.reconstruction_step = cms.Path(process.reconstruction)
process.Flag_trackingFailureFilter = cms.Path(process.goodVertices +
                                              process.trackingFailureFilter)
process.Flag_goodVertices = cms.Path(process.primaryVertexFilter)
process.Flag_CSCTightHaloFilter = cms.Path(process.CSCTightHaloFilter)
process.Flag_trkPOGFilters = cms.Path(process.trkPOGFilters)
process.Flag_HcalStripHaloFilter = cms.Path(process.HcalStripHaloFilter)
process.Flag_trkPOG_logErrorTooManyClusters = cms.Path(
    ~process.logErrorTooManyClusters)
process.Flag_EcalDeadCellTriggerPrimitiveFilter = cms.Path(
    process.EcalDeadCellTriggerPrimitiveFilter)
process.LHEoutput = cms.OutputModule("PoolOutputModule",
    dataset = cms.untracked.PSet(
        dataTier = cms.untracked.string('LHE'),
        filterName = cms.untracked.string('')
    ),
    eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
    fileName = cms.untracked.string(options.outputFile),
    outputCommands = process.LHEEventContent.outputCommands,
    splitLevel = cms.untracked.int32(0)
)

# Additional output definition

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:mc', '')

# Path and EndPath definitions
process.LHEoutput_step = cms.EndPath(process.LHEoutput)

# Schedule definition
process.schedule = cms.Schedule(process.LHEoutput_step)

# customisation of the process.

# Automatic addition of the customisation function from Configuration.DataProcessing.Utils
from Configuration.DataProcessing.Utils import addMonitoring 

#call to customisation function addMonitoring imported from Configuration.DataProcessing.Utils
process = addMonitoring(process)
Exemplo n.º 16
0
import FWCore.ParameterSet.Config as cms

from Configuration.AlCa.GlobalTag import GlobalTag
from Configuration.StandardSequences.Eras import eras

process = cms.Process('PLOT', eras.Run2_2016)

process.load(
    "Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff"
)
process.GlobalTag = GlobalTag(
    process.GlobalTag,
    '90X_dataRun2_HLT_Candidate_HCAL_payloads_tests_2017_03_24', '')

process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(-1))

process.source = cms.Source(
    "HcalTBSource",
    fileNames=cms.untracked.vstring(
        '/store/group/dpg_hcal/comm_hcal/USC/run292952/USC_292952.root'))

process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
process.load("SimCalorimetry.Configuration.hcalDigiSequence_cff")
process.load('SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cff')

process.hcalDigis.InputLabel = cms.InputTag("source")

process.TFileService = cms.Service("TFileService",
                                   closeFileFast=cms.untracked.bool(True),
                                   fileName=cms.string('analyze_292952.root'))
##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_23.root',
##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_21.root'
#),
#skipEvents = cms.untracked.uint32(0)
#)
## define maximal number of events to loop over
process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(10000))
## configure process options
process.options = cms.untracked.PSet(wantSummary=cms.untracked.bool(True))

## configure geometry & conditions
process.load("Configuration.Geometry.GeometryRecoDB_cff")
process.load(
    "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc')
process.load("Configuration.StandardSequences.MagneticField_cff")

process.task = cms.Task()

## std sequence for PAT
process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
process.task.add(process.patCandidatesTask)
#Temporary customize to the unit tests that fail due to old input samples
process.patTaus.skipMissingTauID = True
process.load("PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff")
process.task.add(process.selectedPatCandidatesTask)
process.load(
    "TopQuarkAnalysis.TopEventSelection.TtFullHadSignalSelMVAComputer_cff")
process.task.add(process.findTtFullHadSignalSelMVA)
Exemplo n.º 18
0
if len(magfieldstrsplit) > 1:
    MagFieldString += magfieldstrsplit[1]

template_base = 'SiPixelTemplateDBObject_' + MagFieldString + 'T_' + options.Year + '_v' + version
print "Testing sqlite file: " + template_base + ".db"
print "                tag: " + template_base

from Configuration.StandardSequences.Eras import eras

process = cms.Process("SiPixelTemplateDBReaderTest", eras.Run2_25ns)
process.load("CondCore.CondDB.CondDB_cfi")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.load(
    "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, options.GlobalTag, '')

#Load the correct Magnetic Field
process.load("Configuration.StandardSequences.MagneticField_" +
             MagFieldString + "T_cff")

#Change to True if you would like a more detailed error output
wantDetailedOutput = False
#Change to True if you would like to output the full template database object
wantFullOutput = False

process.source = cms.Source("EmptySource")

process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(1))

if not testGlobalTag:
Exemplo n.º 19
0
    dataset=cms.untracked.PSet(
        dataTier=cms.untracked.string('GEN-SIM-DIGI-RAW'),
        filterName=cms.untracked.string('')),
    eventAutoFlushCompressedSize=cms.untracked.int32(5242880),
    fileName=cms.untracked.string('step2_DIGI_DIGI2RAW.root'),
    outputCommands=process.FEVTDEBUGEventContent.outputCommands +
    ['keep *_ctppsPixelRawData_*_*'],
    splitLevel=cms.untracked.int32(0))

# Additional output definition
process.load('SimGeneral.MixingModule.MYmixNoPU_cfi')
process.load("SimCTPPS.CTPPSPixelDigiProducer.RPixDetConf_cfi")

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_hlt_relval', '')

# Path and EndPath definitions
process.mixedigi_step = cms.Path(process.mix * process.RPixDetDigitizer)
process.digi2raw_step = cms.Path(process.DigiToRaw)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)

# Schedule definition
process.schedule = cms.Schedule(process.mixedigi_step, process.digi2raw_step,
                                process.endjob_step,
                                process.FEVTDEBUGoutput_step)
from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
associatePatAlgosToolsTask(process)

# Customisation from command line
        dataTier = cms.untracked.string('GEN-SIM'),
        filterName = cms.untracked.string('')
    ),
    eventAutoFlushCompressedSize = cms.untracked.int32(20971520),
    fileName = cms.untracked.string('file:AMSB_gluinoToChargino_M-2000GeV_M-700GeV_CTau-10000cm_step1.root'),
    outputCommands = process.RAWSIMEventContent.outputCommands,
    splitLevel = cms.untracked.int32(0)
)

# Additional output definition

# Other statements
process.XMLFromDBSource.label = cms.string("Extended")
process.genstepfilter.triggerConditions=cms.vstring("generation_step")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '93X_mc2017_realistic_v3', '')

process.generator = cms.EDFilter("Pythia8GeneratorFilter",
    PythiaParameters = cms.PSet(
        parameterSets = cms.vstring('pythia8CommonSettings', 
            'pythia8CP5Settings', 
            'processParameters'),
        processParameters = cms.vstring('SUSY:all = off', 
            'SUSY:gg2gluinogluino = on', 
            'SUSY:qqbar2gluinogluino = on', 
            '1000024:isResonance = false', 
            '1000024:oneChannel = 1 1.0 100 1000022 211', 
            '1000024:tau0 = 100000.0', 
            'ParticleDecays:tau0Max = 1000000.0'),
        pythia8CP5Settings = cms.vstring('Tune:pp 14', 
            'Tune:ee 7', 
Exemplo n.º 21
0
process.AODSIMoutput = cms.OutputModule(
    "PoolOutputModule",
    compressionAlgorithm=cms.untracked.string('LZMA'),
    compressionLevel=cms.untracked.int32(4),
    dataset=cms.untracked.PSet(dataTier=cms.untracked.string('RECO'),
                               filterName=cms.untracked.string('')),
    eventAutoFlushCompressedSize=cms.untracked.int32(15728640),
    fileName=cms.untracked.string('file:fullsim3.root'),
    outputCommands=process.AODSIMEventContent.outputCommands)

# Additional output definition

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic',
                              '')

# Path and EndPath definitions
process.raw2digi_step = cms.Path(process.RawToDigi)
process.L1Reco_step = cms.Path(process.L1Reco)
process.reconstruction_step = cms.Path(process.reconstruction)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.AODSIMoutput_step = cms.EndPath(process.AODSIMoutput)

# Schedule definition
process.schedule = cms.Schedule(process.raw2digi_step, process.L1Reco_step,
                                process.reconstruction_step,
                                process.endjob_step, process.AODSIMoutput_step)
from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
associatePatAlgosToolsTask(process)
process.AODSIMoutput = cms.OutputModule(
    "PoolOutputModule",
    compressionAlgorithm=cms.untracked.string('LZMA'),
    compressionLevel=cms.untracked.int32(4),
    dataset=cms.untracked.PSet(dataTier=cms.untracked.string('AODSIM'),
                               filterName=cms.untracked.string('')),
    eventAutoFlushCompressedSize=cms.untracked.int32(15728640),
    fileName=cms.untracked.string(
        'file:WR_M-2400_ToLNu_M-800_AODSIM_13TeV-2016.root'),
    outputCommands=process.AODSIMEventContent.outputCommands)

# Additional output definition

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag,
                              '80X_mcRun2_asymptotic_2016_miniAODv2_v1', '')

# Path and EndPath definitions
process.raw2digi_step = cms.Path(process.RawToDigi)
process.L1Reco_step = cms.Path(process.L1Reco)
process.reconstruction_step = cms.Path(process.reconstruction)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.AODSIMoutput_step = cms.EndPath(process.AODSIMoutput)

# Schedule definition
process.schedule = cms.Schedule(process.raw2digi_step, process.L1Reco_step,
                                process.reconstruction_step,
                                process.endjob_step, process.AODSIMoutput_step)

#do not add changes to your config after this point (unless you know what you are doing)
from FWCore.ParameterSet.Utilities import convertToUnscheduled
Exemplo n.º 23
0
import FWCore.ParameterSet.Config as cms
import FWCore.Utilities.FileUtils as FileUtils

process = cms.Process("FLASHggMicroAOD")

process.load("FWCore.MessageService.MessageLogger_cfi")

process.load("Configuration.StandardSequences.GeometryDB_cff")
process.load("Configuration.StandardSequences.MagneticField_cff")
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff")
## process.GlobalTag.globaltag = 'POSTLS170_V5::All'
from Configuration.AlCa.GlobalTag import GlobalTag
## process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc')
import os
if os.environ["CMSSW_VERSION"].count("CMSSW_7_6"):
    process.GlobalTag = GlobalTag(process.GlobalTag, '76X_mcRun2_asymptotic_v13')
elif os.environ["CMSSW_VERSION"].count("CMSSW_8_0"):
    process.GlobalTag = GlobalTag(process.GlobalTag,'80X_mcRun2_asymptotic_v11')
else:
    raise Exception,"The default setup for microAODstd.py does not support releases other than 76X and 80X"

process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService")
process.RandomNumberGeneratorService.flashggRandomizedPhotons = cms.PSet(
          initialSeed = cms.untracked.uint32(16253245)
        )

process.options=cms.untracked.PSet(
    makeTriggerResults = cms.untracked.bool(True),
    wantSummary = cms.untracked.bool(True)
    )
Exemplo n.º 24
0
    SelectEvents=cms.untracked.PSet(
        SelectEvents=cms.vstring('generation_step')),
    dataset=cms.untracked.PSet(dataTier=cms.untracked.string('GEN-SIM-RAW'),
                               filterName=cms.untracked.string('')),
    eventAutoFlushCompressedSize=cms.untracked.int32(5242880),
    fileName=cms.untracked.string('step1.root'),
    outputCommands=process.RAWSIMEventContent.outputCommands,
    splitLevel=cms.untracked.int32(0))

# Additional output definition

# Other statements
process.mix.input.fileNames = cms.untracked.vstring(['pileup.root'])
process.genstepfilter.triggerConditions = cms.vstring("generation_step")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag,
                              '80X_mcRun2_asymptotic_2016_v3', '')

process.generator = cms.EDFilter(
    "Pythia8GeneratorFilter",
    PythiaParameters=cms.PSet(
        parameterSets=cms.vstring('pythia8CommonSettings',
                                  'pythia8CUEP8M1Settings',
                                  'processParameters'),
        processParameters=cms.vstring(
            'LeftRightSymmmetry:ffbar2ZR = on', '9900024:m0 = 5000',
            '9900023:m0 = 3000', '9900014:m0 = 400', '9900024:onMode = off',
            '9900023:onMode = off', '9900023:onIfAny = 9900014, 9900014',
            '9900024:onIfAny = 13,9900014'),
        pythia8CUEP8M1Settings=cms.vstring(
            'Tune:pp 14', 'Tune:ee 7', 'MultipartonInteractions:pT0Ref=2.4024',
            'MultipartonInteractions:ecmPow=0.25208',
Exemplo n.º 25
0
Arquivo: nano57.py Projeto: rsk146/CMS
# Output definition

process.NANOAODoutput = cms.OutputModule(
    "NanoAODOutputModule",
    compressionAlgorithm=cms.untracked.string('LZMA'),
    compressionLevel=cms.untracked.int32(9),
    dataset=cms.untracked.PSet(dataTier=cms.untracked.string('NANOAOD'),
                               filterName=cms.untracked.string('')),
    fileName=cms.untracked.string('file:jetToolbox_nano_datatest57.root'),
    outputCommands=process.NANOAODEventContent.outputCommands)

# Additional output definition

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag,
                              '102X_dataRun2_Sep2018Rereco_v1', '')

# Path and EndPath definitions
process.nanoAOD_step = cms.Path(process.nanoSequence)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.NANOAODoutput_step = cms.EndPath(process.NANOAODoutput)

# Schedule definition
process.schedule = cms.Schedule(process.nanoAOD_step, process.endjob_step,
                                process.NANOAODoutput_step)
from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
associatePatAlgosToolsTask(process)

# customisation of the process.

# Automatic addition of the customisation function from PhysicsTools.NanoAOD.nano_cff
#
#
import FWCore.ParameterSet.Config as cms

process = cms.Process("cluTest")

#process.load("Configuration.Geometry.GeometryRecoDB_cff")
process.load('Configuration.Geometry.GeometryExtended2017Reco_cff')
process.load('Configuration.Geometry.GeometryExtended2017_cff')

#process.load("Configuration.StandardSequences.MagneticField_38T_cff")

process.load(
    "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgrade2017', '')

import HLTrigger.HLTfilters.hltHighLevel_cfi as hlt
# accept if 'path_1' succeeds
process.hltfilter = hlt.hltHighLevel.clone(
    # Min-Bias
    #    HLTPaths = ['HLT_Physics_v*'],
    #    HLTPaths = ['HLT_Random_v*'],
    #    HLTPaths = ['HLT_ZeroBias_*'],
    #    HLTPaths = ['HLT_L1SingleMuOpen_v*'],
    #    HLTPaths = ['HLT_PAZeroBias*'],
    #    HLTPaths = ['HLT_PARandom*'],
    #    HLTPaths = ['HLT_PAMinBias*'],
    # Commissioning: HLT_L1_BptxXOR_BscMinBiasOR
    #    HLTPaths = ['HLT_L1_BptxXOR_BscMinBiasOR'],
    # Zero-Bias : HLT_L1_BPTX, HLT_L1_BPTX_PlusOnly, HLT_L1_BPTX_MinusOnly, HLT_ZeroBias
    compressionAlgorithm=cms.untracked.string('LZMA'),
    compressionLevel=cms.untracked.int32(1),
    dataset=cms.untracked.PSet(dataTier=cms.untracked.string('GEN-SIM'),
                               filterName=cms.untracked.string('')),
    eventAutoFlushCompressedSize=cms.untracked.int32(20971520),
    fileName=cms.untracked.string('file:output.root'),
    outputCommands=process.RAWSIMEventContent.outputCommands,
    splitLevel=cms.untracked.int32(0))

# Additional output definition

# Other statements
process.XMLFromDBSource.label = cms.string("Extended")
process.genstepfilter.triggerConditions = cms.vstring("generation_step")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag,
                              '102X_upgrade2018_realistic_v11', '')

process.gencount = cms.EDFilter("CandViewCountFilter",
                                minNumber=cms.uint32(1),
                                src=cms.InputTag("genfilter"))

process.generator = cms.EDFilter(
    "Pythia8HadronizerFilter",
    PythiaParameters=cms.PSet(
        parameterSets=cms.vstring('pythia8CommonSettings',
                                  'pythia8CP5Settings',
                                  'pythia8PSweightsSettings',
                                  'pythia8PowhegEmissionVetoSettings',
                                  'processParameters'),
        processParameters=cms.vstring(
            'POWHEG:nFinal = 1', 'ParticleDecays:limitTau0= off', '25:m0 =125',
Exemplo n.º 28
0
process.NANOAODSIMoutput = cms.OutputModule(
    "NanoAODOutputModule",
    compressionAlgorithm=cms.untracked.string('LZMA'),
    compressionLevel=cms.untracked.int32(9),
    fakeNameForCrab=cms.untracked.bool(True),
    dataset=cms.untracked.PSet(dataTier=cms.untracked.string('NANOAODSIM'),
                               filterName=cms.untracked.string('')),
    fileName=cms.untracked.string('nanoAOD.root'),
    outputCommands=process.NANOAODSIMEventContent.outputCommands)

# Additional output definition

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '94X_mc2017_realistic_v17',
                              '')

# Path and EndPath definitions
process.nanoAOD_step = cms.Path(process.nanoSequenceMC)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.NANOAODSIMoutput_step = cms.EndPath(process.NANOAODSIMoutput)

# Schedule definition
process.schedule = cms.Schedule(process.nanoAOD_step, process.endjob_step,
                                process.NANOAODSIMoutput_step)
from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
associatePatAlgosToolsTask(process)

# customisation of the process.
process.add_(
    cms.Service('InitRootHandlers', EnableIMT=cms.untracked.bool(False)))
Exemplo n.º 29
0
####### Define conditions ##########
#process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.load(
    'Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff'
)
from Configuration.AlCa.GlobalTag import GlobalTag

GT = ''
if config["RUNONMC"]: GT = '80X_mcRun2_asymptotic_2016_miniAODv2'
elif not (config["RUNONMC"]): GT = '80X_dataRun2_Prompt_v8'

print "*************************************** GLOBAL TAG *************************************************"
print GT
print "****************************************************************************************************"
process.GlobalTag = GlobalTag(process.GlobalTag, GT)

######### read JSON file for data ##########
if not (config["RUNONMC"]) and config["USEJSON"]:

    import FWCore.PythonUtilities.LumiList as LumiList
    import FWCore.ParameterSet.Types as CfgTypes
    process.source.lumisToProcess = CfgTypes.untracked(
        CfgTypes.VLuminosityBlockRange())
    myLumis = LumiList.LumiList(
        filename=config["JSONFILE"]).getCMSSWString().split(',')
    process.source.lumisToProcess.extend(myLumis)

####### Redo Jet clustering sequence ##########
betapar = cms.double(0.0)
fatjet_ptmin = 100.0
Exemplo n.º 30
0
        dataTier = cms.untracked.string('GEN-SIM-DIGI')
    ),
    SelectEvents = cms.untracked.PSet(
        SelectEvents = cms.vstring('generation_step')
    )
)

# Additional output definition
process.TFileService = cms.Service("TFileService",
                                   fileName = cms.string('TBGenSimDigi.root')
                                   )

# Other statements
process.genstepfilter.triggerConditions=cms.vstring("generation_step")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_design', '')

process.generator = cms.EDProducer("FlatRandomEThetaGunProducer",
    AddAntiParticle = cms.bool(True),
    PGunParameters = cms.PSet(
        MinE = cms.double(99.99),
        MaxE = cms.double(100.01),
        MinTheta = cms.double(0.0),
        MaxTheta = cms.double(0.0),
        MinPhi = cms.double(-3.14159265359),
        MaxPhi = cms.double(3.14159265359),
        PartID = cms.vint32(13)
    ),
    Verbosity = cms.untracked.int32(0),
    firstRun = cms.untracked.uint32(1),
    psethack = cms.string('single muon E 100')