MonitorTrackMuonsInnerTrack.doSeedParameterHistos = False
MonitorTrackMuonsInnerTrack.doProfilesVsLS = False
MonitorTrackMuonsInnerTrack.doAllPlots = False
MonitorTrackMuonsInnerTrack.doGeneralPropertiesPlots = True
MonitorTrackMuonsInnerTrack.doHitPropertiesPlots = True
MonitorTrackMuonsInnerTrack.doTrackerSpecific = True
MonitorTrackMuonsInnerTrack.doDCAPlots = True
MonitorTrackMuonsInnerTrack.doDCAwrtPVPlots = True
MonitorTrackMuonsInnerTrack.doDCAwrt000Plots = False
MonitorTrackMuonsInnerTrack.doSIPPlots  = True
MonitorTrackMuonsInnerTrack.doEffFromHitPatternVsPU = True
MonitorTrackMuonsInnerTrack.doEffFromHitPatternVsBX = False
MonitorTrackMuonsInnerTrack.TkSizeBin = 10
MonitorTrackMuonsInnerTrack.TkSizeMax = 10.
MonitorTrackMuonsInnerTrack.phiErrMax = 0.001
MonitorTrackMuonsInnerTrack.etaErrMax = 0.001
MonitorTrackMuonsInnerTrack.PVBin = 40
MonitorTrackMuonsInnerTrack.PVMin = -0.5
MonitorTrackMuonsInnerTrack.PVMax = 79.5 ## it might need to be adjust if CMS asks to have lumi levelling at lower values


from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase1Pixel.toModify(MonitorTrackMuonsInnerTrack, EtaBin=31, EtaMin=-3., EtaMax=3.)
phase2_tracker.toModify(MonitorTrackMuonsInnerTrack, EtaBin=46, EtaMin=-4.5, EtaMax=4.5)
phase2_tracker.toModify(MonitorTrackMuonsInnerTrack, PVBin=125, PVMin=-0.5, PVMax=249.5)


#MonitorTrackINNMuons = cms.Sequence(muonInnerTrack+MonitorTrackMuonsInnerTrack)
MonitorTrackINNMuons = cms.Sequence(cms.ignore(muonsPt10)+muonInnerTrack+MonitorTrackMuonsInnerTrack)
import FWCore.ParameterSet.Config as cms

TrackerKinkFinderParametersBlock = cms.PSet(
    TrackerKinkFinderParameters  = cms.PSet(
        # use also position degrees of freedom of the track state
        usePosition = cms.bool(True),
        # discard off-diagonal terms when computing chi2s
        diagonalOnly = cms.bool(False),
        # configuraton for refitter
        DoPredictionsOnly = cms.bool(False),
        Fitter = cms.string('KFFitterForRefitInsideOut'),
        TrackerRecHitBuilder = cms.string('WithAngleAndTemplate'),
        Smoother = cms.string('KFSmootherForRefitInsideOut'),
        MuonRecHitBuilder = cms.string('MuonRecHitBuilder'),
        RefitDirection = cms.string('alongMomentum'),
        RefitRPCHits = cms.bool(True),
        Propagator = cms.string('SmartPropagatorAnyRKOpposite'),
    )
)

# Switch back to GenericCPE until bias in template CPE gets fixed
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(TrackerKinkFinderParametersBlock, TrackerKinkFinderParameters = dict(TrackerRecHitBuilder = 'WithTrackAngle')) # FIXME

# This customization will be removed once we get the templates for
# phase2 pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(TrackerKinkFinderParametersBlock, TrackerKinkFinderParameters = dict(TrackerRecHitBuilder = 'WithTrackAngle')) # FIXME

Beispiel #3
0
        MuonSeededTracksInstance = cms.untracked.string('L2Seeded'),
        VertexConstraint = cms.bool(False),
        DoSmoothing = cms.bool(True),
        beamSpot = cms.InputTag("hltOfflineBeamSpot"),
        TTRHBuilder = cms.string('WithAngleAndTemplate')
    )
)
MuonTrackLoaderForCosmic = cms.PSet(
    TrackLoaderParameters = cms.PSet(
        MuonUpdatorAtVertexAnyDirection,
        PutTrajectoryIntoEvent = cms.untracked.bool(False),
        VertexConstraint = cms.bool(False),
        AllowNoVertex = cms.untracked.bool(True),
        Smoother = cms.string('KFSmootherForMuonTrackLoader'),
        DoSmoothing = cms.bool(False),
        beamSpot = cms.InputTag("offlineBeamSpot"),
        TTRHBuilder = cms.string('WithAngleAndTemplate')
    )
)

# Switch back to GenericCPE until bias in template CPE gets fixed
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
for _loader in [MuonTrackLoaderForSTA, MuonTrackLoaderForGLB, MuonTrackLoaderForL2, MuonTrackLoaderForL3, MuonTrackLoaderForCosmic]:
    phase1Pixel.toModify(_loader, TrackLoaderParameters = dict(TTRHBuilder = 'WithTrackAngle')) # FIXME

# This customization will be removed once we get the templates for
# phase2 pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(MuonTrackLoaderForGLB, TrackLoaderParameters = dict(TTRHBuilder = 'WithTrackAngle')) # FIXME

Beispiel #4
0
    beamSpot=cms.InputTag("offlineBeamSpot"),
    Fitter=cms.string('KFFittingSmootherWithOutliersRejectionAndRK'),
    useHitsSplitting=cms.bool(False),
    alias=cms.untracked.string('ctfWithMaterialTracks'),
    TrajectoryInEvent=cms.bool(False),
    TTRHBuilder=cms.string('WithAngleAndTemplate'),
    AlgorithmName=cms.string('undefAlgorithm'),
    Propagator=cms.string('RungeKuttaTrackerPropagator'),

    # this parameter decides if the propagation to the beam line
    # for the track parameters defiition is from the first hit
    # or from the closest to the beam line
    # true for cosmics/beam halo, false for collision tracks (needed by loopers)
    GeometricInnerState=cms.bool(False),

    ### These are paremeters related to the filling of the Secondary hit-patterns
    #set to "", the secondary hit pattern will not be filled (backward compatible with DetLayer=0)
    NavigationSchool=cms.string('SimpleNavigationSchool'),
    MeasurementTracker=cms.string(''),
    MeasurementTrackerEvent=cms.InputTag('MeasurementTrackerEvent'),
)

# Switch back to GenericCPE until bias in template CPE gets fixed
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(TrackProducer, TTRHBuilder='WithTrackAngle')  # FIXME

# This customization will be removed once we get the templates for
# phase2 pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(TrackProducer, TTRHBuilder='WithTrackAngle')  # FIXME
import FWCore.ParameterSet.Config as cms

from RecoBTag.SecondaryVertex.trackSelection_cff import *

candidateBoostedDoubleSecondaryVertexAK8Computer = cms.ESProducer(
    "CandidateBoostedDoubleSecondaryVertexESProducer",
    useCondDB=cms.bool(False),
    weightFile=cms.FileInPath(
        'RecoBTag/SecondaryVertex/data/BoostedDoubleSV_AK8_BDT_v4.weights.xml.gz'
    ),
    useGBRForest=cms.bool(True),
    useAdaBoost=cms.bool(False))

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(
    candidateBoostedDoubleSecondaryVertexAK8Computer,
    weightFile=cms.FileInPath(
        'RecoBTag/SecondaryVertex/data/BoostedDoubleSV_AK8_BDT_PhaseI_v1.weights.xml.gz'
    ))
Beispiel #6
0
from RecoTracker.TkSeedGenerator.trackerClusterCheckDefault_cfi import trackerClusterCheckDefault as _trackerClusterCheckDefault
trackerClusterCheck = _trackerClusterCheckDefault.clone()

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
# Disable too many clusters check until we have an updated cut string for phase1 and phase2
phase1Pixel.toModify(trackerClusterCheck, doClusterCheck=False)  # FIXME
phase2_tracker.toModify(trackerClusterCheck, doClusterCheck=False)  # FIXME

from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
peripheralPbPb.toModify(
    trackerClusterCheck,
    cut=
    "strip < 400000 && pixel < 40000 && (strip < 60000 + 7.0*pixel) && (pixel < 8000 + 0.14*strip)"
)
    DoSmoothing=cms.bool(True),
    beamSpot=cms.InputTag("hltOfflineBeamSpot"),
    TTRHBuilder=cms.string('WithAngleAndTemplate')))
MuonTrackLoaderForCosmic = cms.PSet(TrackLoaderParameters=cms.PSet(
    MuonUpdatorAtVertexAnyDirection,
    PutTrajectoryIntoEvent=cms.untracked.bool(False),
    VertexConstraint=cms.bool(False),
    AllowNoVertex=cms.untracked.bool(True),
    Smoother=cms.string('KFSmootherForMuonTrackLoader'),
    DoSmoothing=cms.bool(False),
    beamSpot=cms.InputTag("offlineBeamSpot"),
    TTRHBuilder=cms.string('WithAngleAndTemplate')))

