test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ALCARECODtCalib_cff.py
Go to the documentation of this file.
2 
3 import copy
5 
7 
8 # AlCaReco for DT calibration
9 ALCARECODtCalibHLTFilter = copy.deepcopy(hltHighLevel)
10 #ALCARECODtCalibHLTFilter.andOr = True ## choose logical OR between Triggerbits
11 #ALCARECODtCalibHLTFilter.HLTPaths = ['HLT_L1MuOpen*', 'HLT_L1Mu*']
12 ALCARECODtCalibHLTFilter.throw = False ## dont throw on unknown path names
13 ALCARECODtCalibHLTFilter.eventSetupPathsKey = 'MuAlcaDtCalibMu'
14 
16 dt4DSegmentsNoWire = dt4DSegmentsCfiRef.dt4DSegments.clone()
17 dt4DSegmentsNoWire.Reco4DAlgoConfig.recAlgoConfig.tTrigModeConfig.doWirePropCorrection = False
18 dt4DSegmentsNoWire.Reco4DAlgoConfig.Reco2DAlgoConfig.recAlgoConfig.tTrigModeConfig.doWirePropCorrection = False
19 
20 #this is to select collisions
21 primaryVertexFilter = cms.EDFilter("VertexSelector",
22  src = cms.InputTag("offlinePrimaryVertices"),
23  cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"), # tracksSize() > 3 for the older cut
24  filter = cms.bool(True), # otherwise it won't filter the events, just produce an empty vertex collection.
25 )
26 
27 noscraping = cms.EDFilter("FilterOutScraping",
28  applyfilter = cms.untracked.bool(True),
29  debugOn = cms.untracked.bool(False),
30  numtrack = cms.untracked.uint32(10),
31  thresh = cms.untracked.double(0.25)
32 )
33 
34 seqALCARECODtCalib = cms.Sequence(primaryVertexFilter * noscraping * ALCARECODtCalibHLTFilter * DTCalibMuonSelection * dt4DSegmentsNoWire)