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 # configure a filter to run only on the events selected by TkAlMinBias AlcaReco
0004 from Alignment.CommonAlignmentProducer.ALCARECOPromptCalibProdSiPixelAli_cff import *
0005 from HLTrigger.HLTfilters.hltHighLevel_cfi import *
0006 ALCARECOTkAlMinBiasFilterForSiPixelAliHLT = hltHighLevel.clone(
0007     HLTPaths = ['pathALCARECOTkAlHLTTracks'], # ???
0008     throw = True, ## dont throw on unknown path names,
0009     TriggerResultsTag = "TriggerResults::RECO"
0010 )
0011 
0012 from Alignment.CommonAlignmentProducer.LSNumberFilter_cfi import *
0013 
0014 # Ingredient: onlineBeamSpot
0015 import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
0016 onlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
0017 
0018 import RecoVertex.BeamSpotProducer.onlineBeamSpotESProducer_cfi as _mod
0019 BeamSpotESProducer = _mod.onlineBeamSpotESProducer.clone(
0020     timeThreshold = 999999 # for express allow >48h old payloads for replays. DO NOT CHANGE
0021 )
0022 
0023 # Ingredient: ALCARECOTkAlMinBiasHLT
0024 from  Alignment.CommonAlignmentProducer.ALCARECOTkAlMinBias_cff import ALCARECOTkAlMinBias
0025 ALCARECOTkAlMinBiasHLTTracks = ALCARECOTkAlMinBias.clone(
0026     src = cms.InputTag("hltMergedTracks")
0027 )
0028 
0029 # Ingredient: AlignmentTrackSelector
0030 # track selector for HighPurity tracks
0031 #-- AlignmentTrackSelector
0032 from Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi import AlignmentTrackSelector
0033 SiPixelAliLooseSelectorHLT = AlignmentTrackSelector.clone(
0034     applyBasicCuts = True,
0035     #filter = True,
0036     src = 'ALCARECOTkAlMinBiasHLTTracks',
0037     trackQualities = ["loose"],
0038     pMin = 4.,
0039 )
0040 
0041 # track selection for alignment
0042 SiPixelAliTrackSelectorHLT = SiPixelAliTrackSelector.clone( 
0043     src = 'SiPixelAliTrackFitterHLT',
0044 )
0045 
0046 # Ingredient: SiPixelAliTrackRefitter0
0047 # refitting
0048 from RecoTracker.IterativeTracking.InitialStep_cff import *
0049 from RecoTracker.Configuration.RecoTrackerP5_cff import *
0050 from RecoTracker.TrackProducer.TrackRefitter_cfi import *
0051 # In the following use
0052 # TrackRefitter (normal tracks), TrackRefitterP5 (cosmics) or TrackRefitterBHM (beam halo)
0053 
0054 from RecoLocalTracker.SiStripRecHitConverter.StripCPEESProducer_cfi import stripCPEESProducer
0055 hltESPStripCPEfromTrackAngle = stripCPEESProducer.clone(
0056   ComponentType = "StripCPEfromTrackAngle" ,
0057   ComponentName = "hltESPStripCPEfromTrackAngle",
0058   parameters = cms.PSet( 
0059     mLC_P2 = cms.double(0.3),
0060     mLC_P1 = cms.double(0.618),
0061     mLC_P0 = cms.double(-0.326),
0062 #    useLegacyError = cms.bool( True ), # 50ns menu
0063 #    maxChgOneMIP = cms.double( -6000.0 ), # 50ns menu
0064     useLegacyError = cms.bool(False) , # 25ns menu
0065     maxChgOneMIP = cms.double(6000.0) , #25ns menu
0066     mTEC_P1 = cms.double( 0.471 ),
0067     mTEC_P0 = cms.double( -1.885 ),
0068     mTOB_P0 = cms.double( -1.026 ),
0069     mTOB_P1 = cms.double( 0.253 ),
0070     mTIB_P0 = cms.double( -0.742 ),
0071     mTIB_P1 = cms.double( 0.202 ),
0072     mTID_P0 = cms.double( -1.427 ),
0073     mTID_P1 = cms.double( 0.433 )
0074   )
0075 )
0076 
0077 hltESPPixelCPEGeneric = cms.ESProducer( 
0078     "PixelCPEGenericESProducer",
0079     LoadTemplatesFromDB = cms.bool( True ),
0080     Alpha2Order = cms.bool( True ),
0081     ClusterProbComputationFlag = cms.int32( 0 ),
0082     useLAWidthFromDB = cms.bool( False ),
0083     lAOffset = cms.double( 0.0 ),
0084     lAWidthBPix = cms.double( 0.0 ),
0085     lAWidthFPix = cms.double( 0.0 ),
0086     doLorentzFromAlignment = cms.bool( False ),
0087     useLAFromDB = cms.bool( True ),
0088     xerr_barrel_l1 = cms.vdouble( 0.00115, 0.0012, 8.8E-4 ),
0089     yerr_barrel_l1 = cms.vdouble( 0.00375, 0.0023, 0.0025, 0.0025, 0.0023, 0.0023, 0.0021, 0.0021, 0.0024 ),
0090     xerr_barrel_ln = cms.vdouble( 0.00115, 0.0012, 8.8E-4 ),
0091     yerr_barrel_ln = cms.vdouble( 0.00375, 0.0023, 0.0025, 0.0025, 0.0023, 0.0023, 0.0021, 0.0021, 0.0024 ),
0092     xerr_endcap = cms.vdouble( 0.002, 0.002 ),
0093     yerr_endcap = cms.vdouble( 0.0021 ),
0094     xerr_barrel_l1_def = cms.double( 0.0103 ),
0095     yerr_barrel_l1_def = cms.double( 0.0021 ),
0096     xerr_barrel_ln_def = cms.double( 0.0103 ),
0097     yerr_barrel_ln_def = cms.double( 0.0021 ),
0098     xerr_endcap_def = cms.double( 0.002 ),
0099     yerr_endcap_def = cms.double( 7.5E-4 ),
0100     eff_charge_cut_highX = cms.double( 1.0 ),
0101     eff_charge_cut_highY = cms.double( 1.0 ),
0102     eff_charge_cut_lowX = cms.double( 0.0 ),
0103     eff_charge_cut_lowY = cms.double( 0.0 ),
0104     size_cutX = cms.double( 3.0 ),
0105     size_cutY = cms.double( 3.0 ),
0106     EdgeClusterErrorX = cms.double( 50.0 ),
0107     EdgeClusterErrorY = cms.double( 85.0 ),
0108     inflate_errors = cms.bool( False ),
0109     inflate_all_errors_no_trk_angle = cms.bool( False ),
0110     NoTemplateErrorsWhenNoTrkAngles = cms.bool( False ),
0111     UseErrorsFromTemplates = cms.bool( True ),
0112     TruncatePixelCharge = cms.bool( True ),
0113     IrradiationBiasCorrection = cms.bool( True ),
0114     DoCosmics = cms.bool( False ),
0115     isPhase2 = cms.bool( False ),
0116     SmallPitch = cms.bool( False ),
0117     ComponentName = cms.string( "hltESPPixelCPEGeneric" ),
0118     MagneticFieldRecord = cms.ESInputTag( "","" ),
0119     appendToDataLabel = cms.string( "" )
0120 )
0121 
0122 hltESPTTRHBWithTrackAngle = cms.ESProducer( 
0123     "TkTransientTrackingRecHitBuilderESProducer",
0124     ComponentName = cms.string( "hltESPTTRHBWithTrackAngle" ),
0125     ComputeCoarseLocalPositionFromDisk = cms.bool( False ),
0126     StripCPE = cms.string( "hltESPStripCPEfromTrackAngle" ),
0127     PixelCPE = cms.string( "hltESPPixelCPEGeneric" ),
0128     Matcher = cms.string( "StandardMatcher" ),
0129     Phase2StripCPE = cms.string( "" ),
0130     appendToDataLabel = cms.string( "" )
0131 )
0132 
0133 SiPixelAliTrackRefitterHLT0 = TrackRefitter.clone(
0134     src = 'SiPixelAliLooseSelectorHLT',   #'ALCARECOTkAlMinBias'#'ALCARECOTkAlCosmicsCTF0T' #'ALCARECOTkAlMuonIsolated'
0135     NavigationSchool = '',            # to avoid filling hit pattern
0136     TTRHBuilder = 'hltESPTTRHBWithTrackAngle',
0137     beamSpot = 'onlineBeamSpot'
0138 )
0139 
0140 SiPixelAliTrackRefitterHLT1 = SiPixelAliTrackRefitter0.clone(
0141     src = 'SiPixelAliTrackSelectorHLT',
0142     TTRHBuilder = 'hltESPTTRHBWithTrackAngle',
0143     beamSpot = 'onlineBeamSpot'
0144 )
0145 
0146 #-- Alignment producer
0147 from Alignment.MillePedeAlignmentAlgorithm.MillePedeAlignmentAlgorithm_cfi import *
0148 from Alignment.CommonAlignmentProducer.AlignmentProducerAsAnalyzer_cff import AlignmentProducer
0149 SiPixelAliMilleAlignmentProducerHLT = SiPixelAliMilleAlignmentProducer.clone(
0150     beamSpotTag = 'onlineBeamSpot',
0151     tjTkAssociationMapTag = 'SiPixelAliTrackRefitterHLT1',
0152     algoConfig = MillePedeAlignmentAlgorithm.clone(
0153         binaryFile = 'milleBinaryHLT_0.dat',
0154         treeFile = 'treeFileHLT.root',
0155         monitorFile = 'millePedeMonitorHLT.root'
0156     )
0157 )
0158 
0159 # Ingredient: SiPixelAliTrackerTrackHitFilterHLT
0160 SiPixelAliTrackerTrackHitFilterHLT = SiPixelAliTrackerTrackHitFilter.clone(
0161     src = 'SiPixelAliTrackRefitterHLT0'
0162 )
0163 
0164 # Ingredient: SiPixelAliTrackFitterHLT
0165 import RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cff as fitWithMaterial
0166 SiPixelAliTrackFitterHLT = fitWithMaterial.ctfWithMaterialTracks.clone(
0167     src = 'SiPixelAliTrackerTrackHitFilterHLT',
0168     NavigationSchool = '',
0169     TTRHBuilder = 'hltESPTTRHBWithTrackAngle',
0170     beamSpot = 'onlineBeamSpot'
0171 )
0172 
0173 SiPixelAliMillePedeFileConverterHLT = cms.EDProducer( 
0174     "MillePedeFileConverter",
0175     fileDir = cms.string(SiPixelAliMilleAlignmentProducerHLT.algoConfig.fileDir.value()),
0176     inputBinaryFile = cms.string(SiPixelAliMilleAlignmentProducerHLT.algoConfig.binaryFile.value()),
0177     fileBlobLabel = cms.string(''),
0178 )
0179 
0180 seqALCARECOPromptCalibProdSiPixelAliHLT = cms.Sequence(
0181     ALCARECOTkAlMinBiasFilterForSiPixelAliHLT*
0182     LSNumberFilter*
0183     onlineBeamSpot*
0184     SiPixelAliLooseSelectorHLT*
0185     SiPixelAliTrackRefitterHLT0*
0186     SiPixelAliTrackerTrackHitFilterHLT*
0187     SiPixelAliTrackFitterHLT*
0188     SiPixelAliTrackSelectorHLT*
0189     SiPixelAliTrackRefitterHLT1*
0190     SiPixelAliMilleAlignmentProducerHLT*
0191     SiPixelAliMillePedeFileConverterHLT
0192 )