Definition at line 24 of file eFEXNTuple.py.
◆ __init__()
def eFEXNTuple.eFEXNTupleLoader.__init__ |
( |
|
self, |
|
|
|
filename |
|
) |
| |
Definition at line 25 of file eFEXNTuple.py.
26 self.tfile = ROOT.TFile(filename)
27 self.tree = self.tfile.
Get(
"data;1")
◆ __len__()
def eFEXNTuple.eFEXNTupleLoader.__len__ |
( |
|
self | ) |
|
◆ entries()
def eFEXNTuple.eFEXNTupleLoader.entries |
( |
|
self | ) |
|
Definition at line 29 of file eFEXNTuple.py.
30 for each_entry
in self.tree:
32 entry_dict[
"truth_e_ET"] = np.asarray(each_entry.truth_e_ET)/1000.
33 entry_dict[
"truth_e_phi"] = np.asarray(each_entry.truth_e_phi)
34 entry_dict[
"truth_e_eta"] = np.asarray(each_entry.truth_e_eta)
35 entry_dict[
"eg_eta"] = np.asarray(each_entry.eg_eta) * 0.1
36 entry_dict[
"eg_phi"] = np.asarray(each_entry.eg_phi) * math.pi/32.
37 entry_dict[
"eg_ET"] = np.asarray(each_entry.eg_ET)/1000.
38 entry_dict[
"eg_wstotnum"] = np.asarray(each_entry.eg_wstotnum)
39 entry_dict[
"eg_wstotden"] = np.asarray(each_entry.eg_wstotden)
40 entry_dict[
"eg_rhadnum"] = np.asarray(each_entry.eg_wstotnum)
41 entry_dict[
"eg_rhadden"] = np.asarray(each_entry.eg_wstotden)
42 entry_dict[
"eg_retanum"] = np.asarray(each_entry.eg_wstotnum)
43 entry_dict[
"eg_retaden"] = np.asarray(each_entry.eg_wstotden)
44 entry_dict[
"eg_haveseed"] = np.asarray(each_entry.eg_haveseed).astype(dtype=bool)
45 entry_dict[
"eg_nTOBs"] =
int(each_entry.eg_nTOBs)
47 entry_dict[
"truth_tauvisible_ET"] = np.asarray(each_entry.truth_tauvisible_ET)/1000.
48 entry_dict[
"truth_tauvisible_phi"] = np.asarray(each_entry.truth_tauvisible_phi)
49 entry_dict[
"truth_tauvisible_eta"] = np.asarray(each_entry.truth_tauvisible_eta)
51 entry_dict[
"eg_tauOregon_Et"] = np.asarray(each_entry.eg_tauOregon_Et)/1000.
52 entry_dict[
"eg_tauOregon_Iso"] = np.asarray(each_entry.eg_tauOregon_Iso)
53 entry_dict[
"eg_tauTLV_Et"] = np.asarray(each_entry.eg_tauTLV_Et)/1000.
54 entry_dict[
"eg_tauTLV_Iso"] = np.asarray(each_entry.eg_tauTLV_Iso)
58 yield eFEXAnalyzer(entry_dict)
◆ tfile
eFEXNTuple.eFEXNTupleLoader.tfile |
◆ tree
eFEXNTuple.eFEXNTupleLoader.tree |
The documentation for this class was generated from the following file:
T * Get(TFile &f, const std::string &n, const std::string &dir="", const chainmap_t *chainmap=0, std::vector< std::string > *saved=0)
get a histogram given a path, and an optional initial directory if histogram is not found,...