You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorial/eventntuple-basics.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,22 +32,19 @@ pyenv ana
32
32
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.
33
33
34
34
### 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
-
37
35
First, get a list of EventNtuple datasets as follows:
38
36
39
37
```
40
-
setup mu2efiletools
41
-
mu2eDatasetList --tier=nts | grep v06_03_00
38
+
muse setup ops
39
+
metacat dataset list -l mu2e:nts.*MDC2025*.root
42
40
```
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.
44
42
45
43
46
44
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:
metacat query files from mu2e:nts.complete.dataset.name.root | mdh print-url -l disk - > filelist.txt
51
48
```
52
49
53
50
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
59
56
checkEventNtuple /path/to/nts.root
60
57
```
61
58
59
+
EventNtuple versions are summarized on the [Mu2e wiki page](https://mu2ewiki.fnal.gov/wiki/EventNtuple#Version_History_%26_Musings).
60
+
62
61
### Printing the EventNtuple
63
62
64
63
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