This repository has been archived by the owner on Jan 7, 2023. It is now read-only.
/
ROOT.pxi
265 lines (228 loc) · 6.83 KB
/
ROOT.pxi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
cdef extern from "TObject.h":
cdef cppclass TObject:
TObject()
const_char* GetName()
const_char* ClassName()
cdef extern from "TFile.h":
cdef cppclass TFile:
TFile(const_char*, const_char*)
void Print()
TList* GetListOfKeys()
TObject* Get(const_char*)
void Close()
bool IsOpen()
bool IsWritable()
cdef extern from "TFile.h" namespace "TFile":
TFile* Open(const_char*, const_char*)
cdef extern from "TDirectoryFile.h":
cdef cppclass TDirectoryFile:
TList* GetListOfKeys()
cdef extern from "TKey.h":
cdef cppclass TKey:
const_char* GetName()
const_char* GetClassName()
TObject* ReadObj()
cdef extern from "TObjArray.h":
cdef cppclass TObjArray:
TObject* At(int i)
int GetSize()
int GetEntries()
cdef extern from "TList.h":
cdef cppclass TList:
TObject* list
TObject* At(int idx)
int GetEntries()
cdef extern from "TBranch.h":
cdef cppclass TBranch:
const_char* GetName()
const_char* GetTitle()
TObjArray* GetListOfLeaves()
void SetAddress(void* addr)
void SetStatus(bool status)
int Fill()
cdef extern from "TLeaf.h":
cdef cppclass TLeaf:
const_char* GetName()
const_char* GetTitle()
const_char* GetTypeName()
TLeaf* GetLeafCount()
TLeaf* GetLeafCounter(int&)
TBranch* GetBranch()
int GetLen()
int GetLenStatic()
cdef extern from "TDirectory.h":
cdef cppclass TDirectory:
const_char* GetName()
cdef extern from "TTree.h":
cdef cppclass TTree:
TTree()
TTree(const_char*, const_char*)
int GetEntry(long_long entry)
long_long GetEntries()
void SetBranchAddress(const_char* bname, void* addr)
void SetBranchStatus(const_char* bname, bool status)
void Print()
TBranch* Branch(const_char* name, void* address, const_char* leaflist)
TBranch* GetBranch(const_char* name)
TObjArray* GetListOfBranches()
int GetNbranches()
int Fill()
int Scan()
void Delete(void*)
long_long SetEntries(long_long)
double GetWeight()
int Write()
int Write(const_char* name, int option)
cdef extern from "TChain.h":
cdef cppclass TChain(TTree):
TChain()
TChain(const_char*)
int Add(const_char*, long_long)
void Print()
int GetNtrees()
cdef extern from "TFormula.h":
cdef cppclass TFormula:
double Eval(double x)
double Eval(double x, double y)
double Eval(double x, double y, double z)
double Eval(double x, double y, double z, double t)
cdef extern from "TTreeFormula.h":
cdef cppclass TTreeFormula:
TTreeFormula(const_char*, const_char*, TTree*)
int GetNdim()
int GetNdata()
double EvalInstance(int)
cdef extern from "TClassEdit.h" namespace "TClassEdit":
string ResolveTypedef(const_char*, bool)
cdef extern from "TF1.h":
cdef cppclass TF1:
double GetRandom()
double Eval(double x)
cdef extern from "TF2.h":
cdef cppclass TF2:
double GetRandom2(double& x, double& y)
double Eval(double x, double y)
cdef extern from "TF3.h":
cdef cppclass TF3:
double GetRandom3(double& x, double& y, double& z)
double Eval(double x, double y, double z)
cdef extern from "TH1.h":
cdef cppclass TH1:
double GetRandom()
int Fill(double x)
int Fill(double x, double w)
int FindBin(double x)
double GetBinContent(int bin)
cdef cppclass TH1D:
pass
cdef cppclass TH1F:
pass
cdef cppclass TH1I:
pass
cdef cppclass TH1S:
pass
cdef cppclass TH1C:
pass
cdef extern from "TH2.h":
cdef cppclass TH2:
double GetRandom2(double& x, double& y)
int Fill(double x, double y)
int Fill(double x, double y, double w)
int FindBin(double x, double y)
double GetBinContent(int bin)
cdef cppclass TH2D:
pass
cdef cppclass TH2F:
pass
cdef cppclass TH2I:
pass
cdef cppclass TH2S:
pass
cdef cppclass TH2C:
pass
cdef extern from "TH3.h":
cdef cppclass TH3:
double GetRandom3(double& x, double& y, double& z)
int Fill(double x, double y, double z)
int Fill(double x, double y, double z, double w)
int FindBin(double x, double y, double z)
double GetBinContent(int bin)
cdef cppclass TH3D:
pass
cdef cppclass TH3F:
pass
cdef cppclass TH3I:
pass
cdef cppclass TH3S:
pass
cdef cppclass TH3C:
pass
cdef extern from "TProfile.h":
cdef cppclass TProfile:
int Fill(double x, double y)
int Fill(double x, double y, double w)
cdef extern from "TProfile2D.h":
cdef cppclass TProfile2D:
int Fill(double x, double y, double z)
int Fill(double x, double y, double z, double w)
cdef extern from "TProfile3D.h":
cdef cppclass TProfile3D:
int Fill(double x, double y, double z, double t)
int Fill(double x, double y, double z, double t, double w)
cdef extern from "TGraph.h":
cdef cppclass TGraph:
void Set(int n)
void SetPoint(int i, double x, double y)
double Eval(double x)
cdef extern from "TGraph2D.h":
cdef cppclass TGraph2D:
void Set(int n)
void SetPoint(int i, double x, double y, double z)
cdef extern from "TSpline.h":
cdef cppclass TSpline:
double Eval(double x)
cdef extern from "TArrayD.h":
cdef cppclass TArrayD:
int GetSize()
double* GetArray()
void Set(int n, double* array)
double* fArray
cdef extern from "TArrayF.h":
cdef cppclass TArrayF:
int GetSize()
float* GetArray()
void Set(int n, float* array)
float* fArray
cdef extern from "TArrayL.h":
cdef cppclass TArrayL:
int GetSize()
long* GetArray()
void Set(int n, long* array)
long* fArray
cdef extern from "TArrayI.h":
cdef cppclass TArrayI:
int GetSize()
int* GetArray()
void Set(int n, int* array)
int* fArray
cdef extern from "TArrayS.h":
cdef cppclass TArrayS:
int GetSize()
short* GetArray()
void Set(int n, short* array)
short* fArray
cdef extern from "TArrayC.h":
cdef cppclass TArrayC:
int GetSize()
char* GetArray()
void Set(int n, char* array)
char* fArray
cdef extern from "TMatrixTBase.h":
cdef cppclass TMatrixDBase:
int GetNrows()
int GetNcols()
double get "operator()"(int rown, int coln)
cdef cppclass TMatrixFBase:
int GetNrows()
int GetNcols()
float get "operator()"(int rown, int coln)