CMS 3D CMS Logo

ALCARECOPromptCalibProdSiStripGains_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # ------------------------------------------------------------------------------
4 # configure a filter to run only on the events selected by TkAlMinBias AlcaReco
5 import copy
7 ALCARECOCalMinBiasFilterForSiStripGains = copy.deepcopy(hltHighLevel)
8 ALCARECOCalMinBiasFilterForSiStripGains.HLTPaths = ['pathALCARECOSiStripCalMinBias']
9 ALCARECOCalMinBiasFilterForSiStripGains.throw = True
10 ALCARECOCalMinBiasFilterForSiStripGains.TriggerResultsTag = cms.InputTag("TriggerResults","","RECO")
11 #process.TkAlMinBiasFilterForBS.eventSetupPathsKey = 'pathALCARECOTkAlMinBias:RECO'
12 #ALCARECODtCalibHLTFilter.andOr = True ## choose logical OR between Triggerbits
13 
14 
15 # ****************************************************************************
16 # ** Uncomment the following lines to set the LVL1 bit filter for the HTTxx **
17 # ****************************************************************************
18 
19 #from L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff import *
20 #from HLTrigger.HLTfilters.hltLevel1GTSeed_cfi import hltLevel1GTSeed
21 #HTTFilter = hltLevel1GTSeed.clone(
22 # #L1SeedsLogicalExpression = cms.string("L1_HTT125 OR L1_HTT150 OR L1_HTT175" ),
23 # L1SeedsLogicalExpression = cms.string("L1_HTT125 OR L1_HTT150"),
24 # L1GtObjectMapTag = cms.InputTag( "hltL1GtObjectMap" ),
25 # )
26 # ----------------------------------------------------------------------------
27 
28 
29 
30 # FIXME: are the following blocks needed?
31 
32 #this block is there to solve issue related to SiStripQualityRcd
33 #process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
34 #process.load("CalibTracker.SiStripESProducers.fake.SiStripDetVOffFakeESSource_cfi")
35 #process.es_prefer_fakeSiStripDetVOff = cms.ESPrefer("SiStripDetVOffFakeESSource","siStripDetVOffFakeESSource")
36 
37 
38 # ------------------------------------------------------------------------------
39 # This is the sequence for track refitting of the track saved by SiStripCalMinBias
40 # to have access to transient objects produced during RECO step and not saved
41 
43 ALCARECOCalibrationTracks = AlignmentTrackSelector.clone(
44  # src = 'generalTracks',
45  src = 'ALCARECOSiStripCalMinBias',
46  filter = True,
47  applyBasicCuts = True,
48  ptMin = 0.8,
49  nHitMin = 6,
50  chi2nMax = 10.,
51  )
52 
53 # FIXME: the beam-spot should be kept in the AlCaReco (if not already there) and dropped from here
55 
59 
60 ALCARECOCalibrationTracksRefit = TrackRefitter.clone(src = cms.InputTag("ALCARECOCalibrationTracks"),
61  NavigationSchool = cms.string("")
62  )
63 
64 # refit and BS can be dropped if done together with RECO.
65 # track filter can be moved in acalreco if no otehr users
66 ALCARECOTrackFilterRefit = cms.Sequence(ALCARECOCalibrationTracks +
67  offlineBeamSpot +
68  ALCARECOCalibrationTracksRefit )
69 
70 # ------------------------------------------------------------------------------
71 # This is the module actually doing the calibration
72 from CalibTracker.SiStripChannelGain.SiStripGainsPCLWorker_cfi import SiStripGainsPCLWorker
73 ALCARECOSiStripCalib = SiStripGainsPCLWorker.clone(
74  tracks = cms.InputTag('ALCARECOCalibrationTracksRefit'),
75  FirstSetOfConstants = cms.untracked.bool(False),
76  DQMdir = cms.untracked.string('AlCaReco/SiStripGains'),
77  calibrationMode = cms.untracked.string('StdBunch')
78  )
79 # ----------------------------------------------------------------------------
80 
81 # ****************************************************************************
82 # ** Conversion for the SiStripGain DQM dir not used for split statistics **
83 # ****************************************************************************
84 MEtoEDMConvertSiStripGains = cms.EDProducer("MEtoEDMConverter",
85  Name = cms.untracked.string('MEtoEDMConverter'),
86  Verbosity = cms.untracked.int32(0), # 0 provides no output
87  # 1 provides basic output
88  # 2 provide more detailed output
89  Frequency = cms.untracked.int32(50),
90  MEPathToSave = cms.untracked.string('AlCaReco/SiStripGains'),
91  )
92 
93 # The actual sequence
94 seqALCARECOPromptCalibProdSiStripGains = cms.Sequence(
95  ALCARECOCalMinBiasFilterForSiStripGains *
96  ALCARECOTrackFilterRefit *
97  ALCARECOSiStripCalib *
98  MEtoEDMConvertSiStripGains
99  )
dont throw on unknown path names