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 21 of file StandaloneBunchgroupHandler.py.

Constructor & Destructor Documentation

◆ __init__()

def StandaloneBunchgroupHandler.BunchgroupRunData.__init__ (   self,
  run 
)

Definition at line 23 of file StandaloneBunchgroupHandler.py.

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

Member Function Documentation

◆ createLookup()

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

Definition at line 37 of file StandaloneBunchgroupHandler.py.

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

Member Data Documentation

◆ bcidLookupAfter

StandaloneBunchgroupHandler.BunchgroupRunData.bcidLookupAfter

Definition at line 31 of file StandaloneBunchgroupHandler.py.

◆ bcidLookupBefore

StandaloneBunchgroupHandler.BunchgroupRunData.bcidLookupBefore

Definition at line 29 of file StandaloneBunchgroupHandler.py.

◆ lbLookup

StandaloneBunchgroupHandler.BunchgroupRunData.lbLookup

Definition at line 33 of file StandaloneBunchgroupHandler.py.

◆ physicsBunchgroupBcids

StandaloneBunchgroupHandler.BunchgroupRunData.physicsBunchgroupBcids

Definition at line 27 of file StandaloneBunchgroupHandler.py.

◆ run

StandaloneBunchgroupHandler.BunchgroupRunData.run

Definition at line 25 of file StandaloneBunchgroupHandler.py.

◆ verbose

StandaloneBunchgroupHandler.BunchgroupRunData.verbose

Definition at line 35 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:195
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28