Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # ------------------------------------------------------------------------------
0004 # configure a filter to run only on the events selected by SiPixelCalSingleMuonLoose AlcaReco
0005 import copy
0006 from HLTrigger.HLTfilters.hltHighLevel_cfi import *
0007 ALCARECOCalSignleMuonFilterForSiPixelLorentzAngle = copy.deepcopy(hltHighLevel)
0008 ALCARECOCalSignleMuonFilterForSiPixelLorentzAngle.HLTPaths = ['pathALCARECOSiPixelCalSingleMuon']
0009 ALCARECOCalSignleMuonFilterForSiPixelLorentzAngle.throw = True ## dont throw on unknown path names
0010 ALCARECOCalSignleMuonFilterForSiPixelLorentzAngle.TriggerResultsTag = cms.InputTag("TriggerResults","","RECO")
0011 
0012 # ------------------------------------------------------------------------------
0013 # This is the sequence for track refitting of the track saved by SiPixelCalSingleMuonLoose
0014 # to have access to transient objects produced during RECO step and not saved
0015 
0016 from Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi import *
0017 ALCARECOPixelLACalibrationTracks = AlignmentTrackSelector.clone(
0018     src = 'ALCARECOSiPixelCalSingleMuon',
0019     filter = True,
0020     applyBasicCuts = True,
0021     ptMin = 3.
0022 )
0023 
0024 # FIXME: the beam-spot should be kept in the AlCaReco (if not already there) and dropped from here
0025 from RecoVertex.BeamSpotProducer.BeamSpot_cff import *
0026 
0027 from RecoTracker.IterativeTracking.InitialStep_cff import *
0028 from RecoTracker.Configuration.RecoTrackerP5_cff import *
0029 from RecoTracker.TrackProducer.TrackRefitter_cfi import *
0030 from TrackingTools.TransientTrack.TransientTrackBuilder_cfi import *
0031 
0032 ALCARECOPixelLACalibrationTracksRefit = TrackRefitter.clone(src = "ALCARECOPixelLACalibrationTracks",
0033                                                             TrajectoryInEvent = True,
0034                                                             NavigationSchool = ""
0035                                                             )
0036 
0037 # refit and BS can be dropped if done together with RECO.
0038 # track filter can be moved in acalreco if no otehr users
0039 ALCARECOPixelLATrackFilterRefit = cms.Sequence(ALCARECOPixelLACalibrationTracks +
0040                                                offlineBeamSpot +
0041                                                ALCARECOPixelLACalibrationTracksRefit)
0042 
0043 # ------------------------------------------------------------------------------
0044 # This is the module actually doing the calibration
0045 from CalibTracker.SiPixelLorentzAngle.SiPixelLorentzAnglePCLWorker_cfi import SiPixelLorentzAnglePCLWorker 
0046 ALCARECOSiPixelLACalib = SiPixelLorentzAnglePCLWorker.clone(
0047     folder = cms.string('AlCaReco/SiPixelLorentzAngle'),
0048     src = cms.InputTag('ALCARECOPixelLACalibrationTracksRefit')
0049 )
0050 # ----------------------------------------------------------------------------
0051 
0052 # ****************************************************************************
0053 # ** Conversion for the SiPixelLorentzAngle DQM dir                         **
0054 # ****************************************************************************
0055 MEtoEDMConvertSiPixelLorentzAngle = cms.EDProducer("MEtoEDMConverter",
0056                                                    Name = cms.untracked.string('MEtoEDMConverter'),
0057                                                    Verbosity = cms.untracked.int32(0), # 0 provides no output
0058                                                    # 1 provides basic output
0059                                                    # 2 provide more detailed output
0060                                                    Frequency = cms.untracked.int32(50),
0061                                                    MEPathToSave = cms.untracked.string('AlCaReco/SiPixelLorentzAngle'),
0062                                                    )
0063 
0064 # The actual sequence
0065 seqALCARECOPromptCalibProdSiPixelLorentzAngle = cms.Sequence(
0066     ALCARECOCalSignleMuonFilterForSiPixelLorentzAngle *
0067     ALCARECOPixelLATrackFilterRefit *
0068     ALCARECOSiPixelLACalib *
0069     MEtoEDMConvertSiPixelLorentzAngle
0070    )