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 SiStripCalCosmics AlcaReco
0005 from  HLTrigger.HLTfilters.hltHighLevel_cfi import *
0006 ALCARECOCalCosmicsFilterForSiStripLorentzAngle = hltHighLevel.clone(
0007     HLTPaths = ['pathALCARECOSiStripCalCosmics'],
0008     throw = True, ## dont throw on unknown path names
0009     TriggerResultsTag = ("TriggerResults","","RECO")
0010 )
0011 # ------------------------------------------------------------------------------
0012 # This is the sequence for track refitting of the track saved by SiStripCalCosmics
0013 # to have access to transient objects produced during RECO step and not saved
0014 
0015 from Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi import *
0016 ALCARECOSiStripLACalibrationTracks = AlignmentTrackSelector.clone(
0017     src = 'ALCARECOSiStripCalCosmics',
0018     filter = True,
0019     applyBasicCuts = True,
0020     ptMin = 3.
0021 )
0022 
0023 # FIXME: the beam-spot should be kept in the AlCaReco (if not already there) and dropped from here
0024 from RecoVertex.BeamSpotProducer.BeamSpot_cff import *
0025 from RecoTracker.IterativeTracking.InitialStep_cff import *
0026 from RecoTracker.Configuration.RecoTrackerP5_cff import *
0027 from RecoTracker.TrackProducer.TrackRefitter_cfi import *
0028 from TrackingTools.TransientTrack.TransientTrackBuilder_cfi import *
0029 
0030 ALCARECOSiStripLACalibrationTracksRefit = TrackRefitter.clone(src = "ALCARECOSiStripLACalibrationTracks",
0031                                                               TrajectoryInEvent = True,
0032                                                               NavigationSchool = "")
0033 
0034 # refit and BS can be dropped if done together with RECO.
0035 # track filter can be moved in acalreco if no otehr users
0036 ALCARECOSiStripLATrackFilterRefit = cms.Sequence(ALCARECOSiStripLACalibrationTracks +
0037                                                  offlineBeamSpot +
0038                                                  ALCARECOSiStripLACalibrationTracksRefit)
0039 
0040 # ------------------------------------------------------------------------------
0041 # This is the module actually doing the calibration
0042 from CalibTracker.SiStripLorentzAngle.SiStripLorentzAnglePCLMonitor_cfi import SiStripLorentzAnglePCLMonitor
0043 ALCARECOSiStripLACalib = SiStripLorentzAnglePCLMonitor.clone(
0044     folder = 'AlCaReco/SiStripLorentzAngle',
0045     Tracks = 'ALCARECOSiStripLACalibrationTracksRefit'
0046 )
0047 # ----------------------------------------------------------------------------
0048 
0049 # ****************************************************************************
0050 # ** Conversion for the SiStripLorentzAngle DQM dir                         **
0051 # ****************************************************************************
0052 MEtoEDMConvertSiStripLorentzAngle = cms.EDProducer("MEtoEDMConverter",
0053                                                    Name = cms.untracked.string('MEtoEDMConverter'),
0054                                                    Verbosity = cms.untracked.int32(0), # 0 provides no output
0055                                                    # 1 provides basic output
0056                                                    # 2 provide more detailed output
0057                                                    Frequency = cms.untracked.int32(50),
0058                                                    MEPathToSave = cms.untracked.string('AlCaReco/SiStripLorentzAngle'))
0059 
0060 # The actual sequence
0061 seqALCARECOPromptCalibProdSiStripLorentzAngle = cms.Sequence(
0062     ALCARECOCalCosmicsFilterForSiStripLorentzAngle *
0063     ALCARECOSiStripLATrackFilterRefit *
0064     ALCARECOSiStripLACalib *
0065     MEtoEDMConvertSiStripLorentzAngle 
0066    )