11 from modularAnalysis
import fillParticleList, cutAndCopyList
16 Function to prepare one of several standardized types of photon lists:
18 - 'gamma:all' with no cuts this will be polluted by tracks from outside the acceptance
19 - 'gamma:cdc' all clusters inside the CDC tracking acceptance
20 - 'gamma:loose' (default) with some loose quality selections
21 - 'gamma:tight' like loose but with higher energy cuts depending on detector regions
22 - 'gamma:pi0eff60_Jan2020' gamma list for 60% pi0 efficiency list, optimized in January 2020
23 - 'gamma:pi0eff50_Jan2020' gamma list for 50% pi0 efficiency list, optimized in January 2020
24 - 'gamma:pi0eff40_Jan2020' gamma list for 40% pi0 efficiency list, optimized in January 2020
25 - 'gamma:pi0eff30_Jan2020' gamma list for 30% pi0 efficiency list, optimized in January 2020
26 - 'gamma:pi0eff20_Jan2020' gamma list for 20% pi0 efficiency list, optimized in January 2020
27 - 'gamma:pi0eff10_Jan2020' gamma list for 10% pi0 efficiency list, optimized in January 2020
28 - 'gamma:pi0' gamma list for pi0 list
29 - 'gamma:pi0highE' gamma list for pi0 list, high energy selection
31 - For latest pi0 recommendations see https://confluence.desy.de/display/BI/Neutrals+Performance
33 @param listtype name of standard list
34 @param path modules are added to this path
39 fillParticleList(
'gamma:all',
'',
True, path)
42 elif listtype ==
'cdc':
45 'theta > 0.296706 and theta < 2.61799',
50 elif listtype ==
'loose':
55 'clusterErrorTiming < 1e6 and [clusterE1E9 > 0.4 or E > 0.075]',
59 elif listtype ==
'tight':
64 '[clusterReg == 1 and E > 0.05] or [clusterReg == 2 and E > 0.05] or [clusterReg == 3 and E > 0.075]',
67 elif listtype ==
'pi0eff10_Jan2020':
69 'gamma:pi0eff10_Jan2020',
70 '[clusterReg==1 and E>0.200] or [clusterReg==2 and E>0.100] or [clusterReg==3 and E>0.180 and clusterE1E9>0.5]',
73 elif listtype ==
'pi0eff20_Jan2020':
75 'gamma:pi0eff20_Jan2020',
76 '[clusterReg==1 and E>0.120] or [clusterReg==2 and E>0.030] or [clusterReg==3 and E>0.080 and clusterE1E9>0.4]',
79 elif listtype ==
'pi0eff30_Jan2020' or listtype ==
'pi0eff40_Jan2020':
82 '[clusterReg==1 and E>0.080] or [clusterReg==2 and E>0.030] or [clusterReg==3 and E>0.060 ]',
85 elif listtype ==
'pi0eff50_Jan2020':
87 'gamma:pi0eff50_Jan2020',
88 '[clusterReg==1 and E>0.025] or [clusterReg==2 and E>0.025] or [clusterReg==3 and E>0.040]',
91 elif listtype ==
'pi0eff60_Jan2020':
93 'gamma:pi0eff60_Jan2020',
94 '[clusterReg==1 and E>0.0225] or [clusterReg==2 and E>0.020] or [clusterReg==3 and E>0.020]',
101 def loadStdSkimPhoton(path):
103 Function to prepare the skim photon lists.
106 Should only be used by skims.
109 path (basf2.Path): modules are added to this path
122 def loadStdGoodBellePhoton(path):
124 Load the Belle goodBelle list. Creates a ParticleList named
125 'gamma:goodBelle' with '0.5 < :b2:var:`goodBelleGamma` < 1.5'
128 Should only be used for Belle analyses using `b2bii`.
131 path (basf2.Path): the path to load the modules
133 fillParticleList(
'gamma:goodBelle',
'0.5 < goodBelleGamma < 1.5',
True, path)