# user should modify the append statements below to change jet filter cut settings
# they will be (&&) concatenated to form one string cut
# see (https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuidePhysicsCutParser) 
# for allowed syntax

filter_ = []

# ----------------------------------------------------
# ------------[user edit here]------------------------
filter_.append('pt>15.0') # be careful here to allow for JEC variation 
filter_.append('abs(eta)<4.7') 
# ----------------------------------------------------
# ----------------------------------------------------


jetFilter = cms.string(and_string_concatonator(filter_))


####################################################################################################
# based on RecoJets/JetProducers/python/PileupJetIDCutParams_cfi.py
# with PUjetID_PtBoundries & PUjetID_AbsEtaBoundries added to the PSet
# format the working point and eta boundries for our use
# based on modified full_5x_wp looseID 
####################################################################################################

PUjetIDworkingPoint  = cms.PSet(


		# custom additions 

		PUjetID_PtBoundries 	= 	  cms.vdouble(0.0, 10.0, 20.0, 30.0, 50.0), 
########################
# user should modify the append statements below to change electron filter cut settings
# they will be (&&) concatenated to form one string cut
# see (https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuidePhysicsCutParser) 
# for allowed syntax

filter_ = []

# ----------------------------------------------------
# ------------[user edit here]------------------------
filter_.append('pt>10.0')
filter_.append('abs(eta)<2.5')
filter_.append('abs(userFloat("dxy")) < 0.045')
filter_.append('abs(userFloat("dz")) < 0.2')




# ----------------------------------------------------
# ----------------------------------------------------


electronVetoFilter = cms.string(and_string_concatonator(filter_))


####################################################################################################
####################################################################################################
####################################################################################################