29 sets default bunchgroups for all menus, needed for simulation.
31 if hasattr(L1MenuFlags,
"BunchGroupNames"):
33 name = L1MenuFlags.MenuSetup().
partition(
'_')[0]
34 bgs = BunchGroupSet(name)
35 bgs.addBunchGroup( BunchGroupSet.BunchGroup(name =
'BCRVeto', internalNumber = 0).addRange(0,3539).addRange(3561,3563).
normalize() )\
36 .addBunchGroup( BunchGroupSet.BunchGroup(name =
'Paired', internalNumber = 1).addTrain(0,3445).addTrain(3536,4).addTrain(3561,3).
normalize() )
37 if flags.Beam.Type
is BeamType.Cosmics:
38 bgs.addBunchGroup( BunchGroupSet.BunchGroup(name =
'EMPTY', internalNumber = 3).addTrain(0,3564).
normalize() )
40 bunchgroupnames = L1MenuFlags.BunchGroupNames()[:Limits.NumBunchgroups]
41 bunchgroupnames += [
'NotUsed'] * (Limits.NumBunchgroups - len(bunchgroupnames))
42 for i,bgname
in enumerate(bunchgroupnames):
43 bgs.bunchGroups[i].name = bgname