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
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 # ------------------------------------------------------------------------------
40 # This is the sequence for track refitting of the track saved by SiStripCalMinBias
41 # to have access to transient objects produced during RECO step and not saved
42 
44 ALCARECOCalibrationTracksAAG = AlignmentTrackSelector.clone(
45  # src = 'generalTracks',
46  src = 'ALCARECOSiStripCalMinBiasAAG',
47  filter = True,
48  applyBasicCuts = True,
49  ptMin = 0.8,
50  nHitMin = 6,
51  chi2nMax = 10.,
52  )
53 
54 # FIXME: the beam-spot should be kept in the AlCaReco (if not already there) and dropped from here
56 
60 
61 ALCARECOCalibrationTracksRefitAAG = TrackRefitter.clone(src = cms.InputTag("ALCARECOCalibrationTracksAAG"),
62  NavigationSchool = cms.string("")
63  )
64 
65 # refit and BS can be dropped if done together with RECO.
66 # track filter can be moved in acalreco if no otehr users
67 ALCARECOTrackFilterRefitAAG = cms.Sequence(ALCARECOCalibrationTracksAAG +
68  offlineBeamSpot +
69  ALCARECOCalibrationTracksRefitAAG )
70 
71 # ------------------------------------------------------------------------------
72 # Get the information you need from the tracks, calibTree-style to have no code difference
75 from CalibTracker.SiStripCommon.ShallowGainCalibration_cfi import shallowGainCalibration
76 ALCARECOShallowEventRunAAG = shallowEventRun.clone()
77 ALCARECOShallowTracksAAG = shallowTracks.clone(Tracks=cms.InputTag('ALCARECOCalibrationTracksRefitAAG'))
78 ALCARECOShallowGainCalibrationAAG = shallowGainCalibration.clone(Tracks=cms.InputTag('ALCARECOCalibrationTracksRefitAAG'))
79 ALCARECOShallowSequenceAAG = cms.Sequence(ALCARECOShallowEventRunAAG*ALCARECOShallowTracksAAG*ALCARECOShallowGainCalibrationAAG)
80 
81 # ------------------------------------------------------------------------------
82 # This is the module actually doing the calibration
83 from CalibTracker.SiStripChannelGain.SiStripGainsPCLWorker_cfi import SiStripGainsPCLWorker
84 ALCARECOSiStripCalibAAG = SiStripGainsPCLWorker.clone()
85 ALCARECOSiStripCalibAAG.FirstSetOfConstants = cms.untracked.bool(False)
86 ALCARECOSiStripCalibAAG.DQMdir = cms.untracked.string('AlCaReco/SiStripGainsAAG')
87 ALCARECOSiStripCalibAAG.calibrationMode = cms.untracked.string('AagBunch')
88 ALCARECOSiStripCalibAAG.gain.label = cms.untracked.string('ALCARECOShallowGainCalibrationAAG')
89 ALCARECOSiStripCalibAAG.evtinfo.label = cms.untracked.string('ALCARECOShallowEventRunAAG')
90 ALCARECOSiStripCalibAAG.tracks.label = cms.untracked.string('ALCARECOShallowTracksAAG')
91 
92 # ----------------------------------------------------------------------------
93 
94 MEtoEDMConvertSiStripGainsAAG = cms.EDProducer("MEtoEDMConverter",
95  Name = cms.untracked.string('MEtoEDMConverter'),
96  Verbosity = cms.untracked.int32(1), # 0 provides no output
97  # 1 provides basic output
98  # 2 provide more detailed output
99  Frequency = cms.untracked.int32(50),
100  MEPathToSave = cms.untracked.string('AlCaReco/SiStripGainsAAG'),
101 )
102 
103 # The actual sequence
104 seqALCARECOPromptCalibProdSiStripGainsAAG = cms.Sequence(
105  ALCARECOCalMinBiasFilterForSiStripGainsAAG *
106  ALCARECOTrackFilterRefitAAG *
107  ALCARECOShallowSequenceAAG *
108  ALCARECOSiStripCalibAAG *
109  MEtoEDMConvertSiStripGainsAAG
110 )
ShallowGainCalibration_cfi
AlignmentTrackSelector_cfi
dont throw on unknown path names
hltHighLevel_cfi
InitialStep_cff
TrackRefitter_cfi
ShallowEventDataProducer_cfi
SiStripBFieldFilter_cfi
RecoTrackerP5_cff
BeamSpot_cff
ShallowTracksProducer_cfi