# Switch back to GenericCPE until bias in template CPE gets fixed
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
for _loader in [
        MuonTrackLoaderForSTA, MuonTrackLoaderForGLB, MuonTrackLoaderForL2,
        MuonTrackLoaderForL3, MuonTrackLoaderForCosmic
]:
    phase1Pixel.toModify(
        _loader,
        TrackLoaderParameters=dict(TTRHBuilder='WithTrackAngle'))  # FIXME

# This customization will be removed once we get the templates for
# phase2 pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker

phase2_tracker.toModify(
    MuonTrackLoaderForGLB,
    TrackLoaderParameters=dict(TTRHBuilder='WithTrackAngle'))  # FIXME
import FWCore.ParameterSet.Config as cms

TTRHBuilderAngleAndTemplate = cms.ESProducer("TkTransientTrackingRecHitBuilderESProducer",
    StripCPE = cms.string('StripCPEfromTrackAngle'),
    ComponentName = cms.string('WithAngleAndTemplate'),
    PixelCPE = cms.string('PixelCPETemplateReco'),
    Matcher = cms.string('StandardMatcher'),
    ComputeCoarseLocalPositionFromDisk = cms.bool(False),
)

from Configuration.Eras.Modifier_trackingPhase2PU140_cff import trackingPhase2PU140
trackingPhase2PU140.toModify(TTRHBuilderAngleAndTemplate, Phase2StripCPE = cms.string('Phase2StripCPE'))

# uncomment these two lines to turn on Cluster Repair CPE
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(TTRHBuilderAngleAndTemplate, PixelCPE = cms.string('PixelCPEClusterRepair'))

import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel

from RecoPixelVertexing.PixelTrackFitting.pixelFitterByHelixProjectionsDefault_cfi import pixelFitterByHelixProjectionsDefault

pixelFitterByHelixProjections = pixelFitterByHelixProjectionsDefault.clone()

phase1Pixel.toModify( pixelFitterByHelixProjections, scaleErrorsForBPix1 = True)
import FWCore.ParameterSet.Config as cms

#
# This object is used to make changes for different running scenarios
#

SiPixelRecHitSource = cms.EDAnalyzer("SiPixelRecHitSource",
    TopFolderName = cms.string('Pixel'),
    src = cms.InputTag("siPixelRecHits"),
    outputFile = cms.string('Pixel_DQM_RecHits.root'),
    saveFile = cms.untracked.bool(False),
    slowDown = cms.untracked.bool(False),
    isPIB = cms.untracked.bool(False),
    modOn = cms.untracked.bool(True),
    twoDimOn = cms.untracked.bool(True),                            
    reducedSet = cms.untracked.bool(True),	
    ladOn = cms.untracked.bool(False),
    layOn = cms.untracked.bool(False),
    phiOn = cms.untracked.bool(False),
    ringOn = cms.untracked.bool(False),
    bladeOn = cms.untracked.bool(False),
    diskOn = cms.untracked.bool(False)
)

# Modify for if the phase 1 pixel detector is active
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify( SiPixelRecHitSource, isUpgrade=cms.untracked.bool(True) )
import FWCore.ParameterSet.Config as cms

#
# This object is used to make changes for different running scenarios
#

from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
SiPixelHitEfficiencySource = DQMEDAnalyzer('SiPixelHitEfficiencySource',
    src = cms.InputTag("siPixelHitEfficiency"),
    debug = cms.untracked.bool(False),                          
    saveFile = cms.untracked.bool(True),
    outputFile = cms.string('Pixel_DQM_HitEfficiency.root'),
    modOn = cms.untracked.bool(False),
    ladOn = cms.untracked.bool(True),
    layOn = cms.untracked.bool(False),
    phiOn = cms.untracked.bool(False),
    ringOn = cms.untracked.bool(False),
    bladeOn = cms.untracked.bool(True),
    diskOn = cms.untracked.bool(False),
    updateEfficiencies = cms.untracked.bool(False), 
    vtxsrc = cms.untracked.string('offlinePrimaryVertices'),

    trajectoryInput = cms.InputTag('refittedForPixelDQM'),  
    applyEdgeCut = cms.untracked.bool(False),
    nSigma_EdgeCut = cms.untracked.double(2.)             
)

# Modify for if the phase 1 pixel detector is active
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify( SiPixelHitEfficiencySource, isUpgrade=cms.untracked.bool(True) )
import FWCore.ParameterSet.Config as cms

ClusterShapeHitFilterESProducer = cms.ESProducer("ClusterShapeHitFilterESProducer",
                                                        ComponentName = cms.string('ClusterShapeHitFilter'),
                                                        PixelShapeFile= cms.string('RecoPixelVertexing/PixelLowPtUtilities/data/pixelShapePhase0.par'),
                                                        PixelShapeFileL1= cms.string('RecoPixelVertexing/PixelLowPtUtilities/data/pixelShapePhase0.par'),
                                                        clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutNone'))
                                                        )
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(ClusterShapeHitFilterESProducer,
    PixelShapeFile = 'RecoPixelVertexing/PixelLowPtUtilities/data/pixelShapePhase1_noL1.par',
    PixelShapeFileL1 = 'RecoPixelVertexing/PixelLowPtUtilities/data/pixelShapePhase1_loose.par',
)
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(ClusterShapeHitFilterESProducer,
    PixelShapeFile = 'RecoPixelVertexing/PixelLowPtUtilities/data/ITShapePhase2_all.par',
    PixelShapeFileL1 = 'RecoPixelVertexing/PixelLowPtUtilities/data/ITShapePhase2_all.par',
)
mergedDuplicateTracks.src = cms.InputTag("duplicateTrackCandidates","candidates")
mergedDuplicateTracks.Fitter='RKFittingSmoother' # no outlier rejection!

from RecoTracker.FinalTrackSelectors.TrackCutClassifier_cff import *
duplicateTrackClassifier = TrackCutClassifier.clone()
duplicateTrackClassifier.src='mergedDuplicateTracks'
duplicateTrackClassifier.mva.minPixelHits = [0,0,0]
duplicateTrackClassifier.mva.maxChi2 = [9999.,9999.,9999.]
duplicateTrackClassifier.mva.maxChi2n = [10.,1.0,0.4]  # [9999.,9999.,9999.]
duplicateTrackClassifier.mva.minLayers = [0,0,0]
duplicateTrackClassifier.mva.min3DLayers = [0,0,0]
duplicateTrackClassifier.mva.maxLostLayers = [99,99,99]

# Switch back to GenericCPE until bias in template CPE gets fixed
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(duplicateTrackCandidates, ttrhBuilderName = "WithTrackAngle") # FIXME

# This customization will be removed once we get the templates for
# phase2 pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(duplicateTrackCandidates, ttrhBuilderName = "WithTrackAngle") # FIXME

generalTracks = DuplicateListMerger.clone()
generalTracks.originalSource = cms.InputTag("preDuplicateMergingGeneralTracks")
generalTracks.originalMVAVals = cms.InputTag("preDuplicateMergingGeneralTracks","MVAValues")
generalTracks.mergedSource = cms.InputTag("mergedDuplicateTracks")
generalTracks.mergedMVAVals = cms.InputTag("duplicateTrackClassifier","MVAValues")
generalTracks.candidateSource = cms.InputTag("duplicateTrackCandidates","candidates")
generalTracks.candidateComponents = cms.InputTag("duplicateTrackCandidates","candidateMap")

import FWCore.ParameterSet.Config as cms

#
# This object is used to make changes for different running scenarios
#

SiPixelRawDataErrorSource = cms.EDAnalyzer("SiPixelRawDataErrorSource",
    TopFolderName = cms.string('Pixel'),
    src = cms.InputTag("siPixelDigis"),
    outputFile = cms.string('Pixel_DQM_Error.root'),
    saveFile = cms.untracked.bool(False),
    isPIB = cms.untracked.bool(False),
    slowDown = cms.untracked.bool(False),
    reducedSet = cms.untracked.bool(False),
    modOn = cms.untracked.bool(True),
    ladOn = cms.untracked.bool(False),
    bladeOn = cms.untracked.bool(False)
)

# Modify for if the phase 1 pixel detector is active
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify( SiPixelRawDataErrorSource, isUpgrade=cms.untracked.bool(True) )
    intimeOnly = cms.bool(False),
    stableOnly = cms.bool(False),
    minRapidity = cms.double(-2.5),
    minHit = cms.int32(0),
    ptMin = cms.double(0.9),
    ptMax = cms.double(1e100),
    maxRapidity = cms.double(2.5),
    tip = cms.double(3.5),
    minPhi = cms.double(-3.2),
    maxPhi = cms.double(3.2),
)

from Configuration.Eras.Modifier_fastSim_cff import fastSim
fastSim.toModify(generalTpSelectorBlock, stableOnly = True)

TpSelectorForEfficiencyVsEtaBlock = generalTpSelectorBlock.clone()
TpSelectorForEfficiencyVsPhiBlock = generalTpSelectorBlock.clone()
TpSelectorForEfficiencyVsPtBlock = generalTpSelectorBlock.clone(ptMin = 0.050 )
TpSelectorForEfficiencyVsVTXRBlock = generalTpSelectorBlock.clone(tip = 60.0)
TpSelectorForEfficiencyVsVTXZBlock = generalTpSelectorBlock.clone()

