ATLAS Offline Software
Classes | Functions | Variables
python.L1.Base.BunchGroupSet Namespace Reference

Classes

class  BunchGroupSet
 

Functions

def createDefaultBunchGroupSetMC ()
 
def createDefaultBunchGroupSet (flags)
 

Variables

 log
 

Function Documentation

◆ createDefaultBunchGroupSet()

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

Definition at line 26 of file BunchGroupSet.py.

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:
45 
46  return bgs
47 
48 

◆ createDefaultBunchGroupSetMC()

def 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.

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

Definition at line 12 of file BunchGroupSet.py.

python.ZdcOnlineRecMonitorConfig.partition
partition
Definition: ZdcOnlineRecMonitorConfig.py:328
python.L1.Base.BunchGroupSet.createDefaultBunchGroupSet
def createDefaultBunchGroupSet(flags)
Definition: BunchGroupSet.py:26
python.L1.Base.BunchGroupSet.createDefaultBunchGroupSetMC
def createDefaultBunchGroupSetMC()
Definition: BunchGroupSet.py:14
normalize
Double_t normalize(TF1 *func, Double_t *rampl=NULL, Double_t from=0., Double_t to=0., Double_t step=1.)
Definition: LArPhysWaveHECTool.cxx:825