CMS 3D CMS Logo

ALCARECOPromptCalibProdSiStripLorentzAngle_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 SiStripCalCosmics AlcaReco
6 ALCARECOCalCosmicsFilterForSiStripLorentzAngle = hltHighLevel.clone(
7  HLTPaths = ['pathALCARECOSiStripCalCosmics'],
8  throw = True,
9  TriggerResultsTag = ("TriggerResults","","RECO")
10 )
11 # ------------------------------------------------------------------------------
12 # This is the sequence for track refitting of the track saved by SiStripCalCosmics
13 # to have access to transient objects produced during RECO step and not saved
14 
16 ALCARECOSiStripLACalibrationTracks = AlignmentTrackSelector.clone(
17  src = 'ALCARECOSiStripCalCosmics',
18  filter = True,
19  applyBasicCuts = True,
20  ptMin = 3.
21 )
22 
23 # FIXME: the beam-spot should be kept in the AlCaReco (if not already there) and dropped from here
29 
30 ALCARECOSiStripLACalibrationTracksRefit = TrackRefitter.clone(src = "ALCARECOSiStripLACalibrationTracks",
31  TrajectoryInEvent = True,
32  NavigationSchool = "")
33 
34 # refit and BS can be dropped if done together with RECO.
35 # track filter can be moved in acalreco if no otehr users
36 ALCARECOSiStripLATrackFilterRefit = cms.Sequence(ALCARECOSiStripLACalibrationTracks +
37  offlineBeamSpot +
38  ALCARECOSiStripLACalibrationTracksRefit)
39 
40 # ------------------------------------------------------------------------------
41 # This is the module actually doing the calibration
42 from CalibTracker.SiStripLorentzAngle.SiStripLorentzAnglePCLMonitor_cfi import SiStripLorentzAnglePCLMonitor
43 ALCARECOSiStripLACalib = SiStripLorentzAnglePCLMonitor.clone(
44  folder = 'AlCaReco/SiStripLorentzAngle',
45  Tracks = 'ALCARECOSiStripLACalibrationTracksRefit'
46 )
47 # ----------------------------------------------------------------------------
48 
49 # ****************************************************************************
50 # ** Conversion for the SiStripLorentzAngle DQM dir **
51 # ****************************************************************************
52 MEtoEDMConvertSiStripLorentzAngle = cms.EDProducer("MEtoEDMConverter",
53  Name = cms.untracked.string('MEtoEDMConverter'),
54  Verbosity = cms.untracked.int32(0), # 0 provides no output
55  # 1 provides basic output
56  # 2 provide more detailed output
57  Frequency = cms.untracked.int32(50),
58  MEPathToSave = cms.untracked.string('AlCaReco/SiStripLorentzAngle'))
59 
60 # The actual sequence
61 seqALCARECOPromptCalibProdSiStripLorentzAngle = cms.Sequence(
62  ALCARECOCalCosmicsFilterForSiStripLorentzAngle *
63  ALCARECOSiStripLATrackFilterRefit *
64  ALCARECOSiStripLACalib *
65  MEtoEDMConvertSiStripLorentzAngle
66  )
dont throw on unknown path names