import FWCore.ParameterSet.Config as cms

l1tFastTrackingJets = cms.EDProducer("L1FastTrackingJetProducer",
    L1TrackInputTag = cms.InputTag("l1tTTTracksFromTrackletEmulation", "Level1TTTracks"),
    L1PrimaryVertexTag=cms.InputTag("l1tVertexProducer", "L1Vertices"),
    GenInfo = cms.InputTag("TTTrackAssociatorFromPixelDigis", "Level1TTTracks"),
    trk_zMax = cms.double(15.),       # max track z0 [cm]
    trk_chi2dofMax = cms.double(10.), # max track chi2/dof
    trk_bendChi2Max = cms.double(2.2),# max bendChi2 cut
    trk_ptMin = cms.double(2.0),      # minimum track pt [GeV]
    trk_etaMax = cms.double(2.5),     # maximum track eta
    trk_nStubMin = cms.int32(4),      # minimum number of stubs in track
    trk_nPSStubMin = cms.int32(-1),   # minimum number of PS stubs in track
    deltaZ0Cut=cms.double(0.5),       # cluster tracks within |dz|<X
    doTightChi2 = cms.bool( True ),   # chi2dof < 5 for tracks with PT > 20
    trk_ptTightChi2 = cms.double(20.0),
    trk_chi2dofTightChi2 = cms.double(5.0),
    coneSize=cms.double(0.4),         #cone size for anti-kt fast jet
    displaced = cms.bool(False),       # use prompt/displaced tracks
    selectTrkMatchGenTight=cms.bool(True),
    selectTrkMatchGenLoose=cms.bool(False),
    selectTrkMatchGenOrPU=cms.bool(False)
)

l1tFastTrackingJetsExtended = cms.EDProducer("L1FastTrackingJetProducer",
    L1TrackInputTag = cms.InputTag("l1tTTTracksFromExtendedTrackletEmulation", "Level1TTTracks"),
    L1PrimaryVertexTag=cms.InputTag("l1tVertexProducer", "L1Vertices"),
    GenInfo = cms.InputTag("TTTrackAssociatorFromPixelDigisExtended", "Level1TTTracks"),
    trk_zMax = cms.double(15.),       # max track z0 [cm]
    trk_chi2dofMax = cms.double(40.),    # max track chi2 for extended tracks
    trk_bendChi2Max = cms.double(2.4),#Bendchi2 cut for extended tracks
    trk_ptMin = cms.double(3.0),      # minimum track pt [GeV]
    trk_etaMax = cms.double(2.5),     # maximum track eta
    trk_nStubMin = cms.int32(4),      # minimum number of stubs on track
    trk_nPSStubMin = cms.int32(-1),   # minimum number of stubs in PS modules on track
    deltaZ0Cut=cms.double(3.0),       #cluster tracks within |dz|<X
    doTightChi2 = cms.bool( True ),   # chi2dof < 5 for tracks with PT > 20
    trk_ptTightChi2 = cms.double(20.0),
    trk_chi2dofTightChi2 = cms.double(5.0),
    coneSize=cms.double(0.4),         #cone size for anti-kt fast jet
    displaced = cms.bool(True),        # use prompt/displaced tracks
    selectTrkMatchGenTight=cms.bool(True),
    selectTrkMatchGenLoose=cms.bool(False),
    selectTrkMatchGenOrPU=cms.bool(False)

)