def _modifyForPhase1(pset):
    pset.minRapidity = -3
    pset.maxRapidity = 3
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(generalTpSelectorBlock, _modifyForPhase1)
phase1Pixel.toModify(TpSelectorForEfficiencyVsEtaBlock, _modifyForPhase1)
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(generalTpSelectorBlock, minRapidity=-4.5, maxRapidity=4.5)
phase2_tracker.toModify(TpSelectorForEfficiencyVsEtaBlock, minRapidity=-4.5, maxRapidity=4.5)
import FWCore.ParameterSet.Config as cms

#
# This object is used to make changes for different running scenarios
#

SiPixelClusterSource = cms.EDAnalyzer("SiPixelClusterSource",
    TopFolderName = cms.string('Pixel'),
    src = cms.InputTag("siPixelClusters"),
    digisrc = cms.InputTag("siPixelDigis"),
    outputFile = cms.string('Pixel_DQM_Cluster.root'),
    saveFile = cms.untracked.bool(False),
    slowDown = cms.untracked.bool(False),
    isPIB = cms.untracked.bool(False),
    modOn = cms.untracked.bool(True),
    twoDimOn = cms.untracked.bool(True),                            
    reducedSet = cms.untracked.bool(True),                            
    ladOn = cms.untracked.bool(False),
    layOn = cms.untracked.bool(False),
    phiOn = cms.untracked.bool(False),
    ringOn = cms.untracked.bool(False),
    bladeOn = cms.untracked.bool(False),
    diskOn = cms.untracked.bool(False),
    smileyOn = cms.untracked.bool(True),
    bigEventSize = cms.untracked.int32(100)
)

# Modify for if the phase 1 pixel detector is active
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify( SiPixelClusterSource, isUpgrade=cms.untracked.bool(True) )
Beispiel #17
0
    GainSmearing=cms.double(0.0),
    PixGeometryType=cms.string('idealForDigi'),
    useDB=cms.bool(False),
    LorentzAngle_DB=cms.bool(True),
    DeadModules_DB=cms.bool(True),
    killModules=cms.bool(True),
    NumPixelBarrel=cms.int32(3),
    NumPixelEndcap=cms.int32(2),
    ###    DeadModules = cms.VPSet()
)

#
# Apply the changes for the different Run 2 running scenarios
#
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(SiPixelSimBlock, func=_modifyPixelDigitizerForPhase1Pixel)

# use Label 'forDigitizer' for years >= 2018
from CalibTracker.SiPixelESProducers.SiPixelQualityESProducer_cfi import siPixelQualityESProducer
from Configuration.Eras.Modifier_run2_SiPixel_2018_cff import run2_SiPixel_2018
run2_SiPixel_2018.toModify(
    siPixelQualityESProducer,
    siPixelQualityLabel='forDigitizer',
)
run2_SiPixel_2018.toModify(
    SiPixelSimBlock,
    SiPixelQualityLabel='forDigitizer',
)

from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
premix_stage1.toModify(
    cotThetaRes_rangeMin = cms.double(-0.02),
    cotThetaRes_rangeMax = cms.double(+0.02),
    cotThetaRes_nbin = cms.int32(300),

    dxyRes_rangeMin = cms.double(-0.1),
    dxyRes_rangeMax = cms.double(0.1),
    dxyRes_nbin = cms.int32(500),

    dzRes_rangeMin = cms.double(-0.05),
    dzRes_rangeMax = cms.double(+0.05),
    dzRes_nbin = cms.int32(150),


    maxDzpvCumulative = cms.double(0.6),
    nintDzpvCumulative = cms.int32(240),

    maxDzpvsigCumulative = cms.double(10),
    nintDzpvsigCumulative = cms.int32(200),

    seedingLayerSets = cms.vstring(),
)

def _modifyForPhase1(pset):
    pset.minEta = -3
    pset.maxEta = 3
    pset.nintEta = 60
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(MTVHistoProducerAlgoForTrackerBlock, _modifyForPhase1)
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(MTVHistoProducerAlgoForTrackerBlock, minEta=-4.5, maxEta=4.5, nintEta = 90)
      cms.InputTag("inclusiveCandidateSecondaryVertices"),
      cms.InputTag("inclusiveCandidateSecondaryVerticesCvsL"),
      cms.InputTag("generalV0Candidates","Kshort"),
      cms.InputTag("generalV0Candidates","Lambda"),
      ),      
    minPtForTrackProperties = cms.double(0.95),
    covarianceVersion = cms.int32(0), #so far: 0 is Phase0, 1 is Phase1   
#    covariancePackingSchemas = cms.vint32(1,257,513,769,0),  # a cheaper schema in kb/ev 
    covariancePackingSchemas = cms.vint32(8,264,520,776,0),   # more accurate schema +0.6kb/ev
    pfCandidateTypesForHcalDepth = cms.vint32(),
    storeHcalDepthEndcapOnly = cms.bool(False), # switch to store info only for endcap 
    storeTiming = cms.bool(False)
)

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(packedPFCandidates, covarianceVersion =1 )

from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
run2_miniAOD_80XLegacy.toModify(packedPFCandidates, chargedHadronIsolation = "" )

from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(packedPFCandidates,
    pfCandidateTypesForHcalDepth = [130,11,22,211,13],  # PF cand types for adding Hcal depth energy frac information
                        # (130: neutral h, 11: ele, 22: photon, 211: charged h, 13: mu) # excluding e.g. 1:h_HF, 2:egamma_HF
    storeHcalDepthEndcapOnly = True
)

from Configuration.Eras.Modifier_run3_common_cff import run3_common
run3_common.toModify(packedPFCandidates,
    pfCandidateTypesForHcalDepth = [], # For now, no PF cand type is considered for addition of Hcal depth energy frac 
    storeHcalDepthEndcapOnly = False
Beispiel #20
0
import EventFilter.SiPixelRawToDigi.siPixelRawToDigi_cfi
import RecoLocalTracker.SiPixelClusterizer.siPixelDigiHeterogeneousConverter_cfi

siPixelDigis = EventFilter.SiPixelRawToDigi.siPixelRawToDigi_cfi.siPixelRawToDigi.clone(
)
siPixelDigis.Timing = cms.untracked.bool(False)
siPixelDigis.IncludeErrors = cms.bool(True)
siPixelDigis.InputLabel = cms.InputTag("siPixelRawData")
siPixelDigis.UseQualityInfo = cms.bool(False)
## ErrorList: list of error codes used by tracking to invalidate modules
siPixelDigis.ErrorList = cms.vint32(29)
## UserErrorList: list of error codes used by Pixel experts for investigation
siPixelDigis.UserErrorList = cms.vint32(40)
##  Use pilot blades
siPixelDigis.UsePilotBlade = cms.bool(False)
##  Use phase1
siPixelDigis.UsePhase1 = cms.bool(False)
## Empty Regions PSet means complete unpacking
siPixelDigis.Regions = cms.PSet()
siPixelDigis.CablingMapLabel = cms.string("")

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(siPixelDigis, UsePhase1=True)

_siPixelDigis_gpu = RecoLocalTracker.SiPixelClusterizer.siPixelDigiHeterogeneousConverter_cfi.siPixelDigiHeterogeneousConverter.clone(
)
_siPixelDigis_gpu.includeErrors = cms.bool(True)

from Configuration.ProcessModifiers.gpu_cff import gpu
gpu.toReplaceWith(siPixelDigis, _siPixelDigis_gpu)
Beispiel #21
0
        # muon station to be skipped
        SkipStation=cms.int32(-1),

        # PXB = 1, PXF = 2, TIB = 3, TID = 4, TOB = 5, TEC = 6
        TrackerSkipSystem=cms.int32(-1),

        # layer, wheel, or disk depending on the system
        TrackerSkipSection=cms.int32(-1),
        RefitFlag=cms.bool(True)),
)

# Switch back to GenericCPE until bias in template CPE gets fixed
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(
    GlobalTrajectoryBuilderCommon,  # FIXME
    TrackerRecHitBuilder='WithTrackAngle',
    TrackTransformer=dict(TrackerRecHitBuilder='WithTrackAngle'),
    GlbRefitterParameters=dict(TrackerRecHitBuilder='WithTrackAngle'),
)

# This customization will be removed once we get the templates for
# phase2 pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(
    GlobalTrajectoryBuilderCommon,  # FIXME
    TrackerRecHitBuilder='WithTrackAngle',
    TrackTransformer=dict(TrackerRecHitBuilder='WithTrackAngle'),
    GlbRefitterParameters=dict(TrackerRecHitBuilder='WithTrackAngle'),
)
import FWCore.ParameterSet.Config as cms

TrackingParticleSelectionForEfficiency = cms.PSet(
    lipTP = cms.double(30.0),
    chargedOnlyTP = cms.bool(True),
    stableOnlyTP = cms.bool(False),
    pdgIdTP = cms.vint32(),
    signalOnlyTP = cms.bool(False),
    intimeOnlyTP = cms.bool(True),
    minRapidityTP = cms.double(-2.5),
    minHitTP = cms.int32(0),
    ptMinTP = cms.double(0.005),
    ptMaxTP = cms.double(1e100),
    maxRapidityTP = cms.double(2.5),
    tipTP = cms.double(60)
)

