GetXSectionTool : Direct (better) path to Custom or PMG file
Replacing readInfosFromDir
with readInfosFromFiles
.
- The first method searches the DSID in all files of a given path.
E.g.
path = /cvmfs/atlas.cern.ch/repo/sw/database/GroupData/dev/PMGTools/2024-01-22/
Dsid = 600021
The path contains 3 .txt files : PMGxsecDB_mc16.txt , PMGxsecDB_mc21.txt and PMGxsecDB_mc23.txt
The dsid 600021 exists only in the PMGxsecDB_mc16.txt.
Hence, readInfosFromDir
will access values only from this txt file. (I don't know what happens if the dsid exists in more txt files or if this is possible).
- The second method searches for the DSID in a specific txt file.
E.g.
path = /cvmfs/atlas.cern.ch/repo/sw/database/GroupData/dev/PMGTools/2024-01-22/PMGxsecDB_mc16.txt
Dsid = 600021
I believe readInfosFromFiles
will search only this file. In my opinion this is a better way to access directly a file.
Tagging : @gdigrego
Edited by Spyridon Merianos