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
29 
30 ALCARECOPixelLACalibrationTracksRefitMCS = TrackRefitter.clone(src = "ALCARECOPixelLACalibrationTracksMCS",
31  TrajectoryInEvent = True,
32  NavigationSchool = ""
33  )
34 
35 # refit and BS can be dropped if done together with RECO.
36 # track filter can be moved in acalreco if no otehr users
37 ALCARECOPixelLATrackFilterRefitMCS = cms.Sequence(ALCARECOPixelLACalibrationTracksMCS +
38  offlineBeamSpot +
39  ALCARECOPixelLACalibrationTracksRefitMCS)
40 
41 # ------------------------------------------------------------------------------
42 # This is the module actually doing the calibration
43 from CalibTracker.SiPixelLorentzAngle.SiPixelLorentzAnglePCLWorker_cfi import SiPixelLorentzAnglePCLWorker
44 ALCARECOSiPixelLACalibMCS = SiPixelLorentzAnglePCLWorker.clone(
45  folder = 'AlCaReco/SiPixelLorentzAngle',
46  src = 'ALCARECOPixelLACalibrationTracksRefitMCS',
47  analysisType = 'MinimalClusterSize'
48 )
49 # ----------------------------------------------------------------------------
50 
51 # ****************************************************************************
52 # ** Conversion for the SiPixelLorentzAngle DQM dir **
53 # ****************************************************************************
54 MEtoEDMConvertSiPixelLorentzAngleMCS = cms.EDProducer("MEtoEDMConverter",
55  Name = cms.untracked.string('MEtoEDMConverter'),
56  Verbosity = cms.untracked.int32(0), # 0 provides no output
57  # 1 provides basic output
58  # 2 provide more detailed output
59  Frequency = cms.untracked.int32(50),
60  MEPathToSave = cms.untracked.string('AlCaReco/SiPixelLorentzAngle'),
61  )
62 
63 # The actual sequence
64 seqALCARECOPromptCalibProdSiPixelLorentzAngleMCS = cms.Sequence(
65  ALCARECOCalCosmicsFilterForSiPixelLorentzAngleMCS *
66  ALCARECOPixelLATrackFilterRefitMCS *
67  ALCARECOSiPixelLACalibMCS *
68  MEtoEDMConvertSiPixelLorentzAngleMCS
69  )
dont throw on unknown path names