9 """Identify SUSY signal sample"""
10 if not flags.Input.isMC:
14 if flags.Input.MCChannelNumber >= 500000:
18 isSUSY = flags.Input.MCChannelNumber < 600000
19 print(
"DecorateSUSYProcess: fileinfo.mc_channel_number",
20 flags.Input.MCChannelNumber,
"is SUSY (aka is MG):", isSUSY)
24 if not os.access(
'/cvmfs/atlas.cern.ch/repo/sw/Generators/MC15JobOptions/latest/share/Blocks.list', os.R_OK):
27 isSUSY = (370000 <= flags.Input.MCChannelNumber < 405000)
or (406000 <= flags.Input.MCChannelNumber < 410000) \
28 or (436000 <= flags.Input.MCChannelNumber < 439000)
or (448000 <= flags.Input.MCChannelNumber < 450000)
32 blocks =
open(
'/cvmfs/atlas.cern.ch/repo/sw/Generators/MC15JobOptions/latest/share/Blocks.list',
'r')
33 for l
in blocks.readlines():
37 low =
int(myrange.split(
'-')[0])
38 high =
int(myrange.split(
'-')[1])
if '-' in myrange
else int(myrange.replace(
'000',
'999'))
39 if low <= flags.Input.MCChannelNumber
and flags.Input.MCChannelNumber <= high:
42 print(
"DecorateSUSYProcess: fileinfo.mc_channel_number",
43 flags.Input.MCChannelNumber,
"is SUSY:", isSUSY)
50 """Configure SUSY signal tagger"""
51 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
52 from AthenaConfiguration.ComponentFactory
import CompFactory
55 print(
"SUSYSignalTaggerCfg WARNING: Trying to decorate, but sample is not SUSY signal?")
56 acc.addPublicTool(CompFactory.DerivationFramework.SUSYSignalTagger(name=derivationName +
"SignalTagger",
57 EventInfoName=
"EventInfo",
58 MCCollectionName=
"TruthParticles"),