00001 import FWCore.ParameterSet.Config as cms 00002 00003 # ------------------------------------------------------------------------------ 00004 # configure a filter to run only on the events selected by TkAlMinBias AlcaReco 00005 import copy 00006 from HLTrigger.HLTfilters.hltHighLevel_cfi import * 00007 ALCARECOTkAlMinBiasFilterForBS = copy.deepcopy(hltHighLevel) 00008 ALCARECOTkAlMinBiasFilterForBS.HLTPaths = ['pathALCARECOTkAlMinBias'] 00009 ALCARECOTkAlMinBiasFilterForBS.throw = True ## dont throw on unknown path names 00010 ALCARECOTkAlMinBiasFilterForBS.TriggerResultsTag = cms.InputTag("TriggerResults","","RECO") 00011 #process.TkAlMinBiasFilterForBS.eventSetupPathsKey = 'pathALCARECOTkAlMinBias:RECO' 00012 #ALCARECODtCalibHLTFilter.andOr = True ## choose logical OR between Triggerbits 00013 00014 00015 # ------------------------------------------------------------------------------ 00016 # configure the beam-spot production 00017 from Calibration.TkAlCaRecoProducers.AlcaBeamSpotProducer_cff import * 00018 alcaBeamSpotProducer.BeamFitter.TrackCollection = 'ALCARECOTkAlMinBias' 00019 alcaBeamSpotProducer.BeamFitter.MinimumTotalLayers = 6 00020 alcaBeamSpotProducer.BeamFitter.MinimumPixelLayers = -1 00021 alcaBeamSpotProducer.BeamFitter.MaximumNormChi2 = 10 00022 alcaBeamSpotProducer.BeamFitter.MinimumInputTracks = 50 00023 alcaBeamSpotProducer.BeamFitter.MinimumPt = 1.0 00024 alcaBeamSpotProducer.BeamFitter.MaximumImpactParameter = 1.0 00025 alcaBeamSpotProducer.BeamFitter.TrackAlgorithm = cms.untracked.vstring() 00026 #alcaBeamSpotProducer.BeamFitter.Debug = True 00027 alcaBeamSpotProducer.PVFitter.Apply3DFit = True 00028 alcaBeamSpotProducer.PVFitter.minNrVerticesForFit = 10 00029 00030 # fit as function of lumi sections 00031 alcaBeamSpotProducer.AlcaBeamSpotProducerParameters.fitEveryNLumi = 1 00032 alcaBeamSpotProducer.AlcaBeamSpotProducerParameters.resetEveryNLumi = 1 00033 00034 # alcaBeamSpotProducer.AlcaBeamSpotProducerParameters.TrackCollection = cms.untracked.InputTag('ALCARECOTkAlMinBias') 00035 # alcaBeamSpotProducer.AlcaBeamSpotProducerParameters.fitEveryNLumi = cms.untracked.int32(1) 00036 # alcaBeamSpotProducer.AlcaBeamSpotProducerParameters.resetEveryNLumi = cms.untracked.int32(1) 00037 # alcaBeamSpotProducer.AlcaBeamSpotProducerParameters.TrackCollection = cms.untracked.InputTag('ALCARECOTkAlMinBias') 00038 # alcaBeamSpotProducer.BeamFitter.TrackCollection = cms.untracked.InputTag('ALCARECOTkAlMinBias') 00039 00040 # ------------------------------------------------------------------------------ 00041 # this is for filtering on L1 technical trigger bit 00042 # Set the HLT paths 00043 import HLTrigger.HLTfilters.hltHighLevel_cfi 00044 ALCARECOHltFilterForBS = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone( 00045 andOr = True, ## choose logical OR between Triggerbits 00046 ## HLTPaths = [ 00047 ## #Minimum Bias 00048 ## "HLT_MinBias*" 00049 ## ], 00050 eventSetupPathsKey = 'PromptCalibProdForBS', 00051 throw = False # tolerate triggers stated above, but not available 00052 ) 00053 00054 00055 #from L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff import * 00056 #from HLTrigger.HLTfilters.hltLevel1GTSeed_cfi import hltLevel1GTSeed 00057 #L1CollTrigger = hltLevel1GTSeed.clone() 00058 00059 #L1CollTrigger.L1TechTriggerSeeding = cms.bool(True) 00060 #L1CollTrigger.L1SeedsLogicalExpression = cms.string('0 AND ( 40 OR 41 ) AND NOT (36 OR 37 OR 38 OR 39)') 00061 00062 00063 # ------------------------------------------------------------------------------ 00064 # configuration to reproduce offlinePrimaryVertices 00065 # FIXME: needs to be moved in the TkAlMinBias definition 00066 # from RecoVertex.BeamSpotProducer.BeamSpot_cfi import * 00067 # offlineBeamSpotForBS = offlineBeamSpot.clone() 00068 # from RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi import * 00069 00070 # # overwrite some defaults for PV producer 00071 # offlinePrimaryVerticesForBS = offlinePrimaryVertices.clone() 00072 # offlinePrimaryVerticesForBS.TrackLabel = cms.InputTag("ALCARECOTkAlMinBias") 00073 # offlinePrimaryVerticesForBS.beamSpotLabel = cms.InputTag("offlineBeamSpotForBS") 00074 # offlinePrimaryVerticesForBS.PVSelParameters.maxDistanceToBeam = 2 00075 # offlinePrimaryVerticesForBS.TkFilterParameters.maxNormalizedChi2 = 20 00076 # offlinePrimaryVerticesForBS.TkFilterParameters.minSiliconLayersWithHits = 5 00077 # offlinePrimaryVerticesForBS.TkFilterParameters.maxD0Significance = 100 00078 # offlinePrimaryVerticesForBS.TkFilterParameters.minPixelLayersWithHits = 1 00079 # offlinePrimaryVerticesForBS.TkClusParameters.TkGapClusParameters.zSeparation = 1 00080 # alcaBeamSpotProducer.PVFitter.VertexCollection = "offlinePrimaryVerticesForBS" 00081 00082 seqALCARECOPromptCalibProd = cms.Sequence(ALCARECOTkAlMinBiasFilterForBS * 00083 ALCARECOHltFilterForBS * 00084 # offlineBeamSpotForBS + 00085 # offlinePrimaryVerticesForBS + 00086 alcaBeamSpotProducer) 00087 00088 #process.bsProductionPath = cms.Path(process.TkAlMinBiasFilterForBS+process.alcaBeamSpotProducer)