ATLAS Offline Software
Loading...
Searching...
No Matches
python.L1.Base.BunchGroupSet Namespace Reference

Classes

class  BunchGroupSet

Functions

 createDefaultBunchGroupSetMC ()
 createDefaultBunchGroupSet (flags)

Variables

 log = logging.getLogger(__name__)

Function Documentation

◆ createDefaultBunchGroupSet()

python.L1.Base.BunchGroupSet.createDefaultBunchGroupSet ( flags)
sets default bunchgroups for all menus, needed for simulation.

Definition at line 26 of file BunchGroupSet.py.

26def createDefaultBunchGroupSet(flags):
27 """
28 sets default bunchgroups for all menus, needed for simulation.
29 """
30 if hasattr(L1MenuFlags, "BunchGroupNames"): # if flag has been set
31 # if menu defines bunchgroup names, then we generate a bunchgroup set from that
32 name = L1MenuFlags.MenuSetup().partition('_')[0]
33 bgs = BunchGroupSet(name)
34 bgs.addBunchGroup( BunchGroupSet.BunchGroup(name = 'BCRVeto', internalNumber = 0).addRange(0,3539).addRange(3561,3563).normalize() )\
35 .addBunchGroup( BunchGroupSet.BunchGroup(name = 'Paired', internalNumber = 1).addTrain(0,3445).addTrain(3536,4).addTrain(3561,3).normalize() )
36 if flags.Beam.Type is BeamType.Cosmics:
37 bgs.addBunchGroup( BunchGroupSet.BunchGroup(name = 'EMPTY', internalNumber = 3).addTrain(0,3564).normalize() )
38
39 bunchgroupnames = L1MenuFlags.BunchGroupNames()[:Limits.NumBunchgroups]
40 bunchgroupnames += ['NotUsed'] * (Limits.NumBunchgroups - len(bunchgroupnames))
41 for i,bgname in enumerate(bunchgroupnames):
42 bgs.bunchGroups[i].name = bgname
43 else:
44 bgs = createDefaultBunchGroupSetMC()
45
46 return bgs
47
48
Double_t normalize(TF1 *func, Double_t *rampl=NULL, Double_t from=0., Double_t to=0., Double_t step=1.)

◆ createDefaultBunchGroupSetMC()

python.L1.Base.BunchGroupSet.createDefaultBunchGroupSetMC ( )
create BunchGroupSet for simulation

This BGS is independent from the menu, and contains only BG0 (BCRVeto) and BG1 (Paired)

Definition at line 14 of file BunchGroupSet.py.

14def createDefaultBunchGroupSetMC():
15 """
16 create BunchGroupSet for simulation
17
18 This BGS is independent from the menu, and contains only BG0 (BCRVeto) and BG1 (Paired)
19 """
20 bgs = BunchGroupSet("MC")
21 bgs.addBunchGroup( BunchGroupSet.BunchGroup(name = 'BCRVeto', internalNumber = 0).addRange(0,3539).addRange(3561,3563).normalize() )\
22 .addBunchGroup( BunchGroupSet.BunchGroup(name = 'Paired', internalNumber = 1).addTrain(0,3564).normalize() )
23 return bgs
24
25

Variable Documentation

◆ log

python.L1.Base.BunchGroupSet.log = logging.getLogger(__name__)

Definition at line 12 of file BunchGroupSet.py.