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

Public Member Functions

def __init__ (self)
 
def calculate_good_iovs (self, lbtime, subdetector)
 

Public Attributes

 folder_name
 
 input_hashes
 
 iovs
 

Detailed Description

Definition at line 18 of file lucid.py.

Constructor & Destructor Documentation

◆ __init__()

def python.subdetectors.lucid.Lucid_Magnets.__init__ (   self)

Definition at line 20 of file lucid.py.

20  def __init__(self):
21  self.folder_name = None # unused
22 

Member Function Documentation

◆ calculate_good_iovs()

def python.subdetectors.lucid.Lucid_Magnets.calculate_good_iovs (   self,
  lbtime,
  subdetector 
)

Definition at line 24 of file lucid.py.

24  def calculate_good_iovs(self, lbtime, subdetector):
25  magnets = Magnets()
26  result = magnets.run(lbtime)
27  by_defect = result.by_channel
28 
29  toroid_ramp = by_defect.get("GLOBAL_TOROID_RAMPING", IOVSet())
30  solenoid_ramp = by_defect.get("GLOBAL_SOLENOID_RAMPING", IOVSet())
31 
32  self.input_hashes = [hash(toroid_ramp), hash(solenoid_ramp)]
33  result = IOVSet()
34 
35  events = process_iovs(toroid_ramp, solenoid_ramp)
36  for since, until, (toroid, solenoid) in events:
37  if toroid or solenoid:
38  result.add(since, until, "LCD_MAGNETS_RAMPING", True, "")
39 
40  self.iovs = result.solidify(DefectIOV)
41 
42  return self
43 

Member Data Documentation

◆ folder_name

python.subdetectors.lucid.Lucid_Magnets.folder_name

Definition at line 21 of file lucid.py.

◆ input_hashes

python.subdetectors.lucid.Lucid_Magnets.input_hashes

Definition at line 32 of file lucid.py.

◆ iovs

python.subdetectors.lucid.Lucid_Magnets.iovs

Definition at line 40 of file lucid.py.


The documentation for this class was generated from the following file:
python.events.process_iovs
def process_iovs(*iovsets)
Definition: events.py:30
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109