def _modifyForPhase1(pset):
    pset.minRapidityTP = -3
    pset.maxRapidityTP = 3
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(TrackingParticleSelectionForEfficiency, _modifyForPhase1)
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(TrackingParticleSelectionForEfficiency, minRapidityTP = -4.5, maxRapidityTP = 4.5)
from Configuration.Eras.Modifier_fastSim_cff import fastSim
if fastSim.isChosen():
    TrackingParticleSelectionForEfficiency.stableOnlyTP = True
    cotThetaRes_rangeMin=cms.double(-0.02),
    cotThetaRes_rangeMax=cms.double(+0.02),
    cotThetaRes_nbin=cms.int32(300),
    dxyRes_rangeMin=cms.double(-0.1),
    dxyRes_rangeMax=cms.double(0.1),
    dxyRes_nbin=cms.int32(500),
    dzRes_rangeMin=cms.double(-0.05),
    dzRes_rangeMax=cms.double(+0.05),
    dzRes_nbin=cms.int32(150),
    maxDzpvCumulative=cms.double(0.6),
    nintDzpvCumulative=cms.int32(240),
    maxDzpvsigCumulative=cms.double(10),
    nintDzpvsigCumulative=cms.int32(200),
    seedingLayerSets=cms.vstring(),
)


def _modifyForPhase1(pset):
    pset.minEta = -3
    pset.maxEta = 3
    pset.nintEta = 60


from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(MTVHistoProducerAlgoForTrackerBlock, _modifyForPhase1)
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(MTVHistoProducerAlgoForTrackerBlock,
                        minEta=-4.5,
                        maxEta=4.5,
                        nintEta=90)
Beispiel #24
0
    Fitter = cms.string('KFFittingSmootherWithOutliersRejectionAndRK'),
    useHitsSplitting = cms.bool(False),
    alias = cms.untracked.string('ctfWithMaterialTracks'),
    TrajectoryInEvent = cms.bool(False),
    TTRHBuilder = cms.string('WithAngleAndTemplate'),
    AlgorithmName = cms.string('undefAlgorithm'),
    Propagator = cms.string('RungeKuttaTrackerPropagator'),

    # this parameter decides if the propagation to the beam line
    # for the track parameters defiition is from the first hit
    # or from the closest to the beam line
    # true for cosmics/beam halo, false for collision tracks (needed by loopers)
    GeometricInnerState = cms.bool(False),

    ### These are paremeters related to the filling of the Secondary hit-patterns                               
    #set to "", the secondary hit pattern will not be filled (backward compatible with DetLayer=0)    
    NavigationSchool = cms.string('SimpleNavigationSchool'),          
    MeasurementTracker = cms.string(''),
    MeasurementTrackerEvent = cms.InputTag('MeasurementTrackerEvent'),                   
)

# Switch back to GenericCPE until bias in template CPE gets fixed
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(TrackProducer, TTRHBuilder = 'WithTrackAngle') # FIXME

# This customization will be removed once we get the templates for
# phase2 pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(TrackProducer, TTRHBuilder = 'WithTrackAngle') # FIXME

    GainSmearing = cms.double(0.0),
    PixGeometryType = cms.string('idealForDigi'),                           
    useDB = cms.bool(False),
    LorentzAngle_DB = cms.bool(True),
    DeadModules_DB = cms.bool(True),
    killModules = cms.bool(True),
    NumPixelBarrel = cms.int32(3),
    NumPixelEndcap = cms.int32(2),
###    DeadModules = cms.VPSet()
)

#
# Apply the changes for the different Run 2 running scenarios
#
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify( SiPixelSimBlock, func=_modifyPixelDigitizerForPhase1Pixel )

# Threshold in electrons are the Official CRAFT09 numbers:
# FPix(smearing)/BPix(smearing) = 2480(160)/2730(200)

#DEAD MODULES LIST: NEW LIST AFTER 2009 PIXEL REPAIRS
# https://twiki.cern.ch/twiki/bin/view/CMS/SiPixelQualityHistory
######Barrel
#Bad Module: 302055940 errorType 2 BadRocs=ff00
#Bad Module: 302059800 errorType 0 BadRocs=ffff
#BmI_SEC3_LYR2_LDR5F_MOD3 -- 302121992, "TBM-A"
#####Forward
#Bad Module: 352453892 errorType 0 BadRocs=ffff
#BmO_DISK1_BLD9_PNL2 -- 344014340, 344014344, 344014348
#Barrel 
#302187268, "none" (ROC 6) 
Beispiel #26
0
   TopFolderName  = cms.string("OfflinePV"),
   AlignmentLabel = cms.string("Alignment"),                           
   vertexLabel    = cms.InputTag("offlinePrimaryVertices"),
   beamSpotLabel  = cms.InputTag("offlineBeamSpot"),
   ndof           = cms.int32( 4 ),                           
   TkSizeBin      = cms.int32( 100  ),
   TkSizeMax      = cms.double(499.5),                       
   TkSizeMin      = cms.double( -0.5),
   Xpos           = cms.double(0.1),
   Ypos           = cms.double(0.0),
   DxyBin         = cms.int32(100),
   DxyMax         = cms.double(5000.0),
   DxyMin         = cms.double(-5000.0),                        
   DzBin          = cms.int32(100),
   DzMax          = cms.double(2000.0),
   DzMin          = cms.double(-2000.0),                                             
   PhiBin         = cms.int32(32),
   PhiMax         = cms.double(3.141592654),
   PhiMin         = cms.double(-3.141592654),
   EtaBin         = cms.int32(26),
   EtaMax         = cms.double(2.5),
   EtaMin         = cms.double(-2.5)
)

# same as above, should be in sync with cut used in Vertex finder...
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase1Pixel.toModify(pvMonitor, EtaBin=26, EtaMin=-2.5, EtaMax=2.5)
phase2_tracker.toModify(pvMonitor, EtaBin=41, EtaMin=-4.0, EtaMax=4.0)

Beispiel #27
0
#    BXlumiMax = cms.double(20000),

###############################
################## FOR HI PLOTS#####################
#######
TransDCABins = cms.int32(100),
TransDCAMin = cms.double(-8.0),
TransDCAMax = cms.double(8.0),

LongDCABins = cms.int32(100),
LongDCAMin = cms.double(-8.0),
LongDCAMax = cms.double(8.0),          
)

# Overcoming the 255 arguments limit
# TrackingRegion monitoring
TrackMon.RegionProducer = cms.InputTag("")
TrackMon.RegionCandidates = cms.InputTag("")
TrackMon.doRegionPlots = cms.bool(False)
TrackMon.RegionSizeBin = cms.int32(20)
TrackMon.RegionSizeMax = cms.double(19.5)
TrackMon.RegionSizeMin = cms.double(-0.5)
TrackMon.RegionCandidatePtBin = cms.int32(100)
TrackMon.RegionCandidatePtMax = cms.double(1000)
TrackMon.RegionCandidatePtMin = cms.double(0)

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase1Pixel.toModify(TrackMon, EtaBin=30, EtaMin=-3, EtaMax=3)
phase2_tracker.toModify(TrackMon, EtaBin=46, EtaMin=-4.5, EtaMax=4.5)
TrackingParticleSelectionForEfficiency = cms.PSet(
    lipTP=cms.double(30.0),
    chargedOnlyTP=cms.bool(True),
    stableOnlyTP=cms.bool(False),
    pdgIdTP=cms.vint32(),
    signalOnlyTP=cms.bool(False),
    intimeOnlyTP=cms.bool(True),
    minRapidityTP=cms.double(-2.5),
    minHitTP=cms.int32(0),
    ptMinTP=cms.double(0.005),
    ptMaxTP=cms.double(1e100),
    maxRapidityTP=cms.double(2.5),
    tipTP=cms.double(60))


def _modifyForPhase1(pset):
    pset.minRapidityTP = -3
    pset.maxRapidityTP = 3


from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(TrackingParticleSelectionForEfficiency, _modifyForPhase1)
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(TrackingParticleSelectionForEfficiency,
                        minRapidityTP=-4.5,
                        maxRapidityTP=4.5)
from Configuration.Eras.Modifier_fastSim_cff import fastSim
if fastSim.isChosen():
    TrackingParticleSelectionForEfficiency.stableOnlyTP = True
Beispiel #29
0
import FWCore.ParameterSet.Config as cms

pfDeepCSVJetTags = cms.EDProducer(
    'DeepFlavourJetTagsProducer',
    src=cms.InputTag('pfDeepCSVTagInfos'),
    checkSVForDefaults=cms.bool(False),
    meanPadding=cms.bool(False),
    NNConfig=cms.FileInPath('RecoBTag/Combined/data/DeepFlavourNoSL.json'),
    toAdd=cms.PSet(probcc=cms.string('probc')),
)

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel

phase1Pixel.toModify(
    pfDeepCSVJetTags,
    NNConfig=cms.FileInPath('RecoBTag/Combined/data/DeepCSV_PhaseI.json'))
