11from basf2
import B2FATAL, B2WARNING
12from modularAnalysis
import fillParticleList
15def stdKlongs(listtype='allklm', path=None):
18 This function is a placeholder
for Klong selections. Currently
19 everything but the
'allklm' list
is disabled pending study.
21 Prepares the
'K_L0:allklm' list
with no cuts (all KLM clusters are loaded).
24 listtype (str): name of standard list options (currently only
25 'all' is supported/recommended)
26 path (basf2.Path): modules are added to this path
30 if listtype ==
'allklm':
31 B2WARNING(
'The Klong particles in the list "allklm" are exclusively built from KLMClusters!')
32 fillParticleList(
'K_L0:allklm',
'[isFromKLM > 0] and [klmClusterKlId >= 0] and [klmClusterKlId <= 1]',
True, path)
33 elif listtype ==
'allecl':
34 B2WARNING(
'The Klong particles in the list "allecl" are exclusively built from ECLClusters!')
35 fillParticleList(
'K_L0:allecl',
'isFromECL > 0',
True, path)
39 Only the particle lists 'allklm' (Klongs built
from KLM clusters)
and 'allecl' (Klongs built
from neutral ECLCluster) are
40 currently supported. Please use: