ATLAS Offline Software
Loading...
Searching...
No Matches
StandaloneBunchgroupHandler.BunchgroupRunData Class Reference
Inheritance diagram for StandaloneBunchgroupHandler.BunchgroupRunData:
Collaboration diagram for StandaloneBunchgroupHandler.BunchgroupRunData:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

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

Public Attributes

 run = run
dict physicsBunchgroupBcids = {}
dict bcidLookupBefore = {}
dict bcidLookupAfter = {}
dict lbLookup = {}
bool verbose = False

Detailed Description

Definition at line 19 of file StandaloneBunchgroupHandler.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

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()

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
void print(char *figname, TCanvas *c1)

Member Data Documentation

◆ bcidLookupAfter

dict StandaloneBunchgroupHandler.BunchgroupRunData.bcidLookupAfter = {}

Definition at line 29 of file StandaloneBunchgroupHandler.py.

◆ bcidLookupBefore

dict StandaloneBunchgroupHandler.BunchgroupRunData.bcidLookupBefore = {}

Definition at line 27 of file StandaloneBunchgroupHandler.py.

◆ lbLookup

dict StandaloneBunchgroupHandler.BunchgroupRunData.lbLookup = {}

Definition at line 31 of file StandaloneBunchgroupHandler.py.

◆ physicsBunchgroupBcids

dict StandaloneBunchgroupHandler.BunchgroupRunData.physicsBunchgroupBcids = {}

Definition at line 25 of file StandaloneBunchgroupHandler.py.

◆ run

StandaloneBunchgroupHandler.BunchgroupRunData.run = run

Definition at line 23 of file StandaloneBunchgroupHandler.py.

◆ verbose

bool StandaloneBunchgroupHandler.BunchgroupRunData.verbose = False

Definition at line 33 of file StandaloneBunchgroupHandler.py.


The documentation for this class was generated from the following file: