CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ALCARECOPromptCalibProd_cff.py
Go to the documentation of this file.
2 
3 # ------------------------------------------------------------------------------
4 # configure a filter to run only on the events selected by TkAlMinBias AlcaReco
5 import copy
7 ALCARECOTkAlMinBiasFilterForBS = copy.deepcopy(hltHighLevel)
8 ALCARECOTkAlMinBiasFilterForBS.HLTPaths = ['pathALCARECOTkAlMinBias']
9 ALCARECOTkAlMinBiasFilterForBS.throw = True ## dont throw on unknown path names
10 ALCARECOTkAlMinBiasFilterForBS.TriggerResultsTag = cms.InputTag("TriggerResults","","RECO")
11 #process.TkAlMinBiasFilterForBS.eventSetupPathsKey = 'pathALCARECOTkAlMinBias:RECO'
12 #ALCARECODtCalibHLTFilter.andOr = True ## choose logical OR between Triggerbits
13 
14 
15 # ------------------------------------------------------------------------------
16 # configure the beam-spot production
18 alcaBeamSpotProducer.BeamFitter.TrackCollection = 'ALCARECOTkAlMinBias'
19 alcaBeamSpotProducer.BeamFitter.MinimumTotalLayers = 6
20 alcaBeamSpotProducer.BeamFitter.MinimumPixelLayers = -1
21 alcaBeamSpotProducer.BeamFitter.MaximumNormChi2 = 10
22 alcaBeamSpotProducer.BeamFitter.MinimumInputTracks = 50
23 alcaBeamSpotProducer.BeamFitter.MinimumPt = 1.0
24 alcaBeamSpotProducer.BeamFitter.MaximumImpactParameter = 1.0
25 alcaBeamSpotProducer.BeamFitter.TrackAlgorithm = cms.untracked.vstring()
26 #alcaBeamSpotProducer.BeamFitter.Debug = True
27 alcaBeamSpotProducer.PVFitter.Apply3DFit = True
28 alcaBeamSpotProducer.PVFitter.minNrVerticesForFit = 10
29 
30 # fit as function of lumi sections
31 alcaBeamSpotProducer.AlcaBeamSpotProducerParameters.fitEveryNLumi = 1
32 alcaBeamSpotProducer.AlcaBeamSpotProducerParameters.resetEveryNLumi = 1
33 
34 # alcaBeamSpotProducer.AlcaBeamSpotProducerParameters.TrackCollection = cms.untracked.InputTag('ALCARECOTkAlMinBias')
35 # alcaBeamSpotProducer.AlcaBeamSpotProducerParameters.fitEveryNLumi = cms.untracked.int32(1)
36 # alcaBeamSpotProducer.AlcaBeamSpotProducerParameters.resetEveryNLumi = cms.untracked.int32(1)
37 # alcaBeamSpotProducer.AlcaBeamSpotProducerParameters.TrackCollection = cms.untracked.InputTag('ALCARECOTkAlMinBias')
38 # alcaBeamSpotProducer.BeamFitter.TrackCollection = cms.untracked.InputTag('ALCARECOTkAlMinBias')
39 
40 # ------------------------------------------------------------------------------
41 # this is for filtering on L1 technical trigger bit
42 # Set the HLT paths
44 ALCARECOHltFilterForBS = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
45  andOr = True, ## choose logical OR between Triggerbits
46 ## HLTPaths = [
47 ## #Minimum Bias
48 ## "HLT_MinBias*"
49 ## ],
50  eventSetupPathsKey = 'PromptCalibProdForBS',
51  throw = False # tolerate triggers stated above, but not available
52  )
53 
54 
55 #from L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff import *
56 #from HLTrigger.HLTfilters.hltLevel1GTSeed_cfi import hltLevel1GTSeed
57 #L1CollTrigger = hltLevel1GTSeed.clone()
58 
59 #L1CollTrigger.L1TechTriggerSeeding = cms.bool(True)
60 #L1CollTrigger.L1SeedsLogicalExpression = cms.string('0 AND ( 40 OR 41 ) AND NOT (36 OR 37 OR 38 OR 39)')
61 
62 
63 # ------------------------------------------------------------------------------
64 # configuration to reproduce offlinePrimaryVertices
65 # FIXME: needs to be moved in the TkAlMinBias definition
66 # from RecoVertex.BeamSpotProducer.BeamSpot_cfi import *
67 # offlineBeamSpotForBS = offlineBeamSpot.clone()
68 # from RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi import *
69 
70 # # overwrite some defaults for PV producer
71 # offlinePrimaryVerticesForBS = offlinePrimaryVertices.clone()
72 # offlinePrimaryVerticesForBS.TrackLabel = cms.InputTag("ALCARECOTkAlMinBias")
73 # offlinePrimaryVerticesForBS.beamSpotLabel = cms.InputTag("offlineBeamSpotForBS")
74 # offlinePrimaryVerticesForBS.PVSelParameters.maxDistanceToBeam = 2
75 # offlinePrimaryVerticesForBS.TkFilterParameters.maxNormalizedChi2 = 20
76 # offlinePrimaryVerticesForBS.TkFilterParameters.minSiliconLayersWithHits = 5
77 # offlinePrimaryVerticesForBS.TkFilterParameters.maxD0Significance = 100
78 # offlinePrimaryVerticesForBS.TkFilterParameters.minPixelLayersWithHits = 1
79 # offlinePrimaryVerticesForBS.TkClusParameters.TkGapClusParameters.zSeparation = 1
80 # alcaBeamSpotProducer.PVFitter.VertexCollection = "offlinePrimaryVerticesForBS"
81 
82 seqALCARECOPromptCalibProd = cms.Sequence(ALCARECOTkAlMinBiasFilterForBS *
83  ALCARECOHltFilterForBS *
84 # offlineBeamSpotForBS +
85 # offlinePrimaryVerticesForBS +
86  alcaBeamSpotProducer)
87 
88 #process.bsProductionPath = cms.Path(process.TkAlMinBiasFilterForBS+process.alcaBeamSpotProducer)
dont throw on unknown path names