Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #
0002 # This python script is the basis for Cosmics 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): 04/02/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_V2::All'
0029 useGlobalTag = 'GR_P_V14::All' 
0030 
0031 process.maxEvents = cms.untracked.PSet(
0032     input = cms.untracked.int32(-1)
0033 )
0034 
0035 process.options = cms.untracked.PSet(
0036     SkipEvent = cms.untracked.vstring('ProductNotFound')
0037 )
0038 
0039 # Input source (a raw data file from the Commissioning dataset)
0040 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0041 
0042 process.source = cms.Source("PoolSource",
0043                             noEventSort = cms.untracked.bool(True),
0044                             duplicateCheckMode = cms.untracked.string('noDuplicateCheck'),
0045                             fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/cms/store/data/Run2011A/Cosmics/RAW/v1/000/161/439/6A9B822C-3958-E011-9BFF-00304879FA4C.root')
0046                             #fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/user/t/tschudi/February11/RelValCosmics_withPU/RelValCosmic_withPU.root ')
0047                             
0048 )
0049 
0050 
0051 # Output module (keep only the stuff necessary to the timing module)
0052 
0053 process.output = cms.OutputModule("PoolOutputModule",
0054                                   splitLevel = cms.untracked.int32(0),
0055                                   outputCommands = cms.untracked.vstring( 'drop *', 'keep HLTPerformanceInfo_*_*_*'),
0056                                   fileName = cms.untracked.string('HLT.root'),
0057                                   dataset = cms.untracked.PSet(
0058     dataTier = cms.untracked.string('RECO'),
0059     filterName = cms.untracked.string('')
0060     )
0061 )
0062 
0063 
0064 # Timer
0065 
0066 process.PathTimerService  = cms.Service( "PathTimerService" )
0067 process.hltTimer          = cms.EDProducer( "PathTimerInserter" )
0068 
0069 
0070 # Then we define the info necessary to the paths
0071 
0072 
0073 
0074 process.cosmicsNavigationSchoolESProducer = cms.ESProducer( "NavigationSchoolESProducer",
0075     ComponentName = cms.string( "CosmicNavigationSchool" ),
0076     appendToDataLabel = cms.string( "" )
0077 )
0078 
0079 
0080 process.hltTrackSeedMultiplicityFilter = cms.EDFilter( "HLTTrackSeedMultiplicityFilter",
0081    inputTag    = cms.InputTag( "hltRegionalCosmicTrackerSeeds" ),
0082    saveTags = cms.bool( False ),
0083    minSeeds = cms.uint32( 1 ),
0084    maxSeeds = cms.uint32( 100000 )                                    
0085 )
0086 
0087 # Seeding process
0088 
0089 process.hltRegionalCosmicTrackerSeeds = cms.EDProducer( "SeedGeneratorFromRegionHitsEDProducer",
0090     ClusterCheckPSet = cms.PSet( 
0091         MaxNumberOfStripClusters = cms.uint32( 50000 ),
0092         ClusterCollectionLabel = cms.InputTag( "hltSiStripClusters" ),
0093         doClusterCheck = cms.bool( False ),
0094         PixelClusterCollectionLabel = cms.InputTag( "hltSiPixelClusters" ),
0095         MaxNumberOfPixelClusters = cms.uint32( 10000 )
0096         ),
0097     RegionFactoryPSet = cms.PSet(                                 
0098         ComponentName = cms.string( "CosmicRegionalSeedGenerator" ),
0099         RegionPSet = cms.PSet(
0100             ptMin          = cms.double( 5.0 ),
0101             rVertex        = cms.double( 5 ),
0102             zVertex        = cms.double( 5 ),
0103             deltaEtaRegion = cms.double( 0.3 ),
0104             deltaPhiRegion = cms.double( 0.3 ),
0105             precise        = cms.bool( True ),
0106             measurementTrackerName = cms.string('hltESPMeasurementTracker')
0107             ),
0108         ToolsPSet = cms.PSet(
0109             thePropagatorName = cms.string("hltESPAnalyticalPropagator"),
0110             regionBase        = cms.string("seedOnL2Muon")
0111             ),
0112         CollectionsPSet = cms.PSet(
0113             recoMuonsCollection      = cms.InputTag("muons"), 
0114             recoTrackMuonsCollection = cms.InputTag("cosmicMuons"), 
0115             recoL2MuonsCollection    = cms.InputTag("hltL2MuonCandidatesNoVtx")
0116             ),
0117         RegionInJetsCheckPSet = cms.PSet(
0118             doJetsExclusionCheck   = cms.bool( False ),
0119             deltaRExclusionSize    = cms.double( 0.3 ),
0120             jetsPtMin              = cms.double( 5 ),
0121             recoCaloJetsCollection = cms.InputTag("hltIterativeCone5CaloJets")
0122             )
0123         ),
0124     OrderedHitsFactoryPSet = cms.PSet(
0125         ComponentName = cms.string( "GenericPairGenerator" ),
0126         LayerPSet = cms.PSet(
0127             TOB = cms.PSet(        
0128                 TTRHBuilder = cms.string('hltESPTTRHBWithTrackAngle')
0129                 ),
0130             layerList = cms.vstring('TOB6+TOB5',
0131                                     'TOB6+TOB4', 
0132                                     'TOB6+TOB3',
0133                                     'TOB5+TOB4',
0134                                     'TOB5+TOB3',
0135                                     'TOB4+TOB3')
0136             )
0137         ),             
0138     SeedComparitorPSet = cms.PSet(  ComponentName = cms.string( "none" ) ),
0139     SeedCreatorPSet = cms.PSet( 
0140         ComponentName = cms.string( "CosmicSeedCreator" ),
0141         propagator    = cms.string( "PropagatorWithMaterial" ),
0142         maxseeds      = cms.int32( 100000 )
0143         ),
0144     TTRHBuilder = cms.string( "hltESPTTRHBWithTrackAngle" )
0145 )
0146 
0147 
0148 # Define the sequences to be included in the path
0149 
0150 process.HLTRegionalCosmicSeeding = cms.Sequence( process.hltSiPixelDigis + process.hltSiPixelClusters + process.hltSiStripRawToClustersFacility + process.hltSiStripClusters + process.hltRegionalCosmicTrackerSeeds + process.hltTrackSeedMultiplicityFilter )
0151 
0152 
0153 # And finally the path to test
0154 
0155 #process.HLT_TrackerCosmics_RegionalCosmicTracking = cms.Path( process.HLTBeginSequence + process.hltL1sTrackerCosmics + process.hltPreTrackerCosmics + process.hltTrackerCosmicsPattern + process.hltL1sL1SingleMu0 + process.hltPreMu0 + process.hltSingleMu0L1Filtered + process.HLTL2muonrecoSequenceNoVtx + process.HLTRegionalCosmicSeeding + process.HLTEndSequence )
0156 
0157 process.HLT_TrackerCosmics_RegionalCosmicTracking = cms.Path( process.HLTBeginSequence + process.hltL1sTrackerCosmics + process.hltPreTrackerCosmics + process.hltTrackerCosmicsPattern + process.HLTL2muonrecoSequenceNoVtx + process.HLTRegionalCosmicSeeding + process.HLTEndSequence )
0158 
0159 
0160 #Deal with the global tag
0161 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0162 process.GlobalTag.connect   = 'frontier://FrontierProd/CMS_COND_31X_GLOBALTAG'
0163 process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/')
0164 process.GlobalTag.globaltag = useGlobalTag
0165 
0166 # Path and EndPath definitions
0167 process.endjob_step  = cms.Path(process.endOfProcess)
0168 process.out_step     = cms.EndPath( process.hltTimer + process.output)
0169 
0170 
0171 # Schedule definition
0172 process.schedule = cms.Schedule(*( process.HLTriggerFirstPath, process.HLT_TrackerCosmics_RegionalCosmicTracking, process.HLTriggerFinalPath, process.HLTAnalyzerEndpath ))
0173 process.schedule.extend([process.endjob_step,process.out_step])