Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
df036_missingBranches.DatasetContext Class Reference

A helper class to create the dataset for the tutorial below.

Definition at line 22 of file df036_missingBranches.py.

Public Member Functions

 __init__ (self)
 __enter__ (self)
 Enable using the class as a context manager.
 __exit__ (self, *_)
 Enable using the class as a context manager.

Static Public Attributes

list filenames
int nentries = 5
list treenames = ["tree_1", "tree_2", "tree_3"]

Constructor & Destructor Documentation

◆ __init__()

df036_missingBranches.DatasetContext.__init__ ( self)

Definition at line 33 of file df036_missingBranches.py.

Member Function Documentation

◆ __enter__()

df036_missingBranches.DatasetContext.__enter__ ( self)

Enable using the class as a context manager.

Definition at line 70 of file df036_missingBranches.py.

◆ __exit__()

df036_missingBranches.DatasetContext.__exit__ ( self,
* _ )

Enable using the class as a context manager.

At the end of the context, remove the files created.

Definition at line 74 of file df036_missingBranches.py.

Member Data Documentation

◆ filenames

list df036_missingBranches.DatasetContext.filenames
static
Initial value:
= [
"df036_missingBranches_py_file_1.root",
"df036_missingBranches_py_file_2.root",
"df036_missingBranches_py_file_3.root",
]

Definition at line 25 of file df036_missingBranches.py.

◆ nentries

int df036_missingBranches.DatasetContext.nentries = 5
static

Definition at line 31 of file df036_missingBranches.py.

◆ treenames

list df036_missingBranches.DatasetContext.treenames = ["tree_1", "tree_2", "tree_3"]
static

Definition at line 30 of file df036_missingBranches.py.

Collaboration diagram for df036_missingBranches.DatasetContext:
[legend]

The documentation for this class was generated from the following file: