Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:43

0001 ################################################################################################
0002 # plots cluster occupancy
0003 # To run execute do
0004 # cmsRun L1Trigger/TrackerDTC/test/testDAQ.py
0005 # where the arguments take default values if you don't specify them. You can change defaults below.
0006 #################################################################################################
0007 
0008 import FWCore.ParameterSet.Config as cms
0009 
0010 process = cms.Process( "Demo" )
0011 process.load( 'FWCore.MessageService.MessageLogger_cfi' )
0012 process.load( 'Configuration.Geometry.GeometryExtended2026D76Reco_cff' ) 
0013 process.load( 'Configuration.Geometry.GeometryExtended2026D76_cff' )
0014 process.load( 'Configuration.StandardSequences.MagneticField_cff' )
0015 process.load( 'Configuration.StandardSequences.FrontierConditions_GlobalTag_cff' )
0016 process.load( 'L1Trigger.TrackTrigger.TrackTrigger_cff' )
0017 
0018 from Configuration.AlCa.GlobalTag import GlobalTag
0019 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0020 
0021 # load code that analyzes TTCluster
0022 process.load( 'L1Trigger.TrackerDTC.AnalyzerDAQ_cff' )
0023 
0024 # build schedule
0025 process.path = cms.Path( process.TrackerDTCAnalyzerDAQ )
0026 process.schedule = cms.Schedule( process.path )
0027 
0028 # create options
0029 import FWCore.ParameterSet.VarParsing as VarParsing
0030 options = VarParsing.VarParsing( 'analysis' )
0031 # specify input MC
0032 Samples = [
0033   #'/store/relval/CMSSW_11_3_0_pre6/RelValSingleMuFlatPt2To100/GEN-SIM-DIGI-RAW/113X_mcRun4_realistic_v6_2026D76noPU-v1/10000/05f802b7-b0b3-4cca-8b70-754682c3bb4c.root'
0034   #'/store/relval/CMSSW_11_3_0_pre6/RelValDisplacedMuPt2To100Dxy100/GEN-SIM-DIGI-RAW/113X_mcRun4_realistic_v6_2026D76noPU-v1/00000/011da61a-9524-4a96-b91f-03e8690af3bd.root'
0035   '/store/relval/CMSSW_11_3_0_pre6/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_113X_mcRun4_realistic_v6_2026D76PU200-v1/00000/00026541-6200-4eed-b6f8-d3a1fd720e9c.root',
0036   '/store/relval/CMSSW_11_3_0_pre6/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_113X_mcRun4_realistic_v6_2026D76PU200-v1/00000/013d0125-8f6e-496b-8335-614398c9210d.root',
0037   '/store/relval/CMSSW_11_3_0_pre6/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_113X_mcRun4_realistic_v6_2026D76PU200-v1/00000/058bd134-86de-47e1-bcde-379ed9b79e1b.root',
0038   '/store/relval/CMSSW_11_3_0_pre6/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_113X_mcRun4_realistic_v6_2026D76PU200-v1/00000/0915d66c-cbd4-4ef6-9971-7dd59e198b56.root',
0039   '/store/relval/CMSSW_11_3_0_pre6/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_113X_mcRun4_realistic_v6_2026D76PU200-v1/00000/09823c8d-e443-4066-8347-8c704929cb2b.root',
0040   '/store/relval/CMSSW_11_3_0_pre6/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_113X_mcRun4_realistic_v6_2026D76PU200-v1/00000/0c39a1aa-93ee-41c1-8543-6d90c09114a7.root',
0041   '/store/relval/CMSSW_11_3_0_pre6/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_113X_mcRun4_realistic_v6_2026D76PU200-v1/00000/0fcdcc53-fb9f-4f0b-8529-a4d60d914c14.root',
0042   '/store/relval/CMSSW_11_3_0_pre6/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_113X_mcRun4_realistic_v6_2026D76PU200-v1/00000/16760a5c-9cd2-41c3-82e5-399bb962d537.root',
0043   '/store/relval/CMSSW_11_3_0_pre6/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_113X_mcRun4_realistic_v6_2026D76PU200-v1/00000/1752640f-2001-4d14-9276-063ec07cea92.root',
0044   '/store/relval/CMSSW_11_3_0_pre6/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_113X_mcRun4_realistic_v6_2026D76PU200-v1/00000/180712c9-31a5-4f2a-bf92-a7fbee4dabad.root'
0045 ]
0046 options.register( 'inputMC', Samples, VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, "Files to be processed" )
0047 # specify number of events to process.
0048 options.register( 'Events',100,VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.int, "Number of Events to analyze" )
0049 options.parseArguments()
0050 
0051 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(False) )
0052 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(options.Events) )
0053 process.source = cms.Source(
0054   "PoolSource",
0055   fileNames = cms.untracked.vstring( options.inputMC ),
0056   secondaryFileNames = cms.untracked.vstring(),
0057   duplicateCheckMode = cms.untracked.string( 'noDuplicateCheck' )
0058 )
0059 process.Timing = cms.Service( "Timing", summaryOnly = cms.untracked.bool( True ) )
0060 process.TFileService = cms.Service( "TFileService", fileName = cms.string( "Hist.root" ) )