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 # Get the information you need from the tracks, calibTree-style to have no code difference
74 from CalibTracker.SiStripCommon.ShallowGainCalibration_cfi import shallowGainCalibration
75 ALCARECOShallowEventRun = shallowEventRun.clone()
76 ALCARECOShallowTracks = shallowTracks.clone(Tracks=cms.InputTag('ALCARECOCalibrationTracksRefit'))
77 ALCARECOShallowGainCalibration = shallowGainCalibration.clone(Tracks=cms.InputTag('ALCARECOCalibrationTracksRefit'))
78 ALCARECOShallowSequence = cms.Sequence(ALCARECOShallowEventRun*ALCARECOShallowTracks*ALCARECOShallowGainCalibration)
79 
80 # ------------------------------------------------------------------------------
81 # This is the module actually doing the calibration
82 from CalibTracker.SiStripChannelGain.SiStripGainsPCLWorker_cfi import SiStripGainsPCLWorker
83 ALCARECOSiStripCalib = SiStripGainsPCLWorker.clone()
84 ALCARECOSiStripCalib.FirstSetOfConstants = cms.untracked.bool(False)
85 ALCARECOSiStripCalib.DQMdir = cms.untracked.string('AlCaReco/SiStripGains')
86 ALCARECOSiStripCalib.calibrationMode = cms.untracked.string('StdBunch')
87 ALCARECOSiStripCalib.gain.label = cms.untracked.string('ALCARECOShallowGainCalibration')
88 ALCARECOSiStripCalib.evtinfo.label = cms.untracked.string('ALCARECOShallowEventRun')
89 ALCARECOSiStripCalib.tracks.label = cms.untracked.string('ALCARECOShallowTracks')
90 # ----------------------------------------------------------------------------
91 
92 # ****************************************************************************
93 # ** Conversion for the SiStripGain DQM dir not used for split statistics **
94 # ****************************************************************************
95 MEtoEDMConvertSiStripGains = cms.EDProducer("MEtoEDMConverter",
96  Name = cms.untracked.string('MEtoEDMConverter'),
97  Verbosity = cms.untracked.int32(0), # 0 provides no output
98  # 1 provides basic output
99  # 2 provide more detailed output
100  Frequency = cms.untracked.int32(50),
101  MEPathToSave = cms.untracked.string('AlCaReco/SiStripGains'),
102  )
103 
104 # The actual sequence
105 seqALCARECOPromptCalibProdSiStripGains = cms.Sequence(
106  ALCARECOCalMinBiasFilterForSiStripGains *
107  ALCARECOTrackFilterRefit *
108  ALCARECOShallowSequence *
109  ALCARECOSiStripCalib *
110  MEtoEDMConvertSiStripGains
111  )
ShallowGainCalibration_cfi
AlignmentTrackSelector_cfi
dont throw on unknown path names
hltHighLevel_cfi
InitialStep_cff
TrackRefitter_cfi
ShallowEventDataProducer_cfi
RecoTrackerP5_cff
BeamSpot_cff
ShallowTracksProducer_cfi