phase1Pixel.toModify(pfDeepCSVJetTags, checkSVForDefaults=cms.bool(True))
phase1Pixel.toModify(pfDeepCSVJetTags, meanPadding=cms.bool(True))
phase1Pixel.toModify(pfDeepCSVJetTags, toAdd=cms.PSet())

from Configuration.Eras.Modifier_phase2_common_cff import phase2_common

phase2_common.toModify(
    pfDeepCSVJetTags,
    NNConfig=cms.FileInPath('RecoBTag/Combined/data/DeepCSV_PhaseII.json'))
phase2_common.toModify(pfDeepCSVJetTags, checkSVForDefaults=cms.bool(True))
phase2_common.toModify(pfDeepCSVJetTags, meanPadding=cms.bool(True))
phase2_common.toModify(pfDeepCSVJetTags, toAdd=cms.PSet())
Beispiel #30
0
import FWCore.ParameterSet.Config as cms
import EventFilter.SiPixelRawToDigi.siPixelRawToDigi_cfi

siPixelDigis = EventFilter.SiPixelRawToDigi.siPixelRawToDigi_cfi.siPixelRawToDigi.clone()
siPixelDigis.Timing = cms.untracked.bool(False)
siPixelDigis.IncludeErrors = cms.bool(True)
siPixelDigis.InputLabel = cms.InputTag("siPixelRawData")
siPixelDigis.UseQualityInfo = cms.bool(False)
## ErrorList: list of error codes used by tracking to invalidate modules
siPixelDigis.ErrorList = cms.vint32(29)
## UserErrorList: list of error codes used by Pixel experts for investigation
siPixelDigis.UserErrorList = cms.vint32(40)
##  Use pilot blades
siPixelDigis.UsePilotBlade = cms.bool(False)
##  Use phase1
siPixelDigis.UsePhase1 = cms.bool(False)
## Empty Regions PSet means complete unpacking
siPixelDigis.Regions = cms.PSet( ) 
siPixelDigis.CablingMapLabel = cms.string("")

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(siPixelDigis, UsePhase1=True)
from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
premix_stage2.toModify(siPixelDigis, BadPixelFEDChannelsInputLabel = "mixData")
Beispiel #31
0
import FWCore.ParameterSet.Config as cms

#
# This object is used to make changes for different running scenarios
#

from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
SiPixelRawDataErrorSource = DQMEDAnalyzer(
    'SiPixelRawDataErrorSource',
    TopFolderName=cms.string('Pixel'),
    src=cms.InputTag("siPixelDigis"),
    outputFile=cms.string('Pixel_DQM_Error.root'),
    saveFile=cms.untracked.bool(False),
    isPIB=cms.untracked.bool(False),
    slowDown=cms.untracked.bool(False),
    reducedSet=cms.untracked.bool(False),
    modOn=cms.untracked.bool(True),
    ladOn=cms.untracked.bool(False),
    bladeOn=cms.untracked.bool(False))

# Modify for if the phase 1 pixel detector is active
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(SiPixelRawDataErrorSource,
                     isUpgrade=cms.untracked.bool(True))
Beispiel #32
0
import FWCore.ParameterSet.Config as cms

TTRHBuilderAngleAndTemplate = cms.ESProducer(
    "TkTransientTrackingRecHitBuilderESProducer",
    StripCPE=cms.string('StripCPEfromTrackAngle'),
    ComponentName=cms.string('WithAngleAndTemplate'),
    PixelCPE=cms.string('PixelCPETemplateReco'),
    Matcher=cms.string('StandardMatcher'),
    ComputeCoarseLocalPositionFromDisk=cms.bool(False),
)

from Configuration.Eras.Modifier_trackingPhase2PU140_cff import trackingPhase2PU140
trackingPhase2PU140.toModify(TTRHBuilderAngleAndTemplate,
                             Phase2StripCPE=cms.string('Phase2StripCPE'))

# uncomment these two lines to turn on Cluster Repair CPE
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(TTRHBuilderAngleAndTemplate,
                     PixelCPE=cms.string('PixelCPEClusterRepair'))
Beispiel #33
0
import FWCore.ParameterSet.Config as cms

TTRHBuilderAngleAndTemplate = cms.ESProducer("TkTransientTrackingRecHitBuilderESProducer",
    StripCPE = cms.string('StripCPEfromTrackAngle'),
    ComponentName = cms.string('WithAngleAndTemplate'),
    PixelCPE = cms.string('PixelCPETemplateReco'),
    Matcher = cms.string('StandardMatcher'),
    ComputeCoarseLocalPositionFromDisk = cms.bool(False),
)

from Configuration.Eras.Modifier_trackingPhase2PU140_cff import trackingPhase2PU140
trackingPhase2PU140.toModify(TTRHBuilderAngleAndTemplate, Phase2StripCPE = cms.string('Phase2StripCPE'))

# uncomment these two lines to turn on Cluster Repair CPE
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(TTRHBuilderAngleAndTemplate, PixelCPE = 'PixelCPEClusterRepair')

# uncomment these two lines to turn on Cluster Repair CPE
from Configuration.ProcessModifiers.phase2_PixelCPEGeneric_cff import phase2_PixelCPEGeneric
phase2_PixelCPEGeneric.toModify(TTRHBuilderAngleAndTemplate, PixelCPE = 'PixelCPEGeneric')

from RecoTracker.TkSeedGenerator.trackerClusterCheckDefault_cfi import trackerClusterCheckDefault as _trackerClusterCheckDefault
trackerClusterCheck = _trackerClusterCheckDefault.clone()

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
# Disable too many clusters check until we have an updated cut string for phase1 and phase2
phase1Pixel.toModify(trackerClusterCheck, doClusterCheck=False) # FIXME
phase2_tracker.toModify(trackerClusterCheck, doClusterCheck=False) # FIXME

from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
peripheralPbPb.toModify(trackerClusterCheck,
                        doClusterCheck=True,  #FIXMETOO
                        cut = "strip < 400000 && pixel < 40000 && (strip < 60000 + 7.0*pixel) && (pixel < 8000 + 0.14*strip)"
                        )
from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
pp_on_XeXe_2017.toModify(trackerClusterCheck,
               doClusterCheck=True, #FIXMETOO
               cut = "strip < 1000000 && pixel < 100000 && (strip < 50000 + 10*pixel) && (pixel < 5000 + strip/2.)",
               MaxNumberOfPixelClusters = 100000
               )

from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
pp_on_AA_2018.toModify(trackerClusterCheck,
               doClusterCheck=True, 
               cut = "strip < 1000000 && pixel < 150000 && (strip < 50000 + 10*pixel) && (pixel < 5000 + strip/2.)",
               MaxNumberOfPixelClusters = 150000,
               MaxNumberOfCosmicClusters = 500000
               )
#Filter
hiConformalPixelTracksPhase1Filter = hiConformalPixelFilter.clone(
    VertexCollection = "offlinePrimaryVertices",
    chi2   = 999.9,
    lipMax = 999.0,
    nSigmaLipMaxTolerance = 999.9,
    nSigmaTipMaxTolerance = 999.0,
    ptMax  = 999999,
    ptMin  = 0.30,
    tipMax = 999.0
)

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(hiConformalPixelTracks,
    Cleaner = 'pixelTrackCleanerBySharedHits',
    Filter  = "hiConformalPixelTracksPhase1Filter",
    Fitter  = "pixelFitterByConformalMappingAndLine",
    SeedingHitSets = "hiConformalPixelTracksPhase1HitQuadrupletsCA",
)

hiConformalPixelTracksTask = cms.Task(
    hiTrackingRegionWithVertex ,
    hiConformalPixelTracksHitDoublets ,
    hiConformalPixelTracksHitTriplets ,
    pixelFitterByConformalMappingAndLine ,
    hiConformalPixelFilter ,
    hiConformalPixelTracks
)

hiConformalPixelTracksTaskPhase1 = cms.Task(
    hiConformalPixelTracksPhase1TrackingRegions ,
    hiConformalPixelTracksPhase1SeedLayers ,
Beispiel #36
0
    79.5
)  ## it might need to be adjust if CMS asks to have lumi levelling at lower values

TrackMon.DxyErrBin = cms.int32(200)
TrackMon.DxyErrMax = cms.double(0.1)

TrackMon.RegionProducer = cms.InputTag("")
TrackMon.RegionSeedingLayersProducer = cms.InputTag("")
TrackMon.RegionCandidates = cms.InputTag("")
TrackMon.doRegionPlots = cms.bool(False)
TrackMon.doRegionCandidatePlots = cms.bool(False)
TrackMon.RegionSizeBin = cms.int32(20)
TrackMon.RegionSizeMax = cms.double(19.5)
TrackMon.RegionSizeMin = cms.double(-0.5)
TrackMon.RegionCandidatePtBin = cms.int32(100)
TrackMon.RegionCandidatePtMax = cms.double(1000)
TrackMon.RegionCandidatePtMin = cms.double(0)

