Best JavaScript code snippet using stryker-parent
data12_SingleMu_Run2012A_recover_cff.py
Source:data12_SingleMu_Run2012A_recover_cff.py
1import FWCore.ParameterSet.Config as cms2readFiles = cms.untracked.vstring()3source = cms.Source("PoolSource",4 noEventSort = cms.untracked.bool(True),5 duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),6 fileNames = readFiles7 )8readFiles.extend([9 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_10_1_Cnc.root',10 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_11_1_KwK.root',11 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_12_1_pXw.root',12 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_13_1_zp7.root',13 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_14_1_nYc.root',14 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_15_1_UdU.root',15 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_16_1_Puw.root',16 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_17_1_8H7.root',17 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_18_1_l6X.root',18 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_19_1_Kjk.root',19 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_1_1_WUl.root',20 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_20_1_aj9.root',21 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_21_1_K2D.root',22 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_22_1_5Ag.root',23 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_23_1_8O3.root',24 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_24_1_CSl.root',25 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_25_1_BBI.root',26 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_26_1_Mfk.root',27 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_27_1_Ekg.root',28 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_28_1_g8D.root',29 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_29_1_JAX.root',30 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_2_1_roQ.root',31 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_30_1_2pV.root',32 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_31_1_4uZ.root',33 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_32_1_nYm.root',34 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_33_1_wtl.root',35 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_34_1_aoU.root',36 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_35_1_HsR.root',37 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_36_1_Zz5.root',38 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_37_1_ox4.root',39 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_38_1_jPq.root',40 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_39_1_gg6.root',41 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_3_1_YRV.root',42 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_40_1_wfB.root',43 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_41_1_kir.root',44 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_42_1_Y3j.root',45 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_43_1_0KX.root',46 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_44_1_S7o.root',47 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_45_1_7dD.root',48 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_46_1_ei9.root',49 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_47_1_UY3.root',50 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_48_1_nFt.root',51 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_49_1_wfk.root',52 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_4_1_7PV.root',53 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_50_1_Edb.root',54 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_51_1_nBI.root',55 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_52_1_YY1.root',56 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_53_1_yxu.root',57 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_54_1_44l.root',58 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_55_1_I7u.root',59 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_56_1_Lh4.root',60 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_57_1_HVX.root',61 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_58_1_asc.root',62 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_59_1_5Mu.root',63 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_5_1_5Av.root',64 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_60_1_lqt.root',65 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_61_1_hEK.root',66 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_62_1_EDA.root',67 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_63_1_EhT.root',68 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_64_1_mOo.root',69 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_65_1_bND.root',70 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_66_1_EaP.root',71 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_67_1_sJe.root',72 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_68_1_PSm.root',73 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_69_1_YUW.root',74 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_6_1_63e.root',75 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_70_1_AvD.root',76 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_71_1_k5S.root',77 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_72_1_5lB.root',78 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_73_1_0ai.root',79 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_74_1_qOy.root',80 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_75_1_D9e.root',81 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_76_1_pNf.root',82 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_7_1_iUB.root',83 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_8_1_F9E.root',84 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/shuai/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1_20130123_114121/shuai/SingleMu/EDBR_PATtuple_edbr_zz_20130113_SingleMu_Run2012A-recover-06Aug2012-v1/d2baed65106e8614f13549c75c711519/SingleMu__Run2012A-recover-06Aug2012-v1__AOD_9_1_xQ6.root',...
data12_SingleElectron_Run2012C_EcalRecove_cff.py
Source:data12_SingleElectron_Run2012C_EcalRecove_cff.py
1import FWCore.ParameterSet.Config as cms2readFiles = cms.untracked.vstring()3source = cms.Source("PoolSource",4 noEventSort = cms.untracked.bool(True),5 duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),6 fileNames = readFiles7 )8readFiles.extend([9 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_10_1_0EE.root',10 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_11_1_4uP.root',11 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_12_1_zLc.root',12 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_13_1_70u.root',13 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_14_1_f6Z.root',14 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_15_1_BQA.root',15 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_16_1_O9A.root',16 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_17_1_78F.root',17 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_18_1_i4F.root',18 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_19_1_ilm.root',19 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_1_1_11P.root',20 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_20_1_RoK.root',21 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_21_1_6Rk.root',22 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_22_1_29s.root',23 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_23_1_9I2.root',24 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_24_1_u0Z.root',25 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_25_1_q3B.root',26 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_26_1_dA6.root',27 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_27_1_t14.root',28 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_28_1_QdO.root',29 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_29_1_8ev.root',30 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_2_1_7rS.root',31 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_30_1_rUc.root',32 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_31_1_mBq.root',33 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_32_1_q6U.root',34 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_33_1_GrS.root',35 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_34_1_xXJ.root',36 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_35_1_ebJ.root',37 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_36_1_IR6.root',38 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_37_1_ClD.root',39 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_38_1_xJ2.root',40 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_39_1_xMN.root',41 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_3_1_8dh.root',42 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_40_1_OcJ.root',43 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_41_1_CdA.root',44 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_42_1_RTp.root',45 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_43_1_VS5.root',46 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_44_1_v8x.root',47 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_45_1_o51.root',48 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_46_1_4SM.root',49 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_47_1_ax3.root',50 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_48_1_kV9.root',51 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_49_1_sNm.root',52 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_4_1_9TE.root',53 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_50_1_rgP.root',54 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_51_1_2VG.root',55 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_52_1_jKH.root',56 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_53_1_cy3.root',57 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_54_1_WgS.root',58 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_55_1_JsD.root',59 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_56_1_van.root',60 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_57_1_xPR.root',61 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_58_1_pjL.root',62 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_59_1_VzT.root',63 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_5_1_YeK.root',64 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_60_1_564.root',65 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_61_1_WP8.root',66 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_62_1_sCm.root',67 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_63_1_yz7.root',68 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_64_1_Zqk.root',69 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_65_1_HyH.root',70 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_66_1_Ejk.root',71 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_67_1_0Oz.root',72 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_68_1_qEp.root',73 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_69_1_7rQ.root',74 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_6_1_T6x.root',75 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_70_1_TKj.root',76 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_71_1_chW.root',77 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_72_1_hIi.root',78 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_73_1_TR7.root',79 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_74_1_0gl.root',80 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_75_1_xPk.root',81 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_76_1_aHt.root',82 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_77_1_U52.root',83 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_78_1_lHV.root',84 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_7_1_HC0.root',85 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_8_1_uga.root',86 '/store/group/phys_exotica/leptonsPlusJets/ExoDiBosonResonances/qili/EDBR_PATtuple_20130225_SingleEleCEcalRecover_20130225_071838/qili/SingleElectron/EDBR_PATtuple_edbr_SingleEleCEcalRecover/2ad8dbf1b6d01aad76d411d865470793/SingleElectron__Run2012C-EcalRecover_11Dec2012-v1__AOD_9_1_YQn.root',...
stock_recover.py
Source:stock_recover.py
...23 line_ids = fields.One2many('stock.recover.line', 'recover_id', 'Recoveries', readonly=True, copy=True)24 date = fields.Datetime('Recover Date', required=True, readonly=True, default=lambda self: fields.datetime.now())25 picking_id = fields.Many2one('stock.picking', string='Picking', select=True)26 27 def prepare_recover(self, cr, uid, ids, context=None):28 recover_line_obj = self.pool.get('stock.recover.line')29 product_obj = self.pool.get('product.product')30 product_category_obj = self.pool.get('product.category')31 for recover in self.browse(cr, uid, ids, context=context):32 # If there are recover lines already (e.g. from import), respect those and set their theoretical qty33 line_ids = [line.id for line in recover.line_ids]34 if not line_ids:35 #compute the recover lines and create them36 vals = self._get_recover_lines(cr, uid, recover, context=context)37 for product_line in vals:38 product = product_obj.browse(cr, uid, product_line['product_id'], context=context)39 if recover.categ_id:40 product_category_ids = product_category_obj.search(cr, uid, [('id', 'child_of', [recover.categ_id.id])], context=context)41 if product.categ_id.id in product_category_ids:42 recover_line_obj.create(cr, uid, product_line, context=context)43 else:44 recover_line_obj.create(cr, uid, product_line, context=context)45 return self.write(cr, uid, ids, {'state': 'confirm'})46 47 def _get_recover_lines(self, cr, uid, recover, context=None):48 location_obj = self.pool.get('stock.location')49 product_obj = self.pool.get('product.product')50 location_ids = location_obj.search(cr, uid, [('id', 'child_of', [recover.location_dest_id.id])], context=context)51 domain = ' location_id in %s'52 args = (tuple(location_ids),)53 54 cr.execute('''55 SELECT product_id, sum(qty) as product_qty, location_id, lot_id as prod_lot_id, package_id, owner_id as partner_id56 FROM stock_quant WHERE''' + domain + '''57 GROUP BY product_id, location_id, lot_id, package_id, partner_id58 ''', args)59 vals = []60 for product_line in cr.dictfetchall():61 #replace the None the dictionary by False, because false values are tested later on62 for key, value in product_line.items():63 if not value:64 product_line[key] = False65 product_line['recover_id'] = recover.id66 if product_line['product_id']:67 product = product_obj.browse(cr, uid, product_line['product_id'], context=context)68 product_line['product_uom_id'] = product.uom_id.id69 if product_line['product_qty'] < 0:70 vals.append(product_line)71 product_line['product_qty'] = abs(product_line['product_qty'])72 return vals73 74 def action_cancel_recover(self, cr, uid, ids, context=None):75 """ Change recover state to draft.76 @return: True77 """78 for recover in self.browse(cr, uid, ids, context=context):79 self.write(cr, uid, [recover.id], {'line_ids': [(5,)], 'state': 'draft'}, context=context)80 return True81 82 def action_done(self, cr, uid, ids, context=None):83 """ Finish the recover84 @return: True85 """86 picking_obj = self.pool.get('stock.picking')87 move_obj = self.pool.get('stock.move')88 for recover in self.browse(cr, uid, ids, context=context):...
recover.controller.ts
Source:recover.controller.ts
1import {2 Get,3 Post,4 Body,5 Param,6 Controller,7 NotFoundException,8 BadRequestException,9 InternalServerErrorException,10} from '@nestjs/common';11import { environments } from '../../../environments/environments';12import { RecoverPasswordDto } from '../dto/recover-password.dto';13import { UpdatePasswordDto } from '../dto/update-password.dto';14import { RecoverService } from '../service/recover.service';15import { MailerService } from '@nestjs-modules/mailer';16import { UserService } from '../service/user.service';17import { Recover } from '../schema/recover.schema';18import { ApiTags } from '@nestjs/swagger';19@Controller('recover')20@ApiTags('recover')21export class RecoverController {22 constructor(23 private userService: UserService,24 private recoverService: RecoverService,25 private mailerService: MailerService26 ) {}27 @Get(':code')28 async validateRecoverCode(@Param('code') code: Recover['code']) {29 const recover = await this.validateRecoverCode(code);30 recover.owner = this.userService.filterUser(recover.owner);31 return recover;32 }33 @Post()34 async recoverPassword(@Body() body: RecoverPasswordDto) {35 const user = await this.userService.validateUserByEmail(body.email);36 const { code, expiration } = await this.recoverService.create(user);37 const url = environments.frontEndUrl;38 try {39 await this.mailerService.sendMail({40 to: user.email,41 subject: 'Recover your password',42 template: './recover', // This will fetch /template/recover.hbs43 context: {44 name: user.username,45 url,46 code,47 expiration: Math.round(48 (expiration.getTime() - Date.now()) / 1000 / 60 / 6049 ),50 },51 });52 } catch (e) {53 throw new InternalServerErrorException(54 `An error occurred sending email: ${e.message}`55 );56 }57 }58 @Post(':code')59 async changePassword(60 @Param('code') code: Recover['code'],61 @Body() body: UpdatePasswordDto62 ) {63 const recover = await this.validateCode(code);64 if (body.password !== body.confirmPassword) {65 throw new BadRequestException(`Passwords does not match`);66 }67 const user = recover.owner;68 if (await user.validatePassword(body.password)) {69 throw new BadRequestException('Do not use your current password');70 }71 user.password = body.password;72 await this.recoverService.delete(user);73 return this.userService.filterUser(await user.save());74 }75 private async validateCode(code: string) {76 const recover = await this.recoverService.get(code);77 if (!recover) {78 throw new NotFoundException('Code not found');79 }80 if (recover.expiration?.getTime() < Date.now()) {81 await this.recoverService.delete(recover.owner);82 throw new NotFoundException('Code has expired');83 }84 return recover;85 }...
withPasswordRecover.js
Source:withPasswordRecover.js
1import { PureComponent, createElement } from 'react'2import { connect } from 'react-redux'3import hoistStatics from 'hoist-non-react-statics'4import { defaultMemoize } from 'reselect'5import {6 isPasswordRecoverLoading,7 isPasswordRecovered,8 getPasswordRecoverError,9} from '../selectors/index'10import { recoverPassword, unloadPasswordRecover } from '../actions/index'11import { isEmailValid } from '../../utils/index'12const isEmailValidMem = defaultMemoize(isEmailValid)13export default function withPasswordRecover() {14 return function wrapWithRecover(WrappedComponent) {15 class BaseRecover extends PureComponent {16 state = {17 recoverEmail: '',18 }19 componentWillUnmount() {20 this.props.unloadPasswordRecover()21 }22 onRecoverEmailChange = e => {23 this.setState({24 recoverEmail: e.target.value,25 })26 }27 onSubmitRecoverPassword = (e, ...args) => {28 if (e && typeof e.preventDefault === 'function') {29 e.preventDefault()30 }31 this.props.recoverPassword(this.state.recoverEmail, ...args)32 }33 render() {34 return createElement(WrappedComponent, {35 ...this.props,36 recoverEmail: this.state.recoverEmail,37 onRecoverEmailChange: this.onRecoverEmailChange,38 isRecoverEmailValid: isEmailValidMem(this.state.recoverEmail),39 onSubmitRecoverPassword: this.onSubmitRecoverPassword,40 })41 }42 }43 const mapStateToProps = state => ({44 recoverError: getPasswordRecoverError(state),45 recoverLoading: isPasswordRecoverLoading(state),46 recovered: isPasswordRecovered(state),47 })48 const Recover = connect(49 mapStateToProps,50 {51 recoverPassword,52 unloadPasswordRecover,53 }54 )(BaseRecover)55 return hoistStatics(Recover, WrappedComponent)56 }...
users.controller.ts
Source:users.controller.ts
1import { BadRequestException, Body, Controller, Param, Post, Put, UsePipes, ValidationPipe } from '@nestjs/common'2import { ChancePasswirdRecoverDto, RecoverPasswordDto } from './users.dto'3import { UsersService } from './users.service'4import Erros from 'src/enums/errors'5@Controller('user')6export class UsersController {7 constructor(private userService: UsersService) {}8 @Put('/mail/confirmation/:token')9 async validateEmail(@Param('token') token: string) {10 await this.userService.validateEmail(token) 11 }12 @Post('/password/recover')13 @UsePipes(new ValidationPipe({ whitelist: true }))14 async requestPasswordRecover(@Body() recoverPasswordDto: RecoverPasswordDto) {15 await this.userService.requestRecoverPassword(recoverPasswordDto.email)16 }17 @Put('/password/recover')18 @UsePipes(new ValidationPipe({ whitelist: true }))19 async passwordRecover(@Body() recoverPasswordDto: ChancePasswirdRecoverDto) {20 if (recoverPasswordDto.password !== recoverPasswordDto.passwordConfirm) throw new BadRequestException(Erros.DIFFERENT_SENT_PASSWORDS)21 22 await this.userService.passwordRecover(recoverPasswordDto)23 }...
Using AI Code Generation
1const strykerParent = require('stryker-parent');2strykerParent.recover();3const strykerParent = require('stryker-parent');4strykerParent.recover();5const strykerParent = require('stryker-parent');6strykerParent.recover();7const strykerParent = require('stryker-parent');8strykerParent.recover();9const strykerParent = require('stryker-parent');10strykerParent.recover();11const strykerParent = require('stryker-parent');12strykerParent.recover();13const strykerParent = require('stryker-parent');14strykerParent.recover();15const strykerParent = require('stryker-parent');16strykerParent.recover();17const strykerParent = require('stryker-parent');18strykerParent.recover();19const strykerParent = require('stryker-parent');20strykerParent.recover();21const strykerParent = require('stryker-parent');22strykerParent.recover();23const strykerParent = require('stryker-parent');24strykerParent.recover();25const strykerParent = require('stryker-parent');26strykerParent.recover();27const strykerParent = require('stryker-parent');28strykerParent.recover();29const strykerParent = require('stryker-parent');30strykerParent.recover();31const strykerParent = require('stryker-parent');32strykerParent.recover();
Using AI Code Generation
1const { Stryker } = require('stryker-parent');2const { TestRunner } = require('stryker-api/test_runner');3const { TestResult } = require('stryker-api/test_runner');4class MyTestRunner extends TestRunner {5 constructor(options) {6 super(options);7 this.stryker = new Stryker(options);8 }9 async init() {10 await this.stryker.init();11 }12 async run(options) {13 const { status, tests } = await this.stryker.runMutationTest();14 return new TestResult(status, tests);15 }16 async dispose() {17 await this.stryker.dispose();18 }19}20module.exports = MyTestRunner;21module.exports = function(config) {22 config.set({23 });24};
Using AI Code Generation
1var strykerParent = require('stryker-parent');2var stryker = strykerParent.recover();3var stryker = strykerParent.recover();4var strykerParent = require('stryker-parent');5var stryker = strykerParent.recover();6var stryker = strykerParent.recover();7var strykerParent = require('stryker-parent');8var stryker = strykerParent.recover();9var stryker = strykerParent.recover();10var strykerParent = require('stryker-parent');11var stryker = strykerParent.recover();12var stryker = strykerParent.recover();13var strykerParent = require('stryker-parent');14var stryker = strykerParent.recover();15var stryker = strykerParent.recover();16var strykerParent = require('stryker-parent');17var stryker = strykerParent.recover();18var stryker = strykerParent.recover();19var strykerParent = require('stryker-parent');20var stryker = strykerParent.recover();21var stryker = strykerParent.recover();22var strykerParent = require('stryker-parent');
Using AI Code Generation
1var stryker = require('stryker-parent');2var child = stryker.fork();3child.on('message', function (message) {4 console.log('received: %j', message);5 if (message.mutationTestReport) {6 console.log('Mutation test report received!');7 }8});9child.on('exit', function (code) {10 console.log('Child exited with code', code);11});12child.send({13});14var stryker = require('stryker');15var child = stryker.fork();16child.on('message', function (message) {17 console.log('received: %j', message);18 if (message.mutationTestReport) {19 console.log('Mutation test report received!');20 }21});22child.on('exit', function (code) {23 console.log('Child exited with code', code);24});25child.send({26});27received: {"command":"run","files":["test.js"],"mutate":["test.js"],"port":12345,"testFramework":"mocha","testRunner":"mocha"}
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!