CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ALCARECOPromptCalibProdSiStripGains_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 ALCARECOCalMinBiasFilterForSiStripGains = copy.deepcopy(hltHighLevel)
8 ALCARECOCalMinBiasFilterForSiStripGains.HLTPaths = ['pathALCARECOSiStripCalMinBias']
9 ALCARECOCalMinBiasFilterForSiStripGains.throw = True ## dont throw on unknown path names
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 
17 
18 # FIXME: are the following blocks needed?
19 
20 #this block is there to solve issue related to SiStripQualityRcd
21 #process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
22 #process.load("CalibTracker.SiStripESProducers.fake.SiStripDetVOffFakeESSource_cfi")
23 #process.es_prefer_fakeSiStripDetVOff = cms.ESPrefer("SiStripDetVOffFakeESSource","siStripDetVOffFakeESSource")
24 
25 
26 #process.SiStripDetInfoFileReader = cms.Service("SiStripDetInfoFileReader")
27 
28 
29 
30 # ------------------------------------------------------------------------------
31 # This is the sequence for track refitting of the track saved by SiStripCalMinBias
32 # to have access to transient objects produced during RECO step and not saved
33 
35 ALCARECOCalibrationTracks = AlignmentTrackSelector.clone(
36  # src = 'generalTracks',
37  src = 'ALCARECOSiStripCalMinBias',
38  filter = True,
39  applyBasicCuts = True,
40  ptMin = 0.8,
41  nHitMin = 6,
42  chi2nMax = 10.,
43  )
44 
45 # FIXME: the beam-spot should be kept in the AlCaReco (if not already there) and dropped from here
47 
51 
52 ALCARECOCalibrationTracksRefit = TrackRefitter.clone(src = cms.InputTag("ALCARECOCalibrationTracks"),
53  NavigationSchool = cms.string("")
54  )
55 
56 # refit and BS can be dropped if done together with RECO.
57 # track filter can be moved in acalreco if no otehr users
58 ALCARECOTrackFilterRefit = cms.Sequence(ALCARECOCalibrationTracks +
59  offlineBeamSpot +
60  ALCARECOCalibrationTracksRefit )
61 
62 
63 # ------------------------------------------------------------------------------
64 # This is the module actually doing the calibration
65 
66 from CalibTracker.SiStripChannelGain.computeGain_cff import SiStripCalib as ALCARECOSiStripCalib
67 ALCARECOSiStripCalib.AlgoMode = cms.untracked.string('PCL')
68 ALCARECOSiStripCalib.Tracks = cms.untracked.InputTag('ALCARECOCalibrationTracksRefit')
69 ALCARECOSiStripCalib.FirstSetOfConstants = cms.untracked.bool(False)
70 ALCARECOSiStripCalib.harvestingMode = cms.untracked.bool(False)
71 ALCARECOSiStripCalib.doStoreOnDB = cms.bool(False)
72 
73 
74 # ------------------------------------------------------------------------------
75 MEtoEDMConvertSiStripGains = cms.EDProducer("MEtoEDMConverter",
76  Name = cms.untracked.string('MEtoEDMConverter'),
77  Verbosity = cms.untracked.int32(0), # 0 provides no output
78  # 1 provides basic output
79  # 2 provide more detailed output
80  Frequency = cms.untracked.int32(50),
81  MEPathToSave = cms.untracked.string('AlCaReco/SiStripGains'),
82  deleteAfterCopy = cms.untracked.bool(False)
83 )
84 
85 
86 
87 
88 
89 
90 # the actual sequence
91 seqALCARECOPromptCalibProdSiStripGains = cms.Sequence(ALCARECOCalMinBiasFilterForSiStripGains *
92  ALCARECOTrackFilterRefit *
93  ALCARECOSiStripCalib *
94  MEtoEDMConvertSiStripGains)
95 
96 
dont throw on unknown path names