# Number of candidates/seed within pattern recognition
TrackMon.SeedCandBin = cms.int32(20)
TrackMon.SeedCandMax = cms.double(19.5)
TrackMon.SeedCandMin = cms.double(-0.5)

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase1Pixel.toModify(TrackMon, EtaBin=31, EtaMin=-3., EtaMax=3.)
phase1Pixel.toModify(TrackMon, LUMIBin=300, LUMIMin=200., LUMIMax=20000.)
phase2_tracker.toModify(TrackMon, EtaBin=46, EtaMin=-4.5, EtaMax=4.5)
phase2_tracker.toModify(TrackMon, PVBin=125, PVMin=-0.5, PVMax=249.5)
phase2_tracker.toModify(TrackMon, LUMIBin=700, LUMIMin=0., LUMIMax=70000.)
    # ****  payLoadType Options         ****
    # ****  HLT - column granularity    ****
    # ****  Offline - gain:col/ped:pix  ****
    # **************************************
    payloadType = cms.string('Offline'),
    SeedThreshold = cms.int32(1000),
    ClusterThreshold    = cms.int32(4000),
    ClusterThreshold_L1 = cms.int32(4000),
    # **************************************
    maxNumberOfClusters = cms.int32(-1), # -1 means no limit.
)

# phase1 pixel
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(siPixelClusters,
  VCaltoElectronGain      = cms.int32(47),   # L2-4: 47 +- 4.7
  VCaltoElectronGain_L1   = cms.int32(50),   # L1:   49.6 +- 2.6
  VCaltoElectronOffset    = cms.int32(-60),  # L2-4: -60 +- 130
  VCaltoElectronOffset_L1 = cms.int32(-670), # L1:   -670 +- 220
  ChannelThreshold        = cms.int32(250),
  ClusterThreshold_L1     = cms.int32(2000)
)

# Need these until phase2 pixel templates are used
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(siPixelClusters, # FIXME
  src = cms.InputTag('simSiPixelDigis', "Pixel"),
  MissCalibrate = False,
  ElectronPerADCGain = cms.double(600.) # it can be changed to something else (e.g. 135e) if needed
)
Beispiel #38
0
duplicateDisplacedTrackClassifier.mva.min3DLayers = [0, 0, 0]
duplicateDisplacedTrackClassifier.mva.maxLostLayers = [99, 99, 99]

#for displaced global muons
displacedTracks = DuplicateListMerger.clone(
    originalSource=cms.InputTag("preDuplicateMergingDisplacedTracks"),
    originalMVAVals=cms.InputTag("preDuplicateMergingDisplacedTracks",
                                 "MVAValues"),
    mergedSource=cms.InputTag("mergedDuplicateDisplacedTracks"),
    mergedMVAVals=cms.InputTag("duplicateDisplacedTrackClassifier",
                               "MVAValues"),
    candidateSource=cms.InputTag("duplicateDisplacedTrackCandidates",
                                 "candidates"),
    candidateComponents=cms.InputTag("duplicateDisplacedTrackCandidates",
                                     "candidateMap"))
#for displaced global muons
displacedTracksSequence = cms.Sequence(
    duplicateDisplacedTrackCandidates * mergedDuplicateDisplacedTracks *
    duplicateDisplacedTrackClassifier * displacedTracks)

# Switch back to GenericCPE until bias in template CPE gets fixed
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(duplicateDisplacedTrackCandidates,
                     ttrhBuilderName="WithTrackAngle")  # FIXME

# This customization will be removed once we get the templates for
# phase2 pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(duplicateDisplacedTrackCandidates,
                        ttrhBuilderName="WithTrackAngle")  # FIXME
import FWCore.ParameterSet.Config as cms

from RecoBTag.SecondaryVertex.trackSelection_cff import *

candidateBoostedDoubleSecondaryVertexAK8Computer = cms.ESProducer("CandidateBoostedDoubleSecondaryVertexESProducer",
    useCondDB = cms.bool(False),
    weightFile = cms.FileInPath('RecoBTag/SecondaryVertex/data/BoostedDoubleSV_AK8_BDT_v4.weights.xml.gz'),
    useGBRForest = cms.bool(True),
    useAdaBoost = cms.bool(False)
)

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(candidateBoostedDoubleSecondaryVertexAK8Computer, weightFile = cms.FileInPath('RecoBTag/SecondaryVertex/data/BoostedDoubleSV_AK8_BDT_PhaseI_v1.weights.xml.gz'))
    PSThresholdFile = cms.string('RecoParticleFlow/PFTracking/data/PSThreshold.dat'),
    MinPt = cms.double(2.0),
    TkColList = cms.VInputTag(cms.InputTag("generalTracks")),
    UseTMVA = cms.untracked.bool(True),
    TrackQuality = cms.string('highPurity'),
    MaxPt = cms.double(50.0),
    ApplyIsolation = cms.bool(False),
    EcalStripSumE_deltaPhiOverQ_minValue = cms.double(-0.1),
    EcalStripSumE_minClusEnergy = cms.double(0.1),
    EcalStripSumE_deltaEta = cms.double(0.03),
    EcalStripSumE_deltaPhiOverQ_maxValue = cms.double(0.5),
    EOverPLead_minValue = cms.double(0.95),
    HOverPLead_maxValue = cms.double(0.05),
    HcalWindow=cms.double(0.184),                       
    ClusterThreshold = cms.double(0.5),
    UsePreShower =cms.bool(False),
    PreIdLabel = cms.string('preid'),
    ProducePreId = cms.untracked.bool(True),
    PtThresholdSavePreId = cms.untracked.double(1.0),
    Min_dr = cms.double(0.2)
)

# Switch back to GenericCPE until bias in template CPE gets fixed
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(trackerDrivenElectronSeeds, TTRHBuilder  = 'WithTrackAngle') # FIXME

# This customization will be removed once we get the templates for
# phase2 pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(trackerDrivenElectronSeeds, TTRHBuilder  = 'WithTrackAngle') # FIXME
Beispiel #41
0
    tip=cms.double(3.5),
    minPhi=cms.double(-3.2),
    maxPhi=cms.double(3.2),
)

from Configuration.Eras.Modifier_fastSim_cff import fastSim
fastSim.toModify(generalTpSelectorBlock, stableOnly=True)

TpSelectorForEfficiencyVsEtaBlock = generalTpSelectorBlock.clone()
TpSelectorForEfficiencyVsPhiBlock = generalTpSelectorBlock.clone()
TpSelectorForEfficiencyVsPtBlock = generalTpSelectorBlock.clone(ptMin=0.050)
TpSelectorForEfficiencyVsVTXRBlock = generalTpSelectorBlock.clone(tip=60.0)
TpSelectorForEfficiencyVsVTXZBlock = generalTpSelectorBlock.clone()


def _modifyForPhase1(pset):
    pset.minRapidity = -3
    pset.maxRapidity = 3


from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(generalTpSelectorBlock, _modifyForPhase1)
phase1Pixel.toModify(TpSelectorForEfficiencyVsEtaBlock, _modifyForPhase1)
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(generalTpSelectorBlock,
                        minRapidity=-4.5,
                        maxRapidity=4.5)
phase2_tracker.toModify(TpSelectorForEfficiencyVsEtaBlock,
                        minRapidity=-4.5,
                        maxRapidity=4.5)
Beispiel #42
0
import FWCore.ParameterSet.Config as cms

pfDeepCSVJetTags = cms.EDProducer(
    'DeepFlavourJetTagsProducer',
    src=cms.InputTag('pfDeepCSVTagInfos'),
    checkSVForDefaults=cms.bool(False),
    meanPadding=cms.bool(False),
    NNConfig=cms.FileInPath('RecoBTag/Combined/data/DeepFlavourNoSL.json'),
    toAdd=cms.PSet(probcc=cms.string('probc')),
)

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel

phase1Pixel.toModify(pfDeepCSVJetTags,
                     NNConfig='RecoBTag/Combined/data/DeepCSV_PhaseI.json',
                     checkSVForDefaults=True,
                     meanPadding=True,
                     toAdd=cms.PSet())

from Configuration.Eras.Modifier_phase2_common_cff import phase2_common

phase2_common.toModify(pfDeepCSVJetTags,
                       NNConfig='RecoBTag/Combined/data/DeepCSV_PhaseII.json',
                       checkSVForDefaults=True,
                       meanPadding=True,
                       toAdd=cms.PSet())
Beispiel #43
0
import FWCore.ParameterSet.Config as cms

lostTracks = cms.EDProducer(
    "PATLostTracks",
    inputCandidates=cms.InputTag("particleFlow"),
    packedPFCandidates=cms.InputTag("packedPFCandidates"),
    inputTracks=cms.InputTag("generalTracks"),
    secondaryVertices=cms.InputTag("inclusiveSecondaryVertices"),
    kshorts=cms.InputTag("generalV0Candidates", "Kshort"),
    lambdas=cms.InputTag("generalV0Candidates", "Lambda"),
    primaryVertices=cms.InputTag("offlineSlimmedPrimaryVertices"),
    originalVertices=cms.InputTag("offlinePrimaryVertices"),
    muons=cms.InputTag("muons"),
    minPt=cms.double(0.95),
    minHits=cms.uint32(8),
    minPixelHits=cms.uint32(1),
    covarianceVersion=cms.int32(0),  #so far: 0 is Phase0, 1 is Phase1   
    covarianceSchema=cms.int32(0),  #old miniaod like
    qualsToAutoAccept=cms.vstring("highPurity"),
    minPtToStoreProps=cms.double(0.95),
    passThroughCut=cms.string("pt>2"))
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(lostTracks, covarianceVersion=1)

