Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-18 00:40:07

0001 #
0002 # This python script is the basis for MIB HLT path testing
0003 # 
0004 # Only the developed path are runned on the RAW data sample
0005 #
0006 # We are using GRun_data version of the HLT menu
0007 #
0008 # SV (viret@in2p3.fr): 18/01/2011
0009 #
0010 
0011 import FWCore.ParameterSet.Config as cms
0012 
0013 process = cms.Process('HLT2')
0014 
0015 # import of standard configurations
0016 process.load('Configuration.StandardSequences.Services_cff')
0017 process.load('FWCore.MessageService.MessageLogger_cfi')
0018 process.load('Configuration.StandardSequences.GeometryIdeal_cff')
0019 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0020 process.load('HLTrigger.Configuration.HLT_GRun_data_cff')
0021 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0022 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0023 process.load('Configuration.EventContent.EventContent_cff')
0024 
0025 
0026 # To be adapted to the release
0027 useGlobalTag = 'GR_R_311_V1::All'
0028 #useGlobalTag = 'START311_V1::All'
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(-1)
0032 )
0033 
0034 process.options = cms.untracked.PSet(
0035     SkipEvent = cms.untracked.vstring('ProductNotFound')
0036 )
0037 
0038 # Input source (a raw data file from the Commissioning dataset)
0039 
0040 process.source = cms.Source("PoolSource",
0041                             noEventSort = cms.untracked.bool(True),
0042                             duplicateCheckMode = cms.untracked.string('noDuplicateCheck'),
0043                             fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/cms/store/data/Run2010B/Commissioning/RAW/v1/000/147/043/0C1114D5-E5CD-DF11-8FF5-001D09F2546F.root')
0044 )
0045 
0046 
0047 # Output module (keep only the stuff necessary to the timing module)
0048 
0049 process.output = cms.OutputModule("PoolOutputModule",
0050                                   splitLevel = cms.untracked.int32(0),
0051                                   outputCommands = cms.untracked.vstring( 'drop *', 'keep HLTPerformanceInfo_*_*_*'),
0052                                   fileName = cms.untracked.string('HLT.root'),
0053                                   dataset = cms.untracked.PSet(
0054     dataTier = cms.untracked.string('RECO'),
0055     filterName = cms.untracked.string('')
0056     )
0057 )
0058 
0059 
0060 # Timer
0061 
0062 process.PathTimerService  = cms.Service( "PathTimerService" )
0063 process.hltTimer          = cms.EDProducer( "PathTimerInserter" )
0064 
0065 
0066 # Then we define the info necessary to the paths
0067 
0068 process.HLTBeginSequence = cms.Sequence( process.hltTriggerType + process.HLTL1UnpackerSequence )
0069 
0070 process.HLTDoLocalPixel = cms.Sequence( process.hltSiPixelDigis + process.hltSiPixelClusters)
0071 
0072 
0073 
0074 
0075 
0076 process.HLTDoLocalStrips= cms.Sequence( process.hltSiStripRawToClustersFacility + process.hltSiStripClusters)
0077 
0078 #process.HLTDoLocalStrips= cms.Sequence( process.hltSiStripRawToClustersFacility)
0079 
0080 
0081 
0082 process.hltPixelActivityFilter = cms.EDFilter( "HLTPixelActivityFilter",
0083    inputTag    = cms.InputTag( "hltSiPixelClusters" ),
0084    saveTags = cms.bool( False ),
0085    minClusters = cms.uint32( 0 ),
0086    maxClusters = cms.uint32( 10 )                                    
0087 )
0088 
0089 process.hltTrackerHaloFilter = cms.EDFilter( "HLTTrackerHaloFilter",
0090    inputTag           = cms.InputTag( "hltSiStripClusters" ),
0091    saveTags = cms.bool( False ),
0092    MaxClustersTECp    = cms.int32(50),
0093    MaxClustersTECm    = cms.int32(50),
0094    SignalAccumulation = cms.int32(5),
0095    MaxClustersTEC     = cms.int32(60),
0096    MaxAccus           = cms.int32(4),
0097    FastProcessing     = cms.int32(1)
0098 )
0099 
0100 
0101 # The test path
0102 
0103 
0104 process.HLT_BeamHalo = cms.Path( process.HLTBeginSequence  + process.hltL1sL1BptxXORBscMinBiasOR  + process.HLTDoLocalPixel + process.hltPixelActivityFilter + process.HLTDoLocalStrips + process.hltTrackerHaloFilter + process.HLTEndSequence )
0105 
0106 
0107 #Deal with the global tag
0108 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0109 process.GlobalTag.connect   = 'frontier://FrontierProd/CMS_COND_31X_GLOBALTAG'
0110 process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/')
0111 process.GlobalTag.globaltag = useGlobalTag
0112 
0113 # Path and EndPath definitions
0114 process.endjob_step  = cms.Path(process.endOfProcess)
0115 process.out_step     = cms.EndPath( process.hltTimer + process.output)
0116 
0117 
0118 # Schedule definition
0119 process.schedule = cms.Schedule(*( process.HLTriggerFirstPath, process.HLT_BeamHalo, process.HLTriggerFinalPath, process.HLTAnalyzerEndpath ))
0120 process.schedule.extend([process.endjob_step,process.out_step])