ATLAS Offline Software
Public Member Functions | Static Public Attributes | List of all members
python.subdetectors.global_system.LUMI_EmittanceScan Class Reference
Inheritance diagram for python.subdetectors.global_system.LUMI_EmittanceScan:
Collaboration diagram for python.subdetectors.global_system.LUMI_EmittanceScan:

Public Member Functions

def make_good_iovs (self, iovs)
 
def emittance_generator (self, iovs)
 
def quantize (self, lbtime, iovs)
 

Static Public Attributes

string input_db = 'COOLONL_TDAQ/CONDBR2'
 

Detailed Description

Overloads calculate_good_iovs & quantize
Latter because this is a strange COOL folder that is timewise but already quantized
as run-LB

Definition at line 85 of file global_system.py.

Member Function Documentation

◆ emittance_generator()

def python.subdetectors.global_system.LUMI_EmittanceScan.emittance_generator (   self,
  iovs 
)

Definition at line 96 of file global_system.py.

96  def emittance_generator(self, iovs):
97  events = process_iovs(_ for _ in iovs if _.channel == 1 and _.ScanningIP != 0)
98 
99  for since, until, (state,) in events:
100  #print state, state.RunLB & 0xffffffff if state.RunLB else 0
101  if state is not None and state.RunLB is not None:
102  thisrun = state.RunLB >>32
103  # pseudo-LB and not to be trusted
104  if thisrun == 0: continue
105  thisLB = state.RunLB & 0xffffffff
106  yield DefectIOV(RunLumi(thisrun, thisLB),
107  RunLumi(thisrun, thisLB+1),
108  'LUMI_EMITTANCESCAN', True,
109  comment='Emittance scan'
110  )
111 

◆ make_good_iovs()

def python.subdetectors.global_system.LUMI_EmittanceScan.make_good_iovs (   self,
  iovs 
)

Definition at line 93 of file global_system.py.

93  def make_good_iovs(self, iovs):
94  return IOVSet(list(connect_adjacent_iovs_defect(self.emittance_generator(iovs))))
95 

◆ quantize()

def python.subdetectors.global_system.LUMI_EmittanceScan.quantize (   self,
  lbtime,
  iovs 
)

Definition at line 112 of file global_system.py.

112  def quantize(self, lbtime, iovs):
113  return iovs
114 

Member Data Documentation

◆ input_db

string python.subdetectors.global_system.LUMI_EmittanceScan.input_db = 'COOLONL_TDAQ/CONDBR2'
static

Definition at line 91 of file global_system.py.


The documentation for this class was generated from the following file:
python.variable.DefectIOV
def DefectIOV(channel, present, comment)
Definition: variable.py:26
python.sugar.runlumi.RunLumi
RunLumi
Definition: runlumi.py:131
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.events.process_iovs
def process_iovs(*iovsets)
Definition: events.py:30
python.libcore.connect_adjacent_iovs_defect
def connect_adjacent_iovs_defect(generator)
Definition: libcore.py:69