from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff import run2_miniAOD_pp_on_AA_103X
run2_miniAOD_pp_on_AA_103X.toModify(lostTracks,
                                    inputCandidates='cleanedParticleFlow')
Beispiel #44
0
            #TEOut
            cms.PSet(
                z = cms.untracked.double(300.0),
                limits = cms.untracked.vdouble(4.42, 4.65, 4.84, 7.37, 10.99, 14.70, 16.24, 22.00, 28.50, 31.50, 36.0, 120.0),
                thickness = cms.untracked.vdouble(3.935, 0.483, 0.127, 0.089, 0.069, 0.124, 1.47, 0.924, 0.693, 0.294, 0.336),
                interactionModels = _trackerMaterialInteractionModels
                ),
            ),
        )
    )
#new phase1 geometry
phase1Pixel.toModify(TrackerMaterialBlock, TrackerMaterial = dict(
        BarrelLayers = TrackerMaterialBlock.TrackerMaterial.BarrelLayers[:4] + [
            #PIXB4                                                                                                                        
            cms.PSet(
                #radius = cms.untracked.double(16),                                                                                        
                limits = cms.untracked.vdouble(0.0, 28.391),
                thickness = cms.untracked.vdouble(0.0217),
                activeLayer = cms.untracked.string("BPix4"),
                interactionModels = _trackerMaterialInteractionModels
                ),] + TrackerMaterialBlock.TrackerMaterial.BarrelLayers[4:],
        EndcapLayers = TrackerMaterialBlock.TrackerMaterial.EndcapLayers[:4] + [
            #PIXD3                                                                                                                 
            cms.PSet(
                limits = cms.untracked.vdouble(4.823, 16.598),
                thickness = cms.untracked.vdouble(0.058),
                activeLayer = cms.untracked.string("FPix3"),
                interactionModels = _trackerMaterialInteractionModels
                ),] + TrackerMaterialBlock.TrackerMaterial.EndcapLayers[4:]
        ))
charmTagsComputerCvsL = cms.ESProducer(
    'CharmTaggerESProducer',
    #clone the cfg only
    slComputerCfg=cms.PSet(
        **sl_cfg.candidateCombinedSecondaryVertexSoftLeptonComputer.
        parameters_()),
    weightFile=cms.FileInPath(
        'RecoBTag/CTagging/data/c_vs_udsg_sklearn.weight.xml'),
    variables=c_vs_l_vars_vpset,
    computer=cms.ESInputTag('combinedSecondaryVertexSoftLeptonComputer', ''),
    tagInfos=cms.VInputTag(
        cms.InputTag('pfImpactParameterTagInfos'),
        cms.InputTag('pfInclusiveSecondaryVertexFinderCvsLTagInfos'),
        cms.InputTag('softPFMuonsTagInfos'),
        cms.InputTag('softPFElectronsTagInfos'),
    ),
    mvaName=cms.string('BDT'),
    useCondDB=cms.bool(False),
    gbrForestLabel=cms.string(''),
    useGBRForest=cms.bool(True),
    useAdaBoost=cms.bool(False),
    defaultValueNoTracks=cms.bool(False))

charmTagsComputerCvsL.slComputerCfg.correctVertexMass = False

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(charmTagsComputerCvsL,
                     weightFile='RecoBTag/CTagging/data/c_vs_udsg_PhaseI.xml',
                     slComputerCfg=dict(correctVertexMass=True),
                     defaultValueNoTracks=True)
        ComponentName = cms.string('GlobalRegionProducerFromBeamSpot')
    ),
# This works best ...
    SeedCreatorPSet = cms.PSet(SeedFromConsecutiveHitsCreator),
# except for large impact parameter pixel-pair seeding, when this is better ...
#   SeedCreatorPSet = cms.PSet(SeedFromConsecutiveHitsStraightLineCreator)                                                       
# and this one respectively for large-D0 triplets:
#   SeedCreatorPSet = cms.PSet(SeedFromConsecutiveHitsTripletOnlyCreator)

##add a protection for too many clusters in the event.
ClusterCheckPSet = cms.PSet(
                 doClusterCheck = cms.bool(True),
                 MaxNumberOfCosmicClusters = cms.uint32(400000),
                 ClusterCollectionLabel = cms.InputTag("siStripClusters"),
                 MaxNumberOfPixelClusters = cms.uint32(40000),
                 PixelClusterCollectionLabel = cms.InputTag("siPixelClusters"),
                 cut = cms.string("strip < 400000 && pixel < 40000 && (strip < 50000 + 10*pixel) && (pixel < 5000 + 0.1*strip)")
                 ),
)

# Disable too many clusters check until we have an updated cut string for phase1
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(seedGeneratorFromRegionHitsEDProducer, # FIXME
    ClusterCheckPSet = dict(doClusterCheck = False)
)

from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
peripheralPbPb.toModify(seedGeneratorFromRegionHitsEDProducer,
                        ClusterCheckPSet = dict(cut = "strip < 400000 && pixel < 40000 && (strip < 60000 + 7.0*pixel) && (pixel < 8000 + 0.14*strip)")
                        )
Beispiel #47
0
from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
(premix_stage1 & phase2_hgcal).toModify(simHGCalUnsuppressedDigis,
                                        mix={
                                            0: dict(type="PHGCSimAccumulator"),
                                            1: dict(type="PHGCSimAccumulator"),
                                            2: dict(type="PHGCSimAccumulator"),
                                        })

from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
(~phase2_hfnose).toModify(simHFNoseUnsuppressedDigis, mix=None)

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel

phase1Pixel.toModify(
    simSiPixelDigis,
    mix=_pixelCommon +
    [cms.PSet(type=cms.string('PixelFEDChanneledmNewDetSetVector'))])

from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker

phase2_tracker.toModify(simSiStripDigis, mix=None)
phase2_tracker.toModify(simAPVsaturation, mix=None)

# no castor,pixel,strip digis in fastsim
from Configuration.Eras.Modifier_fastSim_cff import fastSim
(fastSim & ~run3_common).toModify(simCastorDigis, mix=None)
fastSim.toModify(simSiPixelDigis, mix=None)
fastSim.toModify(simSiStripDigis, mix=None)
fastSim.toModify(simAPVsaturation, mix=None)
Beispiel #48
0
    PVMin=-0.5,
    PVMax=
    79.5,  ## it might need to be adjust if CMS asks to have lumi levelling at lower values
    doRecHitVsPhiVsEtaPerTrack=True,
    doRecHitVsPtVsEtaPerTrack=True,
    #doGoodTrackRecHitVsPhiVsEtaPerTrack = True,
    doLayersVsPhiVsEtaPerTrack=True,
    #doGoodTrackLayersVsPhiVsEtaPerTrack = True,
    Eta2DBin=16,
    Phi2DBin=16,
    TrackPtBin=50)

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase1Pixel.toModify(MonitorTrackMuonsInnerTrack,
                     EtaBin=31,
                     EtaMin=-3.,
                     EtaMax=3.)
phase2_tracker.toModify(MonitorTrackMuonsInnerTrack,
                        EtaBin=46,
                        EtaMin=-4.5,
                        EtaMax=4.5)
phase2_tracker.toModify(MonitorTrackMuonsInnerTrack,
                        PVBin=125,
                        PVMin=-0.5,
                        PVMax=249.5)

#MonitorTrackINNMuons = cms.Sequence(muonInnerTrack+MonitorTrackMuonsInnerTrack)
MonitorTrackINNMuons = cms.Sequence(
    cms.ignore(muonsPt10) + muonInnerTrack + MonitorTrackMuonsInnerTrack)
    # ****  Offline - gain:col/ped:pix  ****
    # **************************************
    payloadType=cms.string('Offline'),
    SeedThreshold=cms.int32(1000),
    ClusterThreshold=cms.int32(4000),
    ClusterThreshold_L1=cms.int32(4000),
    # **************************************
    maxNumberOfClusters=cms.int32(-1),  # -1 means no limit.
)

# phase1 pixel
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(
    siPixelClusters,
    VCaltoElectronGain=cms.int32(47),  # L2-4: 47 +- 4.7
    VCaltoElectronGain_L1=cms.int32(50),  # L1:   49.6 +- 2.6
    VCaltoElectronOffset=cms.int32(-60),  # L2-4: -60 +- 130
    VCaltoElectronOffset_L1=cms.int32(-670),  # L1:   -670 +- 220
    ChannelThreshold=cms.int32(250),
    ClusterThreshold_L1=cms.int32(2000))

