ATLAS Offline Software
Tools
PyJobTransforms
python
trfDefaultFiles.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
4
5
# Creation: John Chapman (Cambridge), September 2010
6
# Usage:
7
# -specify default inputs for transforms
8
9
#Default values of input/output types, for standard tests
10
DefaultInputs={
11
'inputBSFile'
:
'/afs/cern.ch/atlas/offline/test/data11_7TeV.00191920.physics_JetTauEtmiss.merge.RAW._lb0257._SFO-9._0001.1.10evts'
,
12
'inputRDOFile'
:
'/afs/cern.ch/atlas/offline/test/mc11_valid.105200.T1_McAtNlo_Jimmy.digit.RDO.e835_s1310_s1300_d622.RDO.10evts.pool.root'
,
13
'inputESDFile'
:
'/afs/cern.ch/atlas/offline/test/data11_7TeV.00191920.physics_JetTauEtmiss.merge.RAW._lb0257._SFO-9._0001.1.10evts.ESD.pool.root'
,
14
'inputAODFile'
:
'/afs/cern.ch/atlas/offline/test/data11_7TeV.00191920.physics_JetTauEtmiss.merge.RAW._lb0257._SFO-9._0001.1.10evts.AOD.pool.root'
,
15
'cosmicsBS'
:
'/afs/cern.ch/atlas/offline/test/data11_cos.00182609.physics_CosmicCalo.merge.RAW._lb0100._SFO-ALL._0001.1.SFO-ALL._0001.1.10evts.data'
,
16
'topBS'
:
'/afs/cern.ch/atlas/offline/test/user.jboyd.DiLeptonicTopSkim.RAW.Run183347.10events.dat'
,
17
18
'inputEvgenFile'
:
'/afs/cern.ch/atlas/offline/ProdData/15.6.11.3/mu_E50_eta0-25-7000.evgen.pool.root'
,
19
'inputHITSFile'
:
'root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.105200.T1_McAtNlo_Jimmy.simul.HITS.e598_s933_tid168076_00/HITS.168076._008421.pool.root.1'
,
20
'NDMinbiasHitsFile'
:
'root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.105001.pythia_minbias.merge.HITS.e577_s932_s952_tid170554_00/HITS.170554._000034.pool.root.1,root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.105001.pythia_minbias.merge.HITS.e577_s932_s952_tid170554_00/HITS.170554._000043.pool.root.1,root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.105001.pythia_minbias.merge.HITS.e577_s932_s952_tid170554_00/HITS.170554._000060.pool.root.1,root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.105001.pythia_minbias.merge.HITS.e577_s932_s952_tid170554_00/HITS.170554._000082.pool.root.1'
,
21
#'SDMinbiasHitsFile': '/afs/cern.ch/atlas/offline/ProdData/15.6.11.3/mu_E50_eta0-25-7000_ATLAS-GEO-11-00-00.hits.pool.root',
22
#'DDMinbiasHitsFile': '/afs/cern.ch/atlas/offline/ProdData/15.6.11.3/mu_E50_eta0-25-7000_ATLAS-GEO-11-00-00.hits.pool.root',
23
'cavernHitsFile'
:
'root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.005008.CavernInput.merge.HITS.e4_e607_s951_s952_tid170551_00/HITS.170551._000011.pool.root.1,root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.005008.CavernInput.merge.HITS.e4_e607_s951_s952_tid170551_00/HITS.170551._000111.pool.root.1,root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.005008.CavernInput.merge.HITS.e4_e607_s951_s952_tid170551_00/HITS.170551._000144.pool.root.1,root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.005008.CavernInput.merge.HITS.e4_e607_s951_s952_tid170551_00/HITS.170551._000150.pool.root.1,root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.005008.CavernInput.merge.HITS.e4_e607_s951_s952_tid170551_00/HITS.170551._000151.pool.root.1'
,
24
'beamHaloHitsFile'
:
'root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.108852.BeamHaloInputs.merge.HITS.e4_e567_s949_s952_tid170552_00/HITS.170552._000001.pool.root.1'
,
25
'beamGasHitsFile'
:
'root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.108863.Hijing_beamgas.merge.HITS.e4_s950_s952_tid170553_00/HITS.170552._000087.pool.root.1'
26
}
27
28
29
def
getOutputFileName
(fmt):
30
value=
'my'
+fmt
31
fmt=fmt.split(
'_'
)[0]
32
if
fmt
in
[
'RAW'
,
'DRAW'
,
'BS'
]:
33
value +=
'.data'
34
elif
fmt
in
[
'RDO'
,
'EVNT'
,
'TAG'
,
'HITS'
,
'ESD'
,
'DESD'
,
'D2ESD'
,
'DESDM'
,
'D2ESDM'
,
'AOD'
,
'DAOD'
,
'D2AOD'
,
'DAODM'
,
'D2AODM'
]:
35
value +=
'.pool.root'
36
elif
fmt
in
[
'HIST'
,
'NTUP'
]:
37
value +=
'.root'
38
return
value
39
40
41
def
getInputFileName
(arg, tag=None):
42
arg=arg.lstrip(
'-'
)
43
if
tag==
"q120"
and
arg==
'inputBSFile'
:
44
return
DefaultInputs[
"cosmicsBS"
]
45
elif
tag==
"q126"
and
arg==
'inputBSFile'
:
46
return
DefaultInputs[
"topBS"
]
47
datatype = arg.replace(
'input'
,
''
).
replace
(
'File'
,
''
)
48
return
DefaultInputs.get(arg,
getOutputFileName
(datatype))
49
50
51
52
replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition:
hcg.cxx:307
python.trfDefaultFiles.getInputFileName
def getInputFileName(arg, tag=None)
Definition:
trfDefaultFiles.py:41
python.trfDefaultFiles.getOutputFileName
def getOutputFileName(fmt)
Definition:
trfDefaultFiles.py:29
Generated on Mon Jan 13 2025 21:19:59 for ATLAS Offline Software by
1.8.18