PhysicsTools
Heppy
python
utils
miniAodFiles.py
Go to the documentation of this file.
1
from
__future__
import
print_function
2
from
PhysicsTools.Heppy.utils.cmsswRelease
import
cmsswRelease, releaseNumber
3
4
def
miniAodFiles
():
5
relnum =
releaseNumber
(
cmsswRelease
())
6
files = []
7
big, medium = relnum[:2]
# e.g. 7, 3 for CMSSW_7_3_X
8
if
(big, medium)==(7,2):
9
files = [
10
'/store/relval/CMSSW_7_2_2_patch1/RelValZMM_13/MINIAODSIM/PU25ns_MCRUN2_72_V1-v1/00000/5C64D172-8D73-E411-9C77-0025905A60AA.root'
,
11
'/store/relval/CMSSW_7_2_2_patch1/RelValZMM_13/MINIAODSIM/PU25ns_MCRUN2_72_V1-v1/00000/6CA2B9CC-8973-E411-8920-002618943904.root'
12
]
13
elif
(big,medium)==(7,1):
14
files = [
15
'/store/relval/CMSSW_7_1_10_patch2/RelValZMM_13/MINIAODSIM/PU25ns_MCRUN2_71_V1-v1/00000/3E4EC015-AF53-E411-8889-0025905A6076.root'
,
16
'/store/relval/CMSSW_7_1_10_patch2/RelValZMM_13/MINIAODSIM/PU25ns_MCRUN2_71_V1-v1/00000/C483E714-AF53-E411-9B9A-0025905B855E.root'
17
]
18
elif
(big,medium)==(7,0):
19
files = [
20
'/store/relval/CMSSW_7_0_9_patch3/RelValZMM_13/MINIAODSIM/PU25ns_PLS170_V7AN2-v1/00000/E0D7EDE4-0660-E411-B655-02163E00EF88.root'
,
21
'/store/relval/CMSSW_7_0_9_patch3/RelValZMM_13/MINIAODSIM/PU25ns_PLS170_V7AN2-v1/00000/F0F88B6E-905F-E411-8080-0025904B0FBE.root'
22
]
23
elif
(big,medium)==(7,3):
24
files = [
25
'/store/relval/CMSSW_7_3_0_pre1/RelValZMM_13/MINIAODSIM/PU25ns_PRE_LS172_V15-v1/00000/582D0582-355F-E411-9F30-02163E006D72.root'
26
]
27
elif
(big,medium)==(7,4):
28
files = [
29
'/store/relval/CMSSW_7_4_0_pre2/RelValZMM_13/MINIAODSIM/PU25ns_MCRUN2_73_V7-v1/00000/1ACF00C3-E09A-E411-BB34-0025905AA9F0.root'
,
30
'/store/relval/CMSSW_7_4_0_pre2/RelValZMM_13/MINIAODSIM/PU25ns_MCRUN2_73_V7-v1/00000/4E1864C4-E09A-E411-98F8-0025905B861C.root'
31
]
32
elif
(big,medium)==(7,5):
33
files = [
34
'/store/relval/CMSSW_7_5_1/RelValZMM_13/MINIAODSIM/PU50ns_75X_mcRun2_startup_v3_gs7118-v1/00000/44F0B567-C33F-E511-93A2-0025905B8562.root'
,
35
'/store/relval/CMSSW_7_5_1/RelValZMM_13/MINIAODSIM/PU50ns_75X_mcRun2_startup_v3_gs7118-v1/00000/AC4D6070-C33F-E511-97C2-0025905A6094.root'
36
]
37
elif
(big,medium)==(7,6):
38
files = [
39
'/store/relval/CMSSW_7_6_0/RelValZMM_13/MINIAODSIM/76X_mcRun2_asymptotic_v11-v1/00000/82DD73F0-B17F-E511-9397-00261894397A.root'
,
40
'/store/relval/CMSSW_7_6_0/RelValZMM_13/MINIAODSIM/76X_mcRun2_asymptotic_v11-v1/00000/AE6938F6-B17F-E511-937B-0025905938A4.root'
41
]
42
elif
(big,medium)==(8,0):
43
files=[
44
'/store/relval/CMSSW_8_0_3/RelValZMM_13/MINIAODSIM/80X_mcRun2_asymptotic_2016_v3_gs7120p2NewGTv3-v1/00000/16B9D3D7-C6EF-E511-8EA2-0025905A60FE.root'
,
45
'/store/relval/CMSSW_8_0_3/RelValZMM_13/MINIAODSIM/80X_mcRun2_asymptotic_2016_v3_gs7120p2NewGTv3-v1/00000/3E6582DC-C6EF-E511-A781-0CC47A4D7664.root'
46
]
47
else
:
48
raise
ValueError(
'no mini AOD file defined for release '
+
cmsswRelease
())
49
eosfiles = [
''
.
join
([
'root://eoscms//eos/cms'
, lfn])
for
lfn
in
files]
50
return
eosfiles
51
52
53
if
__name__ ==
'__main__'
:
54
print
(
miniAodFiles
())
cmsswRelease
Definition:
cmsswRelease.py:1
join
static std::string join(char **cmd)
Definition:
RemoteFile.cc:17
miniAodFiles
Definition:
miniAodFiles.py:1
cmsswRelease.releaseNumber
def releaseNumber(release=None)
Definition:
cmsswRelease.py:19
edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition:
JobReport.cc:66
miniAodFiles.miniAodFiles
def miniAodFiles()
Definition:
miniAodFiles.py:4
Generated for CMSSW Reference Manual by
1.8.16