How to use recover method in autotest

Best Python code snippet using autotest_python

data12_SingleMu_Run2012A_recover_cff.py

Source:data12_SingleMu_Run2012A_recover_cff.py Github

copy

Full Screen

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',...

Full Screen

Full Screen

data12_SingleElectron_Run2012C_EcalRecove_cff.py

Source:data12_SingleElectron_Run2012C_EcalRecove_cff.py Github

copy

Full Screen

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',...

Full Screen

Full Screen

stock_recover.py

Source:stock_recover.py Github

copy

Full Screen

...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):...

Full Screen

Full Screen

recover.controller.ts

Source:recover.controller.ts Github

copy

Full Screen

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 }...

Full Screen

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run autotest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful