CMS 3D CMS Logo

ALCARECOPromptCalibProdSiStripHitEfficiency_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 TkAlMinBias AlcaReco
6 ALCARECOCalMinBiasFilterForSiStripHitEff = hltHighLevel.clone(
7  HLTPaths = ['pathALCARECOSiStripCalMinBias'],
8  throw = True,
9  TriggerResultsTag = ("TriggerResults","","RECO")
10 )
11 
12 # ------------------------------------------------------------------------------
13 # This is the sequence for track refitting of the track saved by SiStripCalMinBias
14 # to have access to transient objects produced during RECO step and not saved
16 ALCARECOMonitoringTracks = AlignmentTrackSelector.clone(
17  # src = 'generalTracks',
18  src = 'ALCARECOSiStripCalMinBias',
19  filter = True,
20  applyBasicCuts = True,
21  ptMin = 0.8,
22  nHitMin = 6,
23  chi2nMax = 10.)
24 
25 # FIXME: the beam-spot should be kept in the AlCaReco (if not already there) and dropped from here
32 
33 ALCARECOMonitoringTracksRefit = TrackRefitter.clone(
34  src = "ALCARECOMonitoringTracks",
35  NavigationSchool = cms.string("")
36 )
37 
38 # ------------------------------------------------------------------------------
39 # refit and BS can be dropped if done together with RECO.
40 # track filter can be moved in acalreco if no otehr users
41 ALCARECOTrackFilterRefit = cms.Sequence(ALCARECOMonitoringTracks +
42  MeasurementTrackerEvent +
43  offlineBeamSpot +
44  ALCARECOMonitoringTracksRefit)
45 
46 # ------------------------------------------------------------------------------
47 # This is the module actually doing the calibration
48 from CalibTracker.SiStripHitEfficiency.siStripHitEfficiencyWorker_cfi import siStripHitEfficiencyWorker
49 ALCARECOSiStripHitEff = siStripHitEfficiencyWorker.clone(
50  dqmDir = "AlCaReco/SiStripHitEfficiency",
51  lumiScalers= "scalersRawToDigi",
52  addLumi = True,
53  commonMode = "siStripDigis:CommonMode",
54  addCommonMode= False,
55  combinatorialTracks = "ALCARECOMonitoringTracksRefit",
56  trajectories = "ALCARECOMonitoringTracksRefit",
57  siStripClusters = "siStripClusters",
58  siStripDigis = "siStripDigis",
59  trackerEvent = "MeasurementTrackerEvent",
60  # part 2
61  Layer = 0, # =0 means do all layers
62  Debug = True,
63  # do not cut on the total number of tracks
64  cutOnTracks = False,
65  trackMultiplicity = 1000,
66  # use or not first and last measurement of a trajectory (biases), default is false
67  useFirstMeas = False,
68  useLastMeas = False,
69  useAllHitsFromTracksWithMissingHits = False,
70 
71  ClusterMatchingMethod = 4, # default 0 case0,1,2,3,4
72  ClusterTrajDist = 15, # default 64
73 )
74 
75 # ----------------------------------------------------------------------------
76 MEtoEDMConvertSiStripHitEff = cms.EDProducer("MEtoEDMConverter",
77  Name = cms.untracked.string('MEtoEDMConverter'),
78  Verbosity = cms.untracked.int32(0), # 0 provides no output
79  # 1 provides basic output
80  # 2 provide more detailed output
81  Frequency = cms.untracked.int32(50),
82  MEPathToSave = cms.untracked.string('AlCaReco/SiStripHitEfficiency'))
83 
84 # The actual sequence
85 seqALCARECOPromptCalibProdSiStripHitEfficiency = cms.Sequence(
86  ALCARECOCalMinBiasFilterForSiStripHitEff *
87  ALCARECOTrackFilterRefit *
88  ALCARECOSiStripHitEff *
89  MEtoEDMConvertSiStripHitEff)
dont throw on unknown path names