def addCutFlowData(a): a.AddJetFilter("PreCC", JetCorrections) a += cutTreeData def addCutFlowMC(b): b += cutTreeMC # ----------------------------------------------------------------------------- # Definition of analyses # Analyses muonfilt = CustomMuonId(muon_id.ps()) electronfilt = CustomEleId(tight_id.ps()) # AK5 Calo conf_ak5_caloMC = deepcopy(defaultConfig) conf_ak5_caloMC.Ntuple = deepcopy(ak5_calo) conf_ak5_caloMC.XCleaning = deepcopy(default_cc) conf_ak5_caloMC.Common = deepcopy(default_common) conf_ak5_caloMC.Common.print_out() anal_ak5_caloMC = Analysis("AK5Calo") anal_ak5_caloMC.AddMuonFilter("PostCC", muonfilt) anal_ak5_caloMC.AddElectronFilter("PreCC", electronfilt) addCutFlowMC(anal_ak5_caloMC) # AK5 Calo
def addCutFlowData(a) : a.AddJetFilter("PreCC",JetCorrections) a+=cutTreeData def addCutFlowMC(b) : b+=cutTreeMC # ----------------------------------------------------------------------------- # Definition of analyses # Analyses muonfilt=CustomMuonId(muon_id.ps()) electronfilt=CustomEleId(tight_id.ps()) # AK5 Calo conf_ak5_caloMC = deepcopy(defaultConfig) conf_ak5_caloMC.Ntuple = deepcopy(ak5_calo) conf_ak5_caloMC.XCleaning = deepcopy(default_cc) conf_ak5_caloMC.Common = deepcopy(default_common) conf_ak5_caloMC.Common.print_out() anal_ak5_caloMC=Analysis("AK5Calo") anal_ak5_caloMC.AddMuonFilter("PostCC",muonfilt) anal_ak5_caloMC.AddElectronFilter("PreCC",electronfilt) addCutFlowMC(anal_ak5_caloMC) # AK5 Calo
import libWPol as wpol from ewpol.eWPolConfig import ewpol_conf, loose_id, tight_id from icf.core import PSet,Analysis conf = ewpol_conf.copy() conf.Ntuple.Jets.Prefix = "ak5JetPF2PAT" conf.Ntuple.SecJets.Prefix = "ak5JetPF" conf.Ntuple.TerJets.Prefix = "nothanks" #conf.Common.Electrons.PtCut = 5. a = Analysis("eWPol") jet_dr = wpol.EleJetDRFilter(0.3) loose_ele_id = wpol.CustomEleId(loose_id.ps()) tight_ele_id = wpol.CustomEleId(tight_id.ps()) ecal_filter = wpol.ECALTransparencyCorrections( PSet( CorrectionsVersion = ecal_transparency_corrections_version, ApplyAsCorrection = True, ApplySystematics = False, SystematicsShift = 0.0 ).ps()) if use_tight_ele_id: a.AddElectronFilter("PostCC", tight_ele_id) if use_loose_ele_id: a.AddElectronFilter("PostCC", loose_ele_id) a.AddJetFilter("PostCC", jet_dr)
from ewpol.eWPolConfig import ewpol_conf, loose_id, tight_id from icf.core import PSet, Analysis conf = ewpol_conf.copy() conf.Ntuple.Jets.Prefix = "ak5JetPF2PAT" conf.Ntuple.SecJets.Prefix = "ak5JetPF" conf.Ntuple.TerJets.Prefix = "nothanks" conf.Common.Electrons.PtCut = 0 a = Analysis("eWPol") jet_dr = wpol.EleJetDRFilter(0.3) loose_ele_id = wpol.CustomEleId(loose_id.ps()) tight_ele_id = wpol.CustomEleId(tight_id.ps()) ecal_filter = wpol.ECALTransparencyCorrections( PSet( CorrectionsVersion = ecal_transparency_corrections_version, ApplyAsCorrection = True, ApplySystematics = False, SystematicsShift = 0.0 ).ps()) if use_tight_ele_id: a.AddElectronFilter("PostCC", tight_ele_id) if use_loose_ele_id: a.AddElectronFilter("PostCC", loose_ele_id) a.AddJetFilter("PostCC", jet_dr)