Functions
eventLabelToLepton Namespace Reference

Functions

def labelToLepton (entry)
 

Function Documentation

def eventLabelToLepton.labelToLepton (   entry)

Definition at line 1 of file eventLabelToLepton.py.

1 def labelToLepton( entry ):
2 
3  #list of event labels:
4  labelList = ["nE_e_1_mu_0_pi0_0_pi_0_n_0_p_1",
5  "nM_e_0_mu_1_pi0_0_pi_0_n_0_p_1",
6  "nM_e_0_mu_1_pi0_0_pi_1_n_0_p_1",
7  "nU_e_0_mu_0_pi0_1_pi_0_n_0_p_1",
8  "nE_e_1_mu_0_pi0_0_pi_1_n_0_p_1",
9  "nE_e_1_mu_0_pi0_0_pi_0_n_2_p_2",
10  "nU_e_0_mu_0_pi0_0_pi_1_n_0_p_1",
11  "nE_e_1_mu_0_pi0_0_pi_1_n_1_p_0",
12  "nM_e_0_mu_1_pi0_0_pi_1_n_1_p_0",
13  "nU_e_0_mu_0_pi0_0_pi_1_n_1_p_0",
14  "nU_e_0_mu_0_pi0_1_pi_0_n_1_p_0",
15  "nM_e_0_mu_1_pi0_0_pi_0_n_2_p_2",
16  "nU_e_0_mu_0_pi0_1_pi_0_n_1_p_1",
17  "nM_e_0_mu_1_pi0_0_pi_0_n_1_p_1",
18  "nE_e_1_mu_0_pi0_0_pi_0_n_1_p_1",
19  "nU_e_0_mu_0_pi0_1_pi_0_n_2_p_2",
20  "nE_e_1_mu_0_pi0_0_pi_0_n_1_p_2",
21  "nE_e_1_mu_0_pi0_0_pi_1_n_2_p_2",
22  "nM_e_0_mu_1_pi0_0_pi_1_n_1_p_1",
23  "nE_e_1_mu_0_pi0_0_pi_0_n_0_p_2",
24  "nU_e_0_mu_0_pi0_0_pi_2_n_0_p_1",
25  "nM_e_0_mu_1_pi0_0_pi_0_n_1_p_2",
26  "nU_e_0_mu_0_pi0_0_pi_0_n_2_p_2",
27  "nM_e_0_mu_1_pi0_0_pi_0_n_0_p_2",
28  "nE_e_1_mu_0_pi0_1_pi_0_n_0_p_1",
29  "nE_e_1_mu_0_pi0_0_pi_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_0_mu_1_pi0_1_pi_0_n_1_p_1",
89  "nE_e_1_mu_0_pi0_1_pi_1_n_1_p_0",
90  "nE_e_1_mu_0_pi0_0_pi_2_n_2_p_2",
91  "nU_e_0_mu_0_pi0_1_pi_1_n_1_p_1",
92  "nE_e_1_mu_0_pi0_2_pi_2_n_2_p_2",
93  "nE_e_1_mu_0_pi0_2_pi_2_n_0_p_1",
94  "nE_e_1_mu_0_pi0_1_pi_1_n_1_p_1",
95  "nU_e_0_mu_0_pi0_1_pi_1_n_2_p_0",
96  "nU_e_0_mu_0_pi0_1_pi_1_n_1_p_2",
97  "nU_e_0_mu_0_pi0_0_pi_2_n_1_p_2",
98  "nU_e_0_mu_0_pi0_0_pi_0_n_1_p_2",
99  "nT_e_0_mu_0_pi0_2_pi_2_n_2_p_2",
100  "nT_e_0_mu_0_pi0_2_pi_2_n_1_p_0",
101  "nT_e_0_mu_0_pi0_1_pi_2_n_0_p_1",
102  "nM_e_0_mu_1_pi0_1_pi_2_n_1_p_0",
103  "nE_e_1_mu_0_pi0_1_pi_0_n_0_p_2",
104  "nM_e_0_mu_1_pi0_1_pi_2_n_1_p_1",
105  "nM_e_0_mu_1_pi0_0_pi_1_n_2_p_0",
106  "nU_e_0_mu_0_pi0_1_pi_2_n_2_p_0",
107  "nU_e_0_mu_0_pi0_0_pi_0_n_0_p_0",
108  "nT_e_0_mu_0_pi0_1_pi_2_n_1_p_0",
109  "nM_e_0_mu_1_pi0_2_pi_2_n_0_p_1",
110  "nE_e_1_mu_0_pi0_0_pi_2_n_1_p_2",
111  "nE_e_1_mu_0_pi0_0_pi_1_n_0_p_0",
112  "nU_e_0_mu_0_pi0_2_pi_1_n_2_p_2",
113  "nU_e_0_mu_0_pi0_2_pi_1_n_0_p_1",
114  "nT_e_0_mu_0_pi0_0_pi_2_n_1_p_1",
115  "nM_e_0_mu_1_pi0_0_pi_2_n_0_p_2",
116  "nE_e_1_mu_0_pi0_2_pi_2_n_1_p_0",
117  "nE_e_1_mu_0_pi0_0_pi_1_n_1_p_2",
118  "nU_e_0_mu_0_pi0_2_pi_0_n_2_p_2",
119  "nU_e_0_mu_0_pi0_0_pi_2_n_2_p_0",
120  "nU_e_0_mu_0_pi0_0_pi_0_n_1_p_1",
121  "nM_e_0_mu_1_pi0_1_pi_2_n_0_p_2",
122  "nM_e_0_mu_1_pi0_0_pi_1_n_0_p_0",
123  "nE_e_1_mu_0_pi0_1_pi_0_n_2_p_2",
124  "nU_e_0_mu_0_pi0_2_pi_2_n_0_p_2",
125  "nU_e_0_mu_0_pi0_1_pi_1_n_0_p_2",
126  "nM_e_0_mu_1_pi0_1_pi_2_n_2_p_0",
127  "nM_e_0_mu_1_pi0_0_pi_2_n_2_p_2",
128  "nE_e_1_mu_0_pi0_0_pi_1_n_2_p_0",
129  "nU_e_0_mu_0_pi0_2_pi_0_n_1_p_1",
130  "nM_e_0_mu_1_pi0_2_pi_2_n_2_p_2",
131  "nE_e_1_mu_0_pi0_1_pi_2_n_2_p_2",
132  "nE_e_1_mu_0_pi0_1_pi_2_n_2_p_1",
133  "nE_e_1_mu_0_pi0_0_pi_0_n_1_p_0",
134  "nU_e_0_mu_0_pi0_2_pi_2_n_2_p_0",
135  "nU_e_0_mu_0_pi0_2_pi_0_n_1_p_0",
136  "nU_e_0_mu_0_pi0_1_pi_2_n_2_p_1",
137  "nU_e_0_mu_0_pi0_1_pi_2_n_1_p_2",
138  "nU_e_0_mu_0_pi0_1_pi_1_n_2_p_1",
139  "nU_e_0_mu_0_pi0_0_pi_0_n_2_p_0",
140  "nT_e_0_mu_0_pi0_0_pi_1_n_0_p_1",
141  "nM_e_0_mu_1_pi0_1_pi_2_n_2_p_2",
142  "nM_e_0_mu_1_pi0_0_pi_0_n_1_p_0",
143  "nE_e_1_mu_0_pi0_2_pi_1_n_0_p_1",
144  "nE_e_1_mu_0_pi0_1_pi_1_n_2_p_2",
145  "nE_e_1_mu_0_pi0_1_pi_0_n_1_p_2",
146  "nU_e_0_mu_0_pi0_1_pi_0_n_1_p_2",
147  "nU_e_0_mu_0_pi0_0_pi_2_n_0_p_0",
148  "nT_e_0_mu_0_pi0_1_pi_2_n_2_p_2",
149  "nT_e_0_mu_0_pi0_0_pi_2_n_2_p_2",
150  "nM_e_0_mu_1_pi0_2_pi_2_n_1_p_0",
151  "nM_e_0_mu_1_pi0_1_pi_1_n_0_p_2",
152  "nM_e_0_mu_1_pi0_1_pi_0_n_1_p_2",
153  "nE_e_1_mu_0_pi0_1_pi_2_n_1_p_2",
154  "nE_e_1_mu_0_pi0_1_pi_1_n_0_p_2",
155  "nU_e_0_mu_0_pi0_2_pi_1_n_1_p_0",
156  "nT_e_0_mu_1_pi0_0_pi_0_n_0_p_1",
157  "nM_e_0_mu_1_pi0_2_pi_2_n_1_p_1",
158  "nM_e_0_mu_1_pi0_2_pi_1_n_0_p_1",
159  "nM_e_0_mu_1_pi0_1_pi_1_n_2_p_2",
160  "nM_e_0_mu_1_pi0_1_pi_1_n_1_p_2",
161  "nM_e_0_mu_1_pi0_0_pi_2_n_2_p_1",
162  "nE_e_1_mu_0_pi0_2_pi_1_n_2_p_2",
163  "nE_e_1_mu_0_pi0_0_pi_2_n_0_p_2",
164  "nE_e_1_mu_0_pi0_0_pi_0_n_0_p_0",
165  "nU_e_0_mu_0_pi0_2_pi_2_n_2_p_1",
166  "nU_e_0_mu_0_pi0_2_pi_2_n_1_p_2",
167  "nU_e_0_mu_0_pi0_2_pi_1_n_2_p_1",
168  "nU_e_0_mu_0_pi0_2_pi_0_n_1_p_2",
169  "nU_e_0_mu_0_pi0_1_pi_2_n_0_p_2",
170  "nU_e_0_mu_0_pi0_0_pi_0_n_0_p_2",
171  "nM_e_0_mu_1_pi0_2_pi_0_n_0_p_1",
172  "nE_e_1_mu_0_pi0_2_pi_2_n_1_p_1",
173  "nE_e_1_mu_0_pi0_2_pi_0_n_0_p_1",
174  "nE_e_1_mu_0_pi0_1_pi_1_n_2_p_1",
175  "nT_e_0_mu_1_pi0_0_pi_1_n_0_p_1",
176  "nM_e_0_mu_1_pi0_2_pi_0_n_0_p_2",
177  "nM_e_0_mu_1_pi0_0_pi_2_n_2_p_0",
178  "nM_e_0_mu_1_pi0_0_pi_2_n_1_p_2",
179  "nE_e_1_mu_0_pi0_2_pi_2_n_2_p_1",
180  "nE_e_1_mu_0_pi0_2_pi_2_n_0_p_2",
181  "nE_e_1_mu_0_pi0_1_pi_2_n_0_p_2",
182  "nE_e_1_mu_0_pi0_1_pi_1_n_1_p_2",
183  "nT_e_0_mu_0_pi0_1_pi_1_n_0_p_1",
184  "nT_e_0_mu_0_pi0_0_pi_2_n_0_p_2",
185  "nM_e_0_mu_1_pi0_1_pi_2_n_2_p_1",
186  "nE_e_1_mu_0_pi0_2_pi_0_n_0_p_2",
187  "nE_e_1_mu_0_pi0_1_pi_0_n_2_p_1",
188  "nE_e_1_mu_0_pi0_0_pi_2_n_2_p_0",
189  "nE_e_1_mu_0_pi0_0_pi_0_n_2_p_0",
190  "nU_e_0_mu_0_pi0_2_pi_1_n_1_p_1",
191  "nT_e_0_mu_1_pi0_0_pi_1_n_1_p_0",
192  "nT_e_0_mu_0_pi0_0_pi_2_n_2_p_0",
193  "nM_e_0_mu_1_pi0_1_pi_2_n_1_p_2",
194  "nE_e_1_mu_0_pi0_2_pi_2_n_1_p_2",
195  "nE_e_1_mu_0_pi0_2_pi_1_n_1_p_0",
196  "nU_e_0_mu_0_pi0_2_pi_0_n_2_p_1",
197  "nU_e_0_mu_0_pi0_1_pi_2_n_0_p_0",
198  "nT_e_1_mu_0_pi0_0_pi_1_n_1_p_0",
199  "nT_e_1_mu_0_pi0_0_pi_1_n_0_p_1",
200  "nT_e_0_mu_0_pi0_2_pi_2_n_0_p_2",
201  "nT_e_0_mu_0_pi0_2_pi_1_n_0_p_1",
202  "nT_e_0_mu_0_pi0_1_pi_2_n_1_p_1",
203  "nM_e_0_mu_1_pi0_2_pi_2_n_0_p_2",
204  "nM_e_0_mu_1_pi0_2_pi_1_n_1_p_0",
205  "nE_e_1_mu_0_pi0_1_pi_2_n_1_p_1",
206  "nE_e_1_mu_0_pi0_0_pi_2_n_0_p_0",
207  "nU_e_0_mu_0_pi0_2_pi_1_n_2_p_0",
208  "nU_e_0_mu_0_pi0_2_pi_1_n_0_p_2",
209  "nU_e_0_mu_0_pi0_2_pi_0_n_2_p_0",
210  "nT_e_1_mu_0_pi0_1_pi_2_n_1_p_0",
211  "nT_e_1_mu_0_pi0_1_pi_2_n_0_p_1",
212  "nT_e_1_mu_0_pi0_0_pi_0_n_0_p_1",
213  "nT_e_0_mu_1_pi0_0_pi_2_n_2_p_2",
214  "nT_e_0_mu_1_pi0_0_pi_2_n_0_p_1",
215  "nT_e_0_mu_0_pi0_2_pi_2_n_1_p_1",
216  "nT_e_0_mu_0_pi0_1_pi_2_n_2_p_1",
217  "nT_e_0_mu_0_pi0_1_pi_2_n_1_p_2",
218  "nT_e_0_mu_0_pi0_0_pi_2_n_1_p_2",
219  "nT_e_0_mu_0_pi0_0_pi_2_n_0_p_0",
220  "nT_e_0_mu_0_pi0_0_pi_1_n_2_p_2",
221  "nM_e_0_mu_1_pi0_2_pi_1_n_0_p_2",
222  "nM_e_0_mu_1_pi0_1_pi_1_n_2_p_1",
223  "nM_e_0_mu_1_pi0_1_pi_1_n_2_p_0",
224  "nM_e_0_mu_1_pi0_1_pi_0_n_1_p_0",
225  "nM_e_0_mu_1_pi0_0_pi_2_n_0_p_0",
226  "nE_e_1_mu_0_pi0_2_pi_1_n_1_p_2",
227  "nE_e_1_mu_0_pi0_2_pi_1_n_1_p_1",
228  "nE_e_1_mu_0_pi0_2_pi_1_n_0_p_2",
229  "nE_e_1_mu_0_pi0_2_pi_0_n_1_p_1",
230  "nE_e_1_mu_0_pi0_0_pi_2_n_2_p_1",
231  "nU_e_0_mu_0_pi0_2_pi_2_n_0_p_0",
232  "nT_e_1_mu_0_pi0_0_pi_2_n_0_p_1",
233  "nT_e_1_mu_0_pi0_0_pi_0_n_1_p_1",
234  "nT_e_0_mu_0_pi0_2_pi_2_n_0_p_0",
235  "nM_e_0_mu_1_pi0_2_pi_2_n_2_p_0",
236  "nM_e_0_mu_1_pi0_2_pi_1_n_2_p_2",
237  "nM_e_0_mu_1_pi0_2_pi_1_n_1_p_2",
238  "nM_e_0_mu_1_pi0_2_pi_1_n_1_p_1",
239  "nM_e_0_mu_1_pi0_2_pi_0_n_2_p_2",
240  "nM_e_0_mu_1_pi0_2_pi_0_n_1_p_2",
241  "nE_e_1_mu_0_pi0_2_pi_2_n_2_p_0",
242  "nE_e_1_mu_0_pi0_2_pi_0_n_2_p_2",
243  "nE_e_1_mu_0_pi0_2_pi_0_n_2_p_1",
244  "nE_e_1_mu_0_pi0_2_pi_0_n_1_p_2",
245  "nE_e_1_mu_0_pi0_1_pi_2_n_2_p_0",
246  "nU_e_0_mu_0_pi0_2_pi_1_n_1_p_2",
247  "nU_e_0_mu_0_pi0_1_pi_1_n_0_p_0",
248  "nU_e_0_mu_0_pi0_0_pi_1_n_0_p_0",
249  "nT_e_1_mu_0_pi0_1_pi_2_n_1_p_2",
250  "nT_e_1_mu_0_pi0_0_pi_2_n_2_p_0",
251  "nT_e_1_mu_0_pi0_0_pi_1_n_2_p_2",
252  "nT_e_0_mu_1_pi0_2_pi_2_n_1_p_0",
253  "nT_e_0_mu_1_pi0_2_pi_2_n_0_p_1",
254  "nT_e_0_mu_1_pi0_1_pi_2_n_0_p_1",
255  "nT_e_0_mu_1_pi0_1_pi_0_n_0_p_1",
256  "nT_e_0_mu_1_pi0_0_pi_2_n_1_p_0",
257  "nT_e_0_mu_1_pi0_0_pi_2_n_0_p_2",
258  "nT_e_0_mu_1_pi0_0_pi_0_n_2_p_2",
259  "nT_e_0_mu_1_pi0_0_pi_0_n_0_p_2",
260  "nT_e_0_mu_0_pi0_2_pi_2_n_2_p_0",
261  "nT_e_0_mu_0_pi0_2_pi_2_n_1_p_2",
262  "nT_e_0_mu_0_pi0_2_pi_1_n_0_p_2",
263  "nT_e_0_mu_0_pi0_1_pi_2_n_0_p_2",
264  "nT_e_0_mu_0_pi0_1_pi_1_n_1_p_2",
265  "nT_e_0_mu_0_pi0_1_pi_1_n_1_p_1",
266  "nT_e_0_mu_0_pi0_1_pi_1_n_0_p_2",
267  "nT_e_0_mu_0_pi0_0_pi_1_n_1_p_2",
268  "nT_e_0_mu_0_pi0_0_pi_1_n_0_p_0",
269  "nM_e_0_mu_1_pi0_2_pi_2_n_2_p_1",
270  "nM_e_0_mu_1_pi0_2_pi_2_n_1_p_2",
271  "nM_e_0_mu_1_pi0_2_pi_0_n_1_p_1",
272  "nM_e_0_mu_1_pi0_1_pi_0_n_2_p_1",
273  "nM_e_0_mu_1_pi0_1_pi_0_n_0_p_0",
274  "nM_e_0_mu_1_pi0_0_pi_0_n_0_p_0",
275  "nE_e_1_mu_0_pi0_1_pi_2_n_0_p_0",
276  "nU_e_0_mu_0_pi0_2_pi_0_n_0_p_2",
277  "nT_e_1_mu_0_pi0_1_pi_0_n_0_p_1",
278  "nT_e_1_mu_0_pi0_0_pi_0_n_0_p_0",
279  "nT_e_0_mu_1_pi0_1_pi_2_n_2_p_2",
280  "nT_e_0_mu_1_pi0_1_pi_1_n_1_p_0",
281  "nT_e_0_mu_0_pi0_2_pi_2_n_2_p_1",
282  "nT_e_0_mu_0_pi0_1_pi_1_n_2_p_2",
283  "nT_e_0_mu_0_pi0_1_pi_1_n_1_p_0",
284  "nT_e_0_mu_0_pi0_0_pi_1_n_1_p_1",
285  "nT_e_0_mu_0_pi0_0_pi_1_n_0_p_2",
286  "nM_e_0_mu_1_pi0_2_pi_1_n_2_p_1",
287  "nM_e_0_mu_1_pi0_2_pi_1_n_2_p_0",
288  "nM_e_0_mu_1_pi0_1_pi_2_n_0_p_0",
289  "nM_e_0_mu_1_pi0_0_pi_0_n_2_p_0",
290  "nE_e_1_mu_0_pi0_2_pi_1_n_2_p_1",
291  "nE_e_1_mu_0_pi0_1_pi_1_n_2_p_0",
292  "nE_e_1_mu_0_pi0_1_pi_1_n_0_p_0",
293  "nE_e_1_mu_0_pi0_1_pi_0_n_0_p_0",
294  "nU_e_1_mu_0_pi0_0_pi_2_n_1_p_1",
295  "nU_e_0_mu_0_pi0_2_pi_1_n_0_p_0",
296  "nT_e_1_mu_0_pi0_2_pi_2_n_1_p_1",
297  "nT_e_1_mu_0_pi0_2_pi_2_n_1_p_0",
298  "nT_e_1_mu_0_pi0_2_pi_2_n_0_p_1",
299  "nT_e_1_mu_0_pi0_2_pi_1_n_1_p_1",
300  "nT_e_1_mu_0_pi0_1_pi_2_n_1_p_1",
301  "nT_e_1_mu_0_pi0_1_pi_2_n_0_p_2",
302  "nT_e_1_mu_0_pi0_1_pi_1_n_1_p_1",
303  "nT_e_1_mu_0_pi0_1_pi_1_n_0_p_1",
304  "nT_e_1_mu_0_pi0_0_pi_0_n_2_p_2",
305  "nT_e_0_mu_1_pi0_2_pi_2_n_2_p_2",
306  "nT_e_0_mu_1_pi0_2_pi_2_n_2_p_1",
307  "nT_e_0_mu_1_pi0_2_pi_0_n_1_p_2",
308  "nT_e_0_mu_1_pi0_1_pi_2_n_1_p_1",
309  "nT_e_0_mu_1_pi0_1_pi_2_n_1_p_0",
310  "nT_e_0_mu_1_pi0_1_pi_0_n_2_p_2",
311  "nT_e_0_mu_1_pi0_1_pi_0_n_2_p_1",
312  "nT_e_0_mu_1_pi0_0_pi_2_n_1_p_1",
313  "nT_e_0_mu_1_pi0_0_pi_1_n_2_p_2",
314  "nT_e_0_mu_1_pi0_0_pi_1_n_2_p_0",
315  "nT_e_0_mu_1_pi0_0_pi_1_n_1_p_2",
316  "nT_e_0_mu_1_pi0_0_pi_1_n_1_p_1",
317  "nT_e_0_mu_1_pi0_0_pi_0_n_1_p_1",
318  "nT_e_0_mu_0_pi0_2_pi_1_n_2_p_2",
319  "nT_e_0_mu_0_pi0_1_pi_2_n_2_p_0",
320  "nT_e_0_mu_0_pi0_1_pi_2_n_0_p_0",
321  "nT_e_0_mu_0_pi0_1_pi_1_n_2_p_0",
322  "nT_e_0_mu_0_pi0_0_pi_2_n_2_p_1",
323  "nT_e_0_mu_0_pi0_0_pi_1_n_2_p_1",
324  "nT_e_0_mu_0_pi0_0_pi_1_n_2_p_0",
325  "nT_e_0_mu_0_pi0_0_pi_1_n_1_p_0",
326  "nM_e_1_mu_1_pi0_0_pi_1_n_0_p_1",
327  "nM_e_0_mu_1_pi0_1_pi_1_n_0_p_0",
328  "nE_e_1_mu_0_pi0_2_pi_1_n_0_p_0",
329  "nU_e_1_mu_0_pi0_0_pi_0_n_0_p_0",
330  "nT_e_1_mu_0_pi0_2_pi_2_n_2_p_2",
331  "nT_e_1_mu_0_pi0_2_pi_2_n_0_p_2",
332  "nT_e_1_mu_0_pi0_2_pi_1_n_1_p_2",
333  "nT_e_1_mu_0_pi0_2_pi_1_n_1_p_0",
334  "nT_e_1_mu_0_pi0_2_pi_1_n_0_p_1",
335  "nT_e_1_mu_0_pi0_2_pi_1_n_0_p_0",
336  "nT_e_1_mu_0_pi0_2_pi_0_n_1_p_1",
337  "nT_e_1_mu_0_pi0_2_pi_0_n_0_p_1",
338  "nT_e_1_mu_0_pi0_1_pi_1_n_2_p_2",
339  "nT_e_1_mu_0_pi0_1_pi_1_n_1_p_2",
340  "nT_e_1_mu_0_pi0_1_pi_1_n_1_p_0",
341  "nT_e_1_mu_0_pi0_1_pi_0_n_2_p_2",
342  "nT_e_1_mu_0_pi0_1_pi_0_n_2_p_1",
343  "nT_e_1_mu_0_pi0_1_pi_0_n_1_p_1",
344  "nT_e_1_mu_0_pi0_1_pi_0_n_0_p_2",
345  "nT_e_1_mu_0_pi0_0_pi_2_n_2_p_1",
346  "nT_e_1_mu_0_pi0_0_pi_2_n_1_p_2",
347  "nT_e_1_mu_0_pi0_0_pi_2_n_1_p_0",
348  "nT_e_1_mu_0_pi0_0_pi_2_n_0_p_0",
349  "nT_e_1_mu_0_pi0_0_pi_1_n_2_p_1",
350  "nT_e_1_mu_0_pi0_0_pi_1_n_2_p_0",
351  "nT_e_1_mu_0_pi0_0_pi_1_n_1_p_1",
352  "nT_e_1_mu_0_pi0_0_pi_0_n_2_p_1",
353  "nT_e_1_mu_0_pi0_0_pi_0_n_1_p_2",
354  "nT_e_1_mu_0_pi0_0_pi_0_n_1_p_0",
355  "nT_e_1_mu_0_pi0_0_pi_0_n_0_p_2",
356  "nT_e_0_mu_1_pi0_2_pi_2_n_2_p_0",
357  "nT_e_0_mu_1_pi0_2_pi_2_n_1_p_2",
358  "nT_e_0_mu_1_pi0_2_pi_2_n_1_p_1",
359  "nT_e_0_mu_1_pi0_2_pi_2_n_0_p_2",
360  "nT_e_0_mu_1_pi0_2_pi_1_n_1_p_0",
361  "nT_e_0_mu_1_pi0_2_pi_1_n_0_p_1",
362  "nT_e_0_mu_1_pi0_2_pi_0_n_2_p_2",
363  "nT_e_0_mu_1_pi0_2_pi_0_n_0_p_1",
364  "nT_e_0_mu_1_pi0_1_pi_2_n_1_p_2",
365  "nT_e_0_mu_1_pi0_1_pi_2_n_0_p_2",
366  "nT_e_0_mu_1_pi0_1_pi_1_n_2_p_1",
367  "nT_e_0_mu_1_pi0_1_pi_1_n_0_p_1",
368  "nT_e_0_mu_1_pi0_0_pi_2_n_2_p_0",
369  "nT_e_0_mu_1_pi0_0_pi_2_n_1_p_2",
370  "nT_e_0_mu_1_pi0_0_pi_1_n_2_p_1",
371  "nT_e_0_mu_1_pi0_0_pi_1_n_0_p_2",
372  "nT_e_0_mu_1_pi0_0_pi_0_n_1_p_2",
373  "nT_e_0_mu_0_pi0_2_pi_1_n_1_p_2",
374  "nT_e_0_mu_0_pi0_2_pi_1_n_1_p_1",
375  "nT_e_0_mu_0_pi0_2_pi_1_n_0_p_0",
376  "nT_e_0_mu_0_pi0_2_pi_0_n_1_p_2",
377  "nT_e_0_mu_0_pi0_1_pi_1_n_2_p_1",
378  "nT_e_0_mu_0_pi0_1_pi_0_n_0_p_1",
379  "nT_e_0_mu_0_pi0_0_pi_0_n_0_p_1",
380  "nM_e_0_mu_1_pi0_2_pi_2_n_0_p_0",
381  "nM_e_0_mu_1_pi0_2_pi_0_n_2_p_1",
382  "nM_e_0_mu_1_pi0_2_pi_0_n_2_p_0",
383  "nM_e_0_mu_1_pi0_2_pi_0_n_0_p_0",
384  "nM_e_0_mu_1_pi0_1_pi_0_n_2_p_0",
385  "nE_e_1_mu_1_pi0_1_pi_0_n_1_p_0",
386  "nE_e_1_mu_0_pi0_2_pi_2_n_0_p_0",
387  "nE_e_1_mu_0_pi0_2_pi_1_n_2_p_0",
388  "nE_e_1_mu_0_pi0_2_pi_0_n_2_p_0",
389  "nE_e_1_mu_0_pi0_1_pi_0_n_2_p_0",
390  "nE_e_1_mu_0_pi0_1_pi_0_n_1_p_0",
391  "nM_Other",
392  "nE_Other",
393  "nT_Other",
394  "kCosmic_PT",
395  "kOther_PT"]
396 
397  #lookup entry:
398  label=labelList[entry]
399 
400  coarseLabel=-1;
401 
402  if "nM" in label:
403  coarseLabel=0
404  if "nE" in label:
405  coarseLabel=1
406  if "nT" in label:
407  coarseLabel=2
408  if "nU" in label:
409  coarseLabel=3
410  if "Cosmic" in label:
411  coarseLabel=4
412  if "kOther" in label:
413  coarseLabel=3
414 
415  if coarseLabel==-1:
416  print "Unknown label"
417 
418  return coarseLabel;
419 
420