Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-25 02:13:22

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # ------------------------------------------------------------------------------
0004 # configure a filter to run only on the events selected by TkAlZMuMu AlcaReco
0005 from HLTrigger.HLTfilters.hltHighLevel_cfi import *
0006 ALCARECOTkAlZMuMuFilterForSiPixelAli = hltHighLevel.clone(
0007     HLTPaths = ['pathALCARECOTkAlZMuMu'],
0008     throw = True, ## dont throw on unknown path names,
0009     TriggerResultsTag = "TriggerResults::RECO"
0010 )
0011 
0012 from Alignment.CommonAlignmentProducer.ALCARECOPromptCalibProdSiPixelAli_cff import *
0013 from Alignment.CommonAlignmentProducer.LSNumberFilter_cfi import *
0014 
0015 # Ingredient: offlineBeamSpot
0016 from RecoVertex.BeamSpotProducer.BeamSpot_cfi import offlineBeamSpot
0017 
0018 # Ingredient: AlignmentTrackSelector
0019 # track selector for HighPurity tracks
0020 #-- AlignmentTrackSelector
0021 SiPixelAliHighPuritySelectorHGDimuon = SiPixelAliHighPuritySelector.clone(
0022     src = 'ALCARECOTkAlZMuMu',
0023     etaMax = 3.0,
0024     etaMin = -3.0,
0025     filter = True,
0026     pMin = 8.0,
0027 )
0028 
0029 # track selection for alignment
0030 SiPixelAliTrackSelectorHGDimuon = SiPixelAliTrackSelector.clone(
0031     src = 'SiPixelAliTrackFitterHGDimuon',
0032     applyMultiplicityFilter = True,
0033     d0Max = 50.0,
0034     d0Min = -50.0,
0035     etaMax = 3.0,
0036     etaMin = -3.0,
0037     filter = True,
0038     maxMultiplicity = 2,
0039     minHitChargeStrip = 20.0,
0040     minHitIsolation = 0.01,
0041     minMultiplicity = 2,
0042     nHighestPt = 2,
0043     nHitMin = 10,
0044     pMin = 3.0,
0045     ptMin = 15.0,
0046     TwoBodyDecaySelector = dict(applyChargeFilter = True,
0047                                 applyMassrangeFilter = True,
0048                                 maxXMass = 95.8,
0049                                 minXMass = 85.8),
0050     minHitsPerSubDet = dict(inPIXEL = 1)
0051 )
0052 
0053 # Ingredient: SiPixelAliTrackRefitter0
0054 # refitting
0055 SiPixelAliTrackRefitterHGDimuon0 = SiPixelAliTrackRefitter0.clone(
0056     src = 'SiPixelAliHighPuritySelectorHGDimuon'
0057 )
0058 SiPixelAliTrackRefitterHGDimuon1 = SiPixelAliTrackRefitterHGDimuon0.clone(
0059     src = 'SiPixelAliTrackSelectorHGDimuon'
0060 )
0061 
0062 #-- Alignment producer
0063 SiPixelAliMilleAlignmentProducerHGDimuon = SiPixelAliMilleAlignmentProducer.clone(
0064     ParameterBuilder = dict(
0065       Selector = cms.PSet(
0066     alignParams = cms.vstring(
0067       "TrackerP1PXBLadder,111111",
0068       "TrackerP1PXECPanel,111111",
0069     )
0070       )
0071     ),
0072     tjTkAssociationMapTag = 'SiPixelAliTrackRefitterHGDimuon1',
0073     algoConfig = MillePedeAlignmentAlgorithm.clone(        
0074     binaryFile = 'milleBinaryHGDimuon_0.dat',
0075     treeFile = 'treeFileHGDimuon.root',
0076     monitorFile = 'millePedeMonitorHGDimuon.root',
0077         minNumHits = 8,
0078         skipGlobalPositionRcdCheck = True,
0079         TrajectoryFactory = cms.PSet(
0080             AllowZeroMaterial = cms.bool(False),
0081             Chi2Cut = cms.double(10000.0),
0082             ConstructTsosWithErrors = cms.bool(False),
0083             EstimatorParameters = cms.PSet(
0084                 MaxIterationDifference = cms.untracked.double(0.01),
0085                 MaxIterations = cms.untracked.int32(100),
0086                 RobustificationConstant = cms.untracked.double(1.0),
0087                 UseInvariantMass = cms.untracked.bool(True)
0088             ),
0089             IncludeAPEs = cms.bool(False),
0090             MaterialEffects = cms.string('LocalGBL'),
0091             NSigmaCut = cms.double(100.0),
0092             ParticleProperties = cms.PSet(
0093                 PrimaryMass = cms.double(91.1061),
0094                 PrimaryWidth = cms.double(1.7678),
0095                 SecondaryMass = cms.double(0.105658)
0096             ),
0097             PropagationDirection = cms.string('alongMomentum'),
0098             TrajectoryFactoryName = cms.string('TwoBodyDecayTrajectoryFactory'),
0099             UseBeamSpot = cms.bool(False),
0100             UseHitWithoutDet = cms.bool(True),
0101             UseInvalidHits = cms.bool(True),
0102             UseProjectedHits = cms.bool(True),
0103             UseRefittedState = cms.bool(True)
0104         )
0105     )
0106 )
0107 
0108 # Ingredient: SiPixelAliTrackerTrackHitFilter
0109 SiPixelAliTrackerTrackHitFilterHGDimuon = SiPixelAliTrackerTrackHitFilter.clone(
0110     src = 'SiPixelAliTrackRefitterHGDimuon0',
0111     TrackAngleCut = 0.087,
0112     minimumHits = 10
0113 )
0114 
0115 # Ingredient: SiPixelAliSiPixelAliTrackFitter
0116 SiPixelAliTrackFitterHGDimuon = SiPixelAliTrackFitter.clone(
0117     src = 'SiPixelAliTrackerTrackHitFilterHGDimuon'
0118 )
0119 
0120 SiPixelAliMillePedeFileConverterHGDimuon = cms.EDProducer("MillePedeFileConverter",
0121                                                          fileDir = cms.string(SiPixelAliMilleAlignmentProducerHGDimuon.algoConfig.fileDir.value()),
0122                                                          inputBinaryFile = cms.string(SiPixelAliMilleAlignmentProducerHGDimuon.algoConfig.binaryFile.value()),
0123                                                          fileBlobLabel = cms.string(''))
0124 
0125 seqALCARECOPromptCalibProdSiPixelAliHGDiMu = cms.Sequence(ALCARECOTkAlZMuMuFilterForSiPixelAli*
0126                                                           LSNumberFilter*
0127                                                           offlineBeamSpot*
0128                                                           SiPixelAliHighPuritySelectorHGDimuon*
0129                                                           SiPixelAliTrackRefitterHGDimuon0*
0130                                                           SiPixelAliTrackerTrackHitFilterHGDimuon*
0131                                                           SiPixelAliTrackFitterHGDimuon*
0132                                                           SiPixelAliTrackSelectorHGDimuon*
0133                                                           SiPixelAliTrackRefitterHGDimuon1*
0134                                                           SiPixelAliMilleAlignmentProducerHGDimuon*
0135                                                           SiPixelAliMillePedeFileConverterHGDimuon)