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 other users
67 ALCARECOTrackFilterRefitAAG = cms.Sequence(ALCARECOCalibrationTracksAAG +
68  offlineBeamSpot +
69  ALCARECOCalibrationTracksRefitAAG )
70 
71 # ------------------------------------------------------------------------------
72 # This is the module actually doing the calibration
73 from CalibTracker.SiStripChannelGain.SiStripGainsPCLWorker_cfi import SiStripGainsPCLWorker
74 ALCARECOSiStripCalibAAG = SiStripGainsPCLWorker.clone(
75  tracks = cms.InputTag('ALCARECOCalibrationTracksRefitAAG'),
76  FirstSetOfConstants = cms.untracked.bool(False),
77  DQMdir = cms.untracked.string('AlCaReco/SiStripGainsAAG'),
78  calibrationMode = cms.untracked.string('AagBunch')
79  )
80 
81 # ----------------------------------------------------------------------------
82 
83 MEtoEDMConvertSiStripGainsAAG = cms.EDProducer("MEtoEDMConverter",
84  Name = cms.untracked.string('MEtoEDMConverter'),
85  Verbosity = cms.untracked.int32(1), # 0 provides no output
86  # 1 provides basic output
87  # 2 provide more detailed output
88  Frequency = cms.untracked.int32(50),
89  MEPathToSave = cms.untracked.string('AlCaReco/SiStripGainsAAG'),
90 )
91 
92 # The actual sequence
93 seqALCARECOPromptCalibProdSiStripGainsAAG = cms.Sequence(
94  ALCARECOCalMinBiasFilterForSiStripGainsAAG *
95  ALCARECOTrackFilterRefitAAG *
96  ALCARECOSiStripCalibAAG *
97  MEtoEDMConvertSiStripGainsAAG
98 )
dont throw on unknown path names