Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:20

0001 #
0002 # Last update: new version for python
0003 #
0004 #
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("cluTest")
0008 
0009 process.load("Configuration.StandardSequences.GeometryDB_cff")
0010 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0011 
0012 
0013 import HLTrigger.HLTfilters.hltHighLevel_cfi as hlt
0014 # accept if 'path_1' succeeds
0015 process.hltfilter = hlt.hltHighLevel.clone(
0016 # Min-Bias
0017 #    HLTPaths = ['HLT_Physics_v*'],
0018 #    HLTPaths = ['HLT_Random_v*'],
0019     HLTPaths = ['HLT_ZeroBias_*'],
0020 #    HLTPaths = ['HLT_PAZeroBias*'],
0021 #    HLTPaths = ['HLT_PARandom*'],
0022 #    HLTPaths = ['HLT_PAMinBias*'],
0023 # Commissioning: HLT_L1_BptxXOR_BscMinBiasOR
0024 #    HLTPaths = ['HLT_L1_BptxXOR_BscMinBiasOR'],
0025 # Zero-Bias : HLT_L1_BPTX, HLT_L1_BPTX_PlusOnly, HLT_L1_BPTX_MinusOnly, HLT_ZeroBias
0026 #    HLTPaths = ['HLT_L1_BPTX','HLT_ZeroBias','HLT_L1_BPTX_MinusOnly','HLT_L1_BPTX_PlusOnly'],
0027 #    HLTPaths = ['p*'],
0028 #    HLTPaths = ['path_?'],
0029     andOr = True,  # False = and, True=or
0030     throw = False
0031     )
0032 
0033 # to select PhysicsBit
0034 process.load('HLTrigger.special.hltPhysicsDeclared_cfi')
0035 process.hltPhysicsDeclared.L1GtReadoutRecordTag = 'gtDigis'
0036 
0037 process.maxEvents = cms.untracked.PSet(
0038     input = cms.untracked.int32(-1)
0039 )
0040 
0041 process.MessageLogger = cms.Service("MessageLogger",
0042     debugModules = cms.untracked.vstring('siPixelClusters'),
0043     destinations = cms.untracked.vstring('cout'),
0044 #    destinations = cms.untracked.vstring("log","cout"),
0045     cout = cms.untracked.PSet(
0046         threshold = cms.untracked.string('WARNING')
0047 #        threshold = cms.untracked.string('ERROR')
0048     )
0049 #    log = cms.untracked.PSet(
0050 #        threshold = cms.untracked.string('DEBUG')
0051 #    )
0052 )
0053 
0054 process.source = cms.Source("PoolSource",
0055   fileNames = cms.untracked.vstring(    
0056 # fill 3273 run 206940
0057 #  "/store/data/Run2012D/MinimumBias/RECO/PromptReco-v1/000/206/940/FA55823C-312C-E211-94AB-001D09F29533.root",
0058 # for MC 
0059   'file:clus.root'
0060 #  'file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100/clus/clus1.root'
0061 #  'file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100/rechits/rechits1.root'
0062 #  'file:../../../../../CMSSW_7_0_0_pre8/src/EventFilter/SiPixelRawToDigi/test/digis.root'
0063 #   'file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100_71_pre7/rechits/rechits2_postls171.root'
0064 #   'file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100_71_pre7/rechits/rechits2_mc71.root'
0065 
0066   )
0067 )
0068 
0069 # for data 
0070 #process.source.lumisToProcess = cms.untracked.VLuminosityBlockRange('206940:0-206940:1027')
0071 
0072 process.TFileService = cms.Service("TFileService",
0073     fileName = cms.string('histo.root')
0074 )
0075 
0076 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0077 # Choose the global tag here:
0078 # 2022
0079 process.GlobalTag.globaltag = 'auto:phase1_2022_realistic'
0080 
0081 process.analysis = cms.EDAnalyzer("ReadPixClusters",
0082     Verbosity = cms.untracked.bool(True),
0083     src = cms.InputTag("siPixelClusters"),
0084 )
0085 
0086 # for data
0087 #process.p = cms.Path(process.hltPhysicsDeclared*process.hltfilter*process.analysis)
0088 #process.p = cms.Path(process.hltPhysicsDeclared*process.analysis)
0089 # for MC
0090 process.p = cms.Path(process.analysis)
0091 
0092 
0093 # define an EndPath to analyze all other path results
0094 #process.hltTrigReport = cms.EDAnalyzer( 'HLTrigReport',
0095 #    HLTriggerResults = cms.InputTag( 'TriggerResults','','' )
0096 #)
0097 #process.HLTAnalyzerEndpath = cms.EndPath( process.hltTrigReport )