CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ALCARECOPromptCalibProdSiPixelLorentzAngle_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 SiPixelCalSingleMuonLoose AlcaReco
5 import copy
7 ALCARECOCalSignleMuonFilterForSiPixelLorentzAngle = copy.deepcopy(hltHighLevel)
8 ALCARECOCalSignleMuonFilterForSiPixelLorentzAngle.HLTPaths = ['pathALCARECOSiPixelCalSingleMuon']
9 ALCARECOCalSignleMuonFilterForSiPixelLorentzAngle.throw = True ## dont throw on unknown path names
10 ALCARECOCalSignleMuonFilterForSiPixelLorentzAngle.TriggerResultsTag = cms.InputTag("TriggerResults","","RECO")
11 
12 # ------------------------------------------------------------------------------
13 # This is the sequence for track refitting of the track saved by SiPixelCalSingleMuonLoose
14 # to have access to transient objects produced during RECO step and not saved
15 
17 ALCARECOPixelLACalibrationTracks = AlignmentTrackSelector.clone(
18  src = 'ALCARECOSiPixelCalSingleMuon',
19  filter = True,
20  applyBasicCuts = True,
21  ptMin = 3.
22 )
23 
24 # FIXME: the beam-spot should be kept in the AlCaReco (if not already there) and dropped from here
26 
31 
32 ALCARECOPixelLACalibrationTracksRefit = TrackRefitter.clone(src = "ALCARECOPixelLACalibrationTracks",
33  TrajectoryInEvent = True,
34  NavigationSchool = ""
35  )
36 
37 # refit and BS can be dropped if done together with RECO.
38 # track filter can be moved in acalreco if no otehr users
39 ALCARECOPixelLATrackFilterRefit = cms.Sequence(ALCARECOPixelLACalibrationTracks +
40  offlineBeamSpot +
41  ALCARECOPixelLACalibrationTracksRefit)
42 
43 # ------------------------------------------------------------------------------
44 # This is the module actually doing the calibration
45 from CalibTracker.SiPixelLorentzAngle.SiPixelLorentzAnglePCLWorker_cfi import SiPixelLorentzAnglePCLWorker
46 ALCARECOSiPixelLACalib = SiPixelLorentzAnglePCLWorker.clone(
47  folder = cms.string('AlCaReco/SiPixelLorentzAngle'),
48  src = cms.InputTag('ALCARECOPixelLACalibrationTracksRefit')
49 )
50 # ----------------------------------------------------------------------------
51 
52 # ****************************************************************************
53 # ** Conversion for the SiPixelLorentzAngle DQM dir **
54 # ****************************************************************************
55 MEtoEDMConvertSiPixelLorentzAngle = cms.EDProducer("MEtoEDMConverter",
56  Name = cms.untracked.string('MEtoEDMConverter'),
57  Verbosity = cms.untracked.int32(0), # 0 provides no output
58  # 1 provides basic output
59  # 2 provide more detailed output
60  Frequency = cms.untracked.int32(50),
61  MEPathToSave = cms.untracked.string('AlCaReco/SiPixelLorentzAngle'),
62  )
63 
64 # The actual sequence
65 seqALCARECOPromptCalibProdSiPixelLorentzAngle = cms.Sequence(
66  ALCARECOCalSignleMuonFilterForSiPixelLorentzAngle *
67  ALCARECOPixelLATrackFilterRefit *
68  ALCARECOSiPixelLACalib *
69  MEtoEDMConvertSiPixelLorentzAngle
70  )
dont throw on unknown path names