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 27 of file BunchGroupSet.py.

28  """
29  sets default bunchgroups for all menus, needed for simulation.
30  """
31  if hasattr(L1MenuFlags, "BunchGroupNames"): # if flag has been set
32  # if menu defines bunchgroup names, then we generate a bunchgroup set from that
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() )
39 
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
44  else:
46 
47  return bgs
48 
49 

◆ 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 15 of file BunchGroupSet.py.

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

Variable Documentation

◆ log

python.L1.Base.BunchGroupSet.log

Definition at line 13 of file BunchGroupSet.py.

python.L1.Base.BunchGroupSet.createDefaultBunchGroupSet
def createDefaultBunchGroupSet(flags)
Definition: BunchGroupSet.py:27
python.L1.Base.BunchGroupSet.createDefaultBunchGroupSetMC
def createDefaultBunchGroupSetMC()
Definition: BunchGroupSet.py:15
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
StateLessPT_NewConfig.partition
partition
Definition: StateLessPT_NewConfig.py:49