CMS 3D CMS Logo

ALCARECOPromptCalibProdSiPixelLorentzAngleMCS_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 SiPixelCalCosmics AlcaReco
6 ALCARECOCalCosmicsFilterForSiPixelLorentzAngleMCS = hltHighLevel.clone(
7  HLTPaths = ['pathALCARECOSiPixelCalCosmics'],
8  throw = True,
9  TriggerResultsTag = ("TriggerResults","","RECO")
10 )
11 # ------------------------------------------------------------------------------
12 # This is the sequence for track refitting of the track saved by SiPixelCalSingleMuonLoose
13 # to have access to transient objects produced during RECO step and not saved
14 
16 ALCARECOPixelLACalibrationTracksMCS = AlignmentTrackSelector.clone(
17  src = 'ALCARECOSiPixelCalCosmics',
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
30 
31 ALCARECOPixelLACalibrationTracksRefitMCS = TrackRefitter.clone(src = "ALCARECOPixelLACalibrationTracksMCS",
32  TrajectoryInEvent = True,
33  NavigationSchool = ""
34  )
35 
36 # refit and BS can be dropped if done together with RECO.
37 # track filter can be moved in acalreco if no otehr users
38 ALCARECOPixelLATrackFilterRefitMCS = cms.Sequence(ALCARECOPixelLACalibrationTracksMCS +
39  offlineBeamSpot +
40  ALCARECOPixelLACalibrationTracksRefitMCS)
41 
42 # ------------------------------------------------------------------------------
43 # This is the module actually doing the calibration
44 from CalibTracker.SiPixelLorentzAngle.SiPixelLorentzAnglePCLWorker_cfi import SiPixelLorentzAnglePCLWorker
45 ALCARECOSiPixelLACalibMCS = SiPixelLorentzAnglePCLWorker.clone(
46  folder = 'AlCaReco/SiPixelLorentzAngle',
47  src = 'ALCARECOPixelLACalibrationTracksRefitMCS',
48  analysisType = 'MinimalClusterSize'
49 )
50 # ----------------------------------------------------------------------------
51 
52 # ****************************************************************************
53 # ** Conversion for the SiPixelLorentzAngle DQM dir **
54 # ****************************************************************************
55 MEtoEDMConvertSiPixelLorentzAngleMCS = 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 seqALCARECOPromptCalibProdSiPixelLorentzAngleMCS = cms.Sequence(
66  ALCARECOCalCosmicsFilterForSiPixelLorentzAngleMCS *
67  ALCARECOPixelLATrackFilterRefitMCS *
68  ALCARECOSiPixelLACalibMCS *
69  MEtoEDMConvertSiPixelLorentzAngleMCS
70  )
dont throw on unknown path names