CMS 3D CMS Logo

ALCARECOSiStripCalCosmicsNano_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from Calibration.TkAlCaRecoProducers.ALCARECOSiStripCalCosmics_cff import ALCARECOSiStripCalCosmics
4 from CalibTracker.SiStripCommon.prescaleEvent_cfi import prescaleEvent
5 from HLTrigger.HLTfilters.triggerResultsFilter_cfi import triggerResultsFilter
6 
7 ALCARECOSiStripCalCosmicsNanoPrescale = prescaleEvent.clone(prescale=1)
8 
9 ALCARECOSiStripCalCosmicsNanoHLT = triggerResultsFilter.clone(
10  triggerConditions=cms.vstring("HLT_L1SingleMuCosmics_v*"),
11  hltResults=cms.InputTag("TriggerResults", "", "HLT"),
12  l1tResults=cms.InputTag(""),
13  throw=cms.bool(False)
14  )
15 
16 from CalibTracker.Configuration.Filter_Refit_cff import CalibrationTracks, CalibrationTracksRefit, MeasurementTrackerEvent, offlineBeamSpot
17 
18 ALCARECOSiStripCalCosmicsNanoCalibTracks = CalibrationTracks.clone(src=cms.InputTag("ALCARECOSiStripCalCosmics"))
19 ALCARECOSiStripCalCosmicsNanoCalibTracksRefit = CalibrationTracksRefit.clone(
20  src=cms.InputTag("ALCARECOSiStripCalCosmicsNanoCalibTracks")
21  )
22 
23 ALCARECOSiStripCalCosmicsNanoTkCalSeq = cms.Sequence(
24  ALCARECOSiStripCalCosmicsNanoPrescale*
25  ALCARECOSiStripCalCosmicsNanoHLT*
26  ALCARECOSiStripCalCosmicsNanoCalibTracks,
27  cms.Task(MeasurementTrackerEvent),
28  cms.Task(offlineBeamSpot),
29  cms.Task(ALCARECOSiStripCalCosmicsNanoCalibTracksRefit)
30  )
31 
33 from PhysicsTools.NanoAOD.nano_cff import nanoMetadata
34 from CalibTracker.SiStripCommon.siStripPositionCorrectionsTable_cfi import siStripPositionCorrectionsTable
35 from CalibTracker.SiStripCommon.siStripLorentzAngleRunInfoTable_cfi import siStripLorentzAngleRunInfoTable
36 
37 ALCARECOSiStripCalCosmicsNanoTracksTable = cms.EDProducer("SimpleTrackFlatTableProducer",
38  src=cms.InputTag("ALCARECOSiStripCalCosmicsNanoCalibTracksRefit"),
39  cut=cms.string(""),
40  name=cms.string("track"),
41  doc=cms.string("SiStripCalCosmics ALCARECO tracks"),
42  singleton=cms.bool(False),
43  extension=cms.bool(False),
44  variables=cms.PSet(
45  chi2ndof=Var("chi2()/ndof", float),
46  pt=Var("pt()", float),
47  hitsvalid=Var("numberOfValidHits()", int),
48  phi=Var("phi()", float),
49  eta=Var("eta()", float),
50  )
51  )
52 
53 ALCARECOSiStripCalCosmicsNanoMeasTable = siStripPositionCorrectionsTable.clone(
54  Tracks=cms.InputTag("ALCARECOSiStripCalCosmicsNanoCalibTracksRefit"))
55 
56 ALCARECOSiStripCalCosmicsNanoTables = cms.Task(
57  nanoMetadata,
58  ALCARECOSiStripCalCosmicsNanoTracksTable,
59  ALCARECOSiStripCalCosmicsNanoMeasTable,
60  siStripLorentzAngleRunInfoTable
61  )
62 
63 seqALCARECOSiStripCalCosmicsNano = cms.Sequence(ALCARECOSiStripCalCosmicsNanoTkCalSeq, ALCARECOSiStripCalCosmicsNanoTables)
common_cff
common_cff.Var
def Var(expr, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:20
prescaleEvent_cfi
Filter_Refit_cff
ALCARECOSiStripCalCosmics_cff
triggerResultsFilter_cfi