Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:27

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # ------------------------------------------------------------------------------
0004 # configure a filter to run only on the events selected by TkAlMinBias AlcaReco
0005 import copy
0006 from CalibTracker.SiStripCommon.SiStripBFieldFilter_cfi import *
0007 from HLTrigger.HLTfilters.hltHighLevel_cfi import *
0008 ALCARECOCalMinBiasFilterForSiStripGainsAAG = copy.deepcopy(hltHighLevel)
0009 ALCARECOCalMinBiasFilterForSiStripGainsAAG.HLTPaths = ['pathALCARECOSiStripCalMinBiasAAG']
0010 ALCARECOCalMinBiasFilterForSiStripGainsAAG.throw = True ## dont throw on unknown path names
0011 ALCARECOCalMinBiasFilterForSiStripGainsAAG.TriggerResultsTag = cms.InputTag("TriggerResults","","RECO")
0012 #process.TkAlMinBiasFilterForBS.eventSetupPathsKey = 'pathALCARECOTkAlMinBias:RECO'
0013 #ALCARECODtCalibHLTFilter.andOr = True ## choose logical OR between Triggerbits
0014 
0015 
0016 # ****************************************************************************
0017 # ** Uncomment the following lines to set the LVL1 bit filter for the HTTxx **
0018 # ****************************************************************************
0019 
0020 #from L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff import *
0021 #from HLTrigger.HLTfilters.hltLevel1GTSeed_cfi import hltLevel1GTSeed
0022 #HTTFilter = hltLevel1GTSeed.clone(  
0023 #              #L1SeedsLogicalExpression = cms.string("L1_HTT125 OR L1_HTT150 OR L1_HTT175" ),
0024 #              L1SeedsLogicalExpression = cms.string("L1_HTT125 OR L1_HTT150"),
0025 #              L1GtObjectMapTag = cms.InputTag( "hltL1GtObjectMap" ),
0026 #            )
0027 # ----------------------------------------------------------------------------
0028 
0029 
0030 
0031 # FIXME: are the following blocks needed?
0032 
0033 #this block is there to solve issue related to SiStripQualityRcd
0034 #process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
0035 #process.load("CalibTracker.SiStripESProducers.fake.SiStripDetVOffFakeESSource_cfi")
0036 #process.es_prefer_fakeSiStripDetVOff = cms.ESPrefer("SiStripDetVOffFakeESSource","siStripDetVOffFakeESSource")
0037 
0038 
0039 # ------------------------------------------------------------------------------
0040 # This is the sequence for track refitting of the track saved by SiStripCalMinBias
0041 # to have access to transient objects produced during RECO step and not saved
0042 
0043 from Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi import *
0044 ALCARECOCalibrationTracksAAG = AlignmentTrackSelector.clone(
0045     #    src = 'generalTracks',
0046     src = 'ALCARECOSiStripCalMinBiasAAG',
0047     filter = True,
0048     applyBasicCuts = True,
0049     ptMin = 0.8,
0050     nHitMin = 6,
0051     chi2nMax = 10.,
0052     )
0053 
0054 # FIXME: the beam-spot should be kept in the AlCaReco (if not already there) and dropped from here
0055 from RecoVertex.BeamSpotProducer.BeamSpot_cff import *
0056 
0057 from RecoTracker.IterativeTracking.InitialStep_cff import *
0058 from RecoTracker.Configuration.RecoTrackerP5_cff import *
0059 from RecoTracker.TrackProducer.TrackRefitter_cfi import *
0060 
0061 ALCARECOCalibrationTracksRefitAAG = TrackRefitter.clone(src = cms.InputTag("ALCARECOCalibrationTracksAAG"),
0062                                                      NavigationSchool = cms.string("")
0063                                                      )
0064 
0065 # refit and BS can be dropped if done together with RECO.
0066 # track filter can be moved in acalreco if no other users
0067 ALCARECOTrackFilterRefitAAG = cms.Sequence(ALCARECOCalibrationTracksAAG +
0068                                            offlineBeamSpot +
0069                                            ALCARECOCalibrationTracksRefitAAG )
0070 
0071 # ------------------------------------------------------------------------------
0072 # This is the module actually doing the calibration
0073 from CalibTracker.SiStripChannelGain.SiStripGainsPCLWorker_cfi import SiStripGainsPCLWorker
0074 ALCARECOSiStripCalibAAG = SiStripGainsPCLWorker.clone(
0075         tracks              = cms.InputTag('ALCARECOCalibrationTracksRefitAAG'),
0076         FirstSetOfConstants = cms.untracked.bool(False),
0077         DQMdir              = cms.untracked.string('AlCaReco/SiStripGainsAAG'),
0078         calibrationMode     = cms.untracked.string('AagBunch')
0079         )
0080 
0081 # ----------------------------------------------------------------------------
0082 
0083 MEtoEDMConvertSiStripGainsAAG = cms.EDProducer("MEtoEDMConverter",
0084                                             Name = cms.untracked.string('MEtoEDMConverter'),
0085                                             Verbosity = cms.untracked.int32(1), # 0 provides no output
0086                                             # 1 provides basic output
0087                                             # 2 provide more detailed output
0088                                             Frequency = cms.untracked.int32(50),
0089                                             MEPathToSave = cms.untracked.string('AlCaReco/SiStripGainsAAG'),
0090 )
0091 
0092 # The actual sequence
0093 seqALCARECOPromptCalibProdSiStripGainsAAG = cms.Sequence(
0094    ALCARECOCalMinBiasFilterForSiStripGainsAAG *
0095    ALCARECOTrackFilterRefitAAG *
0096    ALCARECOSiStripCalibAAG *
0097    MEtoEDMConvertSiStripGainsAAG
0098 )