# Need these until phase2 pixel templates are used
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(
    siPixelClusters,  # FIXME
    src=cms.InputTag('simSiPixelDigis', "Pixel"),
    MissCalibrate=False,
    ElectronPerADCGain=cms.double(
        600.)  # it can be changed to something else (e.g. 135e) if needed
)
Beispiel #50
0
# Overcoming the 255 arguments limit
# TrackingRegion monitoring
TrackMon.PVBin = cms.int32 ( 40 )
TrackMon.PVMin = cms.double( -0.5)
TrackMon.PVMax = cms.double( 79.5) ## it might need to be adjust if CMS asks to have lumi levelling at lower values

TrackMon.RegionProducer = cms.InputTag("")
TrackMon.RegionSeedingLayersProducer = cms.InputTag("")
TrackMon.RegionCandidates = cms.InputTag("")
TrackMon.doRegionPlots = cms.bool(False)
TrackMon.doRegionCandidatePlots = cms.bool(False)
TrackMon.RegionSizeBin = cms.int32(20)
TrackMon.RegionSizeMax = cms.double(19.5)
TrackMon.RegionSizeMin = cms.double(-0.5)
TrackMon.RegionCandidatePtBin = cms.int32(100)
TrackMon.RegionCandidatePtMax = cms.double(1000)
TrackMon.RegionCandidatePtMin = cms.double(0)

# Number of candidates/seed within pattern recognition
TrackMon.SeedCandBin = cms.int32(20)
TrackMon.SeedCandMax = cms.double(19.5)
TrackMon.SeedCandMin = cms.double(-0.5)

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase1Pixel.toModify(TrackMon, EtaBin=31, EtaMin=-3., EtaMax=3.)
phase1Pixel.toModify(TrackMon, LUMIBin=300, LUMIMin=200., LUMIMax=20000.)
phase2_tracker.toModify(TrackMon, EtaBin=46, EtaMin=-4.5, EtaMax=4.5)
phase2_tracker.toModify(TrackMon, PVBin=125, PVMin=-0.5, PVMax=249.5)
phase2_tracker.toModify(TrackMon, LUMIBin=700, LUMIMin=0., LUMIMax=70000.)
#

SiPixelTrackResidualSource = cms.EDAnalyzer("SiPixelTrackResidualSource",
    TopFolderName = cms.string('Pixel'),
    src = cms.InputTag("siPixelTrackResiduals"),
    clustersrc = cms.InputTag("siPixelClusters"),                            
    tracksrc   = cms.InputTag("refittedForPixelDQM"),
    debug = cms.untracked.bool(False),                          
    saveFile = cms.untracked.bool(False),
    outputFile = cms.string('Pixel_DQM_TrackResidual.root'),
    TTRHBuilder = cms.string('WithTrackAngle'),
    Fitter = cms.string('KFFittingSmootherWithOutliersRejectionAndRK'),
    modOn = cms.untracked.bool(False),
    reducedSet = cms.untracked.bool(True),
    ladOn = cms.untracked.bool(True),
    layOn = cms.untracked.bool(True),
    phiOn = cms.untracked.bool(True),
    ringOn = cms.untracked.bool(True),
    bladeOn = cms.untracked.bool(True),
    diskOn = cms.untracked.bool(True),
    PtMinRes = cms.untracked.double(4.0),
    vtxsrc= cms.untracked.string("offlinePrimaryVertices"),

    trajectoryInput = cms.InputTag('refittedForPixelDQM'),              
    digisrc = cms.InputTag("siPixelDigis") 
)

# Modify for if the phase 1 pixel detector is active
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify( SiPixelTrackResidualSource, isUpgrade=cms.untracked.bool(True) )
import FWCore.ParameterSet.Config as cms

pfDeepCSVJetTags = cms.EDProducer(
	'DeepFlavourJetTagsProducer',
	src = cms.InputTag('pfDeepCSVTagInfos'),
  checkSVForDefaults = cms.bool(False),
  meanPadding = cms.bool(False),
	NNConfig = cms.FileInPath('RecoBTag/Combined/data/DeepFlavourNoSL.json'),
  toAdd = cms.PSet(
      probcc = cms.string('probc')
      ),
	)

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(pfDeepCSVJetTags, NNConfig = cms.FileInPath('RecoBTag/Combined/data/DeepCSV_PhaseI.json'))
phase1Pixel.toModify(pfDeepCSVJetTags, checkSVForDefaults = cms.bool(True))
phase1Pixel.toModify(pfDeepCSVJetTags, meanPadding = cms.bool(True))
phase1Pixel.toModify(pfDeepCSVJetTags, toAdd = cms.PSet())

from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
phase2_common.toModify(pfDeepCSVJetTags, NNConfig = cms.FileInPath('RecoBTag/Combined/data/DeepCSV_PhaseI.json'))
phase2_common.toModify(pfDeepCSVJetTags, checkSVForDefaults = cms.bool(True))
phase2_common.toModify(pfDeepCSVJetTags, meanPadding = cms.bool(True))
phase2_common.toModify(pfDeepCSVJetTags, toAdd = cms.PSet())
    ### fitting with constraints
    #constraint = cms.string('momentum'),
    #constraint = cms.string('vertex'),

    ### Usually this parameter has not to be set True because
    ### matched hits in the Tracker are already split when
    ### the tracks are reconstructed the first time
    useHitsSplitting=cms.bool(False),
    TrajectoryInEvent=cms.bool(True),

    # this parameter decides if the propagation to the beam line
    # for the track parameters defiition is from the first hit
    # or from the closest to the beam line
    # true for cosmics, false for collision tracks (needed by loopers)
    GeometricInnerState=cms.bool(False),

    # Navigation school is necessary to fill the secondary hit patterns
    NavigationSchool=cms.string('SimpleNavigationSchool'),
    MeasurementTracker=cms.string(''),
    MeasurementTrackerEvent=cms.InputTag('MeasurementTrackerEvent'),
    #
    # in order to avoid to fill the secondary hit patterns and
    # refit the tracks more quickly
    #NavigationSchool = cms.string('')
)

# Switch back to GenericCPE until bias in template CPE gets fixed
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(TrackRefitter, TTRHBuilder='WithTrackAngle')  # FIXME
Beispiel #54
0
# This object is used to make changes for different running scenarios
#

from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer

SiPixelClusterSource = DQMEDAnalyzer(
    'SiPixelClusterSource',
    TopFolderName=cms.string('Pixel'),
    src=cms.InputTag("siPixelClusters"),
    digisrc=cms.InputTag("siPixelDigis"),
    outputFile=cms.string('Pixel_DQM_Cluster.root'),
    saveFile=cms.untracked.bool(False),
    slowDown=cms.untracked.bool(False),
    isPIB=cms.untracked.bool(False),
    modOn=cms.untracked.bool(True),
    twoDimOn=cms.untracked.bool(True),
    reducedSet=cms.untracked.bool(True),
    ladOn=cms.untracked.bool(False),
    layOn=cms.untracked.bool(False),
    phiOn=cms.untracked.bool(False),
    ringOn=cms.untracked.bool(False),
    bladeOn=cms.untracked.bool(False),
    diskOn=cms.untracked.bool(False),
    smileyOn=cms.untracked.bool(True),
    bigEventSize=cms.untracked.int32(100))

# Modify for if the phase 1 pixel detector is active
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel

phase1Pixel.toModify(SiPixelClusterSource, isUpgrade=cms.untracked.bool(True))
    # PU monitoring
    # Nunmber of Good Primary Vertices
    GoodPVtxBin = cms.int32(200),
    GoodPVtxMin = cms.double( 0.),
    GoodPVtxMax = cms.double(200.),

    LUMIBin  = cms.int32 ( 4000 ),
    LUMIMin  = cms.double(    0.),
    LUMIMax  = cms.double(20000.),

#    # BXlumi                          
#    BXlumiBin = cms.int32(400),
#    BXlumiMin = cms.double(2000),
#    BXlumiMax = cms.double(6000),
                ###############################
################## FOR HI PLOTS#####################
#######
TransDCABins = cms.int32(100),
TransDCAMin = cms.double(-8.0),
TransDCAMax = cms.double(8.0),

LongDCABins = cms.int32(100),
LongDCAMin = cms.double(-8.0),
LongDCAMax = cms.double(8.0),          
)

from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase1Pixel.toModify(TrackMon, EtaBin=30, EtaMin=-3, EtaMax=3)
phase2_tracker.toModify(TrackMon, EtaBin=46, EtaMin=-4.5, EtaMax=4.5)
import FWCore.ParameterSet.Config as cms

ClusterShapeHitFilterESProducer = cms.ESProducer("ClusterShapeHitFilterESProducer",
                                                        ComponentName = cms.string('ClusterShapeHitFilter'),
                                                        PixelShapeFile= cms.string('RecoPixelVertexing/PixelLowPtUtilities/data/pixelShape.par'),
                                                        clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutNone'))
                                                        )
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
phase1Pixel.toModify(ClusterShapeHitFilterESProducer,
    PixelShapeFile = 'RecoPixelVertexing/PixelLowPtUtilities/data/pixelShape_Phase1TkNewFPix.par'
)
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(ClusterShapeHitFilterESProducer,
    PixelShapeFile = 'RecoPixelVertexing/PixelLowPtUtilities/data/pixelShape_Phase2Tk.par',
)