Skip to content

Commit 67c764c

Browse files
Update eventntuple-basics.md
1 parent 31c22ce commit 67c764c

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

tutorial/eventntuple-basics.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,19 @@ pyenv ana
3232
Because the EventNtuple is a [ROOT TTree](https://root.cern.ch/doc/master/classTTree.html), it can be accessed in either ROOT or python like any other TTree.
3333

3434
### Getting a list of EventNtuple files
35-
(Note these instructions may soon be outdated when Mu2e moves to the next generation of file handling tools. If they do not work, or you know that we have already updated, then post a message on the #analysis-tools Slack channel to let the Analysis Tools conveners know).
36-
3735
First, get a list of EventNtuple datasets as follows:
3836

3937
```
40-
setup mu2efiletools
41-
mu2eDatasetList --tier=nts | grep v06_03_00
38+
muse setup ops
39+
metacat dataset list -l mu2e:nts.*MDC2025*.root
4240
```
43-
replacing ```v06_03_00``` with the most recent version number of EventNtuple from the [Mu2e wiki page](https://mu2ewiki.fnal.gov/wiki/EventNtuple#Version_History_%26_Musings).
41+
You can see from the output which datasets are the most recent in ```created``` column.
4442

4543

4644
Pick a dataset from the list and to get a list of files that are already [prestaged](https://mu2ewiki.fnal.gov/wiki/Prestage), do the following:
4745

4846
```
49-
setup dhtools
50-
samListLocations -d --defname=nts.name.of.dataset.root > filelist.txt
47+
metacat query files from mu2e:nts.complete.dataset.name.root | mdh print-url -l disk - > filelist.txt
5148
```
5249

5350
Check the contents of ```filelist.txt```. If it is empty, then pick another dataset. If you have authentication errors, then consult [this page](https://mu2ewiki.fnal.gov/wiki/Authentication#Tokens) on the Mu2e wiki.
@@ -59,6 +56,8 @@ You can get some basic information about the EventNtuple, such as the version nu
5956
checkEventNtuple /path/to/nts.root
6057
```
6158

59+
EventNtuple versions are summarized on the [Mu2e wiki page](https://mu2ewiki.fnal.gov/wiki/EventNtuple#Version_History_%26_Musings).
60+
6261
### Printing the EventNtuple
6362

6463
You can print the branches and leaves of the EventNtuple in ROOT or python. From your ```filelist.txt` pick a single file and use it in the following:

0 commit comments

Comments
 (0)