import FWCore.ParameterSet.Config as cms

# Seeding with one hit in outer pixel and one in inner strip.
# Useful for exotic physics, V0 finding etc.

from RecoTracker.TkSeedingLayers.seedingLayersEDProducer_cfi import *

PixelAndStripLayerPairs = seedingLayersEDProducer.clone(
    layerList = ['BPix3+TIB1_pos',
                 'BPix2+TIB1_pos',
                 'BPix3+TIB2_pos',
                 'FPix1+TIB1_pos',
#                 'FPix1_pos+TID1_pos',
#                 'FPix2+TIB1_pos',
                 'FPix2_pos+TID1_pos',
                 'FPix2_pos+TID2_pos',
                 'FPix2_pos+TID3_pos',
                 'FPix2_pos+TEC1_pos',
                 'BPix3+TIB1_neg',
                 'BPix2+TIB1_neg',
                 'BPix3+TIB2_neg',
                 'FPix1+TIB1_neg',
#                 'FPix1_neg+TID1_neg',
#                 'FPix2+TIB1_neg',
                 'FPix2_neg+TID1_neg',
                 'FPix2_neg+TID2_neg',
                 'FPix2_neg+TID3_neg',
                 'FPix2_neg+TEC1_neg'],
    TIB = dict(
        matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
        TTRHBuilder = cms.string('WithTrackAngle'),
        clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutNone'))
    ),
    TID = dict(
        matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
        useRingSlector = cms.bool(True),
        TTRHBuilder = cms.string('WithTrackAngle'),
        minRing = cms.int32(1),
        maxRing = cms.int32(1),
        clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutNone'))
    ),
    TEC = dict(
        matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
        useRingSlector = cms.bool(True),
        TTRHBuilder = cms.string('WithTrackAngle'),
        minRing = cms.int32(1),
        maxRing = cms.int32(1),
        clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutNone'))
    ),
    BPix = dict(
        TTRHBuilder = cms.string('WithTrackAngle'),
        HitProducer = cms.string('siPixelRecHits'),
    ),
    FPix = dict(
        TTRHBuilder = cms.string('WithTrackAngle'),
        HitProducer = cms.string('siPixelRecHits'),
    ),
)
