test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ALCARECOPromptCalibProdSiStripGainsAfterAbortGap_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 ALCARECOCalMinBiasFilterForSiStripGainsAfterAbortGap = copy.deepcopy(hltHighLevel)
9 ALCARECOCalMinBiasFilterForSiStripGainsAfterAbortGap.HLTPaths = ['pathALCARECOSiStripCalMinBiasAfterAbortGap']
10 ALCARECOCalMinBiasFilterForSiStripGainsAfterAbortGap.throw = True ## dont throw on unknown path names
11 ALCARECOCalMinBiasFilterForSiStripGainsAfterAbortGap.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 = 'ALCARECOSiStripCalMinBiasAfterAbortGap',
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 
88 from CalibTracker.SiStripChannelGain.computeGain_cff import SiStripCalib
89 ALCARECOSiStripCalibAfterAbortGap = SiStripCalib.clone()
90 ALCARECOSiStripCalibAfterAbortGap.AlgoMode = cms.untracked.string('PCL')
91 ALCARECOSiStripCalibAfterAbortGap.FirstSetOfConstants = cms.untracked.bool(False)
92 ALCARECOSiStripCalibAfterAbortGap.harvestingMode = cms.untracked.bool(False)
93 ALCARECOSiStripCalibAfterAbortGap.calibrationMode = cms.untracked.string('AagBunch')
94 ALCARECOSiStripCalibAfterAbortGap.DQMdir = cms.untracked.string('AlCaReco/SiStripGainsAfterAbortGap')
95 ALCARECOSiStripCalibAfterAbortGap.doStoreOnDB = cms.bool(False)
96 ALCARECOSiStripCalibAfterAbortGap.gain.label = cms.untracked.string('ALCARECOShallowGainCalibrationAAG')
97 ALCARECOSiStripCalibAfterAbortGap.evtinfo.label = cms.untracked.string('ALCARECOShallowEventRunAAG')
98 ALCARECOSiStripCalibAfterAbortGap.tracks.label = cms.untracked.string('ALCARECOShallowTracksAAG')
99 # ----------------------------------------------------------------------------
100 
101 
102 # ****************************************************************************
103 # ** Conversion for the SiStripGain DQM dir not used for split statistics **
104 # ****************************************************************************
105 MEtoEDMConvertSiStripGainsAfterAbortGap = cms.EDProducer("MEtoEDMConverter",
106  Name = cms.untracked.string('MEtoEDMConverter'),
107  Verbosity = cms.untracked.int32(1), # 0 provides no output
108  # 1 provides basic output
109  # 2 provide more detailed output
110  Frequency = cms.untracked.int32(50),
111  MEPathToSave = cms.untracked.string('AlCaReco/SiStripGainsAfterAbortGap'),
112  deleteAfterCopy = cms.untracked.bool(True)
113 )
114 
115 # The actual sequence
116 seqALCARECOPromptCalibProdSiStripGainsAfterAbortGap = cms.Sequence(
117  ALCARECOCalMinBiasFilterForSiStripGainsAfterAbortGap *
118  ALCARECOTrackFilterRefitAAG *
119  ALCARECOShallowSequenceAAG *
120  ALCARECOSiStripCalibAfterAbortGap *
121  MEtoEDMConvertSiStripGainsAfterAbortGap
122 )
dont throw on unknown path names