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 
49 ALCARECOCalibrationTracksRefit = TrackRefitter.clone(src = cms.InputTag("ALCARECOCalibrationTracks"))
50 
52 
53 
54 # refit and BS can be dropped if done together with RECO.
55 # track filter can be moved in acalreco if no otehr users
56 ALCARECOTrackFilterRefit = cms.Sequence(ALCARECOCalibrationTracks +
57  offlineBeamSpot +
58  MeasurementTrackerEvent +
59  ALCARECOCalibrationTracksRefit )
60 
61 
62 # ------------------------------------------------------------------------------
63 # This is the module actually doing the calibration
64 
65 from CalibTracker.SiStripChannelGain.computeGain_cff import SiStripCalib as ALCARECOSiStripCalib
66 ALCARECOSiStripCalib.AlgoMode = cms.untracked.string('PCL')
67 ALCARECOSiStripCalib.Tracks = cms.untracked.InputTag('ALCARECOCalibrationTracksRefit')
68 ALCARECOSiStripCalib.FirstSetOfConstants = cms.untracked.bool(False)
69 ALCARECOSiStripCalib.harvestingMode = cms.untracked.bool(False)
70 ALCARECOSiStripCalib.doStoreOnDB = cms.bool(False)
71 
72 
73 # ------------------------------------------------------------------------------
74 MEtoEDMConvertSiStripGains = cms.EDProducer("MEtoEDMConverter",
75  Name = cms.untracked.string('MEtoEDMConverter'),
76  Verbosity = cms.untracked.int32(0), # 0 provides no output
77  # 1 provides basic output
78  # 2 provide more detailed output
79  Frequency = cms.untracked.int32(50),
80  MEPathToSave = cms.untracked.string('AlCaReco/SiStripGains'),
81  deleteAfterCopy = cms.untracked.bool(False)
82 )
83 
84 
85 
86 
87 
88 
89 # the actual sequence
90 seqALCARECOPromptCalibProdSiStripGains = cms.Sequence(ALCARECOCalMinBiasFilterForSiStripGains *
91  ALCARECOTrackFilterRefit *
92  ALCARECOSiStripCalib *
93  MEtoEDMConvertSiStripGains)
94 
95 
dont throw on unknown path names