import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDHarvester import DQMEDHarvester

from SimTracker.TrackHistory.TrackClassifier_cff import *

from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
BDHadronTrackMonitoringAnalyze = DQMEDAnalyzer('BDHadronTrackMonitoringAnalyzer',
								trackClassifier,
								distJetAxisCut = cms.double(0.07),
								decayLengthCut = cms.double(5.0),
								minJetPt = cms.double(20),
								maxJetEta = cms.double(2.5),
								PatJetSource = cms.InputTag('selectedPatJets'),
								ipTagInfos = cms.string('pfImpactParameter'),
								TrackSource = cms.InputTag('generalTracks'),
								PrimaryVertexSource = cms.InputTag('offlinePrimaryVertices'),
								clusterTPMap = cms.InputTag("tpClusterProducer"),
                                )


BDHadronTrackMonitoringHarvest = DQMEDHarvester("BDHadronTrackMonitoringHarvester"
                               )
