CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/CalibMuon/DTCalibration/python/ALCARECODtCalib_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 import copy
00004 from HLTrigger.HLTfilters.hltHighLevel_cfi import *
00005 
00006 from CalibMuon.DTCalibration.DTCalibMuonSelection_cfi import *
00007 
00008 # AlCaReco for DT calibration
00009 ALCARECODtCalibHLTFilter = copy.deepcopy(hltHighLevel)
00010 
00011 #ALCARECODtCalibHLTFilter.andOr = True ## choose logical OR between Triggerbits
00012 #ALCARECODtCalibHLTFilter.HLTPaths = ['HLT_L1MuOpen', 'HLT_L1Mu']
00013 ALCARECODtCalibHLTFilter.throw = False ## dont throw on unknown path names
00014 
00015 ALCARECODtCalibHLTFilter.eventSetupPathsKey = 'MuAlcaDtCalibMu'
00016 
00017 # Configuration for DT 4D segments without the wire propagation correction
00018 from RecoLocalMuon.DTSegment.DTCombinatorialPatternReco2DAlgo_LinearDriftFromDB_cfi import *
00019 from RecoLocalMuon.DTRecHit.DTLinearDriftFromDBAlgo_cfi import *
00020 
00021 DTCombinatorialPatternReco4DAlgo_LinearDriftFromDB_NoWire = cms.PSet(
00022     Reco4DAlgoName = cms.string('DTCombinatorialPatternReco4D'),
00023     Reco4DAlgoConfig = cms.PSet(
00024         # this are the RecSegment2D algo parameters!
00025         DTCombinatorialPatternReco2DAlgo_LinearDriftFromDB,
00026         # Parameters for the updator
00027         # this is the RecHit1D algo!!
00028         DTLinearDriftFromDBAlgo,
00029         debug = cms.untracked.bool(False),
00030         # Parameters for the cleaner
00031         nUnSharedHitsMin = cms.int32(2),
00032         # the input type. 
00033         # If true the instructions in setDTRecSegment2DContainer will be schipped and the 
00034         # theta segment will be recomputed from the 1D rechits
00035         # If false the theta segment will be taken from the Event. Caveat: in this case the
00036         # event must contain the 2D segments!
00037         AllDTRecHits = cms.bool(True),
00038         # Parameters for  T0 fit segment in the Updator 
00039         performT0SegCorrection = cms.bool(False),
00040         hit_afterT0_resolution = cms.double(0.03),
00041         performT0_vdriftSegCorrection = cms.bool(False),
00042         doWirePropCorrection = cms.bool(False)
00043     )
00044 )
00045 
00046 # The actual 4D uncorrected segments build
00047 dt4DSegmentsNoWire = cms.EDProducer("DTRecSegment4DProducer",
00048     # The reconstruction algo and its parameter set
00049     DTCombinatorialPatternReco4DAlgo_LinearDriftFromDB_NoWire,
00050     # debuggin opt
00051     debug = cms.untracked.bool(False),
00052     # name of the rechit 1D collection in the event
00053     recHits1DLabel = cms.InputTag("dt1DRecHits"),
00054     # name of the rechit 2D collection in the event
00055     recHits2DLabel = cms.InputTag("dt2DSegments")
00056 )
00057 
00058 #this is to select collisions
00059 primaryVertexFilter = cms.EDFilter("VertexSelector",
00060    src = cms.InputTag("offlinePrimaryVertices"),
00061    cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"), # tracksSize() > 3 for the older cut
00062    filter = cms.bool(True),   # otherwise it won't filter the events, just produce an empty vertex collection.
00063 )
00064 
00065 noscraping = cms.EDFilter("FilterOutScraping",
00066                                   applyfilter = cms.untracked.bool(True),
00067                                   debugOn = cms.untracked.bool(False),
00068                                   numtrack = cms.untracked.uint32(10),
00069                                   thresh = cms.untracked.double(0.25)
00070 )
00071 
00072 
00073 seqALCARECODtCalib = cms.Sequence(primaryVertexFilter * noscraping * ALCARECODtCalibHLTFilter * DTCalibMuonSelection * dt4DSegmentsNoWire)