CMS 3D CMS Logo

ALCARECOPromptCalibProdSiStripGainsAAG_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
8 ALCARECOCalMinBiasFilterForSiStripGainsAAG = copy.deepcopy(hltHighLevel)
9 ALCARECOCalMinBiasFilterForSiStripGainsAAG.HLTPaths = ['pathALCARECOSiStripCalMinBiasAAG']
10 ALCARECOCalMinBiasFilterForSiStripGainsAAG.throw = True ## dont throw on unknown path names
11 ALCARECOCalMinBiasFilterForSiStripGainsAAG.TriggerResultsTag = cms.InputTag("TriggerResults","","RECO")
12 #process.TkAlMinBiasFilterForBS.eventSetupPathsKey = 'pathALCARECOTkAlMinBias:RECO'
13 #ALCARECODtCalibHLTFilter.andOr = True ## choose logical OR between Triggerbits
14 
15 
16 # ****************************************************************************
17 # ** Uncomment the following lines to set the LVL1 bit filter for the HTTxx **
18 # ****************************************************************************
19 
20 #from L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff import *
21 #from HLTrigger.HLTfilters.hltLevel1GTSeed_cfi import hltLevel1GTSeed
22 #HTTFilter = hltLevel1GTSeed.clone(
23 # #L1SeedsLogicalExpression = cms.string("L1_HTT125 OR L1_HTT150 OR L1_HTT175" ),
24 # L1SeedsLogicalExpression = cms.string("L1_HTT125 OR L1_HTT150"),
25 # L1GtObjectMapTag = cms.InputTag( "hltL1GtObjectMap" ),
26 # )
27 # ----------------------------------------------------------------------------
28 
29 
30 
31 # FIXME: are the following blocks needed?
32 
33 #this block is there to solve issue related to SiStripQualityRcd
34 #process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
35 #process.load("CalibTracker.SiStripESProducers.fake.SiStripDetVOffFakeESSource_cfi")
36 #process.es_prefer_fakeSiStripDetVOff = cms.ESPrefer("SiStripDetVOffFakeESSource","siStripDetVOffFakeESSource")
37 
38 
39 #process.SiStripDetInfoFileReader = cms.Service("SiStripDetInfoFileReader")
40 
41 
42 
43 # ------------------------------------------------------------------------------
44 # This is the sequence for track refitting of the track saved by SiStripCalMinBias
45 # to have access to transient objects produced during RECO step and not saved
46 
48 ALCARECOCalibrationTracksAAG = AlignmentTrackSelector.clone(
49  # src = 'generalTracks',
50  src = 'ALCARECOSiStripCalMinBiasAAG',
51  filter = True,
52  applyBasicCuts = True,
53  ptMin = 0.8,
54  nHitMin = 6,
55  chi2nMax = 10.,
56  )
57 
58 # FIXME: the beam-spot should be kept in the AlCaReco (if not already there) and dropped from here
60 
64 
65 ALCARECOCalibrationTracksRefitAAG = TrackRefitter.clone(src = cms.InputTag("ALCARECOCalibrationTracksAAG"),
66  NavigationSchool = cms.string("")
67  )
68 
69 # refit and BS can be dropped if done together with RECO.
70 # track filter can be moved in acalreco if no otehr users
71 ALCARECOTrackFilterRefitAAG = cms.Sequence(ALCARECOCalibrationTracksAAG +
72  offlineBeamSpot +
73  ALCARECOCalibrationTracksRefitAAG )
74 
75 # ------------------------------------------------------------------------------
76 # Get the information you need from the tracks, calibTree-style to have no code difference
79 from CalibTracker.SiStripCommon.ShallowGainCalibration_cfi import shallowGainCalibration
80 ALCARECOShallowEventRunAAG = shallowEventRun.clone()
81 ALCARECOShallowTracksAAG = shallowTracks.clone(Tracks=cms.InputTag('ALCARECOCalibrationTracksRefitAAG'))
82 ALCARECOShallowGainCalibrationAAG = shallowGainCalibration.clone(Tracks=cms.InputTag('ALCARECOCalibrationTracksRefitAAG'))
83 ALCARECOShallowSequenceAAG = cms.Sequence(ALCARECOShallowEventRunAAG*ALCARECOShallowTracksAAG*ALCARECOShallowGainCalibrationAAG)
84 
85 # ------------------------------------------------------------------------------
86 # This is the module actually doing the calibration
87 from CalibTracker.SiStripChannelGain.SiStripGainsPCLWorker_cfi import SiStripGainsPCLWorker
88 ALCARECOSiStripCalibAAG = SiStripGainsPCLWorker.clone()
89 ALCARECOSiStripCalibAAG.FirstSetOfConstants = cms.untracked.bool(False)
90 ALCARECOSiStripCalibAAG.DQMdir = cms.untracked.string('AlCaReco/SiStripGainsAAG')
91 ALCARECOSiStripCalibAAG.calibrationMode = cms.untracked.string('AagBunch')
92 ALCARECOSiStripCalibAAG.gain.label = cms.untracked.string('ALCARECOShallowGainCalibrationAAG')
93 ALCARECOSiStripCalibAAG.evtinfo.label = cms.untracked.string('ALCARECOShallowEventRunAAG')
94 ALCARECOSiStripCalibAAG.tracks.label = cms.untracked.string('ALCARECOShallowTracksAAG')
95 
96 # ----------------------------------------------------------------------------
97 
98 MEtoEDMConvertSiStripGainsAAG = cms.EDProducer("MEtoEDMConverter",
99  Name = cms.untracked.string('MEtoEDMConverter'),
100  Verbosity = cms.untracked.int32(1), # 0 provides no output
101  # 1 provides basic output
102  # 2 provide more detailed output
103  Frequency = cms.untracked.int32(50),
104  MEPathToSave = cms.untracked.string('AlCaReco/SiStripGainsAAG'),
105  deleteAfterCopy = cms.untracked.bool(True)
106 )
107 
108 # The actual sequence
109 seqALCARECOPromptCalibProdSiStripGainsAAG = cms.Sequence(
110  ALCARECOCalMinBiasFilterForSiStripGainsAAG *
111  ALCARECOTrackFilterRefitAAG *
112  ALCARECOShallowSequenceAAG *
113  ALCARECOSiStripCalibAAG *
114  MEtoEDMConvertSiStripGainsAAG
115 )
dont throw on unknown path names