Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-12-10 23:21:24

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 ALCARECOTkAlZMuMuFilterForSiPixelAliHLT = hltHighLevel.clone(
0007     HLTPaths = ['pathALCARECOTkAlHLTTracksZMuMu'],
0008     throw = True, ## dont throw on unknown path names,
0009     TriggerResultsTag = "TriggerResults::RECO"
0010 )
0011 
0012 from Alignment.CommonAlignmentProducer.ALCARECOPromptCalibProdSiPixelAliHLT_cff import *
0013 from Alignment.CommonAlignmentProducer.LSNumberFilter_cfi import *
0014 
0015 
0016 
0017 # Ingredient: AlignmentTrackSelector
0018 # track selector for HighPurity tracks
0019 #-- AlignmentTrackSelector
0020 SiPixelAliLooseSelectorHLTHGDimuon = SiPixelAliLooseSelectorHLT.clone(
0021     src = 'ALCARECOTkAlHLTTracksZMuMu',
0022     etaMax = 3.0,
0023     etaMin = -3.0,
0024     filter = True,
0025     pMin = 8.0,
0026 )
0027 
0028 # track selection for alignment
0029 SiPixelAliTrackSelectorHLTHGDimuon = SiPixelAliTrackSelectorHLT.clone(
0030     src = 'SiPixelAliTrackFitterHLTHGDimuon',
0031     applyMultiplicityFilter = True,
0032     d0Max = 50.0,
0033     d0Min = -50.0,
0034     etaMax = 3.0,
0035     etaMin = -3.0,
0036     filter = True,
0037     maxMultiplicity = 2,
0038     minHitChargeStrip = 20.0,
0039     minHitIsolation = 0.01,
0040     minMultiplicity = 2,
0041     nHighestPt = 2,
0042     nHitMin = 10,
0043     pMin = 3.0,
0044     ptMin = 15.0,
0045     TwoBodyDecaySelector = dict(applyChargeFilter = True,
0046                                 applyMassrangeFilter = True,
0047                                 maxXMass = 95.8,
0048                                 minXMass = 85.8),
0049     minHitsPerSubDet = dict(inPIXEL = 1)
0050 )
0051 
0052 # Ingredient: SiPixelAliTrackRefitter0
0053 # refitting
0054 SiPixelAliTrackRefitterHLTHGDimuon0 = SiPixelAliTrackRefitterHLT0.clone(
0055     src = 'SiPixelAliLooseSelectorHLTHGDimuon'
0056 )
0057 SiPixelAliTrackRefitterHLTHGDimuon1 = SiPixelAliTrackRefitterHLTHGDimuon0.clone(
0058     src = 'SiPixelAliTrackSelectorHLTHGDimuon'
0059 )
0060 
0061 #-- Alignment producer
0062 SiPixelAliMilleAlignmentProducerHLTHGDimuon = SiPixelAliMilleAlignmentProducerHLT.clone(
0063     ParameterBuilder = dict(
0064       Selector = cms.PSet(
0065     alignParams = cms.vstring(
0066       "TrackerP1PXBLadder,111111",
0067       "TrackerP1PXECPanel,111111",
0068     )
0069       )
0070     ),
0071     tjTkAssociationMapTag = 'SiPixelAliTrackRefitterHLTHGDimuon1',
0072     algoConfig = MillePedeAlignmentAlgorithm.clone(        
0073     binaryFile = 'milleBinaryHLTHGDimuon_0.dat',
0074     treeFile = 'treeFileHLTHGDimuon.root',
0075     monitorFile = 'millePedeMonitorHLTHGDimuon.root',
0076         minNumHits = 8,
0077         skipGlobalPositionRcdCheck = True,
0078         TrajectoryFactory = cms.PSet(
0079             AllowZeroMaterial = cms.bool(False),
0080             Chi2Cut = cms.double(10000.0),
0081             ConstructTsosWithErrors = cms.bool(False),
0082             EstimatorParameters = cms.PSet(
0083                 MaxIterationDifference = cms.untracked.double(0.01),
0084                 MaxIterations = cms.untracked.int32(100),
0085                 RobustificationConstant = cms.untracked.double(1.0),
0086                 UseInvariantMass = cms.untracked.bool(True)
0087             ),
0088             IncludeAPEs = cms.bool(False),
0089             MaterialEffects = cms.string('LocalGBL'),
0090             NSigmaCut = cms.double(100.0),
0091             ParticleProperties = cms.PSet(
0092                 PrimaryMass = cms.double(91.1061),
0093                 PrimaryWidth = cms.double(1.7678),
0094                 SecondaryMass = cms.double(0.105658)
0095             ),
0096             PropagationDirection = cms.string('alongMomentum'),
0097             TrajectoryFactoryName = cms.string('TwoBodyDecayTrajectoryFactory'),
0098             UseBeamSpot = cms.bool(False),
0099             UseHitWithoutDet = cms.bool(True),
0100             UseInvalidHits = cms.bool(True),
0101             UseProjectedHits = cms.bool(True),
0102             UseRefittedState = cms.bool(True)
0103         )
0104     )
0105 )
0106 
0107 # Ingredient: SiPixelAliTrackerTrackHitFilter
0108 SiPixelAliTrackerTrackHitFilterHLTHGDimuon = SiPixelAliTrackerTrackHitFilterHLT.clone(
0109     src = 'SiPixelAliTrackRefitterHLTHGDimuon0',
0110     TrackAngleCut = 0.087,
0111     minimumHits = 10,
0112     usePixelQualityFlag = False
0113 )
0114 
0115 # Ingredient: SiPixelAliSiPixelAliTrackFitter
0116 SiPixelAliTrackFitterHLTHGDimuon = SiPixelAliTrackFitterHLT.clone(
0117     src = 'SiPixelAliTrackerTrackHitFilterHLTHGDimuon'
0118 )
0119 
0120 SiPixelAliMillePedeFileConverterHLTHGDimuon = cms.EDProducer(
0121     "MillePedeFileConverter",
0122     fileDir = cms.string(SiPixelAliMilleAlignmentProducerHLTHGDimuon.algoConfig.fileDir.value()),
0123     inputBinaryFile = cms.string(SiPixelAliMilleAlignmentProducerHLTHGDimuon.algoConfig.binaryFile.value()),
0124     fileBlobLabel = cms.string('')
0125 )
0126 
0127 seqALCARECOPromptCalibProdSiPixelAliHLTHGDiMu = cms.Sequence(
0128     ALCARECOTkAlZMuMuFilterForSiPixelAliHLT*
0129     LSNumberFilter*
0130     onlineBeamSpot*
0131     SiPixelAliLooseSelectorHLTHGDimuon*
0132     SiPixelAliTrackRefitterHLTHGDimuon0*
0133     SiPixelAliTrackerTrackHitFilterHLTHGDimuon*
0134     SiPixelAliTrackFitterHLTHGDimuon*
0135     SiPixelAliTrackSelectorHLTHGDimuon*
0136     SiPixelAliTrackRefitterHLTHGDimuon1*
0137     SiPixelAliMilleAlignmentProducerHLTHGDimuon*
0138     SiPixelAliMillePedeFileConverterHLTHGDimuon
0139 )