ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
StandaloneBunchgroupHandler.BunchgroupRunData Class Reference
Inheritance diagram for StandaloneBunchgroupHandler.BunchgroupRunData:
Collaboration diagram for StandaloneBunchgroupHandler.BunchgroupRunData:

Public Member Functions

def __init__ (self, run)
 
def createLookup (self, lb, bcidRange)
 

Public Attributes

 run
 
 physicsBunchgroupBcids
 
 bcidLookupBefore
 
 bcidLookupAfter
 
 lbLookup
 
 verbose
 

Detailed Description

Definition at line 19 of file StandaloneBunchgroupHandler.py.

Constructor & Destructor Documentation

◆ __init__()

def StandaloneBunchgroupHandler.BunchgroupRunData.__init__ (   self,
  run 
)

Definition at line 21 of file StandaloneBunchgroupHandler.py.

21  def __init__(self,run):
22 
23  self.run = run
24  # physics bunch group BCIDs, keyed by LB
25  self.physicsBunchgroupBcids = {}
26  # BCID lookup, keyed by LB
27  self.bcidLookupBefore = {}
28  # BCID lookup, keyed by LB
29  self.bcidLookupAfter = {}
30  # LB lookup
31  self.lbLookup = {}
32 
33  self.verbose = False
34 

Member Function Documentation

◆ createLookup()

def StandaloneBunchgroupHandler.BunchgroupRunData.createLookup (   self,
  lb,
  bcidRange 
)

Definition at line 35 of file StandaloneBunchgroupHandler.py.

35  def createLookup(self,lb,bcidRange):
36  if self.verbose:
37  print("createLookup called")
38  self.bcidLookupBefore[lb] = []
39  self.bcidLookupAfter[lb] = []
40  for bcid in range(3564):
41  bcidListBefore = []
42  bcidListAfter = []
43  for offset in range(1,bcidRange+1):
44  checkBcid = bcid + offset
45  if checkBcid > 3563:
46  checkBcid -= 3564
47  if checkBcid in self.physicsBunchgroupBcids[lb]:
48  bcidListAfter.append(1)
49  else:
50  bcidListAfter.append(0)
51  self.bcidLookupAfter[lb].append(bcidListAfter)
52 
53  for offset in range(1,bcidRange+1):
54  checkBcid = bcid - offset
55  if checkBcid < 0:
56  checkBcid += 3564
57  if checkBcid in self.physicsBunchgroupBcids[lb]:
58  bcidListBefore.append(1)
59  else:
60  bcidListBefore.append(0)
61  self.bcidLookupBefore[lb].append(bcidListBefore)
62 
63  if self.verbose:
64  print("Bg run data, Run",self.run,"LB",lb)
65  for bcid in range(3564):
66  print("BCID",bcid,"before",self.bcidLookupBefore[lb][bcid])
67  print("BCID",bcid,"after",self.bcidLookupAfter[lb][bcid])
68 

Member Data Documentation

◆ bcidLookupAfter

StandaloneBunchgroupHandler.BunchgroupRunData.bcidLookupAfter

Definition at line 29 of file StandaloneBunchgroupHandler.py.

◆ bcidLookupBefore

StandaloneBunchgroupHandler.BunchgroupRunData.bcidLookupBefore

Definition at line 27 of file StandaloneBunchgroupHandler.py.

◆ lbLookup

StandaloneBunchgroupHandler.BunchgroupRunData.lbLookup

Definition at line 31 of file StandaloneBunchgroupHandler.py.

◆ physicsBunchgroupBcids

StandaloneBunchgroupHandler.BunchgroupRunData.physicsBunchgroupBcids

Definition at line 25 of file StandaloneBunchgroupHandler.py.

◆ run

StandaloneBunchgroupHandler.BunchgroupRunData.run

Definition at line 23 of file StandaloneBunchgroupHandler.py.

◆ verbose

StandaloneBunchgroupHandler.BunchgroupRunData.verbose

Definition at line 33 of file StandaloneBunchgroupHandler.py.


The documentation for this class was generated from the following file:
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:194
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18